:root {
  --bg: #070b14;
  --bg-soft: #0d1324;
  --panel: rgba(16, 24, 42, 0.72);
  --panel-strong: rgba(12, 18, 34, 0.88);
  --line: rgba(140, 170, 255, 0.18);
  --line-strong: rgba(160, 188, 255, 0.34);
  --text: #eaf0ff;
  --muted: #a9b7da;
  --accent: #8aa4ff;
  --accent-2: #7ef0d1;
  --accent-3: #d9b7ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  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 15% 20%, rgba(138, 164, 255, 0.18), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(126, 240, 209, 0.12), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(217, 183, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #060913 0%, #0a1020 46%, #060913 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.orbit-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orbit-field span {
  position: absolute;
  border: 1px solid rgba(138, 164, 255, 0.12);
  border-radius: 999px;
  animation: drift 18s ease-in-out infinite alternate;
}

.orbit-field span:nth-child(1) {
  width: 640px;
  height: 640px;
  top: -120px;
  right: -140px;
}

.orbit-field span:nth-child(2) {
  width: 420px;
  height: 420px;
  left: -110px;
  top: 240px;
  animation-duration: 24s;
}

.orbit-field span:nth-child(3) {
  width: 540px;
  height: 240px;
  left: 48%;
  bottom: -40px;
  animation-duration: 28s;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 18, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 30%, rgba(138,164,255,0.48), transparent 55%),
    linear-gradient(135deg, rgba(126,240,209,0.16), rgba(138,164,255,0.08));
  box-shadow: inset 0 0 20px rgba(138, 164, 255, 0.16), 0 0 18px rgba(138, 164, 255, 0.12);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark::before {
  content: "Ψ";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 1px), calc(-50% + 7px));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1;
  color: rgba(243, 248, 255, 0.92);
  text-shadow:
    0 0 4px rgba(215, 230, 255, 0.22),
    0 0 10px rgba(215, 230, 255, 0.08);
  z-index: 1;
  pointer-events: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(234,240,255,0.36);
  border-radius: 10px;
  z-index: 0;
}

.brand-text strong {
  display: block;
  font-size: 0.96rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a,
.icon-button,
.button,
.card-link,
.ping-target {
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(138, 164, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.icon-button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  min-height: 42px;
  min-width: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button:hover,
.button:hover,
.card-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, rgba(138,164,255,0.2), rgba(126,240,209,0.16));
  border-color: rgba(138,164,255,0.42);
}

.button.secondary {
  background: rgba(255,255,255,0.03);
}

.hero {
  padding: 5.25rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-2);
  border: 1px solid rgba(126,240,209,0.2);
  background: rgba(126,240,209,0.06);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero p.lead,
.section-copy,
.card p,
.list-card p,
.timeline p,
.contact-card p {
  color: var(--muted);
}

.hero p.lead {
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 60ch;
  margin: 1.25rem 0 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.interface-panel,
.card,
.list-card,
.timeline,
.contact-card,
.feature-callout,
.status-banner {
  background: linear-gradient(180deg, rgba(19, 28, 50, 0.7), rgba(10, 16, 31, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.interface-panel {
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-dots {
  display: flex;
  gap: 0.45rem;
}

.panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(234,240,255,0.16);
}

.panel-dots span:nth-child(1) { background: rgba(255, 144, 161, 0.7); }
.panel-dots span:nth-child(2) { background: rgba(255, 203, 119, 0.78); }
.panel-dots span:nth-child(3) { background: rgba(126, 240, 209, 0.8); }

.panel-label {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 0.9rem;
}

.interface-stack {
  display: grid;
  gap: 0.85rem;
}

.mock-card,
.mock-sidebar,
.mock-strip,
.mock-node {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.mock-card {
  min-height: 138px;
  padding: 1rem;
}

.mock-card::before,
.mock-sidebar::before,
.mock-strip::before,
.mock-node::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: translateX(-100%);
  animation: shimmer 7s linear infinite;
}

.mock-card strong,
.mock-sidebar strong,
.mock-node strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.mock-card span,
.mock-sidebar span,
.mock-node span,
.mock-strip span {
  color: var(--muted);
  font-size: 0.86rem;
  display: block;
  line-height: 1.55;
}

.mock-strip {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
}

.mock-sidebar {
  min-height: 100%;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.mock-node {
  padding: 0.85rem;
}

.section {
  padding: 1.25rem 0 4.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-copy {
  max-width: 62ch;
  line-height: 1.7;
}

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

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

.card,
.list-card,
.timeline,
.contact-card,
.feature-callout,
.status-banner {
  padding: 1.2rem;
}

.card h3,
.list-card h3,
.timeline h3,
.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.card p,
.list-card p,
.timeline p,
.contact-card p {
  margin: 0;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}

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

.compare-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.compare-list li {
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}

.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(138,164,255,0.45);
}

.status-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.timeline {
  min-height: 100%;
}

.timeline small,
.meta {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.inline-list span {
  display: inline-flex;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  font-size: 0.88rem;
}

.equation-surface {
  margin-top: 0.8rem;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  color: #111827;
  border-radius: 18px;
  padding: 1rem 0.9rem;
}

.equation-display {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.equation-line {
  display: block;
  white-space: nowrap;
}

.equation-line + .equation-line {
  margin-top: 0.28rem;
}

.footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes drift {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(14deg) scale(1.04); }
}

@media (max-width: 980px) {
  .hero-grid,
  .panel-grid,
  .grid-3,
  .grid-4,
  .grid-2,
  .compare-grid,
  .status-banner {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer-row,
  .nav-wrap {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 4rem;
  }

  .container {
    width: min(var(--max-width), calc(100% - 1.1rem));
  }

  .nav-wrap {
    padding: 0.7rem 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .brand {
    width: 100%;
  }

  .brand-text strong {
    font-size: 0.86rem;
  }

  .brand-text span {
    font-size: 0.74rem;
  }

  .nav-links,
  .hero-actions {
    width: 100%;
  }

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

  .nav-links a {
    padding: 0.5rem 0.3rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .header-actions {
    width: auto;
    align-self: flex-start;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .button {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .equation-surface {
    padding: 0.8rem 0.7rem;
  }

  .equation-display {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .equation-line {
    white-space: normal;
  }
}
