/* ═══ Design Tokens ═══ */
:root {
  --bg: #0B0F1A;
  --bg-raised: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(17, 24, 39, 0.9);
  --glass-border: rgba(75, 226, 119, 0.08);
  --glass-border-hover: rgba(75, 226, 119, 0.2);
  --emerald: #4BE277;
  --emerald-dark: #22C55E;
  --emerald-glow: rgba(75, 226, 119, 0.12);
  --teal: #2DD4BF;
  --teal-glow: rgba(45, 212, 191, 0.1);
  --ink: #F1F5F9;
  --ink-sub: #94A3B8;
  --ink-dim: #64748B;
  --warm: #F59E0B;
  --warm-glow: rgba(245, 158, 11, 0.1);
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.4);
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --mono: 'SF Mono', 'Fira Code', Consolas, monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg); background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 24px 24px; color: var(--ink); font-family: var(--font); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.82em; }

/* Ambient */
.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.18; }
.glow-1 { width: 600px; height: 600px; top: -200px; left: -150px; background: radial-gradient(circle, rgba(75,226,119,0.3), transparent 70%); animation: drift 25s ease-in-out infinite; }
.glow-2 { width: 500px; height: 500px; bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(45,212,191,0.25), transparent 70%); animation: drift 25s ease-in-out infinite reverse; animation-delay: -8s; }
@keyframes drift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-25px) scale(1.04); } }

/* Layout */
.page-wrapper { position: relative; z-index: 1; width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header { padding: 20px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.brand-text span { font-size: 0.72rem; color: var(--ink-dim); font-weight: 500; }
.nav-pills { display: flex; gap: 2px; background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--r); padding: 4px; backdrop-filter: blur(12px); }
.nav-pills a { padding: 7px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink-sub); transition: all 0.2s; }
.nav-pills a:hover { background: var(--bg-card-hover); color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 48px 0 64px; min-height: 80vh; }
.hero-content { display: flex; flex-direction: column; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--emerald-glow); border: 1px solid rgba(75,226,119,0.15); border-radius: var(--r-pill); padding: 6px 14px 6px 10px; font-size: 0.8rem; font-weight: 600; color: var(--emerald); margin-bottom: 20px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 6px var(--emerald-glow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }
.gradient-text { background: linear-gradient(135deg, #4BE277, #2DD4BF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1rem; color: var(--ink-sub); max-width: 460px; margin-bottom: 28px; line-height: 1.75; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; min-height: 48px; border-radius: var(--r); font-size: 0.92rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #4BE277, #22C55E); color: #0B0F1A; box-shadow: 0 4px 18px rgba(75,226,119,0.25); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(75,226,119,0.4); }
.btn-ghost { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--glass-border-hover); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 0.95rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px; }
.trust-item { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 500; color: var(--ink-dim); }
.trust-item svg { color: var(--ink-sub); }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-showcase-img { max-height: 480px; width: auto; border-radius: var(--r-lg); filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4)); }

/* Stats Bar */
.stats-bar { display: flex; justify-content: center; align-items: center; gap: 0; padding: 28px 40px; margin-bottom: 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(75,226,119,0.04), rgba(45,212,191,0.03)); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); }
.stat-item { flex: 1; text-align: center; padding: 8px 16px; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 900; color: var(--emerald); line-height: 1.2; }
.stat-label { font-size: 0.82rem; color: var(--ink-dim); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border-hover); flex-shrink: 0; }

/* Sections */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.label { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--emerald); margin-bottom: 8px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--ink-sub); font-size: 0.95rem; max-width: 520px; margin: 12px auto 0; line-height: 1.7; }

/* Feature Rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 80px; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-text { display: flex; flex-direction: column; gap: 0; }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--emerald-glow); border: 1px solid rgba(75,226,119,0.12); border-radius: var(--r); margin-bottom: 16px; color: var(--emerald); }
.icon-teal { background: var(--teal-glow); border-color: rgba(45,212,191,0.15); color: var(--teal); }
.icon-warm { background: var(--warm-glow); border-color: rgba(245,158,11,0.15); color: var(--warm); }
.feature-text h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.feature-text p { font-size: 0.92rem; color: var(--ink-sub); line-height: 1.75; margin-bottom: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink-sub); padding: 6px 0; }
.feature-list li::before { content: '✓'; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--emerald-glow); color: var(--emerald); font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }
.feature-img-wrap { display: flex; justify-content: center; }
.feature-phone { max-height: 420px; width: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* Mini Features Grid */
.mini-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { padding: 28px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--glass-border); backdrop-filter: blur(8px); transition: all 0.3s; }
.mini-card:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mini-icon { font-size: 1.6rem; margin-bottom: 12px; }
.mini-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.mini-card p { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.65; }

/* How It Works */
.how-steps { display: flex; align-items: stretch; gap: 0; }
.how-card { flex: 1; padding: 28px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--glass-border); transition: all 0.3s; }
.how-card:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); }
.how-num { font-size: 2rem; font-weight: 900; color: var(--emerald); opacity: 0.3; margin-bottom: 12px; }
.how-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.how-body p { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.65; }
.how-arrow { display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--ink-dim); padding: 0 12px; }

/* Download Panel */
.download-panel { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 40px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--bg-raised) 0%, rgba(26,47,34,0.4) 50%, var(--bg-raised) 100%); border: 1px solid var(--glass-border-hover); box-shadow: var(--shadow-md); }
.download-info { display: flex; flex-direction: column; }
.download-info .label { align-self: flex-start; }
.download-info h2 { margin-bottom: 10px; }
.download-info > p { font-size: 0.92rem; color: var(--ink-sub); max-width: 440px; margin-bottom: 24px; line-height: 1.7; }
.download-meta { display: grid; margin-bottom: 24px; border-radius: var(--r); border: 1px solid var(--glass-border); overflow: hidden; }
.meta-row { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 0.85rem; border-bottom: 1px solid var(--glass-border); }
.meta-row:last-child { border-bottom: none; }
.meta-label { color: var(--ink-dim); font-weight: 600; }
.meta-value { color: var(--ink); font-weight: 600; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* QR Card */
.download-qr { flex-shrink: 0; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--glass-border); min-width: 200px; }
.qr-app-icon { border-radius: 14px; border: 2px solid var(--glass-border-hover); }
.qr-figure { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-img { width: 140px; height: 140px; border-radius: 10px; background: #fff; padding: 6px; box-shadow: var(--shadow-sm); }
.qr-figure figcaption { font-size: 0.75rem; color: var(--ink-dim); font-weight: 500; text-align: center; max-width: 160px; }
.qr-status { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--ink-sub); }
.status-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 6px var(--warm); }
body[data-release-ready="true"] .status-indicator { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }

/* Install Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { display: flex; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--glass-border); transition: all 0.3s; }
.step-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.step-num { flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--emerald-glow), var(--teal-glow)); border: 1px solid rgba(75,226,119,0.15); border-radius: 10px; color: var(--emerald); font-weight: 800; font-size: 0.95rem; }
.step-body h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.65; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--r); border: 1px solid var(--glass-border); overflow: hidden; transition: border-color 0.3s; }
.faq-item[open] { border-color: var(--glass-border-hover); }
.faq-item summary { padding: 18px 20px; font-weight: 700; font-size: 0.95rem; cursor: pointer; background: var(--bg-card); transition: background 0.2s; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--emerald); font-weight: 300; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--bg-card-hover); }
.faq-item p { padding: 0 20px 18px; font-size: 0.9rem; color: var(--ink-sub); line-height: 1.7; }

/* Safety */
.safety-banner { display: flex; gap: 20px; padding: 28px; border-radius: var(--r-lg); background: rgba(75,226,119,0.03); border: 1px solid rgba(75,226,119,0.1); }
.safety-icon-box { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--emerald-glow); border-radius: var(--r); color: var(--emerald); }
.safety-content { flex: 1; }
.safety-content h2 { font-size: 1.2rem; margin-bottom: 14px; }
.safety-list { display: grid; gap: 8px; }
.safety-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.02); font-size: 0.88rem; color: var(--ink-sub); line-height: 1.6; }
.safety-list li svg { flex-shrink: 0; color: var(--emerald); margin-top: 3px; }
.safety-list li strong { color: var(--emerald); font-weight: 600; }

/* CTA Bottom */
.cta-card { text-align: center; padding: 56px 40px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(75,226,119,0.06), rgba(45,212,191,0.04)); border: 1px solid var(--glass-border-hover); }
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--ink-sub); margin-bottom: 24px; font-size: 0.95rem; }

/* Footer */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 36px; border-top: 1px solid var(--glass-border); font-size: 0.82rem; color: var(--ink-dim); }
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-icon { border-radius: 5px; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-sub); font-weight: 600; transition: color 0.2s; }
.footer-link:hover { color: var(--emerald); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 40px 0 60px; min-height: auto; }
  .hero-content { align-items: center; }
  .hero-badge { align-self: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; text-align: center; }
  .feature-text { align-items: center; }
  .feature-icon { align-self: center; }
  .feature-list { align-items: center; }
  .mini-features { grid-template-columns: 1fr 1fr; }
  .download-panel { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .download-info { align-items: center; }
  .download-info > p { margin-left: auto; margin-right: auto; }
  .download-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .page-wrapper { width: calc(100% - 28px); }
  .header-inner { flex-direction: column; align-items: stretch; }
  .nav-pills { justify-content: center; }
  .nav-pills a { flex: 1; text-align: center; padding: 7px 8px; font-size: 0.82rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .hero { padding: 32px 0 48px; gap: 32px; }
  .hero-desc { font-size: 0.9rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .hero-showcase-img { max-height: 300px; }
  .stats-bar { flex-wrap: wrap; padding: 20px; gap: 8px; }
  .stat-item { flex: 1 0 40%; }
  .stat-divider { display: none; }
  .stat-num { font-size: 1.4rem; }
  .feature-phone { max-height: 300px; }
  .mini-features { grid-template-columns: 1fr; }
  .how-steps { flex-direction: column; gap: 12px; }
  .how-arrow { transform: rotate(90deg); padding: 4px; }
  .steps { grid-template-columns: 1fr; }
  .download-panel { padding: 20px; gap: 24px; }
  .safety-banner { flex-direction: column; }
  .site-footer { flex-direction: column; text-align: center; }
  .section { padding: 48px 0; }
  .cta-card { padding: 40px 20px; }
}
