:root {
  --ink: #071923;
  --ink-soft: #0d2a36;
  --paper: #f3f8f7;
  --white: #ffffff;
  --text: #102a35;
  --muted: #58717a;
  --line: #cbdcde;
  --cyan: #21b9d1;
  --cyan-dark: #087e99;
  --lime: #b9ef5b;
  --orange: #ff5b38;
  --shadow: 0 22px 60px rgba(7, 25, 35, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); background: rgba(7, 25, 35, .82); border-bottom: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); }
.header-inner { width: min(1240px, calc(100% - 36px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 19px; font-weight: 850; letter-spacing: -.03em; white-space: nowrap; }
.brand img { border-radius: 12px; }
nav { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
nav a, .footer-links a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 700; }
nav a { color: #d7e8eb; }
nav a:hover, nav a:focus-visible { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.languages { position: relative; }
.languages summary { min-width: 48px; min-height: 42px; display: grid; place-items: center; cursor: pointer; list-style: none; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 12px; font-weight: 800; }
.languages summary::-webkit-details-marker { display: none; }
.languages > div { position: absolute; right: 0; top: calc(100% + 10px); width: 148px; display: grid; padding: 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: var(--ink); box-shadow: var(--shadow); }
.languages a { padding: 8px 10px; color: #d6e7ea; text-decoration: none; border-radius: 7px; font-size: 13px; }
.languages a:hover, .languages a[aria-current="page"] { color: var(--ink); background: var(--cyan); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid var(--cyan); border-radius: 9px; background: var(--cyan); color: #05222c; text-decoration: none; font-weight: 850; box-shadow: 0 10px 28px rgba(33,185,209,.23); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #6bdef0; border-color: #6bdef0; }
.button-small { min-height: 42px; padding: 9px 15px; font-size: 13px; }
.button-ghost { color: var(--white); background: rgba(7,25,35,.28); border-color: rgba(255,255,255,.48); box-shadow: none; }
.button-ghost:hover, .button-ghost:focus-visible { color: var(--ink); background: var(--white); border-color: var(--white); }
.text-link { color: #bdeefa; font-weight: 800; text-underline-offset: 4px; }

.hero { min-height: 760px; height: min(88vh, 930px); position: relative; display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("/site-assets/thermal-race-feature.png") center 42%/cover no-repeat; transform: scale(1.012); }
.hero-shade { background: linear-gradient(90deg, rgba(4,18,26,.9) 0%, rgba(4,18,26,.58) 42%, rgba(4,18,26,.03) 73%), linear-gradient(0deg, rgba(4,18,26,.76) 0%, transparent 55%); }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(72px, 10vh, 120px); }
.hero h1 { max-width: 760px; margin: 10px 0 19px; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.hero-copy { max-width: 650px; margin: 0 0 28px; color: #e1eef0; font-size: clamp(17px, 2vw, 21px); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { margin: 18px 0 0; color: #b9ced3; font-size: 13px; font-weight: 650; }
.kicker { margin: 0 0 9px; color: var(--cyan-dark); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.kicker.light { color: #69e8f8; }

.section { padding: clamp(72px, 9vw, 126px) 0; }
.section h2 { margin: 0; font-size: clamp(35px, 5vw, 61px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.section-heading { max-width: 760px; margin-bottom: 45px; }
.section-heading > p:last-child, .strategy-copy > p, .league-copy > p, .community-card p, .indie-inner p { color: var(--muted); font-size: 18px; }
.section-heading.compact { margin-bottom: 30px; }

.intro { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 290px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card > span { color: var(--cyan-dark); font-size: 12px; font-weight: 900; }
.feature-card h3 { margin: 54px 0 12px; font-size: 23px; line-height: 1.12; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

.strategy { background: var(--white); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(42px, 7vw, 100px); }
.scene-frame { position: relative; overflow: hidden; border-radius: 6px 70px 6px 6px; box-shadow: var(--shadow); }
.scene-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; pointer-events: none; }
.scene-frame img { width: 100%; height: 480px; object-fit: cover; }
.strategy-copy p { margin: 22px 0; }
.strategy-copy ul { display: grid; gap: 13px; margin: 25px 0 0; padding: 0; list-style: none; }
.strategy-copy li { display: flex; gap: 11px; font-weight: 700; }
.strategy-copy li span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #164b35; background: var(--lime); font-size: 13px; }

.league { color: var(--white); background: var(--ink); overflow: hidden; }
.league-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.league-copy > p { color: #b6cbd0; margin: 22px 0 28px; }
.league-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.league-board { position: relative; padding: 28px; border: 1px solid #285262; border-radius: 20px; background: linear-gradient(145deg, #10313f, #0b222c); box-shadow: 0 30px 70px rgba(0,0,0,.26); }
.league-board::before { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -90px; border-radius: 50%; background: rgba(33,185,209,.12); filter: blur(2px); }
.live { position: relative; display: flex; align-items: center; gap: 9px; color: #b8cdd2; font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.live span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(185,239,91,.11); }
.metrics { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; margin: 21px 0 27px; border: 1px solid #2b5260; background: #2b5260; }
.metrics div { min-width: 0; padding: 15px; background: #0c2632; }
.metrics span { display: block; color: #91adb5; font-size: 11px; }
.metrics strong { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #69e8f8; font-size: 20px; }
.league-board h3 { position: relative; margin: 0 0 12px; font-size: 19px; }
.league-board table { position: relative; width: 100%; border-collapse: collapse; }
.league-board th, .league-board td { padding: 11px 8px; border-bottom: 1px solid #274652; text-align: left; }
.league-board th { color: #91adb5; font-size: 11px; text-transform: uppercase; }
.league-board th:last-child, .league-board td:last-child { text-align: right; }
.league-board td { font-size: 14px; }
.league-board td a { color: #e8f7f9; text-decoration: none; }
.league-board .rank { color: var(--lime); font-weight: 900; }
.league-board .empty { padding: 25px 8px; color: #91adb5; text-align: center; }

.community { padding-bottom: 0; background: var(--paper); }
.community-card { min-height: 330px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 45px; padding: clamp(38px, 7vw, 80px); color: var(--white); background: linear-gradient(125deg, #3f4acb, #5268ee 58%, #6c80ff); border-radius: 6px 70px 6px 6px; box-shadow: var(--shadow); }
.community-card > div { max-width: 720px; }
.community-card .kicker { color: #cdd5ff; }
.community-card p { color: #edf0ff; }
.discord-button { color: #27316f; background: var(--white); border-color: var(--white); box-shadow: none; }
.discord-button:hover { background: #e9edff; border-color: #e9edff; }

.indie { background: var(--paper); }
.indie-inner { max-width: 880px; display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 42px; }
.indie-inner img { border-radius: 32px; box-shadow: var(--shadow); }
.indie-inner h2 { font-size: clamp(32px, 4vw, 49px); }
.indie-inner p { margin-bottom: 0; }

.faq { padding-top: 0; background: var(--paper); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; cursor: pointer; padding: 23px 48px 23px 0; list-style: none; font-size: 18px; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 10px; color: var(--cyan-dark); font-size: 25px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 820px; margin: -5px 0 23px; color: var(--muted); }

footer { padding: 58px 0 22px; color: #b5cbd0; background: #051219; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 42px; }
.footer-grid .brand { color: var(--white); }
.footer-grid p { max-width: 390px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 14px 28px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid #1d333d; font-size: 12px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  nav { display: none; }
  .header-actions { margin-left: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split, .league-layout { grid-template-columns: 1fr; }
  .scene-frame img { height: 400px; }
  .league-copy { max-width: 690px; }
  .community-card { grid-template-columns: 1fr; align-items: start; }
  .community-card .button { justify-self: start; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 64px; width: calc(100% - 24px); gap: 10px; }
  .brand span { font-size: 17px; }
  .brand img { width: 38px; height: 38px; }
  .header-actions .button { display: none; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-image { background-position: 61% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,18,26,.94) 0%, rgba(4,18,26,.6) 56%, rgba(4,18,26,.15) 100%); }
  .hero-content { padding-bottom: max(46px, env(safe-area-inset-bottom)); }
  .hero h1 { font-size: clamp(43px, 14vw, 61px); }
  .hero-copy { font-size: 16px; }
  .hero-buttons { display: grid; }
  .button { width: 100%; }
  .section { padding: 68px 0; }
  .section h2 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 25px; }
  .feature-card h3 { margin-top: 25px; }
  .scene-frame { border-radius: 5px 38px 5px 5px; }
  .scene-frame img { height: 280px; }
  .metrics div { padding: 12px 8px; }
  .metrics strong { font-size: 16px; }
  .league-board { padding: 20px 13px; border-radius: 14px; }
  .community-card { width: calc(100% - 20px); padding: 38px 24px; border-radius: 5px 38px 5px 5px; }
  .indie-inner { grid-template-columns: 72px 1fr; align-items: start; gap: 20px; }
  .indie-inner img { width: 72px; height: 72px; border-radius: 18px; }
  .indie-inner h2 { font-size: 31px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr; }
}
