/* ============================================================
   [ProductName] — Landing Page Waitlist
   Aesthetic: Luxury Editorial (Midnight + Gold + Serif)
   DFII Score: 13/15
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&display=swap');

/* --- Font: Satoshi (self-hosted via Fontshare CDN) --- */
@font-face {
  font-family: 'Satoshi';
  src: url('https://cdn.fontshare.com/wf/ZXKYPZSMFT4GPEQLPOWM3TKDLTYFBEHFOVHSRLLA4BXHWG7DQBAQ/CMRGE3TGJUYE6RLWPEDNCN3HKQKW337KPXQYAMGHGFKUZCYRCZ3Q/SATOSHI-VARIABLE.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Colors: Dominant Midnight --- */
  --color-bg-primary: #0A1628;
  --color-bg-secondary: #111D33;
  --color-bg-card: #162240;
  --color-bg-input: #1A2744;

  /* --- Colors: Accent Gold --- */
  --color-accent: #D4A853;
  --color-accent-hover: #E8C06A;
  --color-accent-muted: rgba(212, 168, 83, 0.15);
  --color-accent-glow: rgba(212, 168, 83, 0.35);

  /* --- Colors: Success Emerald --- */
  --color-success: #34D399;
  --color-success-muted: rgba(52, 211, 153, 0.12);

  /* --- Colors: Text --- */
  --color-text-primary: #F0EDE6;
  --color-text-secondary: #8A94A6;
  --color-text-accent: var(--color-accent);

  /* --- Colors: Borders --- */
  --color-border: rgba(240, 237, 230, 0.08);
  --color-border-accent: rgba(212, 168, 83, 0.3);

  /* --- Gradients --- */
  --gradient-hero: linear-gradient(160deg, #0A1628 0%, #1A2744 50%, #0F1B2D 100%);
  --gradient-gold: linear-gradient(135deg, #D4A853 0%, #B8923F 100%);
  --gradient-section: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);

  /* --- Spacing (8px base) --- */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* --- Typography --- */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Border Radius --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* --- Transitions --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

p {
  color: var(--color-text-secondary);
  max-width: 640px;
}

.text-accent {
  color: var(--color-accent);
}

.text-success {
  color: var(--color-success);
}

.text-center {
  text-align: center;
}

/* ============================================================
   5. NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: background var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-primary);
  cursor: default;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.lang-toggle button.active {
  background: var(--color-accent-muted);
  color: var(--color-accent);
}

.lang-toggle button:hover:not(.active) {
  color: var(--color-text-primary);
}

.btn-nav {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-nav:hover {
  background: var(--color-accent-muted);
  border-color: var(--color-accent);
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 80px;
}

/* Grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
}

/* Subtle radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin: 0 auto var(--space-lg);
  max-width: 560px;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s var(--ease-out) infinite;
  color: var(--color-text-secondary);
  opacity: 0.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   7. EMAIL FORM (Waitlist)
   ============================================================ */
.waitlist-form {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
  margin: 0 auto var(--space-sm);
}

.waitlist-form input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-primary);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.waitlist-form input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.waitlist-form input:focus {
  border-color: var(--color-accent);
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  background: var(--gradient-gold);
  color: var(--color-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-micro {
  font-size: 13px;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* Success state */
.waitlist-form.submitted {
  flex-direction: column;
  align-items: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-md);
  background: var(--color-success-muted);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-weight: 500;
}

.form-success.visible {
  display: block;
  animation: fadeUp 0.5s var(--ease-out) forwards;
}

/* ============================================================
   8. PAIN SECTION
   ============================================================ */
.pain {
  background: var(--color-bg-secondary);
}

.pain h2 {
  text-align: center;
}

.pain-list {
  list-style: none;
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-card);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 1.5;
}

.pain-item .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-text-secondary);
  border-radius: 4px;
  margin-top: 2px;
  opacity: 0.5;
}

.pain-closing {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.pain-closing strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================================
   9. SOLUTION SECTION
   ============================================================ */
.solution h2 {
  text-align: center;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.solution-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 760px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.feature-card h3 {
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.feature-outcome {
  font-style: italic;
  color: var(--color-success);
  font-size: 14px;
}

/* ============================================================
   10. TRUST SECTION
   ============================================================ */
.trust {
  background: var(--color-bg-secondary);
}

.trust h2 {
  text-align: center;
}

.trust-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.badge span:first-child {
  font-size: 1.1rem;
}

.testimonial-card {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-accent-muted);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

.testimonial-card cite {
  font-style: normal;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ============================================================
   11. FINAL CTA
   ============================================================ */
.final-cta {
  border-top: 1px solid var(--color-border-accent);
  background: var(--gradient-section);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: var(--space-sm);
}

.final-cta-sub {
  margin: 0 auto var(--space-lg);
  text-align: center;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copy {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ============================================================
   13. SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }

/* Hero entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }

/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .section {
    padding: var(--space-2xl) 0;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .solution-grid,
  .solution-grid-2 {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .btn-nav {
    display: none;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
