:root {
  color-scheme: dark;
  --bg: #0c1015;
  --surface: #131920;
  --surface-2: #19212a;
  --text: #f1f4f6;
  --muted: #9da8b3;
  --line: rgba(255, 255, 255, .10);
  --cyan: #41e9dc;
  --magenta: #ee56b5;
  --gold: #ffd45c;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: var(--cyan); text-underline-offset: .2em; }
a:hover { color: #88fff5; }
img { max-width: 100%; height: auto; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 10px; inset-inline-start: 10px; padding: 10px 14px; background: var(--cyan); color: #07110f; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .07; pointer-events: none; }
.ambient-one { top: -220px; right: -100px; background: var(--cyan); }
.ambient-two { bottom: -260px; left: -140px; background: var(--magenta); }

.site-header { min-height: 118px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; width: 185px; }
.site-header nav { display: flex; gap: 8px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 750; padding: 10px 14px; border-radius: 999px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; max-width: 940px; padding: 90px 0 110px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .16em; color: var(--cyan); font-size: .75rem; font-weight: 850; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { display: block; width: 8px; height: 8px; background: var(--cyan); border-radius: 2px; box-shadow: 0 0 16px rgba(65, 233, 220, .6); }
.hero h1 { margin: 20px 0 24px; max-width: 850px; font-size: clamp(4rem, 10vw, 8.4rem); letter-spacing: -.075em; line-height: .86; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(241, 244, 246, .55); }
.lede { max-width: 650px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 0 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 850; }
.button.primary { background: var(--cyan); color: #07110f; border-color: var(--cyan); box-shadow: 0 12px 34px rgba(65, 233, 220, .13); }
.button.primary:hover { color: #07110f; background: #78fff4; }
.button.secondary { color: var(--text); background: var(--surface); }

.principles { padding: 90px 0 110px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.section-heading h2, .contact-panel h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.045em; line-height: 1; }
.kicker { margin: 0 0 10px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { min-height: 310px; padding: 28px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); border-radius: var(--radius); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 70px; color: #081110; border-radius: 14px; font-size: .72rem; font-weight: 900; }
.card-icon.cyan { background: var(--cyan); }.card-icon.magenta { background: var(--magenta); }.card-icon.gold { background: var(--gold); }
.card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 100px; padding: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-panel > p { color: var(--muted); margin: 0; }

.legal-layout { display: grid; grid-template-columns: 300px minmax(0, 720px); gap: 100px; justify-content: space-between; padding: 90px 0 130px; }
.legal-aside { align-self: start; position: sticky; top: 36px; }
.legal-aside h1 { margin: 6px 0 20px; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .92; letter-spacing: -.06em; }
.effective { color: var(--muted); font-size: .84rem; line-height: 1.6; }
.contents { display: grid; gap: 2px; margin-top: 32px; padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.contents a { color: var(--muted); font-size: .86rem; text-decoration: none; padding: 3px 0; }
.contents a:hover { color: var(--cyan); }
.legal-copy section { position: relative; padding: 0 0 72px; scroll-margin-top: 28px; }
.legal-copy section + section { padding-top: 64px; border-top: 1px solid var(--line); }
.section-number { display: block; margin-bottom: 12px; color: var(--cyan); font: 800 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.legal-copy h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.legal-copy h3 { margin: 32px 0 8px; font-size: 1.12rem; }
.legal-copy p, .legal-copy li { color: #bdc5cd; }
.legal-copy p { margin: 0 0 18px; }
.legal-copy ul, .legal-copy ol { padding-inline-start: 1.35rem; }
.legal-copy li { margin: 9px 0; padding-inline-start: 5px; }
.legal-copy strong { color: var(--text); }
.callout { margin: 28px 0 0; padding: 20px 22px; background: rgba(65, 233, 220, .06); border: 1px solid rgba(65, 233, 220, .25); border-radius: 15px; color: #cbd5d6; }

.site-footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-footer div { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: start; }
.not-found img { width: 190px; margin-bottom: 40px; }
.error-code { color: var(--cyan); font: 800 .78rem/1 ui-monospace, monospace; letter-spacing: .15em; }
.not-found h1 { margin: 0 0 8px; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.06em; }
.not-found > p:not(.error-code) { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 820px) {
  .hero { min-height: 580px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .card-icon { margin-bottom: 40px; }
  .contact-panel { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
  .legal-layout { grid-template-columns: 1fr; gap: 60px; padding-top: 58px; }
  .legal-aside { position: static; }
  .contents { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 92px; }
  .brand { width: 135px; }
  .site-header nav a { padding: 8px 9px; font-size: .8rem; }
  .hero { min-height: auto; padding: 80px 0 90px; }
  .hero h1 { font-size: clamp(3.6rem, 20vw, 5.8rem); }
  .hero h1.long-word { font-size: clamp(2.8rem, 17vw, 5.8rem); overflow-wrap: anywhere; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .contents { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
  .site-footer div { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .ambient, .site-header nav, .contents, .site-footer { display: none; }
  .site-header { min-height: 80px; }
  .legal-layout { display: block; padding-top: 30px; }
  .legal-aside { position: static; }
  .legal-aside h1 { font-size: 40px; }
  .legal-copy p, .legal-copy li, .effective { color: #333; }
  .legal-copy section { break-inside: avoid; }
}

.challenge-code {
  margin: 0 0 28px;
  padding: 20px 24px;
  border: 1px solid rgba(38, 255, 210, .35);
  border-radius: 20px;
  background: rgba(17, 21, 27, .6);
  max-width: 34rem;
}
.challenge-code .kicker { margin: 0 0 6px; }
.challenge-code .code {
  margin: 0 0 14px;
  font: 700 clamp(1.4rem, 5vw, 2rem)/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.copy-status { min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; opacity: .8; }
.challenge-code button.button { font: inherit; font-weight: 850; cursor: pointer; }

/* Language links (generated by tool/site_i18n.py). */
.site-footer { flex-wrap: wrap; }
/* Arabic and Devanagari join their letters; tracking breaks the words. */
html[lang="ar"] *, html[lang="hi"] * { letter-spacing: normal !important; }
.languages { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.languages a { color: var(--muted, #9aa3ad); font-size: .9rem; text-decoration: none; }
.languages a[aria-current] { color: inherit; font-weight: 700; }
.not-found .languages { justify-content: center; margin-top: 28px; }
