/* ================================================================
   PLEXTOOLS (PLEXGIF) — SHOWCASE STYLES
   Designed specifically for Mr Kun Vo's Creator Utilities
   ================================================================ */

/* Vietnamese Display Font: UTM Bebas (All Display Headings & Titles) */
@font-face {
  font-family: 'UTM Bebas';
  src: url('../assets/fonts/UTM-Bebas.woff2') format('woff2'),
       url('../assets/fonts/UTM-Bebas.woff') format('woff'),
       url('../assets/fonts/UTM-Bebas.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Brand Display Font: iCiel Neue Plak (Preserved exclusively for KUN VO logo) */
@font-face {
  font-family: 'iCiel Neue Plak';
  src: url('../assets/fonts/iCielNeuePlak-BoldWide.woff2') format('woff2'),
       url('../assets/fonts/iCielNeuePlak-BoldWide.woff') format('woff'),
       url('../assets/fonts/iCielNeuePlak-BoldWide.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --plex-purple: #6C5CE7;
  --plex-purple-glow: rgba(108, 92, 231, 0.25);
  --plex-purple-hover: #5846e0;
  --plex-blue: #0984E3;
  --font-display: 'UTM Bebas', 'Bebas Neue', 'Oswald', sans-serif;
  --font-brand: 'iCiel Neue Plak', 'UTM Bebas', 'Bebas Neue', sans-serif;
}

.ac-brand-logo-text {
  font-family: var(--font-brand) !important;
  font-weight: 700;
}

/* Page Wrapper */
.plex-page {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Nav Active Link Indicator */
.ac-nav-link.is-active {
  color: var(--text-primary);
  position: relative;
}

.ac-nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-red);
}

/* Hero Section */
.plex-hero {
  position: relative;
  width: 100%;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
  background: radial-gradient(circle at 50% 15%, rgba(108, 92, 231, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(168, 0, 0, 0.08) 0%, transparent 50%),
              #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.plex-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plex-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.35);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: #a29bfe;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.plex-badge-dot {
  width: 7px;
  height: 7px;
  background-color: #6C5CE7;
  border-radius: 50%;
  box-shadow: 0 0 10px #6C5CE7;
  animation: plexPulse 2s infinite ease-in-out;
}

@keyframes plexPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.plex-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.plex-hero-title span {
  color: #a29bfe;
}

.plex-hero-lead {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.12vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.plex-hero-lead strong {
  color: var(--text-primary);
  font-weight: 500;
}

.plex-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.plex-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.plex-btn-download.mac,
.plex-btn-download.win {
  background: #ffffff;
  color: #0d0d0d;
  border: 1px solid #ffffff;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.plex-btn-download.mac:hover,
.plex-btn-download.win:hover {
  background: #e6e6e6;
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 255, 255, 0.25);
}

.plex-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.plex-btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.plex-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.plex-hero-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ================================================================
   SCREENSHOT SHOWCASE SECTION
   ================================================================ */
.plex-showcase-section {
  width: 100%;
  padding: 2rem clamp(1.5rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
  background: #0d0d0d;
}

.plex-showcase-container {
  max-width: 1260px;
  margin: 0 auto;
}

/* App Window Frame Mockup */
.plex-window {
  background: #18181b;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(108, 92, 231, 0.15);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.plex-window-header {
  background: #121214;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plex-window-dots {
  display: flex;
  gap: 8px;
}

.plex-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.plex-dot.red { background: #ff5f56; }
.plex-dot.yellow { background: #ffbd2e; }
.plex-dot.green { background: #27c93f; }

.plex-window-title {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.04em;
}

.plex-window-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #71717a;
}

.plex-window-body {
  position: relative;
  background: #09090b;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.plex-window-img {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

/* Showcase Tabs / Switcher */
.plex-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.plex-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 18px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plex-tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.plex-tab-btn.is-active {
  background: rgba(108, 92, 231, 0.16);
  border-color: #6C5CE7;
  color: #ffffff;
}

.plex-tab-platform {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ================================================================
   CORE FEATURES SECTION
   ================================================================ */
.plex-features-section {
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  background: #0d0d0d;
  border-top: 1px solid var(--border-subtle);
}

.plex-section-container {
  max-width: 1380px;
  margin: 0 auto;
}

.plex-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.plex-section-label {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.plex-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.plex-br-mobile {
  display: none;
}


.plex-section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.plex-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.plex-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.plex-feature-card:hover {
  background: var(--bg-card);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.plex-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a29bfe;
  margin-bottom: 1.5rem;
}

.plex-feature-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.plex-feature-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.plex-feature-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.plex-feature-badge {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(249, 243, 222, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  line-height: 1.1;
}

/* ================================================================
   SHORTCUTS REFERENCE CHEAT-SHEET
   ================================================================ */
.plex-shortcuts-section {
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  background: #0d0d0d;
  border-top: 1px solid var(--border-subtle);
}

.plex-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.plex-shortcut-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color var(--transition-fast);
}

.plex-shortcut-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-card);
}

.plex-shortcut-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plex-shortcut-name {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.plex-shortcut-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.plex-kbd-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.plex-kbd {
  display: inline-block;
  padding: 4px 8px;
  background: #202024;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #F9F3DE;
  white-space: nowrap;
}

/* ================================================================
   INSTALLATION & COMPATIBILITY GUIDE
   ================================================================ */
.plex-install-section {
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  background: #0d0d0d;
  border-top: 1px solid var(--border-subtle);
}

.plex-install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.plex-install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: clamp(2rem, 3.5vw, 2.8rem);
  display: flex;
  flex-direction: column;
}

.plex-install-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plex-install-head svg {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

.plex-install-card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.plex-install-card-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.plex-install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.plex-install-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.plex-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.15);
  color: #a29bfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.plex-install-note {
  background: rgba(168, 0, 0, 0.08);
  border-left: 3px solid var(--accent-red);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #ffcccc;
  margin-top: auto;
}

.plex-install-note strong {
  color: #ffffff;
}

/* ================================================================
   DOWNLOAD HUB CTA
   ================================================================ */
.plex-download-section {
  width: 100%;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 70%),
              #0d0d0d;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.plex-download-inner {
  max-width: 980px;
  margin: 0 auto;
}

.plex-download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.plex-dl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.plex-dl-card:hover {
  border-color: #6C5CE7;
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--plex-purple-glow);
}

.plex-dl-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.plex-dl-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.plex-dl-version {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  color: #a29bfe;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.plex-dl-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.plex-dl-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: #ffffff;
  color: #0d0d0d;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.plex-dl-card:hover .plex-dl-btn {
  background: #6C5CE7;
  color: #ffffff;
}

/* Lightbox for Screenshots */
.plex-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.plex-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.plex-lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.plex-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.plex-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .plex-br-mobile {
    display: block;
  }

  .plex-hero {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
  }

  .plex-hero-title {
    font-size: 2.5rem;
  }

  .plex-hero-lead {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .plex-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .plex-btn-download,
  .plex-btn-outline {
    width: 100%;
    justify-content: center;
  }

  .plex-features-grid,
  .plex-install-grid,
  .plex-download-cards {
    grid-template-columns: 1fr;
  }

  .plex-tabs {
    flex-direction: column;
    width: 100%;
  }

  .plex-tab-btn {
    width: 100%;
    justify-content: space-between;
  }

  .plex-window-body {
    min-height: 240px;
  }

  .plex-shortcut-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
