/* ============================================================
   OptiPixel Landing Page — Vivid Harmony Design System
   Pure Vanilla CSS · Responsive · Dark & Light Mode
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Gradients & Accents */
  --brand-primary: #6366F1;
  --brand-secondary: #8B5CF6;
  --brand-fuchsia: #EC4899;
  --brand-emerald: #10B981;
  --brand-cyan: #06B6D4;
  --brand-amber: #F59E0B;

  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #6366F1 100%);
  --gradient-emerald: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);

  /* Dark Theme Surfaces (Default) */
  --bg-main: #090C15;
  --surface-base: #111625;
  --surface-card: rgba(22, 28, 45, 0.7);
  --surface-card-hover: rgba(30, 38, 60, 0.85);
  --surface-glass: rgba(17, 22, 37, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.35);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);

  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --container-width: 1200px;
}

/* Light Theme Variables */
html[data-theme="light"] {
  --bg-main: #F8FAFC;
  --surface-base: #FFFFFF;
  --surface-card: rgba(255, 255, 255, 0.85);
  --surface-card-hover: rgba(255, 255, 255, 0.98);
  --surface-glass: rgba(255, 255, 255, 0.88);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(99, 102, 241, 0.4);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --shadow-card: 0 16px 36px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Ambient Canvas Background
   ============================================================ */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* ============================================================
   Navigation Bar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(220, 44, 79, 0.35);
  transition: transform 0.2s ease;
}

.nav-brand:hover .nav-logo-icon {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--border-active);
}

.lang-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  min-width: 140px;
  z-index: 101;
}

.lang-menu.show {
  display: flex;
}

.lang-item {
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-item:hover, .lang-item.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand-primary);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--border-active);
  transform: scale(1.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  background: var(--surface-card-hover);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-active);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--brand-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.app-store-badge:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  background: var(--surface-card-hover);
}

.app-store-badge svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.badge-text-sub {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.badge-text-main {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-trust-chips {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-chip svg {
  color: var(--brand-emerald);
}

/* Phone Mockup Showcase */
.mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrapper {
  position: relative;
  display: inline-block;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 75%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.iphone-frame {
  position: relative;
  width: 300px;
  height: 620px;
  background: #0f131f;
  border-radius: 50px;
  border: 4px solid #334155;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 25px;
  background: #000000;
  border-radius: 20px;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #090C15;
}

.hero-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Floating Badges */
.floating-stat-card {
  position: absolute;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
}

.card-top-right {
  top: 60px;
  right: -30px;
  animation: float-right 4s ease-in-out infinite;
}

.card-bottom-left {
  bottom: 50px;
  left: -30px;
  animation: float-left 4s ease-in-out infinite 0.5s;
}

@keyframes float-right {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-left {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-emerald);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   Interactive Before / After Section
   ============================================================ */
.interactive-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.slider-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.comparison-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  background: #000000;
  cursor: ew-resize;
}

.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.6);
}

.compare-overlay .compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 100%;
  max-width: none;
}

.compare-badge {
  position: absolute;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-before {
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-after {
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 10;
  color: #0F172A;
  font-weight: 800;
  font-size: 1.1rem;
}

.slider-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  text-align: center;
}

.metric-item {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.metric-val.green {
  color: var(--brand-emerald);
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Interactive Showcase Section
   ============================================================ */
.showcase-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  margin-top: 40px;
}

.showcase-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-primary);
  font-family: inherit;
}

.showcase-tab:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-active);
  transform: translateX(4px);
}

.showcase-tab.active {
  background: var(--surface-card-hover);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.25);
}

.showcase-tab-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.showcase-tab-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.showcase-tab-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.showcase-preview-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-phone-wrapper {
  transform: scale(0.95);
}

/* ============================================================
   Features Grid Section
   ============================================================ */
.features-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #FFFFFF;
}

.feature-title {
  font-size: 1.25rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Privacy Pillars Section
   ============================================================ */
.privacy-banner {
  margin: 60px auto;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.privacy-shield-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.privacy-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.privacy-desc {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.privacy-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.privacy-item h5 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   FAQ Accordion Section
   ============================================================ */
.faq-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ============================================================
   Download CTA Box
   ============================================================ */
.cta-banner {
  padding: 70px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.cta-box {
  background: var(--surface-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cta-box h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   Legal & Support Pages (SPA View)
   ============================================================ */
.doc-page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.doc-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-card);
}

.doc-title {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.doc-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 14px;
  color: var(--brand-primary);
}

.doc-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.doc-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.doc-content ul, .doc-content ol {
  margin: 0 0 18px 24px;
  color: var(--text-secondary);
}

.doc-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.doc-contact-box {
  background: var(--surface-base);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 36px;
}

/* ============================================================
   Features Detail Subpage (#/features)
   ============================================================ */
.subpage-hero {
  padding: 120px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-detail-section {
  padding: 40px 0 100px;
}

.detail-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 100px;
}

.detail-feature-row.reverse {
  direction: rtl;
}

.detail-feature-row.reverse .detail-feature-text {
  direction: ltr;
}

.detail-feature-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-active);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.detail-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.detail-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.detail-list li {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  padding-left: 28px;
}

.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1.05rem;
}

.detail-feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.detail-mockup-frame {
  width: 280px;
  height: 580px;
  border-radius: 44px;
  border: 8px solid rgba(255, 255, 255, 0.14);
  background: #000;
  box-shadow: var(--shadow-card), 0 0 35px rgba(99, 102, 241, 0.16);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="light"] .detail-mockup-frame {
  border: 8px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 30px rgba(99, 102, 241, 0.1);
}

.detail-mockup-frame:hover {
  transform: translateY(-4px) scale(1.01);
}

.detail-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .detail-feature-row {
    gap: 40px;
    margin-bottom: 70px;
  }
  .detail-title {
    font-size: 1.8rem;
  }
  .detail-mockup-frame {
    width: 250px;
    height: 520px;
  }
}

@media (max-width: 768px) {
  .subpage-title {
    font-size: 2.2rem;
  }
  .detail-feature-row {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 60px;
  }
  .detail-feature-row.reverse {
    direction: ltr;
  }
  .detail-feature-visual {
    order: -1;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--surface-base);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand-primary);
}

.footer-status-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--brand-emerald);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-cta-group, .hero-trust-chips {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .showcase-preview-col {
    order: -1;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .iphone-frame {
    width: 270px;
    height: 560px;
  }

  .showcase-tab {
    padding: 14px 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .comparison-box {
    aspect-ratio: 4 / 3;
  }

  .slider-metrics {
    grid-template-columns: 1fr;
  }

  .floating-stat-card {
    display: none;
  }

  .doc-container {
    padding: 32px 20px;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
  }
}
