:root {
  --bg: #07122A;
  --panel: rgba(11, 25, 52, .78);
  --border: rgba(120, 170, 230, .2);
  --ice: #38BDF8;
  --ice-2: #7DD3FC;
  --text: #EEF4FB;
  --muted: #A9BBD2;
  --radius: 16px;
  --max: 76rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--ice-2); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 30; background: #fff; color: var(--bg); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Header (over hero) */
.site-header {
  position: absolute; z-index: 10; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.5rem;
}
.brand img { height: 3.75rem; width: auto; }
.nav-btn {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .6rem 1.2rem; border: 1px solid rgba(200, 225, 255, .35); border-radius: 10px;
  background: rgba(7, 18, 42, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nav-btn:hover { border-color: var(--ice); color: #fff; }

/* Hero */
.hero { position: relative; isolation: isolate; background: #00132B; }
.hero-bg { position: absolute; inset: 5.5rem 0 0 0; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 5.5rem 0 auto 0; height: 7rem; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, #00132B 0%, rgba(0, 19, 43, .6) 45%, rgba(0, 19, 43, 0) 100%); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 18, 42, 0), var(--bg));
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 9rem 1.5rem 4rem;
  min-height: 44rem; display: flex; justify-content: flex-end; align-items: center;
}
.hero-copy { width: min(100%, 34rem); margin-right: 2%; }
.eyebrow { color: var(--ice); font-size: .8rem; font-weight: 600; letter-spacing: .45em; text-transform: uppercase; margin-bottom: 1.1rem; }
h1 { font-size: clamp(3.25rem, 7.5vw, 6.5rem); line-height: .95; letter-spacing: -.04em; font-weight: 800; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.accent { color: var(--ice-2); background: linear-gradient(90deg, #A5E4FF, var(--ice)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.status { display: flex; align-items: center; gap: .6rem; margin-top: 1.75rem; color: var(--muted); font-size: .92rem; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.lead { margin-top: 1.5rem; max-width: 29rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #DCE7F4; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }
.actions-center { justify-content: center; margin-top: 1.25rem; }
.btn { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; border-radius: 10px; padding: .95rem 1.75rem; }
.btn-primary { background: var(--ice); color: #03213B; box-shadow: 0 10px 30px rgba(56, 189, 248, .35); }
.btn-primary:hover { background: var(--ice-2); }
.btn-link { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-weight: 500; }
.btn-link svg { color: var(--ice-2); }
.btn-link:hover { color: var(--ice-2); }

/* Pillars */
.pillars {
  list-style: none; margin: 0 auto; padding: 0 1.5rem; max-width: var(--max);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.pillars li { display: flex; gap: 1rem; align-items: center; padding: .25rem 1.5rem; border-left: 1px solid var(--border); }
.pillars li:first-child { border-left: 0; padding-left: 0; }
.pillars svg { flex: none; width: 2.4rem; height: 2.4rem; fill: none; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillars svg .fill { fill: var(--ice); }
.pillars h2, .pillars h3 { font-size: 1.1rem; font-weight: 600; }
.pillars p { color: var(--muted); font-size: .9rem; margin-top: .1rem; }
.hero-pillars { padding-bottom: 3rem; }

/* Preview */
.preview { position: relative; max-width: var(--max); margin: 2.5rem auto 0; padding: 0 1.5rem; }
.preview-frame {
  position: absolute; left: 20%; right: 20%; top: -1.75rem; bottom: 3rem; z-index: 0;
  border: 1px solid var(--border); border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 45, 90, .55), rgba(7, 18, 42, .2));
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, .45), 0 30px 80px rgba(0, 0, 0, .45);
}
.preview-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 2.2fr 1.4fr; gap: 1.5rem; align-items: center; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.card h3 { font-size: 1.15rem; font-weight: 600; }
.meta { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.nat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: .1rem .4rem; border-radius: 4px; background: rgba(56, 189, 248, .15); color: var(--ice-2); }

.card-athlete { position: relative; padding: 0; overflow: hidden; aspect-ratio: 4 / 4.6; }
.card-athlete img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.card-athlete::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to bottom, rgba(7, 18, 42, 0), rgba(7, 18, 42, .95)); }
.athlete-info { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 1; }
.athlete-info p { margin-top: .3rem; }
.athlete-spark { position: absolute; right: .9rem; bottom: 1rem; width: 42%; z-index: 1; }

.results-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.results-head > div { flex: 1; }
.icon { width: 2.3rem; height: 2.3rem; fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; }
.icon .fill { fill: var(--ice); stroke: none; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: #FFD7D7; background: rgba(220, 38, 38, .25); border: 1px solid rgba(248, 113, 113, .5); border-radius: 999px; padding: .2rem .65rem; }
.badge-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #F87171; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .4rem .5rem; }
td { padding: .75rem .5rem; border-top: 1px solid var(--border); }
th:last-child, td:last-child { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }

.shoot { display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.donut { width: 7.5rem; height: 7.5rem; flex: none; }
.shoot dl { margin: 0; flex: 1; }
.shoot dl div { display: flex; justify-content: space-between; padding: .5rem 0; border-top: 1px solid var(--border); }
.shoot dl div:first-child { border-top: 0; }
.shoot dt { color: var(--muted); }
.shoot dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.sample-note { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: .8rem; margin-top: 3.25rem; }

/* Platform over alpine background */
.platform {
  position: relative; margin-top: 3rem; padding: 4rem 0 22rem; text-align: center;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(7, 18, 42, .55) 30%, rgba(7, 18, 42, .1) 60%, rgba(7, 18, 42, .35) 100%),
    image-set(url("/img/alpine-2048.webp") type("image/webp")) center bottom / cover no-repeat;
}
@media (max-width: 1200px) {
  .platform {
    background:
      linear-gradient(to bottom, var(--bg) 0%, rgba(7, 18, 42, .55) 30%, rgba(7, 18, 42, .1) 60%, rgba(7, 18, 42, .35) 100%),
      image-set(url("/img/alpine-1200.webp") type("image/webp")) center bottom / cover no-repeat;
  }
}
.rule { display: block; width: 2.5rem; height: 3px; border-radius: 2px; background: var(--ice); margin: 0 auto 1.75rem; }
.platform > h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; padding: 0 1.5rem; }
.platform .pillars { margin-top: 3rem; text-align: left; }
.contact { margin-top: 3.5rem; padding: 0 1.5rem; }
.contact > p { color: #DCE7F4; font-size: 1.05rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

.site-footer { background: #050D1F; }
.site-footer p { max-width: var(--max); margin: 0 auto; padding: 1.5rem; text-align: center; color: var(--muted); font-size: .85rem; }

/* Responsive */
@media (max-width: 1100px) {
  .preview-grid { grid-template-columns: 1fr 1.6fr; }
  .card-results { grid-column: 1 / -1; order: -1; }
  .preview-frame { display: none; }
}
@media (max-width: 760px) {
  .brand img { height: 2.5rem; }
  .hero-inner { min-height: 0; padding: 25rem 1.25rem 2rem; justify-content: flex-start; }
  .hero-bg { inset: 4.5rem 0 0 0; }
  .hero::before { inset: 4.5rem 0 auto 0; }
  .hero-bg img { object-position: center top; }
  .hero::after { height: 100%; background: linear-gradient(to bottom, rgba(7, 18, 42, 0) 0, rgba(7, 18, 42, 0) 16rem, rgba(7, 18, 42, .88) 27rem, var(--bg) 40rem); }
  .eyebrow { letter-spacing: .3em; }
  .hero-copy { margin: 0; }
  .pillars { grid-template-columns: 1fr; padding-inline: 1.25rem; }
  .pillars li { border-left: 0; padding-left: 0; }
  .preview { padding-inline: 1.25rem; }
  .preview-grid { grid-template-columns: 1fr; }
  .card-athlete { aspect-ratio: 4 / 3; }
  table { font-size: .85rem; }
  th, td { padding-inline: .3rem; }
  .platform { padding-bottom: 16rem; background:
      linear-gradient(to bottom, var(--bg) 0%, var(--bg) 55%, rgba(7, 18, 42, .2) 80%, rgba(7, 18, 42, .3) 100%),
      image-set(url("/img/alpine-1200.webp") type("image/webp")) 60% bottom / auto 26rem no-repeat, var(--bg); }
  .platform > h2 br { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
