:root {
  --background: #090a0d;
  --surface: #111216;
  --surface-raised: #15171c;
  --text: #f4f1e9;
  --muted: #888a91;
  --line: #25272d;
  --accent: #76ffcf;
  --accent-soft: rgba(118, 255, 207, 0.1);
  --pink: #e992a7;
  --content: 1120px;
  --reading: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% -10%, #11251e 0, transparent 34rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration-color: #68645b;
  text-underline-offset: 0.2em;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

.shell {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.reading-shell {
  width: min(calc(100% - 48px), var(--reading));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1.5px solid #3c514a;
  transform: rotate(45deg);
}

.mark::after {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 72px;
  min-height: calc(100vh - 84px);
  padding: 88px 0;
}

.home-hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.home-hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 610px;
  margin: 30px 0 34px;
  color: #cbc7bf;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #07110e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.button:hover {
  background: #9bffe0;
  color: #07110e;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: #4b4841;
  background: transparent;
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.board-wrap {
  position: relative;
  width: min(100%, 440px);
  margin-left: auto;
  padding: 36px;
  border: 1px solid #292823;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%),
    #0d0d0c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  aspect-ratio: 1;
}

.tile {
  position: relative;
  border: 1px solid #35342f;
  background: #171715;
}

.tile.lit {
  border-color: #4ccea5;
  background: linear-gradient(145deg, #164638, #102d25);
  box-shadow: inset 0 0 18px rgba(118, 255, 207, 0.13);
}

.tile.void {
  visibility: hidden;
}

.tile.wall {
  border-color: #817c72;
  background: repeating-linear-gradient(
    45deg,
    #4a4841 0,
    #4a4841 2px,
    #272621 2px,
    #272621 7px
  );
}

.tile.boost::after {
  position: absolute;
  inset: 26%;
  border-top: 2px solid var(--pink);
  border-right: 2px solid var(--pink);
  content: "";
  transform: rotate(45deg);
}

.marble {
  position: absolute;
  z-index: 2;
  top: 43%;
  left: 58%;
  width: 12%;
  aspect-ratio: 1;
  border: 3px solid #fffdf6;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 8%, #d9d7d0 25%, #77746d 100%);
  box-shadow:
    0 9px 15px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(118, 255, 207, 0.18);
}

.tilt-note {
  position: absolute;
  right: 12px;
  bottom: -42px;
  color: #716e67;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  margin-bottom: 56px;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.feature-number {
  display: block;
  margin-bottom: 74px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.feature h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mechanic-card {
  --mechanic-color: #d5dce3;
  --mechanic-background: #353b42;
  display: flex;
  min-width: 0;
  min-height: 204px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 55%),
    var(--surface);
  flex-direction: column;
  justify-content: space-between;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.mechanic-card:hover {
  border-color: color-mix(in srgb, var(--mechanic-color) 44%, var(--line));
  transform: translateY(-2px);
}

.mechanic-card h3 {
  margin: 0 0 3px;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.mechanic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mechanic-tile {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--mechanic-color);
  border-radius: 10px;
  background: var(--mechanic-background);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.025),
    0 12px 30px rgba(0, 0, 0, 0.18);
  place-items: center;
}

.mechanic-glyph {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  color: var(--mechanic-color);
}

.mechanic-card-brake {
  --mechanic-color: #7fd3ff;
  --mechanic-background: #142b38;
}

.mechanic-card-boost {
  --mechanic-color: #ffb55f;
  --mechanic-background: #382313;
}

.mechanic-card-fragile {
  --mechanic-color: #ff91ad;
  --mechanic-background: #351821;
}

.mechanic-card-switch {
  --mechanic-color: #ffe16b;
  --mechanic-background: #352f12;
}

.mechanic-card-bridge {
  --mechanic-color: #aebeff;
  --mechanic-background: #20263a;
}

.mechanic-card-slope {
  --mechanic-color: #c5a0ff;
  --mechanic-background: #291a3b;
}

.mechanic-card-risk {
  --mechanic-color: #ff7895;
  --mechanic-background: #100d12;
}

.glyph-wall {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.glyph-wall::before,
.glyph-wall::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.glyph-wall::before {
  top: 10px;
  right: 0;
  left: 0;
  height: 2px;
  box-shadow: 0 10px 0 currentColor;
}

.glyph-wall::after {
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
}

.glyph-brake {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.glyph-brake i {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}

.glyph-brake i:nth-child(2) {
  width: 74%;
}

.glyph-brake i:nth-child(3) {
  width: 48%;
}

.glyph-boost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.glyph-boost i {
  width: 15px;
  height: 15px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

.glyph-fragile {
  width: 27px;
  height: 27px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.glyph-fragile::before,
.glyph-fragile::after {
  position: absolute;
  width: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-27deg);
}

.glyph-fragile::before {
  top: -2px;
  left: 12px;
  height: 16px;
}

.glyph-fragile::after {
  right: 8px;
  bottom: -1px;
  height: 14px;
  transform: rotate(35deg);
}

.glyph-switch {
  width: 31px;
  height: 31px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.glyph-switch::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: "";
}

.glyph-bridge {
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.glyph-bridge i {
  position: absolute;
  right: 3px;
  left: 3px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.glyph-bridge i:nth-child(1) {
  top: 4px;
}

.glyph-bridge i:nth-child(2) {
  top: 15px;
}

.glyph-bridge i:nth-child(3) {
  top: 26px;
}

.glyph-slope::before {
  position: absolute;
  top: 15px;
  left: 4px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.glyph-slope::after {
  position: absolute;
  top: 8px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.mechanic-tile-risk {
  border-color: #49323a;
  background:
    linear-gradient(90deg, transparent 0 20%, #22151a 20% 80%, transparent 80%),
    #090a0d;
}

.risk-path {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  width: 60%;
  border-right: 1px solid var(--mechanic-color);
  border-left: 1px solid var(--mechanic-color);
  background: #25171c;
}

.risk-path::before,
.risk-path::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: #54313c;
  content: "";
}

.risk-path::before {
  top: 33%;
}

.risk-path::after {
  top: 66%;
}

.risk-marble {
  position: absolute;
  top: 25px;
  left: 26px;
  width: 16px;
  height: 16px;
  border: 2px solid #fffdf6;
  border-radius: 50%;
  background: #8a8780;
  box-shadow: 0 0 12px rgba(255, 120, 149, 0.45);
}

.closing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.page-hero {
  padding: 92px 0 68px;
}

.page-hero h1 {
  max-width: 700px;
  font-size: clamp(48px, 8vw, 78px);
}

.page-intro {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c8c4bb;
  font-size: 19px;
}

.updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.legal-section {
  padding: 38px 0 36px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 27px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: #c2bfb7;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 10px;
  padding-left: 5px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 96px;
}

.contact-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.contact-card .label {
  display: block;
  margin-bottom: 60px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0 0 9px;
  font-size: 24px;
}

.contact-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card a {
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: #7f7c75;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #8d8981;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 820px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 74px 0 100px;
  }

  .board-wrap {
    width: min(86%, 430px);
    margin: 12px auto 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mechanics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    min-height: auto;
  }

  .feature-number {
    margin-bottom: 42px;
  }
}

@media (max-width: 620px) {
  .shell,
  .reading-shell {
    width: min(calc(100% - 30px), var(--content));
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 17px;
    min-height: 76px;
    padding: 21px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 0;
    font-size: 11px;
  }

  .home-hero {
    gap: 58px;
  }

  .hero-copy {
    max-width: 330px;
  }

  .board-wrap {
    width: 92%;
    padding: 24px;
  }

  .section {
    padding: 76px 0;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 66px 0 52px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding-bottom: 72px;
  }

  .contact-card {
    min-height: auto;
  }

  .contact-card .label {
    margin-bottom: 38px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 24px 0;
  }
}

@media (max-width: 430px) {
  .mechanics-grid {
    grid-template-columns: 1fr;
  }

  .mechanic-card {
    min-height: 176px;
  }
}

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

  a {
    transition: none;
  }
}

@media print {
  :root {
    --background: #fff;
    --surface: #fff;
    --surface-raised: #fff;
    --text: #111;
    --muted: #555;
    --line: #ccc;
    --accent: #111;
  }

  body {
    background: #fff;
  }

  .site-nav,
  .actions,
  .board-wrap {
    display: none;
  }
}
