/* GhostCode — dark + gold design. Page-specific; only linked from /apps/ghostcode/index.html. */

:root {
  --bg: #080808;
  --bg-card: #13110f;
  --bg-card-hover: #1c1916;
  --gold: #c9943e;
  --gold-dim: #7a5f2d;
  --gold-glow: rgba(201,148,62,0.08);
  --text: #ede6db;
  --text-dim: #b0a89e;
  --cream: #f0e8d8;
  --green: #5cb85c;
  --red: #d9534f;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --max-w: 1120px;
  --section-py: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: background 0.3s, box-shadow 0.3s, padding 0.3s; }
.nav.scrolled { background: rgba(8,8,8,0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(201,148,62,0.1); padding: 10px 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--text-dim); font-weight: 400; text-transform: uppercase; }
.nav-logo span { color: var(--gold); }
.nav-links { display: none; gap: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-cta { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 18px; border: 1px solid var(--gold-dim); color: var(--gold); border-radius: 4px; transition: all 0.25s; cursor: pointer; background: transparent; white-space: nowrap; }
.nav-cta:hover { background: var(--gold); color: var(--bg); opacity: 1; }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ── HERO ── */
.hero { padding: calc(100px + 24px) 0 var(--section-py); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-family: var(--mono); font-size: clamp(40px, 8vw, 72px); font-weight: 600; letter-spacing: clamp(4px, 1vw, 12px); line-height: 1.2; text-transform: uppercase; margin-bottom: 8px; }
.hero-tagline { font-family: var(--mono); font-size: clamp(14px, 2.5vw, 18px); color: var(--text-dim); letter-spacing: 2px; font-weight: 300; margin-bottom: 24px; }
.hero-desc { font-size: clamp(16px, 2vw, 19px); color: var(--text); max-width: 480px; line-height: 1.65; margin-bottom: 32px; font-weight: 400; }
.hero-phone { display: flex; justify-content: center; }
.hero-signup { max-width: 480px; margin-top: 8px; scroll-margin-top: 88px; }
.hero-signup .section-label { margin-bottom: 12px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn-store { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--cream); color: #1a1510; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.btn-store:hover { background: #fff; transform: translateY(-1px); opacity: 1; }
.signup-note { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-top: 12px; letter-spacing: 0.5px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 768px) {
  .hero { padding-top: 140px !important; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr auto; gap: 64px; }
  .hero-phone { justify-content: flex-end; }
}

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--cream); color: #1a1510; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); opacity: 1; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: transparent; color: var(--gold); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid var(--gold-dim); border-radius: 4px; cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.btn-secondary:hover { background: var(--gold); color: var(--bg); opacity: 1; }

/* ── PHONE FRAME ── */
.phone { border-radius: 28px; overflow: hidden; border: 2px solid #2a2520; box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 80px rgba(201,148,62,0.04); width: 260px; flex-shrink: 0; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.phone:hover { transform: translateY(-4px); }
.phone img { width: 100%; height: auto; display: block; }

/* ── VIDEO ── */
.video-section { padding: var(--section-py) 0; }
.video-section .section-label { text-align: center; }
.video-section h2 { text-align: center; }
.video-container { margin: 40px auto 0; border-radius: 28px; overflow: hidden; border: 2px solid #2a2520; box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 80px rgba(201,148,62,0.04); background: #0d0b09; position: relative; max-width: 320px; aspect-ratio: 1206 / 2622; }
.video-container video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--bg-card); transition: opacity 0.3s; }
.video-fallback .play-icon { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; transition: all 0.3s; cursor: pointer; }
.video-fallback .play-icon:hover { background: var(--gold); border-color: var(--gold); }
.video-fallback .play-icon svg { fill: var(--gold); width: 20px; margin-left: 3px; transition: fill 0.3s; }
.video-fallback .play-icon:hover svg { fill: var(--bg); }
.video-fallback span { font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.video-container video.playing ~ .video-fallback { opacity: 0; pointer-events: none; }

/* ── SHARED ── */
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
h2 { font-family: var(--sans); font-size: clamp(28px, 5vw, 44px); font-weight: 600; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-desc { font-size: 16px; color: var(--text-dim); max-width: 520px; line-height: 1.65; }

/* ── HOW IT WORKS ── */
.how-section { padding: var(--section-py) 0; position: relative; }
.how-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.how-header { text-align: center; margin-bottom: 56px; }
.how-header .section-desc { margin: 0 auto; }
.how-steps { display: grid; gap: 48px; }
.step { display: grid; gap: 32px; align-items: center; text-align: center; }
.step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.step h3 { font-family: var(--mono); font-size: clamp(18px, 3vw, 24px); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-dim); line-height: 1.65; max-width: 340px; margin: 0 auto; }
.step .phone { margin: 0 auto; width: 220px; }
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.trust-note { margin: 56px auto 0; max-width: 660px; text-align: center; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--text-dim); letter-spacing: 0.3px; padding: 20px 28px; border: 1px solid rgba(201,148,62,0.15); border-radius: 8px; background: var(--gold-glow); }
.trust-note strong { color: var(--gold); font-weight: 600; }

/* ── FEATURES ── */
.features-section { padding: var(--section-py) 0; position: relative; }
.features-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.feature-hero { display: grid; gap: 40px; align-items: center; margin-bottom: 64px; }
.feature-hero-visual { border-radius: 16px; overflow: hidden; border: 1px solid rgba(201,148,62,0.1); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.feature-hero-visual img { width: 100%; height: auto; }
.feature-hero-meta { font-family: var(--mono); font-size: 12px; color: var(--gold-dim); letter-spacing: 1px; }
@media (min-width: 900px) {
  .feature-hero { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.feature-grid { display: grid; gap: 16px; }
.feature-card { padding: 28px; background: var(--bg-card); border: 1px solid rgba(201,148,62,0.08); border-radius: 8px; transition: all 0.3s; }
.feature-card:hover { border-color: rgba(201,148,62,0.2); background: var(--bg-card-hover); transform: translateY(-2px); }
.feature-card .card-icon { font-size: 20px; margin-bottom: 12px; }
.feature-card h4 { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── USE CASES ── */
.usecases-section { padding: var(--section-py) 0; position: relative; }
.usecases-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.usecases-header { text-align: center; margin-bottom: 48px; }
.usecases-header .section-desc { margin: 0 auto; }
.usecase-grid { display: grid; gap: 16px; }
.usecase-card { padding: 28px 24px; background: var(--bg-card); border: 1px solid rgba(201,148,62,0.08); border-radius: 8px; transition: all 0.3s; }
.usecase-card:hover { border-color: rgba(201,148,62,0.15); }
.usecase-card .uc-label { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.usecase-card h4 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.usecase-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
@media (min-width: 640px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── QR (SECONDARY MODE) ── */
.qr-section { padding: var(--section-py) 0; position: relative; }
.qr-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.qr-visual { display: flex; justify-content: center; }

/* ── WAITLIST / FINAL CTA ── */
.cta-section { padding: var(--section-py) 0; text-align: center; position: relative; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.cta-section .section-desc { margin: 0 auto 32px; }
.cta-section .brevo-slot { max-width: 480px; margin: 0 auto; }
.spam-note { font-family: var(--mono); font-size: 11px; color: var(--gold-dim); margin-top: 16px; letter-spacing: 0.5px; text-align: center; }
.spam-note::before { content: '⚠ '; }
.platform-note { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 40px; letter-spacing: 1px; }
.platform-note span, .platform-note a { color: var(--text); }
.platform-note a:hover { color: var(--gold); opacity: 1; }

/* ── BREVO FORM (override library styles) ── */
.brevo-slot .sib-form { padding: 0; background: transparent; }
.brevo-slot .sib-form-container { max-width: none; }
.brevo-slot #sib-container { background: transparent; border: none; padding: 0; max-width: none; }
.brevo-slot .sib-form-block { padding: 0; }
.brevo-slot .form__entry { margin: 0; }
.brevo-slot .form__label-row { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; align-items: stretch; width: 100%; }
.brevo-slot .entry__label { display: none; }
.brevo-slot .entry__field { flex: 1 1 200px; min-width: 0; max-width: 100%; border: none; background: transparent; padding: 0; }
.brevo-slot .entry__field .input { min-width: 0; }
.brevo-slot .form__label-row .sib-form-block { flex: 0 0 auto; width: max-content; max-width: 50%; padding: 0; margin: 0; display: inline-flex; }
.brevo-slot .input { width: 100%; padding: 12px 16px; background: var(--bg-card); border: 1px solid rgba(201,148,62,0.2); border-radius: 4px; color: var(--text); font-family: var(--mono); font-size: 13px; line-height: 1.4; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.brevo-slot .input::placeholder { color: var(--text-dim); }
.brevo-slot .input:focus { border-color: var(--gold); }
.brevo-slot .sib-form-block__button { display: inline-block; height: 100%; padding: 12px 24px; background: var(--cream); color: #1a1510; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; transition: all 0.25s; white-space: nowrap; box-shadow: none; width: auto; }
.brevo-slot .sib-form-block__button:hover { background: #fff; transform: translateY(-1px); }
.brevo-slot .sib-form-message-panel { margin: 16px auto 0; padding: 16px 20px; border-radius: 6px; max-width: 480px; font-family: var(--mono); font-size: 13px; line-height: 1.6; text-align: left; }
.brevo-slot .gc-msg-success { background: rgba(201,148,62,0.08); border: 1px solid rgba(201,148,62,0.25); color: var(--text); }
.brevo-slot .gc-msg-success .sib-form-message-panel__inner-text { color: var(--text); }
.brevo-slot .gc-msg-error { background: rgba(217,83,79,0.08); border: 1px solid rgba(217,83,79,0.3); color: var(--red); }
.brevo-slot .entry__error { color: var(--red); font-family: var(--mono); font-size: 12px; margin-top: 8px; display: block; }
.brevo-slot .sib-hide-loader-icon { display: none; }
.brevo-slot .sib-container--vertical { height: auto !important; min-height: 0 !important; }
@media (max-width: 520px) {
  .brevo-slot .form__label-row { flex-direction: column; gap: 12px; }
  .brevo-slot .form__label-row .sib-form-block { width: 100%; max-width: none; }
  .brevo-slot .sib-form-block__button { width: 100%; height: 48px; }
  .brevo-slot .entry__field { flex: none; width: 100%; }
}

/* ── FOOTER ── */
footer { padding: 40px 0; border-top: 1px solid rgba(201,148,62,0.08); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.footer-links { display: flex; gap: 20px; font-family: var(--mono); font-size: 11px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--gold); }

/* ── INLINE CTA BANNER ── */
.inline-cta { padding: 48px 0; text-align: center; }
.inline-cta a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 14px 32px; border: 1px solid var(--gold-dim); border-radius: 4px; color: var(--gold); transition: all 0.25s; }
.inline-cta a:hover { background: var(--gold); color: var(--bg); opacity: 1; }
.inline-cta a svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── ANIMATIONS ── */
.anim { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.anim.vis { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
