:root {
  --bg: #08111f;
  --bg-soft: #0d192b;
  --panel: #111f34;
  --panel-2: #14243b;
  --text: #f4f7fb;
  --muted: #9eabc0;
  --line: rgba(255,255,255,.10);
  --accent: #62e6b7;
  --accent-2: #75a7ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(64, 115, 205, .18), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(69, 213, 166, .10), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.nav {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(98,230,183,.45);
  border-radius: 12px;
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .08em;
  background: rgba(98,230,183,.06);
}
nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: .94rem; }
nav a:hover { color: var(--text); }
.nav-cta { color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }

.hero, .section, .cta, footer {
  width: min(calc(100% - 40px), var(--max));
  margin-left: auto;
  margin-right: auto;
}
.hero { padding: 110px 0 76px; }
.eyebrow, .section-heading span, .cta > span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
}
h1 {
  max-width: 950px;
  margin: 20px 0 24px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 720;
}
.hero-copy {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
}
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 11px;
  font-weight: 680;
  transition: transform .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: #06150f; }
.secondary { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.025); }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 78px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}
.signal-grid article { padding: 28px; background: rgba(12,24,41,.93); }
.signal-grid strong { display: block; color: var(--accent); font-size: 1.55rem; }
.signal-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: .92rem; }

.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 210px 1fr; gap: 34px; margin-bottom: 48px; }
.section-heading h2, .cta h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.comparison, .status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20,36,59,.9), rgba(12,24,41,.9));
}
.panel.accent { border-color: rgba(98,230,183,.32); box-shadow: inset 0 0 50px rgba(98,230,183,.035); }
.panel-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.panel h3 { margin: 12px 0 20px; font-size: 1.55rem; }
ul { margin: 0; padding-left: 20px; color: var(--muted); }
li + li { margin-top: 10px; }

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}
.flow-card { padding: 24px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.flow-card b { color: var(--accent); font-size: .72rem; }
.flow-card span { display: block; margin: 13px 0 7px; font-weight: 700; }
.flow-card small { color: var(--muted); line-height: 1.4; display: block; }
.arrow { align-self: center; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.principles article { padding: 25px; border-top: 1px solid var(--line); }
.principles h3 { margin: 0 0 10px; }
.principles p { margin: 0; color: var(--muted); }

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050b13;
  box-shadow: 0 28px 80px rgba(0,0,0,.25);
}
.terminal-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #0b1421; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #405068; }
pre { margin: 0; padding: 32px; overflow: auto; color: #dce8f8; font-size: clamp(.82rem, 2vw, 1rem); line-height: 1.8; }
.disclaimer { max-width: 800px; color: var(--muted); margin: 24px 0 0; }

.status-grid { grid-template-columns: repeat(3, 1fr); }
.status-tag { display: inline-block; margin-bottom: 22px; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.ready { color: var(--accent); background: rgba(98,230,183,.10); }
.next { color: var(--accent-2); background: rgba(117,167,255,.10); }
.limit { color: #f4bf75; background: rgba(244,191,117,.10); }

.cta {
  margin-top: 70px;
  margin-bottom: 70px;
  padding: 60px;
  border: 1px solid rgba(98,230,183,.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(98,230,183,.12), transparent 24rem),
    var(--panel);
}
.cta h2 { margin-top: 14px; }
.cta p { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer strong { color: var(--text); }
footer p { margin: 5px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .flow { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .principles, .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .brand span:last-child { display: none; }
  .hero { padding-top: 76px; }
  .signal-grid, .comparison { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; }
  footer { flex-direction: column; }
}


/* AGP WHITEPAPER SECTION */
.whitepaper-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.whitepaper-card {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.whitepaper-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.whitepaper-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.whitepaper-card p {
  max-width: 760px;
  line-height: 1.7;
}

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

.whitepaper-button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.whitepaper-button.primary {
  background: currentColor;
}

.whitepaper-button.primary {
  color: #111;
}

.whitepaper-button:hover {
  transform: translateY(-1px);
}

.demo-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-command {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.28);
}

.demo-command code {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

