:root {
  color-scheme: dark;
  --bg: #070914;
  --ink: #f5f7ff;
  --muted: #b8c0d8;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(9, 12, 27, 0.82);
  --cyan: #00fff1;
  --pink: #ffbab9;
  --salmon: #ffa07a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 9, 20, 0.94), rgba(7, 9, 20, 0.68) 48%, rgba(7, 9, 20, 0.92)),
    url("assets/cursed-geometry-icon.png") center right 12% / min(62vw, 760px) no-repeat,
    radial-gradient(circle at 20% 20%, rgba(0, 255, 241, 0.18), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 160, 122, 0.18), transparent 32%),
    var(--bg);
}

body.legal {
  background:
    linear-gradient(90deg, rgba(7, 9, 20, 0.96), rgba(7, 9, 20, 0.88)),
    url("../assets/cursed-geometry-icon.png") top 40px right 8% / min(42vw, 520px) no-repeat,
    var(--bg);
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.brand:hover {
  color: var(--cyan);
}

.hero {
  min-height: calc(100vh - 156px);
  display: grid;
  align-content: center;
  max-width: 720px;
  padding: 52px 0 84px;
}

.kicker {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  max-width: 650px;
  font-size: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.button.primary {
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border-color: transparent;
}

.section {
  padding: 42px 0;
}

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

.card,
.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.card {
  padding: 22px;
}

.card.accent-cyan {
  border-color: rgba(0, 255, 241, 0.42);
}

.card.accent-pink {
  border-color: rgba(255, 186, 185, 0.42);
}

.card.accent-salmon {
  border-color: rgba(255, 160, 122, 0.42);
}

.legal-panel {
  max-width: 880px;
  padding: 34px;
  margin: 40px 0 72px;
}

.legal-panel h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.legal-panel ul {
  margin: 0 0 24px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-panel li + li {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  body,
  body.legal {
    background:
      linear-gradient(rgba(7, 9, 20, 0.86), rgba(7, 9, 20, 0.96)),
      url("assets/cursed-geometry-icon.png") top 94px center / min(92vw, 520px) no-repeat,
      var(--bg);
  }

  body.legal {
    background:
      linear-gradient(rgba(7, 9, 20, 0.9), rgba(7, 9, 20, 0.98)),
      url("../assets/cursed-geometry-icon.png") top 94px center / min(92vw, 520px) no-repeat,
      var(--bg);
  }

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

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 300px;
  }

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

  .legal-panel {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
