/* Deep Resort — night palette, mirrors lib/app/theme_tokens.dart */
:root {
  --bg: #0a0c11;
  --bg-deep: #05060a;
  --surface: #11141b;
  --surface-high: #181c25;
  --outline: #262b36;
  --text: #bfc2cc;
  --text-strong: #e3e5ec;
  --muted: #767b88;
  --primary: #7f86c4;
  --primary-soft: rgba(127, 134, 196, 0.14);
  --teal: #5e8f8c;
  --teal-soft: rgba(94, 143, 140, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1080px;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-high); padding: 8px 12px; z-index: 10; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 43, 54, 0.6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 26px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text-strong); text-decoration: none; }
@media (max-width: 720px) { .site-nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 14vw, 150px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(127, 134, 196, 0.18), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(94, 143, 140, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow: hidden;
  border-top: 0;
}
.stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.55; }
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-block; margin: 0 0 22px;
  color: var(--teal); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
h1, h2, h3 { color: var(--text-strong); font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 84px); letter-spacing: -0.01em; max-width: 13ch; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text); max-width: 34em; margin: 26px 0 38px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface-high); border: 1px solid var(--outline);
  color: var(--text-strong); font-size: 15px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.cta-row .link { color: var(--muted); font-size: 15px; }
.cta-row .link:hover { color: var(--text-strong); }

/* ---------- sections ---------- */
section { padding: clamp(64px, 10vw, 112px) 0; border-top: 1px solid rgba(38, 43, 54, 0.55); }
.section-head { max-width: 40em; margin-bottom: 48px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 18px; }
.section-head.flush { margin-bottom: 0; }

/* night timeline */
.night { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.night li {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 0 0 34px; position: relative;
}
.night li::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  font-family: var(--serif); font-size: 18px;
  border: 1px solid rgba(127, 134, 196, 0.35);
  position: relative; z-index: 1;
}
.night li:not(:last-child)::after {
  content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px;
  background: linear-gradient(var(--outline), transparent);
}
.night h3 { font-size: 23px; margin: 6px 0 6px; }
.night p { margin: 0; color: var(--text); max-width: 36em; }

/* category cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 20, 27, 0.6) 100%);
  border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 28px 26px 30px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
}
.card.teal .icon { background: var(--teal-soft); color: var(--teal); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ex { margin-top: 14px; font-size: 14px; color: var(--text); }

/* two-column feature rows */
.split { display: grid; gap: clamp(28px, 6vw, 72px); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.points svg { width: 22px; height: 22px; color: var(--teal); margin-top: 3px; }
.points strong { color: var(--text-strong); font-weight: 600; display: block; margin-bottom: 2px; }
.points span { color: var(--muted); font-size: 16px; }

.panel {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.panel h3 { font-size: 26px; margin-bottom: 12px; }
.panel p { margin: 0 0 14px; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.panel code {
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text); background: var(--surface-high); padding: 2px 6px; border-radius: 6px;
}
.files { margin: 18px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--outline);
  font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); overflow-x: auto; white-space: pre; }
.files .c { color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; max-width: 46em; }
.faq details { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; color: var(--text-strong); font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--outline); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; }
.site-footer p { margin: 0; max-width: 46em; }
.fine { margin-top: 10px !important; font-size: 13px; color: #5d6170; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
.lost h1 { margin: 0 auto; }
.lost p { color: var(--muted); }
