/* ============================================================
   SiegeTime landing page — styles.css
   Palette + type per Context/brand/design-system/tokens.json
   Primary (cool) palette carries identity. Gold reserved, never decorative.
   ============================================================ */

:root {
  --navy:        #0D1B2A;
  --midnight:    #1A3A5C;
  --sky:         #4A90D9;
  --teal:        #2EC4B6;
  --teal-light:  #7FDBD4;
  --ice:         #B8D4E8;
  --gold:        #F5A623; /* reward-reserved — never apply decoratively */
  --bg:          #F7FAFC;
  --surface:     #FFFFFF;
  --border:      #E1EAF2;
  --text:        #0D1B2A;
  --text-muted:  #5A6B7C;

  --font: "Poppins", "Nunito", -apple-system, "Segoe UI", system-ui, sans-serif;

  --maxw: 1120px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(13,27,42,0.04), 0 2px 4px rgba(13,27,42,0.04);
  --shadow-2: 0 1px 2px rgba(13,27,42,0.04), 0 8px 24px rgba(13,27,42,0.06);
  --shadow-3: 0 4px 12px rgba(13,27,42,0.08), 0 16px 48px rgba(13,27,42,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: none;
  border-radius: var(--radius-md); padding: 14px 26px;
  transition: transform 160ms cubic-bezier(0.2,0,0,1), box-shadow 160ms, background 160ms;
}
.btn-primary {
  background: var(--teal); color: #fff; box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: #29b3a6; transform: translateY(-1px); box-shadow: var(--shadow-3); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--navy); font-weight: 600; font-size: 15px;
  padding: 9px 16px; border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,250,252,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 70% -10%, rgba(184,212,232,0.55), transparent 60%),
    linear-gradient(180deg, #EEF5FB 0%, var(--bg) 70%);
  padding: 96px 0 104px;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  color: var(--sky); font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-headline {
  font-weight: 700; font-size: clamp(34px, 6vw, 60px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--navy); margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--midnight);
  max-width: 620px; margin-bottom: 22px;
}
.tagline {
  font-weight: 600; font-size: clamp(18px, 2.4vw, 22px);
  color: var(--teal); margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-glow {
  position: absolute; right: -120px; top: 40px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(74,144,217,0.16), transparent 70%);
  filter: blur(10px); z-index: 1; pointer-events: none;
}

/* ---------- Generic section ---------- */
.section { padding: 88px 0; }
.section-title {
  font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--navy); margin-bottom: 36px;
}

/* ---------- Problem ---------- */
.problem { padding-top: 96px; padding-bottom: 96px; }
.lead {
  font-size: clamp(19px, 2.6vw, 24px); line-height: 1.5; color: var(--navy);
  margin-bottom: 28px;
}
.lead:last-child { margin-bottom: 0; }

/* ---------- What SiegeTime is ---------- */
.what { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.what-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.what-col p { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.what-col .thesis { font-weight: 600; color: var(--navy); font-size: 18px; }
.domains {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  background: linear-gradient(180deg, #F2F8FD, #EAF3FA);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-1);
}
.domain {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 10px; font-weight: 600; font-size: 15px; color: var(--midnight);
  box-shadow: var(--shadow-1);
}

/* ---------- Founder Invitation ---------- */
.founder-intro { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.founder-intro.muted { font-weight: 400; font-size: 17px; color: var(--text-muted); margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-1);
  transition: transform 240ms cubic-bezier(0.2,0,0,1), box-shadow 240ms;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.founder-close {
  font-size: 17px; line-height: 1.7; color: var(--text);
  max-width: 760px; padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ---------- Launch anchor ---------- */
.anchor {
  background: linear-gradient(135deg, var(--navy), var(--midnight));
  text-align: center; padding: 84px 0;
}
.anchor-date { color: #fff; font-weight: 700; font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -0.02em; margin-bottom: 10px; }
.anchor-line { color: var(--teal-light); font-weight: 600; font-size: clamp(18px, 2.6vw, 24px); }

/* ---------- Join / form ---------- */
.join { text-align: center; padding-bottom: 104px; }
.join .section-title { margin-bottom: 14px; }
.join-sub { font-size: 17px; color: var(--text-muted); margin: 0 auto 32px; max-width: 540px; }
.waitlist { max-width: 560px; margin: 0 auto; }
.field-row { display: flex; gap: 12px; }
.waitlist input[type="email"] {
  flex: 1; height: 52px; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 18px; font-family: var(--font); font-size: 16px; color: var(--text);
  background: var(--surface); transition: border-color 160ms, box-shadow 160ms;
}
.waitlist input[type="email"]::placeholder { color: #9AAAB8; }
.waitlist input[type="email"]:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(74,144,217,0.18);
}
.waitlist .btn-primary { height: 52px; white-space: nowrap; }
.form-msg { min-height: 22px; margin-top: 16px; font-size: 15px; font-weight: 500; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 56px 0; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-tag { color: var(--ice); font-size: 15px; }
.footer-links { font-size: 15px; }
.footer-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; }
.footer-links a:hover { border-color: var(--teal-light); color: var(--teal-light); }
.footer-links .dot { margin: 0 12px; color: rgba(255,255,255,0.4); }
.footer-legal { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .what-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr 1fr; max-width: 420px; }
}
@media (max-width: 600px) {
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .header-cta { display: none; }
  .field-row { flex-direction: column; }
  .waitlist .btn-primary { width: 100%; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
