/* ═══════════════════════════════════════════
   FACENOVA — Styles  (dark + light theme)
═══════════════════════════════════════════ */

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

/* ── Dark theme (default) ── */
:root {
  --bg:            #09090b;
  --bg-2:          #0f0f12;
  --bg-3:          #18181b;
  --surface:       rgba(255,255,255,0.025);
  --surface-2:     rgba(255,255,255,0.05);
  --surface-3:     rgba(255,255,255,0.09);
  --border:        rgba(255,255,255,0.08);
  --border-2:      rgba(255,255,255,0.15);
  --text:          #f0f0f2;
  --text-muted:    #a0a0aa;
  --text-dim:      #6b6b78;
  --accent:        #6366f1;
  --accent-dim:    rgba(99,102,241,0.12);
  --accent-border: rgba(99,102,241,0.3);
  --green:         #22c55e;
  --green-dim:     rgba(34,197,94,0.08);
  --green-border:  rgba(34,197,94,0.2);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --font:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', monospace;
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg:            #ffffff;
  --bg-2:          #f7f7fa;
  --bg-3:          #eeeef1;
  --surface:       rgba(0,0,0,0.03);
  --surface-2:     rgba(0,0,0,0.055);
  --surface-3:     rgba(0,0,0,0.09);
  --border:        rgba(0,0,0,0.09);
  --border-2:      rgba(0,0,0,0.16);
  --text:          #111114;
  --text-muted:    #52525c;
  --text-dim:      #8b8b98;
  --accent:        #4f46e5;
  --accent-dim:    rgba(79,70,229,0.07);
  --accent-border: rgba(79,70,229,0.22);
  --green:         #16a34a;
  --green-dim:     rgba(22,163,74,0.07);
  --green-border:  rgba(22,163,74,0.18);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s ease, color 0.25s ease;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.2); border-radius: 3px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent; text-decoration: none;
  white-space: nowrap; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: #4f46e5; border-color: #4f46e5; }
.btn-ghost {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-2); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--border-2); background: var(--surface); }
.btn-sm  { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg  { padding: 12px 26px; font-size: 0.95rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Sections ── */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-2); }
.section-alt  { background: var(--bg-3); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 12px;
  color: var(--text); letter-spacing: -0.025em;
}
.section-header p {
  color: var(--text-muted); font-size: 0.975rem;
  max-width: 460px; margin: 0 auto; line-height: 1.65;
}

/* ════════════════════════════════
   NAV
════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(255,255,255,0.9);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
}
.logo strong { color: var(--text); }
.logo-icon { font-size: 1.3rem; line-height: 1; }
.logo-img { width: 28px; height: 28px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  padding: 6px 11px; border-radius: var(--radius-xs);
  font-size: 0.84rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* ── Theme toggle ── */
.theme-toggle {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-xs); cursor: pointer;
  transition: all 0.15s; color: var(--text-muted); flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-3); }
.theme-toggle svg { width: 15px; height: 15px; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-muted); border-radius: 2px; transition: all 0.25s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 16px 16px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  padding: 10px 12px; border-radius: var(--radius-xs);
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
}
.mobile-menu a:hover { color: var(--text); background: var(--surface-2); }
.mobile-menu.open { display: flex; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 0 72px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 10% 55%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 25%, rgba(99,80,200,0.05) 0%, transparent 55%);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 70% at 10% 55%, rgba(99,102,241,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 25%, rgba(99,80,200,0.025) 0%, transparent 55%);
}

.blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.blob-1 { width: 600px; height: 500px; opacity: 0.08; background: #6366f1; top: -100px; left: -150px; }
.blob-2 { width: 350px; height: 350px; opacity: 0.05; background: #4338ca; bottom: -50px; right: 10%; }
[data-theme="light"] .blob-1 { opacity: 0.04; }
[data-theme="light"] .blob-2 { opacity: 0.02; }

/* Hero two-column layout */
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: flex; align-items: center; gap: 52px; width: 100%;
}
.hero-content { flex: 1; min-width: 0; max-width: 540px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.775rem; font-weight: 500; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 28px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.07;
  margin-bottom: 20px; letter-spacing: -0.035em; color: #ffffff;
}
[data-theme="light"] .hero h1 { color: var(--text); }

.hero-sub {
  font-size: 1.025rem; color: var(--text-muted);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.stat-unit { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.stat-label { font-size: 0.74rem; color: var(--text-dim); margin-top: 4px; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ── Scanner Window ── */
.hero-scanner { flex-shrink: 0; width: 360px; }

.scanner-window {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 32px 72px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.04);
  animation: scannerGlow 3.5s ease-in-out infinite;
}
[data-theme="light"] .scanner-window {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
  animation: none;
}
@keyframes scannerGlow {
  0%, 100% { box-shadow: 0 32px 72px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.04); }
  50%       { box-shadow: 0 32px 72px rgba(0,0,0,0.38), 0 0 28px 1px rgba(99,102,241,0.12), 0 0 0 1px rgba(99,102,241,0.18); }
}

/* Titlebar */
.scanner-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.titlebar-dots { display: flex; gap: 6px; }
.titlebar-dots span { width: 10px; height: 10px; border-radius: 50%; }
.titlebar-dots span:nth-child(1) { background: #ff5f57; }
.titlebar-dots span:nth-child(2) { background: #febc2e; }
.titlebar-dots span:nth-child(3) { background: #28c840; }
.titlebar-label {
  flex: 1; text-align: center;
  font-size: 0.68rem; font-weight: 500; color: var(--text-dim); font-family: var(--mono);
}
.titlebar-badge {
  font-size: 0.62rem; font-weight: 700; color: var(--green);
  letter-spacing: 0.05em; animation: blink 1.5s infinite;
}

/* Camera viewport */
.scanner-viewport { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.face-detection-area {
  position: relative; height: 186px;
  background: rgba(0,0,0,0.22);
  border-radius: 9px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
[data-theme="light"] .face-detection-area { background: rgba(0,0,0,0.05); }

/* Corner brackets on scanner */
.face-detection-area .corner {
  position: absolute; width: 15px; height: 15px;
  border-color: rgba(99,102,241,0.65); border-style: solid; z-index: 2;
}
.face-detection-area .corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-radius: 2px 0 0 0; }
.face-detection-area .corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; border-radius: 0 2px 0 0; }
.face-detection-area .corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; border-radius: 0 0 0 2px; }
.face-detection-area .corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 2px 0; }

.face-oval {
  position: absolute; width: 90px; height: 112px;
  border: 1.5px dashed rgba(99,102,241,0.25); border-radius: 50%;
}
.face-detection-area .face-icon { width: 75px; height: 90px; position: relative; z-index: 1; }
.scan-line {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.8), transparent);
  animation: scan 2.2s ease-in-out infinite; z-index: 3;
}
@keyframes scan { 0% { top: 8%; } 100% { top: 92%; } }

/* Detection results */
.detection-results { display: flex; flex-direction: column; gap: 6px; }
.result-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  background: var(--surface); border-radius: 7px; border: 1px solid var(--border);
}
.result-label {
  font-size: 0.68rem; font-weight: 500; color: var(--text-muted);
  min-width: 70px; font-family: var(--mono);
}
.result-bar-wrap { flex: 1; }
.result-bar { height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.result-fill {
  height: 100%; border-radius: 2px; width: 0;
  transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
  background: var(--green);
}
.result-fill.animated      { width: 98%; }
.result-fill.conf-fill     { background: var(--accent); }
.result-fill.conf-fill.animated { width: 87%; }
.result-value {
  font-size: 0.67rem; font-weight: 700; color: var(--text-muted);
  min-width: 34px; text-align: right; font-family: var(--mono);
}
.result-spacer { flex: 1; }
.result-badge {
  font-size: 0.6rem; font-weight: 700; padding: 2px 7px;
  border-radius: 4px; letter-spacing: 0.06em;
}
.result-badge.pass { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }

/* Scanner footer */
.scanner-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  background: var(--surface); border-radius: 7px; border: 1px solid var(--border);
}
.sf-status { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 600; color: var(--green); }
.sf-status svg { width: 13px; height: 13px; }
.sf-time { font-size: 0.65rem; font-weight: 500; color: var(--text-dim); font-family: var(--mono); }

/* ════════════════════════════════
   TRUST BAR
════════════════════════════════ */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-label { text-align: center; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 18px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-dim); transition: color 0.15s;
}
.trust-logo:hover { color: var(--text-muted); }
.trust-logo-link {
  text-decoration: none; cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s, border-color 0.15s;
}
.trust-logo-link:hover { color: #0175C2; border-bottom-color: rgba(1,117,194,0.35); }

/* ════════════════════════════════
   PUB.DEV SECTION
════════════════════════════════ */
.pubdev-section {
  padding: 0 0 0;
  border-bottom: 1px solid var(--border);
}
.pubdev-card {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 20px 0;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, background 0.15s;
  flex-wrap: wrap;
}
.pubdev-card:hover { border-color: #0175C2; background: rgba(1,117,194,0.04); }

.pubdev-identity { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.pubdev-dart-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(84,197,248,0.12); border: 1px solid rgba(84,197,248,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pubdev-pkg-name {
  font-family: var(--mono); font-size: 0.88rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.pubdev-pkg-sub { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }

.pubdev-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.pubdev-stat {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; color: var(--text-muted);
}
.pubdev-stat svg { flex-shrink: 0; opacity: 0.55; }
.pubdev-stat-val {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  font-family: var(--mono); min-width: 18px;
}
.pubdev-stat-lbl { font-size: 0.72rem; color: var(--text-dim); }
.pubdev-stat-divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

/* Loading shimmer for stats */
.pubdev-stat-val.loading {
  background: var(--surface-3); color: transparent;
  border-radius: 4px; min-width: 28px; animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; } 50% { opacity: 0.9; }
}

.pubdev-cta { margin-left: auto; flex-shrink: 0; }
.pubdev-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-xs);
  background: #0175C2; color: white;
  font-size: 0.82rem; font-weight: 600;
  transition: background 0.15s; white-space: nowrap;
}
.pubdev-card:hover .pubdev-btn { background: #0284d8; }

@media (max-width: 768px) {
  .pubdev-card { padding: 14px 16px; gap: 14px; }
  .pubdev-stats { flex-wrap: wrap; }
  .pubdev-cta { width: 100%; }
  .pubdev-btn { width: 100%; justify-content: center; }
}

/* ── Flutter Package Block ── */
.flutter-pkg-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 16px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.flutter-pkg-block:hover { border-color: var(--border-2); }

.flutter-pkg-top {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.flutter-pkg-actions {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; flex-wrap: wrap;
  background: rgba(0,0,0,0.1);
}
[data-theme="light"] .flutter-pkg-actions { background: rgba(0,0,0,0.03); }

.fpkg-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-xs);
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.fpkg-btn-pubdev {
  background: rgba(1,117,194,0.1);
  border-color: rgba(1,117,194,0.3);
  color: #0175C2;
}
[data-theme="light"] .fpkg-btn-pubdev { color: #015fa3; }
.fpkg-btn-pubdev:hover { background: rgba(1,117,194,0.18); border-color: rgba(1,117,194,0.5); }

.fpkg-btn-github {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
}
.fpkg-btn-github:hover { background: var(--surface-3); border-color: var(--border-2); color: var(--text); }

.fpkg-btn-demo {
  background: var(--green-dim);
  border-color: var(--green-border);
  color: var(--green);
  margin-left: auto;
}
.fpkg-btn-demo:hover { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); }

/* ── Native SDK Row (iOS / Android Coming Soon) ── */
.native-sdk-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.native-sdk-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.native-sdk-card:hover { border-color: var(--border-2); }

.native-sdk-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.android-icon { background: rgba(61,220,132,0.1); border: 1px solid rgba(61,220,132,0.2); }
.ios-icon { background: var(--surface-2); border: 1px solid var(--border); }
[data-theme="light"] .ios-icon svg { opacity: 0.7; }

.native-sdk-info { flex: 1; min-width: 0; }
.native-sdk-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.native-sdk-sub { font-size: 0.74rem; color: var(--text-dim); margin-top: 2px; }

.coming-soon-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 50px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; white-space: nowrap;
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.22);
  color: #ca8a04;
  flex-shrink: 0;
}
[data-theme="light"] .coming-soon-badge { color: #92400e; background: rgba(234,179,8,0.06); }

@media (max-width: 640px) {
  .flutter-pkg-top { gap: 14px; }
  .pubdev-stats { display: none; }
  .flutter-pkg-actions { padding: 12px 16px; }
  .fpkg-btn-demo { margin-left: 0; width: 100%; justify-content: center; }
  .native-sdk-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   FEATURES
════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card-large { grid-column: span 2; }

.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.15s, background 0.15s;
  position: relative; overflow: hidden;
}
.feature-card:hover { border-color: var(--border-2); background: var(--surface-2); }

.feature-icon {
  width: 36px; height: 36px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--text-muted);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 { font-size: 0.925rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 0.845rem; line-height: 1.65; }

.feature-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 14px; }
.feature-tags span {
  font-size: 0.66rem; font-weight: 500;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px;
}
.mini-code { margin-top: 12px; }
.mini-code pre {
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; color: var(--text-dim);
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 11px 13px; overflow-x: auto;
}
[data-theme="light"] .mini-code pre { background: rgba(0,0,0,0.04); }

/* ════════════════════════════════
   HOW IT WORKS
════════════════════════════════ */
.steps { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.step {
  flex: 1; min-width: 158px; max-width: 210px;
  text-align: center; padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.15s;
}
.step:hover { border-color: var(--border-2); }
.step-num { font-size: 1.8rem; font-weight: 800; color: var(--text-dim); margin-bottom: 8px; font-family: var(--mono); letter-spacing: -0.04em; }
.step h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 0.795rem; color: var(--text-muted); line-height: 1.55; }
.step-arrow { font-size: 0.9rem; color: var(--border-2); align-self: center; }

.flow-diagram {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; overflow-x: auto;
}
.flow-box {
  text-align: center; min-width: 85px;
  padding: 9px 13px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--surface-2);
}
.flow-box-green  { border-color: var(--green-border);  background: var(--green-dim); }
.flow-box-purple { border-color: var(--accent-border); background: var(--accent-dim); }
.flow-icon { font-size: 1.15rem; margin-bottom: 3px; }
.flow-box span { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.flow-line {
  flex: 1; min-width: 20px; height: 1px; background: var(--border);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.flow-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.5;
  animation: moveDot 2s linear infinite;
}
@keyframes moveDot { 0% { transform: translateX(-14px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(14px); opacity: 0; } }

/* ════════════════════════════════
   INTEGRATION / CODE TABS
════════════════════════════════ */
.code-tabs {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 36px;
}
.tabs-header {
  display: flex; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2); overflow-x: auto;
}
[data-theme="light"] .tabs-header { background: rgba(0,0,0,0.04); }
.tab {
  padding: 10px 18px; background: none; border: none;
  font-family: var(--mono); font-size: 0.77rem; font-weight: 500;
  color: var(--text-dim); cursor: pointer; transition: all 0.15s;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text-muted); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.code-block pre {
  font-family: var(--mono); font-size: 0.835rem; line-height: 1.78;
  padding: 20px 24px; overflow-x: auto; color: #c8cdd8;
}
[data-theme="light"] .code-block pre { color: #2d3748; }
.code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 14px; background: rgba(0,0,0,0.15); border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim);
}
[data-theme="light"] .code-header { background: rgba(0,0,0,0.04); }
.copy-btn {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: var(--radius-xs); padding: 3px 10px;
  font-size: 0.7rem; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* Syntax */
.c-blue    { color: #79b8ff; }
.c-green   { color: #85e89d; }
.c-str     { color: #9ecbff; }
.c-num     { color: #e3a55a; }
.c-comment { color: #4a4f5a; }
[data-theme="light"] .c-blue    { color: #3b4dd8; }
[data-theme="light"] .c-green   { color: #16a34a; }
[data-theme="light"] .c-str     { color: #166534; }
[data-theme="light"] .c-num     { color: #c2410c; }
[data-theme="light"] .c-comment { color: #a3a3a3; }

.integration-features { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.int-feat { display: flex; align-items: center; gap: 8px; font-size: 0.845rem; font-weight: 500; color: var(--text-muted); }
.int-icon { font-size: 0.9rem; }

/* ════════════════════════════════
   USE CASES
════════════════════════════════ */
.use-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.use-case {
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.use-case:hover { border-color: var(--border-2); background: var(--surface-2); }
.use-icon { font-size: 1.5rem; margin-bottom: 12px; }
.use-case h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 5px; }
.use-case p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* ════════════════════════════════
   PRICING
════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.pricing-card {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); position: relative; transition: border-color 0.15s;
}
.pricing-card:hover { border-color: var(--border-2); }
.pricing-card-featured { border-color: var(--accent-border); background: var(--accent-dim); }
.pricing-card-featured:hover { border-color: rgba(99,102,241,0.42); }
.pricing-badge { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 14px; }
.pricing-badge-featured { color: var(--accent); }
.pricing-price { font-size: 2.3rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.04em; }
.pricing-period { font-size: 0.76rem; color: var(--text-dim); margin-top: 5px; margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 22px; }
.pricing-features li { padding: 6px 0; font-size: 0.845rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }

/* License bound box (lifetime card) */
.license-bound-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 10px 12px; margin-bottom: 16px;
}
.lbb-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 5px;
}
.lbb-package {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  padding: 4px 9px; border-radius: 4px; margin-bottom: 6px;
}
.lbb-package svg { flex-shrink: 0; color: var(--accent); }
.lbb-company { text-decoration: underline; text-decoration-style: dotted; }
.lbb-note {
  font-size: 0.72rem; color: var(--text-dim); line-height: 1.4;
}
.lbb-note a { color: var(--accent); }
.lbb-note a:hover { text-decoration: underline; }

/* 2-card layout */
.pricing-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 680px; margin: 0 auto 28px; }
.pricing-price-small { font-size: 1.15rem; font-weight: 500; color: var(--text-dim); }
.pricing-best-value {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 14px; border-radius: 50px; white-space: nowrap;
}
.pricing-note { text-align: center; color: var(--text-dim); font-size: 0.82rem; margin-top: 6px; }
.pricing-note a { color: var(--accent); }
.pricing-note a:hover { text-decoration: underline; }

/* Trial banner */
.trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.trial-banner-text { display: flex; align-items: center; gap: 12px; }
.trial-icon { font-size: 1.3rem; }
.trial-banner-text strong { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 1px; }
.trial-banner-text span { font-size: 0.78rem; color: var(--text-muted); }

/* ════════════════════════════════
   FORMS
════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.77rem; font-weight: 500; margin-bottom: 5px; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 9px 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-xs); color: var(--text);
  font-family: var(--font); font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s; outline: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-border); background: var(--accent-dim); }
.form-group input.mono { font-family: var(--mono); font-size: 0.82rem; }
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; }
.form-note { font-size: 0.74rem; color: var(--text-dim); text-align: center; margin-top: 9px; }
.form-success {
  background: var(--green-dim); border: 1px solid var(--green-border);
  color: var(--green); border-radius: var(--radius-xs); padding: 11px;
  text-align: center; font-weight: 600; margin-top: 12px; font-size: 0.845rem;
}
select option { background: var(--bg-3); }
.label-hint { font-weight: 400; color: var(--text-dim); font-size: 0.73rem; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer { padding: 52px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand .logo { margin-bottom: 10px; font-size: 0.975rem; }
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); max-width: 220px; line-height: 1.65; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links h4 { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 4px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.76rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 0.76rem; color: var(--text-dim); transition: color 0.15s; cursor: pointer; }
.footer-legal a:hover { color: var(--text-muted); }
.footer-email { display: inline-block; margin-top: 8px; font-size: 0.8rem; color: var(--text-muted); transition: color 0.15s; }
.footer-email:hover { color: var(--text); }

/* ════════════════════════════════
   MODALS — purchase
════════════════════════════════ */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); }
.modal-overlay.open { display: block; }

.modal {
  display: none; position: fixed; z-index: 300;
  top: 50%; left: 50%; transform: translate(-50%, -48%);
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  padding: 28px; opacity: 0;
}
.modal.open {
  display: block; opacity: 1; transform: translate(-50%, -50%);
  animation: modalIn 0.22s ease forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Legal modals — wider */
.modal-legal { width: min(700px, calc(100vw - 32px)); }

.modal-legal-body {
  max-height: 54vh; overflow-y: auto; padding-right: 8px; margin-top: 16px;
}
.modal-legal-body h3 {
  font-size: 0.875rem; font-weight: 700; color: var(--text);
  margin: 20px 0 6px;
}
.modal-legal-body h3:first-child { margin-top: 0; }
.modal-legal-body p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.68; margin-bottom: 8px; }
.modal-legal-body ul { padding-left: 16px; margin-bottom: 8px; }
.modal-legal-body ul li { font-size: 0.82rem; color: var(--text-muted); line-height: 1.68; margin-bottom: 4px; }
.modal-legal-body a { color: var(--accent); }
.modal-legal-body a:hover { text-decoration: underline; }
.modal-legal-body::-webkit-scrollbar { width: 4px; }
.modal-legal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.modal-header h2 { font-size: 1.2rem; font-weight: 700; margin: 5px 0 3px; letter-spacing: -0.01em; }
.modal-header p  { font-size: 0.82rem; color: var(--text-muted); }
.modal-close {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: var(--radius-xs);
  width: 30px; height: 30px; font-size: 1.1rem; cursor: pointer;
  flex-shrink: 0; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); border-color: var(--border-2); }

.modal-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 2px 9px; border-radius: 4px; margin-bottom: 4px; letter-spacing: 0.02em; }
.trial-tag   { background: var(--green-dim);              color: var(--green);  border: 1px solid var(--green-border); }
.monthly-tag { background: var(--accent-dim);             color: var(--accent); border: 1px solid var(--accent-border); }
.lifetime-tag{ background: rgba(234,179,8,0.08);          color: #b45309;       border: 1px solid rgba(234,179,8,0.2); }
.privacy-tag { background: rgba(14,165,233,0.08);         color: #0284c7;       border: 1px solid rgba(14,165,233,0.2); }
.terms-tag   { background: rgba(168,85,247,0.08);         color: #9333ea;       border: 1px solid rgba(168,85,247,0.2); }

.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ════════════════════════════════
   ANIMATIONS
════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-scanner { width: 320px; }
  .hero-inner { gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-scanner { width: 100%; max-width: 420px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .use-cases-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-two { grid-template-columns: 1fr; }
  .steps { gap: 10px; }
  .step-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trial-banner { flex-direction: column; align-items: flex-start; }
  .modal { padding: 20px; }
  .nav-cta { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .trust-logos { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}
