/* ============================================================
   Global tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Satoshi:wght@400;500;700&display=swap');

:root {
  --bg:        #0e0e0e;
  --bg-soft:   #141414;
  --bg-card:   #181818;
  --border:    rgba(255,255,255,0.07);
  --accent:    #f59e0b;          /* warm amber */
  --accent-lo: rgba(245,158,11,0.12);
  --text:      #e8e3da;
  --muted:     #7a7672;
  --radius:    4px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Satoshi', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ============================================================
   Nav
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: #0e0e0e;
  font-weight: bold;
  flex-shrink: 0;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(245,158,11,0.3);
  background: var(--accent-lo);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f5ede0;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* CTA form */
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.cta-form input[type="email"] {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: 'Satoshi', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input[type="email"]::placeholder { color: var(--muted); }
.cta-form input[type="email"]:focus { border-color: var(--accent); }

.btn-primary {
  background: var(--accent);
  color: #0e0e0e;
  border: none;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Satoshi', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.form-status {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

/* ============================================================
   How it works
   ============================================================ */
.how-it-works {
  border-top: 1px solid var(--border);
}

.hiw-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: #f5ede0;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hiw-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 64px;
  line-height: 1.7;
}

/* Grid: step | connector | step | connector | step */
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: start;
  gap: 0;
}

.hiw-step {
  padding: 0 8px 0 0;
}

/* Amber large italic number */
.hiw-num {
  font-family: 'Instrument Serif', serif;
  font-size: 3.2rem;
  color: var(--accent);
  font-style: italic;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.hiw-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hiw-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Connector — a dashed horizontal line centred vertically
   with the number baseline (~3.2rem * 1 ≈ 51px from top of step) */
.hiw-connector {
  align-self: start;
  margin-top: 26px; /* align with middle of the number row */
  height: 1px;
  border-top: 1px dashed rgba(245,158,11,0.35);
  position: relative;
}

/* Arrowhead at the right end of the connector */
.hiw-connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 4px solid transparent;
  border-left-color: rgba(245,158,11,0.45);
  border-right: none;
}

/* ============================================================
   Value props
   ============================================================ */
.values {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.value-card {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.value-card:last-child { border-right: none; }
.value-card:hover { background: var(--bg-card); }

.value-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   Social proof
   ============================================================ */
.proof {
  text-align: center;
}

.quote-wrap {
  display: inline-block;
  max-width: 640px;
  position: relative;
}

.quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 5rem;
  color: var(--accent);
  line-height: 0.6;
  margin-bottom: 16px;
  display: block;
  opacity: 0.6;
}

blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: #f0e8dc;
  line-height: 1.4;
  margin-bottom: 28px;
}

.quote-attr {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.quote-attr strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-contact {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero  { padding: 80px 0 64px; }

  .nav-links { display: none; }

  /* How it works — stack vertically on mobile */
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hiw-connector {
    width: 1px;
    height: 36px;
    border-top: none;
    border-left: 1px dashed rgba(245,158,11,0.35);
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 0;
    align-self: auto;
  }

  .hiw-connector::after {
    right: auto;
    top: auto;
    left: -4px;
    bottom: -1px;
    border: 4px solid transparent;
    border-top-color: rgba(245,158,11,0.45);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .hiw-sub {
    margin-bottom: 40px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .value-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  .cta-form input[type="email"],
  .btn-primary {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
