/* ============================================================
   Welcome page - the team's front door at "/" for anyone not
   signed in. Brand navy is the logo's own colour (#003054), with
   a warm gold accent and a warm paper background.
   ============================================================ */
:root {
  --navy: #003054; --navy-deep: #001d33; --navy-mid: #0b4574; --navy-soft: #e6eef5;
  --gold: #c8922e; --gold-bright: #e0ad4f; --gold-soft: #f7ecd6;
  --paper: #f7f5f0; --surface: #ffffff; --line: #e6e1d6; --line-soft: #efebe3;
  --ink: #0f1c2b; --muted: #55657a; --faint: #8795a6;
  --ok: #1e8e3e; --ok-soft: #e3f3e8;
  --shadow-sm: 0 1px 2px rgba(0, 29, 51, .06);
  --shadow-md: 0 10px 30px -12px rgba(0, 29, 51, .25);
  --shadow-lg: 0 30px 60px -25px rgba(0, 29, 51, .45);
  --r: 16px; --r-lg: 24px; --r-full: 999px;
  --ff: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-soft: #10263b;
    --gold: #e0ad4f; --gold-bright: #f0c46e; --gold-soft: #33280f;
    --paper: #07131f; --surface: #0d1e30; --line: #1c3149; --line-soft: #142739;
    --ink: #e9eef4; --muted: #9fb0c3; --faint: #6f8298;
    --ok: #57c77a; --ok-soft: #12301f;
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy-soft: #10263b;
  --gold: #e0ad4f; --gold-bright: #f0c46e; --gold-soft: #33280f;
  --paper: #07131f; --surface: #0d1e30; --line: #1c3149; --line-soft: #142739;
  --ink: #e9eef4; --muted: #9fb0c3; --faint: #6f8298;
  --ok: #57c77a; --ok-soft: #12301f;
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ff); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 700 15px/1 var(--ff); text-decoration: none; border-radius: var(--r-full);
  border: 1.5px solid transparent; padding: 0 20px; min-height: 44px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 48, 84, .7); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn-gold { background: var(--gold-bright); color: var(--navy-deep); box-shadow: 0 10px 24px -10px rgba(224, 173, 79, .8); }
.btn-gold:hover { background: #ecbd62; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-navy { background: var(--gold-bright); color: var(--navy-deep); box-shadow: none; }
  :root:not([data-theme="light"]) .btn-navy:hover { background: #ecbd62; }
  :root:not([data-theme="light"]) .btn-ghost:hover { border-color: var(--gold-bright); }
}
:root[data-theme="dark"] .btn-navy { background: var(--gold-bright); color: var(--navy-deep); box-shadow: none; }
:root[data-theme="dark"] .btn-navy:hover { background: #ecbd62; }
:root[data-theme="dark"] .btn-ghost:hover { border-color: var(--gold-bright); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
/* The logo sits straight on the page (its background is transparent);
   dark mode - the phone's or picked by hand - shows logo-dark.png */
.brand-mark { flex: none; display: block; width: 60px; }
.brand-mark img { width: 100%; height: auto; }
.brand-mark .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-mark .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand-mark .logo-light { display: none; }
:root[data-theme="dark"] .brand-mark .logo-dark { display: block; }
.brand-mark-lg { width: 96px; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand-name span { font-weight: 600; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.beta {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #9a5b00; background: #fdf1d8; padding: 4px 10px; border-radius: var(--r-full);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .beta { color: var(--gold-bright); background: var(--gold-soft); } }
:root[data-theme="dark"] .beta { color: var(--gold-bright); background: var(--gold-soft); }
@media (max-width: 420px) { .brand-name span { display: none; } .beta { display: none; } }

/* Light / dark switch (theme.js): a moon while light, a sun while dark */
.theme-btn {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: var(--r-full); cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.theme-btn:hover { color: var(--ink); border-color: var(--gold); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 12% 20%, color-mix(in srgb, var(--gold-bright) 16%, transparent), transparent 70%),
    radial-gradient(700px 380px at 90% 10%, color-mix(in srgb, var(--navy-mid) 14%, transparent), transparent 70%);
}
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) {
  .hero { padding: 72px 0 88px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 14px 6px 12px; border-radius: var(--r-full);
}
.eyebrow-center { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-bright) 25%, transparent); }

h1 {
  margin: 0 0 18px; font-weight: 800; letter-spacing: -.028em; line-height: 1.08;
  font-size: clamp(36px, 7.4vw, 62px); text-wrap: balance;
}
h1 em {
  font-style: normal; color: var(--navy);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--gold-bright) 45%, transparent) 68%, color-mix(in srgb, var(--gold-bright) 45%, transparent) 92%, transparent 92%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 em { color: var(--gold-bright); background: none; } }
:root[data-theme="dark"] h1 em { color: var(--gold-bright); background: none; }

.lede { margin: 0 0 28px; font-size: clamp(16.5px, 2.2vw, 19px); color: var(--muted); max-width: 34em; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
@media (max-width: 420px) { .cta .btn { flex: 1 1 100%; } }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--faint); max-width: 32em; }
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero art ---------- */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); padding: 28px 22px 150px;
  background:
    radial-gradient(420px 260px at 85% 0%, rgba(224, 173, 79, .22), transparent 70%),
    linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.panel::after { /* a faint grid, like a site plan */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
@media (min-width: 640px) { .panel { padding: 36px 36px 170px; } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; z-index: -1; }
.skyline .far { fill: rgba(255, 255, 255, .06); }
.skyline .near { fill: rgba(255, 255, 255, .13); }
.skyline .win { fill: rgba(240, 196, 110, .75); }
.skyline .ground { fill: rgba(224, 173, 79, .35); }

.stack { display: flex; flex-direction: column; gap: 14px; }
.chip-card {
  background: rgba(255, 255, 255, .96); color: #0f1c2b; border-radius: var(--r);
  padding: 14px 16px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .6);
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both, bob 7s ease-in-out infinite;
}
.c1 { margin-right: 14%; animation-delay: .15s, 1s; }
.c2 { margin-left: 16%; animation-delay: .3s, 2.2s; }
.c3 { margin-right: 6%; margin-left: 4%; animation-delay: .45s, 3.4s; }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cc-title { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.cc-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #5d6b7c; margin-top: 2px; }
.cc-row { display: flex; align-items: center; gap: 12px; }
.src { font-size: 12px; font-weight: 700; color: #7a8797; }
.pill { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 3px 10px; border-radius: var(--r-full); }
.pill-new { background: #e6eef5; color: #003054; }
.pill-ok { background: #e3f3e8; color: #1e7a37; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 0 rgba(34, 163, 90, .5); animation: ping 2s ease-out infinite; }
.split { display: flex; gap: 4px; height: 9px; margin: 4px 0 8px; }
.split span { border-radius: 4px; background: #003054; }
.split span:nth-child(2) { background: #c8922e; }
.split span:nth-child(3) { background: #9fb5c9; }

/* ---------- icons ---------- */
.ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-gold { background: #f7ecd6; color: #9a5b00; }
.ic-navy { background: var(--navy-soft); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-navy { color: var(--gold-bright); } }
:root[data-theme="dark"] .ic-navy { color: var(--gold-bright); }

/* ---------- where ---------- */
.where { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.where-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 22px; padding-bottom: 22px; }
.where h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.places li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink);
  padding: 7px 14px; border-radius: var(--r-full); background: var(--paper); border: 1px solid var(--line);
}
.places li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* ---------- features ---------- */
.features { padding: 72px 0; }
@media (min-width: 940px) { .features { padding: 104px 0; } }
.section-h { text-align: center; margin: 0 auto 44px; font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; letter-spacing: -.024em; line-height: 1.14; max-width: 16em; text-wrap: balance; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.feat h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.feat p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- closing band ---------- */
.closing { padding: 0 0 72px; }
.band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding: 36px 28px; border-radius: var(--r-lg); color: #fff;
  background:
    radial-gradient(360px 200px at 100% 100%, rgba(224, 173, 79, .28), transparent 70%),
    linear-gradient(135deg, var(--navy-mid), var(--navy) 55%, var(--navy-deep));
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .band { padding: 44px 48px; } }
.band h2 { margin: 0 0 6px; font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.band p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 16px; }
@media (max-width: 480px) { .band .btn { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-name { font-weight: 800; font-size: 16px; }
.foot-tag { font-size: 14px; color: var(--gold); font-weight: 600; }
.foot-meta { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.foot-meta > div:first-child { display: flex; align-items: center; gap: 8px; }
.foot-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--faint); }
@media (min-width: 720px) { .foot-meta { text-align: right; justify-items: end; } }

/* ---------- motion ---------- */
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, .5); } 100% { box-shadow: 0 0 0 9px rgba(34, 163, 90, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
