:root {
  --bg: #090b12;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #eef2ff;
  --muted: #a8b3cf;
  --line: rgba(255,255,255,0.12);
  --accent: #68e1fd;
  --accent-2: #a78bfa;
  --warm: #fbbf24;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(104, 225, 253, 0.16), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(167, 139, 250, 0.16), transparent 35%),
    var(--bg);
  line-height: 1.6;
}

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

.site-header {
  min-height: 760px;
  padding: 24px;
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 22px;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  max-width: 1040px;
  margin: 120px auto 0;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin: 18px 0;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 8px 0 14px;
}

h3 {
  margin-top: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
}

.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section.alt {
  max-width: none;
  padding-left: calc((100vw - 1160px)/2 + 24px);
  padding-right: calc((100vw - 1160px)/2 + 24px);
  background: rgba(255,255,255,0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

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

.card, .panel, .research-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.25);
}

.card p, .research-box p {
  color: var(--muted);
}

.sim-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: stretch;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}

input[type="range"] {
  width: 100%;
}

label span {
  color: var(--text);
}

.formula {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  color: var(--muted);
}

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

canvas {
  width: 100%;
  max-width: 720px;
  height: auto;
  background: radial-gradient(circle at center, rgba(104,225,253,0.06), rgba(0,0,0,0.22));
  border-radius: 18px;
  border: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.two-col > div {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 16px;
  background: #050712;
  color: #dbeafe;
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .cards, .two-col, .sim-grid {
    grid-template-columns: 1fr;
  }
  nav {
    display: none;
  }
  .hero {
    margin-top: 72px;
  }
  .site-header {
    min-height: auto;
    padding-bottom: 80px;
  }
}
