/* ===========================================================
   Driftwell — landing styles
   Palette: deep indigo night + warm sunrise amber
   =========================================================== */

:root {
  --bg:        #0b1020;
  --bg-2:      #0e1530;
  --surface:   #151d38;
  --surface-2: #1b2547;
  --border:    rgba(255,255,255,.09);
  --text:      #eaeefb;
  --muted:     #9aa6c9;
  --accent:    #ffb24d;
  --accent-2:  #ff8a5b;
  --teal:      #6fe0d2;
  --ring:      #ffd58a;
  --radius:    18px;
  --maxw:      1120px;
  --shadow:    0 20px 60px -25px rgba(0,0,0,.7);
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Sora', var(--font-body);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #1a1205; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1c1304; font-weight: 600; font-family: var(--font-head);
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px -8px rgba(255,160,77,.5);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255,160,77,.65); }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }
.btn--small { padding: 9px 18px; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11,16,32,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brand__mark { flex: none; }
.nav__menu { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav__menu a:not(.btn):hover { color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: 0;
  background:
    radial-gradient(600px 320px at 78% 8%, rgba(255,160,77,.18), transparent 60%),
    radial-gradient(700px 420px at 8% 18%, rgba(111,224,210,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 600; color: var(--accent);
  background: rgba(255,160,77,.1); border: 1px solid rgba(255,160,77,.25);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow--center { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.02em; }
.hero__title .accent { color: var(--accent); }
.hero__sub { margin-top: 22px; font-size: 1.18rem; color: var(--muted); max-width: 36ch; }
.hero__sub strong { color: var(--text); }
.hero__cta { margin-top: 34px; }
.hero__microcopy { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.hero__microcopy--center { text-align: center; }
.hero__trust { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero__trust li { font-size: .9rem; color: var(--muted); }
.hero__trust strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }

/* ---------- Phone mockup (hero image) ---------- */
.hero__visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; max-width: 80vw; aspect-ratio: 300/620;
  background: linear-gradient(160deg, #1d2750, #11183a);
  border-radius: 42px; padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.phone__notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 90px; height: 7px; background: rgba(0,0,0,.5); border-radius: 99px; z-index: 2; }
.phone__screen { height: 100%; border-radius: 30px; background: radial-gradient(120% 80% at 50% 0%, #16204a, #0c1228); overflow: hidden; }
.app { padding: 40px 20px 22px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.app__greeting { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.app__ring {
  width: 122px; height: 122px; border-radius: 50%; margin: 4px auto;
  display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--ring) 0 92%, rgba(255,255,255,.08) 92% 100%);
  position: relative;
}
.app__ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #0e1430; }
.app__ring-val { position: relative; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--ring); }
.app__ring-label { position: relative; font-size: .72rem; color: var(--muted); }
.app__card { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.app__card--accent { background: linear-gradient(135deg, rgba(255,160,77,.22), rgba(255,138,91,.1)); border-color: rgba(255,160,77,.4); }
.app__card-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.app__card-value { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.app__timeline { display: flex; flex-direction: column; gap: 11px; font-size: .82rem; color: var(--muted); }
.app__timeline li { display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); flex: none; }
.dot--now { background: var(--teal); box-shadow: 0 0 0 4px rgba(111,224,210,.18); }
.dot--amber { background: var(--accent); }

/* ---------- Sections shared ---------- */
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.015em; }
.section-title--center { text-align: center; max-width: 22ch; margin: 0 auto; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 18px; max-width: 60ch; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead strong { color: var(--text); }

.quickanswer { padding: 84px 0 40px; }
.checklist { margin-top: 26px; display: grid; gap: 12px; max-width: 620px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(111,224,210,.15); color: var(--teal); font-size: .8rem; font-weight: 700;
}

/* ---------- Problem ---------- */
.problem { padding: 70px 0 90px; }
.problem__turn { text-align: center; margin: 46px auto 0; max-width: 48ch; font-size: 1.25rem; color: var(--muted); }
.problem__turn strong { color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.card__title { font-size: 1.2rem; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--muted); }

/* ---------- How it works ---------- */
.how { padding: 90px 0; background: linear-gradient(180deg, var(--bg), #0a0f22); border-block: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; position: relative;
}
.step__num {
  display: grid; place-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1c1304;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 18px;
}
.step__title { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- Why ---------- */
.why { padding: 92px 0; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.compare { margin-top: 28px; display: grid; gap: 13px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.compare__check, .compare__x { font-weight: 700; flex: none; width: 22px; }
.compare__check { color: var(--teal); }
.compare__x { color: #ff7a7a; }
.quote-card {
  margin: 0; background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 34px;
  box-shadow: var(--shadow);
}
.quote-card blockquote { margin: 0; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.45; }
.quote-card figcaption { margin-top: 22px; color: var(--muted); }

/* ---------- Proof ---------- */
.proof { padding: 80px 0; background: #0a0f22; border-block: 1px solid var(--border); }
.testimonial { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.testimonial blockquote { margin: 0; font-size: 1.08rem; }
.testimonial figcaption { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.proof__feature { margin: 26px auto 0; max-width: 820px; text-align: center; }
.proof__feature blockquote { font-size: 1.4rem; }
.proof__feature em { color: var(--accent); font-style: italic; }

/* ---------- FAQ ---------- */
.faq { padding: 92px 0; }
.faq__item {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  margin-top: 14px; padding: 4px 22px; transition: border-color .2s;
}
.faq__item[open] { border-color: rgba(255,160,77,.4); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head);
  font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 20px; max-width: 64ch; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; background: radial-gradient(700px 360px at 50% 0%, rgba(255,160,77,.16), transparent 65%), #0a0f22; }
.cta__inner { text-align: center; }
.signup { display: flex; gap: 12px; margin: 34px auto 0; max-width: 520px; flex-wrap: wrap; justify-content: center; }
.signup__input {
  flex: 1 1 260px; min-width: 0; padding: 16px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text);
  font-size: 1rem; font-family: var(--font-body);
}
.signup__input::placeholder { color: var(--muted); }
.signup__input:focus-visible { border-color: var(--accent); }
.signup__input[aria-invalid="true"] { border-color: #ff7a7a; }
.signup__msg { flex-basis: 100%; margin-top: 6px; font-size: .95rem; min-height: 1.3em; }
.signup__msg.is-error { color: #ff9c9c; }
.signup__msg.is-success { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { padding: 54px 0 40px; border-top: 1px solid var(--border); background: var(--bg); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.site-footer__nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; color: var(--muted); }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__fine { color: var(--muted); font-size: .85rem; line-height: 1.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .hero__grid, .why__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { order: -1; }
  .cards, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,16,32,.98); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__menu.open { max-height: 360px; }
  .nav__menu li { padding: 6px 0; }
  .nav__menu .btn { margin-top: 8px; }
  .hero__trust { gap: 20px; }
}
