/* Coach Dex landing: royal blue on midnight, orange only as the 3px rail and the end of one gradient.
   Tokens follow Build/frontend/tailwind.config.js and src/styles/globals.css (read them before changing a colour). */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/site/fonts/Inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/site/fonts/Inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url(/site/fonts/JetBrainsMono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url(/site/fonts/JetBrainsMono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  color-scheme: dark;
  --ink: #eef1fb;
  --mute: #a6b3d3;
  --faint: #7b88ab;
  --royal: #4169e1;
  --royal-dark: #3457cd;
  --royal-hi: #6b8df0;
  --sky: #93b5f5;
  --ember: #ff4500;
  --line: rgba(255, 255, 255, 0.1);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0f1528; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(65, 105, 225, 0.3), transparent 62%),
    radial-gradient(700px 480px at -8% 108%, rgba(255, 69, 0, 0.1), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #12182b 52%, #0f1528 100%);
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--royal); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { left: 12px; }

/* ---------- backdrop: speed lines and three light streaks (CSS only) ---------- */
.stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lanes {
  position: absolute;
  inset: -20% -10%;
  background: repeating-linear-gradient(168deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 84px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 72% 28%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 70% at 72% 28%, #000 18%, transparent 74%);
}
.streak {
  position: absolute;
  left: 0;
  height: 2px;
  width: 34vw;
  min-width: 240px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--royal-hi) 70%, #fff);
  opacity: 0;
  transform-origin: left center;
  animation: run 7.5s var(--ease) infinite;
}
.s1 { top: 26%; animation-delay: 0.8s; }
.s2 { top: 48%; width: 24vw; animation-delay: 3.4s; }
.s3 { top: 72%; width: 18vw; animation-delay: 5.4s; background: linear-gradient(90deg, transparent, var(--ember)); }
@keyframes run {
  0% { opacity: 0; transform: rotate(-12deg) translateX(-60vw); }
  8% { opacity: 0.9; }
  55% { opacity: 0; transform: rotate(-12deg) translateX(150vw); }
  100% { opacity: 0; transform: rotate(-12deg) translateX(150vw); }
}

/* ---------- header ---------- */
.bar { width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.support { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.support:hover, .support:focus-visible { border-color: rgba(65, 105, 225, 0.7); background: rgba(65, 105, 225, 0.16); }
.foot a { color: var(--mute); }
.mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.bolt {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, #4169e1 0%, #1a2e5a 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 6px 22px rgba(65, 105, 225, 0.35);
}
.bolt svg { width: 28px; height: 28px; }
.word { font-weight: 800; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.word b { color: var(--sky); font-weight: 800; }

/* ---------- hero ---------- */
main { width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(32px, 8vh, 84px) var(--gutter) 8px; flex: 1; }
.hero { max-width: 1040px; }
.eyebrow { margin: 0 0 22px; font: 600 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--royal-hi); }
h1 { margin: 0; font-weight: 900; font-size: clamp(3rem, 10.5vw, 6.9rem); line-height: 0.94; letter-spacing: -0.045em; text-wrap: balance; }
.grad { color: var(--sky); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { background: linear-gradient(135deg, #6b8df0 0%, #93b5f5 55%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.lead { margin: 28px 0 0; max-width: 34ch; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.45; color: var(--mute); }

/* ---------- the tile ---------- */
.tiles { margin-top: clamp(36px, 8vh, 64px); display: grid; grid-template-columns: minmax(0, 680px); }
.tile {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 28px 28px 28px 30px; border-radius: 20px; text-decoration: none; color: inherit; overflow: hidden;
  border: 1px solid var(--line); border-left: 3px solid var(--ember);
  background: linear-gradient(155deg, rgba(26, 26, 46, 0.92) 0%, rgba(18, 24, 43, 0.96) 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.7; transition: opacity 0.25s; background: radial-gradient(420px 170px at 100% 0%, rgba(65, 105, 225, 0.3), transparent 70%); }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: rgba(65, 105, 225, 0.55); border-left-color: var(--ember); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(65, 105, 225, 0.25); }
.tile:hover::after { opacity: 1; }
.tile:focus-visible { outline-offset: 4px; border-radius: 20px; }
.tile-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #4169e1 0%, #1a2e5a 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 28px rgba(65, 105, 225, 0.35); }
.tile-icon svg { width: 30px; height: 30px; }
.tile-body { position: relative; z-index: 1; min-width: 0; }
.kicker { display: block; font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.tile h2 { margin: 9px 0 4px; font-size: clamp(1.7rem, 4.2vw, 2.15rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.sub { display: block; font-weight: 600; color: var(--sky); }
.copy { display: block; margin-top: 10px; max-width: 46ch; color: var(--mute); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font: 500 12.5px/1 var(--mono); color: var(--mute); }
.stats b { color: var(--ink); font-weight: 700; }
.go {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; background: var(--royal); color: #fff; font-weight: 700; white-space: nowrap; transition: background 0.2s;
}
.tile:hover .go, .tile:focus-visible .go { background: var(--royal-dark); }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.tile:hover .arrow { transform: translateX(4px); }

.agenote { margin: 20px 0 0; max-width: 680px; font-size: 13px; line-height: 1.55; color: var(--faint); }

/* ---------- powered by ---------- */
.powered { width: 100%; max-width: 1120px; margin: clamp(36px, 7vh, 64px) auto 0; padding: 0 var(--gutter); }
.powered-inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; overflow: hidden;
  padding: 24px 28px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(360px 120px at 0% 50%, rgba(255, 69, 0, 0.14), transparent 70%), linear-gradient(135deg, rgba(255, 69, 0, 0.06), rgba(65, 105, 225, 0.13));
}
.powered-inner::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, #ff4500, #4169e1 60%, transparent); }
.powered-link { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; }
.powered-link img { display: block; width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 10px 34px rgba(255, 69, 0, 0.38); }
.p-text small { display: block; margin-bottom: 7px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.p-text b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.tag { margin: 0; font-weight: 600; color: var(--mute); }
.out { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font: 600 13px/1 var(--mono); letter-spacing: 0.04em; color: var(--sky); text-decoration: none; }
.out:hover { text-decoration: underline; text-underline-offset: 4px; }

.foot { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--faint); }

/* ---------- entrance ---------- */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s var(--ease) forwards; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.26s; } .d4 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .tile { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px 22px 24px; }
  .go { justify-content: center; width: 100%; }
  .powered-inner { padding: 20px; }
  .streak { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .streak { display: none; }
  .tile, .arrow, .go { transition: none; }
  .tile:hover, .tile:focus-visible { transform: none; }
}
