/* =========================================================
   Garax: design system for every page.
   No external fonts, no scripts. Dark theme only.
   ========================================================= */

:root {
  --bg: #09090d;
  --bg-2: #0e0e14;
  --surface: #13131b;
  --surface-2: #1a1a25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #a3a3b3;
  --dim: #6f6f80;

  --accent: #ff5a36;
  --accent-hover: #ff7350;
  --on-accent: #120805;

  --b1: #ff4d2e;
  --b2: #ff7a1a;
  --b3: #ffb020;
  --b4: #22c55e;
  --b5: #14b8a6;
  --b6: #3b82f6;
  --b7: #8b5cf6;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 13, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 0.7rem);
  gap: 3px;
}

.logo-mark i {
  height: 0.5rem;
  border-radius: 2px;
}

.logo-mark i:nth-child(1) { background: var(--b1); }
.logo-mark i:nth-child(2) { background: var(--b3); }
.logo-mark i:nth-child(3) { background: var(--b4); }
.logo-mark i:nth-child(4) { background: var(--b6); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.nav .btn {
  color: var(--text);
}

@media (max-width: 34rem) {
  .nav .hide-sm {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px rgba(255, 90, 54, 0.7);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  min-height: 2.4rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
}

.display {
  font-size: clamp(3rem, 10.5vw, 7.25rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.h-section {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hl {
  background: linear-gradient(92deg, var(--b1) 0%, var(--b3) 45%, var(--b4) 75%, var(--b6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--b4);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Background effects ---------- */

.fx-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 25%, transparent 75%);
}

.fx-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40rem 26rem at 78% 22%, rgba(255, 77, 46, 0.22), transparent 70%),
    radial-gradient(34rem 24rem at 12% 85%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(26rem 18rem at 50% 0%, rgba(139, 92, 246, 0.14), transparent 70%);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-top: clamp(3rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}

.hero-copy .tag {
  margin-bottom: 1.75rem;
}

.hero-copy .display {
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 54, 0.45), transparent);
  filter: blur(40px);
}

@media (min-width: 58rem) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: min(18.5rem, 72vw);
  aspect-ratio: 390 / 844;
  padding: 0.6rem;
  border-radius: 2.75rem;
  background: linear-gradient(160deg, #2a2a38, #121219 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 30px 120px -40px rgba(255, 90, 54, 0.55);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 2.2rem;
  object-fit: cover;
}

.phone::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 50%;
  width: 28%;
  height: 1.1rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050507;
}

.phone-tilt {
  transform: rotate(5deg);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-14px); }
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(19, 19, 27, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.float-chip small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
}

.float-chip .sq {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px;
  flex: none;
}

.chip-a {
  left: 0;
  bottom: 18%;
}

.chip-a .sq {
  background: linear-gradient(135deg, var(--b1), var(--b3));
}

.chip-b {
  right: 0;
  top: 14%;
}

.chip-b .sq {
  background: linear-gradient(135deg, var(--b6), var(--b7));
}

@media (max-width: 30rem) {
  .chip-a { left: -0.25rem; }
  .chip-b { right: -0.25rem; }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 1.1rem 2.25rem 1.1rem 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-group span:nth-of-type(even) { color: var(--muted); }

.ticker-group i {
  width: 0.85rem;
  height: 0.55rem;
  border-radius: 2px;
  flex: none;
}

.ticker-group i:nth-of-type(4n + 1) { background: var(--b1); }
.ticker-group i:nth-of-type(4n + 2) { background: var(--b3); }
.ticker-group i:nth-of-type(4n + 3) { background: var(--b4); }
.ticker-group i:nth-of-type(4n + 4) { background: var(--b6); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head .lead {
  margin: 0;
}

@media (min-width: 58rem) {
  .section-head.split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .section-head.split .lead {
    justify-self: end;
  }
}

/* ---------- Game feature card ---------- */

.game-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}

.game-feature:hover {
  border-color: rgba(255, 90, 54, 0.55);
}

.game-art {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 22rem;
  padding-top: 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(28rem 18rem at 50% 100%, rgba(255, 90, 54, 0.35), transparent 70%),
    linear-gradient(180deg, #16132a, #0d0d13);
}

.game-art .fx-grid {
  -webkit-mask-image: linear-gradient(#000, transparent 85%);
  mask-image: linear-gradient(#000, transparent 85%);
}

.game-art .phone {
  width: min(15rem, 62vw);
  flex: none;
  transition: transform 0.5s var(--ease);
}

.game-feature:hover .game-art .phone {
  transform: translateY(-10px);
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.game-info h3 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.game-info p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 30rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
}

.link-arrow svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.game-feature:hover .link-arrow svg {
  transform: translateX(4px);
}

@media (min-width: 58rem) {
  .game-feature {
    grid-template-columns: 1.05fr 1fr;
  }

  .game-art {
    height: auto;
    min-height: 32rem;
  }

  .game-art .phone {
    width: 16.5rem;
  }
}

.game-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
}

.game-next p {
  margin: 0;
}

.game-next strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mini-bricks {
  display: grid;
  grid-template-columns: repeat(4, 1.1rem);
  gap: 4px;
}

.mini-bricks i {
  height: 0.6rem;
  border-radius: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

/* ---------- Cards ---------- */

.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 40rem) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .num {
  display: block;
  margin-bottom: 2.5rem;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 3vw, 2rem);
  width: 3rem;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--card-accent, var(--accent));
}

.card.c1 { --card-accent: var(--b1); }
.card.c2 { --card-accent: var(--b3); }
.card.c3 { --card-accent: var(--b4); }
.card.c4 { --card-accent: var(--b6); }

.card .icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--card-accent, var(--accent));
}

.card .icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats div {
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.stats div + div {
  border-left: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Contact band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  isolation: isolate;
}

.cta .fx-glow {
  z-index: -1;
  background:
    radial-gradient(30rem 20rem at 100% 0%, rgba(255, 90, 54, 0.3), transparent 70%),
    radial-gradient(26rem 18rem at 0% 100%, rgba(139, 92, 246, 0.22), transparent 70%);
}

.cta .fx-grid {
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
}

.cta .h-section {
  margin-bottom: 1.25rem;
}

.cta .lead {
  margin-bottom: 2rem;
}

.big-mail {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--accent);
  font-size: clamp(1.25rem, 4.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

.big-mail:hover {
  color: var(--accent);
}

/* ---------- Game page ---------- */

.crumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--dim);
  font-size: 0.88rem;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 10rem;
  padding: 0.65rem 1.1rem 0.65rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  line-height: 1.2;
}

.store .ic {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  flex: none;
}

.store .ic svg {
  width: 1.25rem;
  height: 1.25rem;
}

.store small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store strong {
  font-size: 1.02rem;
}

.store[aria-disabled="true"] {
  border-style: dashed;
  cursor: default;
}

.note {
  margin-top: 1rem;
  color: var(--dim);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 58rem) {
  .faq-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.faq details p {
  margin: 0 0 1.25rem;
  padding-right: 3rem;
  color: var(--muted);
}

.faq a,
.prose a,
.legal-block a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.faq a:hover,
.prose a:hover,
.legal-block a:hover {
  color: var(--accent);
}

.contact-card {
  position: sticky;
  top: 6rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 90, 54, 0.14), transparent 55%), var(--surface);
}

.contact-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card p {
  color: var(--muted);
}

.contact-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ---------- Legal documents ---------- */

.doc-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.doc-hero .container {
  position: relative;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 6vw, 3.5rem);
}

.doc-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.doc-hero .meta {
  margin: 1rem 0 0;
  color: var(--muted);
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.lang-switch a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.prose {
  max-width: 46rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  color: #d6d6df;
  font-size: 1.02rem;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  scroll-margin-top: 6rem;
}

.prose h3 {
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.4rem 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
}

.prose .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-lang {
  scroll-margin-top: 6rem;
}

.doc-lang + .doc-lang {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line-2);
}

.doc-lang .doc-title {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.summary-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.summary-box ul {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}

tr + tr td {
  border-top: 1px solid var(--line);
}

.legal-grid {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.legal-block {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: #d6d6df;
}

.legal-block h2 {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-block p {
  margin: 0 0 0.5rem;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block strong {
  color: var(--text);
}

/* ---------- 404 ---------- */

.not-found {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 72vh;
  text-align: center;
}

.not-found .container {
  position: relative;
}

.not-found .code {
  font-size: clamp(7rem, 30vw, 16rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.not-found .lead {
  margin: 1.5rem auto 2rem;
}

.broken {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2rem;
}

.broken i {
  width: 2.6rem;
  height: 1.1rem;
  border-radius: 4px;
}

.broken i:nth-child(1) { background: var(--b1); }
.broken i:nth-child(2) { background: var(--b3); transform: translateY(10px) rotate(14deg); }
.broken i:nth-child(3) { background: var(--b4); transform: translateY(-6px) rotate(-10deg); opacity: 0.6; }
.broken i:nth-child(4) { background: var(--b6); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: 2.5rem;
}

.footer-top p {
  max-width: 20rem;
  margin: 1rem 0 0;
}

.footer-col h4 {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
}

.footer-bottom:first-child {
  border-top: 0;
}

@media (min-width: 48rem) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text);
}
