:root {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #abb7c9;
  --paper: #060914;
  --panel: #101827;
  --panel-strong: #152033;
  --line: rgba(184, 201, 230, 0.18);
  --cyan: #63d9ff;
  --green: #7de6ad;
  --gold: #f0c76d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  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(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(99, 217, 255, 0.16), transparent 30%),
    radial-gradient(circle at 12% 35%, rgba(125, 230, 173, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(184, 201, 230, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(184, 201, 230, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 20, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(99, 217, 255, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(99, 217, 255, 0.22), rgba(125, 230, 173, 0.16));
  box-shadow: 0 0 28px rgba(99, 217, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 64px);
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.8rem, 10vw, 8.4rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-lede {
  max-width: 800px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--cyan);
  color: #051018;
  border-color: rgba(99, 217, 255, 0.68);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.agent-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.96), rgba(8, 14, 25, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-title {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 12px;
  padding: 20px;
}

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

.stack-row span,
.stack-core {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.stack-core {
  min-height: 86px;
  background: linear-gradient(135deg, rgba(99, 217, 255, 0.22), rgba(125, 230, 173, 0.14));
  border-color: rgba(99, 217, 255, 0.55);
  font-size: 1.2rem;
}

.xprize-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.xprize-section {
  background:
    linear-gradient(135deg, rgba(99, 217, 255, 0.12), rgba(125, 230, 173, 0.06)),
    var(--panel-strong);
}

.xprize-section p:not(.eyebrow),
.contact-section p:not(.eyebrow) {
  margin: 36px 0 0;
  color: #d5deec;
  font-size: 1.1rem;
}

.xprize-section .eyebrow {
  color: var(--green);
}

.contact-section {
  background: rgba(16, 24, 39, 0.72);
}

@media (max-width: 980px) {
  .hero,
  .xprize-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

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