@font-face {
  font-family: "ODMNerdMono";
  src: url("/ODMNerdMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg:
    radial-gradient(circle at 14% 8%, rgba(255, 94, 168, 0.22), transparent 24rem),
    radial-gradient(circle at 84% 20%, rgba(113, 242, 255, 0.2), transparent 26rem),
    linear-gradient(180deg, #02040a 0%, #06101a 45%, #03060d 100%);
  --panel: rgba(4, 14, 24, 0.72);
  --line: rgba(112, 232, 255, 0.22);
  --cyan: #71f2ff;
  --pink: #ff5ea8;
  --gold: #ffcc66;
  --ink: #e4fbff;
  --muted: #8db8c5;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --control-bg: rgba(2, 10, 18, 0.68);
  --button-ink: #04101a;
}

body[data-space-theme="light"] {
  --page-bg:
    radial-gradient(circle at 12% 8%, rgba(5, 118, 141, 0.18), transparent 25rem),
    radial-gradient(circle at 86% 18%, rgba(180, 91, 36, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff4d7 0%, #f4d8a7 48%, #e5b36e 100%);
  --panel: rgba(255, 248, 224, 0.78);
  --line: rgba(70, 44, 20, 0.28);
  --cyan: #075f70;
  --pink: #8f2d47;
  --gold: #7a4a0d;
  --ink: #0f0c08;
  --muted: #130f0b;
  --shadow: 0 26px 70px rgba(73, 43, 15, 0.2);
  --control-bg: rgba(255, 244, 214, 0.82);
  --button-ink: #fff6df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "ODMNerdMono", monospace;
  background: var(--page-bg);
  overflow-x: hidden;
}

#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
}

body[data-space-theme="light"] #matrix-rain {
  opacity: 0.2;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.16;
}

body[data-space-theme="light"]::after {
  background:
    linear-gradient(90deg, rgba(94, 57, 18, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(94, 57, 18, 0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.34;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand,
.home-link,
.button {
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(113, 242, 255, 0.06);
}

.brand,
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1 {
  margin: 0;
  color: #f3fdff;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(113, 242, 255, 0.42),
    0 0 48px rgba(255, 94, 168, 0.18);
}

.lede,
.section p,
.list {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 68rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

body[data-space-theme="light"] .lede,
body[data-space-theme="light"] .section p,
body[data-space-theme="light"] .list {
  color: #080604;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button.primary {
  background: linear-gradient(135deg, rgba(113, 242, 255, 0.96), rgba(255, 94, 168, 0.82));
  color: var(--button-ink);
  border-color: transparent;
}

body[data-space-theme="light"] .button.primary {
  background: linear-gradient(135deg, #0a7080, #a64724);
}

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

.section {
  margin-top: 1rem;
  padding: 1.4rem;
}

.section-title {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
}

.list li + li {
  margin-top: 0.65rem;
}

strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

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