/* ============================================================
   AETHER — Landing 2026
   Dark glass · Neon accents · Bento · Motion
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-elevated: #0a0c14;
  --bg-card: rgba(14, 17, 28, 0.72);
  --bg-card-solid: #0e111c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaf2;
  --text-muted: #8b92a8;
  --text-dim: #5c647a;
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --violet: #7c5cff;
  --violet-dim: rgba(124, 92, 255, 0.18);
  --emerald: #00e8a2;
  --emerald-dim: rgba(0, 232, 162, 0.15);
  --amber: #ffb020;
  --amber-dim: rgba(255, 176, 32, 0.15);
  --rose: #ff4d6a;
  --grad: linear-gradient(135deg, #00f0ff 0%, #7c5cff 50%, #00e8a2 100%);
  --grad-text: linear-gradient(105deg, #00f0ff 0%, #a78bfa 45%, #00e8a2 100%);
  --shadow-glow: 0 0 60px rgba(0, 240, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Syne", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.service__list a,
.cta__note a,
.cta__success a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 240, 255, 0.35);
  transition: border-color 0.2s;
}

.service__list a:hover,
.cta__note a:hover,
.cta__success a:hover {
  border-color: var(--cyan);
}
button, input { font: inherit; }
ul { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Ambient ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}

.bg-orb--cyan {
  width: 480px;
  height: 480px;
  background: var(--cyan);
  top: -120px;
  right: 10%;
  opacity: 0.12;
}

.bg-orb--violet {
  width: 560px;
  height: 560px;
  background: var(--violet);
  top: 40%;
  left: -180px;
  opacity: 0.14;
  animation-delay: -6s;
}

.bg-orb--emerald {
  width: 400px;
  height: 400px;
  background: var(--emerald);
  bottom: 10%;
  right: -100px;
  opacity: 0.08;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

main, .nav, .footer {
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.nav__wordmark,
.hero__title {
  font-family: var(--display);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 14px 24px; font-size: 15px; }

.btn--primary {
  background: linear-gradient(135deg, #00d4e0 0%, #6b4fff 100%);
  color: #05060a;
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4), 0 8px 32px rgba(124, 92, 255, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35), 0 12px 40px rgba(124, 92, 255, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
  color: var(--text);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo svg { width: 32px; height: 32px; display: block; }

.nav__wordmark {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--text);
}

@media (max-width: 560px) {
  .nav__wordmark {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 24px 48px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 240, 255, 0.06);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(0, 232, 162, 0.5);
  animation: pulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 232, 162, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 232, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 232, 162, 0); }
}

.hero__title {
  font-size: clamp(1.9rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 17, 28, 0.5);
  backdrop-filter: blur(16px);
}

.stat {
  text-align: center;
  padding: 8px;
}

.stat__value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Hero panel mock */
.hero__panel {
  max-width: 920px;
  margin: 0 auto;
  perspective: 1200px;
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(18, 22, 36, 0.95) 0%, rgba(10, 12, 20, 0.98) 100%);
  box-shadow:
    var(--shadow-glow),
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: rotateX(4deg);
  transition: transform 0.5s var(--ease);
}

.panel:hover { transform: rotateX(0deg); }

.panel__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.panel__dots {
  display: flex;
  gap: 6px;
}

.panel__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.panel__dots span:nth-child(1) { background: #ff5f57; }
.panel__dots span:nth-child(2) { background: #febc2e; }
.panel__dots span:nth-child(3) { background: #28c840; }

.panel__title {
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

.panel__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  font-family: var(--mono);
}

.panel__body { padding: 20px; }

.panel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.metric-card__label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-card__value--warn { color: var(--amber); }
.metric-card__value--ok { color: var(--emerald); }
.metric-card__value .unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.metric-card__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin: 8px 0 6px;
  overflow: hidden;
}

.metric-card__bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--rose));
  border-radius: 2px;
}

.metric-card__meta {
  font-size: 11px;
  color: var(--text-dim);
}

.panel__stream {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.stream-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--text-muted);
  border-radius: 6px;
  animation: streamIn 0.6s var(--ease) both;
}

.stream-line:nth-child(1) { animation-delay: 0.2s; }
.stream-line:nth-child(2) { animation-delay: 0.5s; }
.stream-line:nth-child(3) { animation-delay: 0.8s; }
.stream-line:nth-child(4) { animation-delay: 1.1s; }

.stream-line:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

@keyframes streamIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag--cyan { background: var(--cyan-dim); color: var(--cyan); }
.tag--violet { background: var(--violet-dim); color: #b4a0ff; }
.tag--emerald { background: var(--emerald-dim); color: var(--emerald); }
.tag--amber { background: var(--amber-dim); color: var(--amber); }

/* ---------- Trust ---------- */
.trust {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 0;
  text-align: center;
}

.trust__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  opacity: 0.55;
}

.trust__logos span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
}

.section--alt {
  position: relative;
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.03), transparent);
  pointer-events: none;
  z-index: -1;
}

.section--compact { padding: 40px 24px 80px; }

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section__head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  gap: 16px;
}

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

.bento-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.bento-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bento-card--accent {
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.08), rgba(124, 92, 255, 0.1));
  border-color: rgba(124, 92, 255, 0.3);
}

.bento-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  margin-bottom: 18px;
}

.bento-card__icon svg { width: 22px; height: 22px; }

.bento-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Services ---------- */
.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.06);
}

.service--featured {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 240, 255, 0.06));
  border-color: rgba(124, 92, 255, 0.35);
}

.service__badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--violet-dim);
  color: #c4b5ff;
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.service__num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.02em;
  padding-top: 4px;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
}

.service h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 720px;
}

.service__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.service__list li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}

/* ---------- Agents graph ---------- */
.agents-graph {
  position: relative;
  height: 420px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent--supervisor {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), inset 0 0 30px rgba(124, 92, 255, 0.15);
  animation: spin 20s linear infinite;
  background:
    conic-gradient(from 0deg, transparent 0%, rgba(0, 240, 255, 0.4) 10%, transparent 20%, transparent 50%, rgba(124, 92, 255, 0.4) 60%, transparent 70%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.agent__core {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(14, 17, 28, 0.95), rgba(20, 16, 40, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 50px rgba(124, 92, 255, 0.25);
}

.agent__core .agent__role {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.agent__core .agent__desc {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.agents-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.agent--node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 17, 28, 0.9);
  backdrop-filter: blur(12px);
  text-align: center;
  pointer-events: auto;
  transform: rotate(calc(var(--i) * 60deg)) translateY(-170px) rotate(calc(var(--i) * -60deg)) translateX(-50%);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.agent--node:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.15);
}

.agent--node .agent__role {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.agent--node .agent__tools {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.agent-features { margin-top: 8px; }

/* ---------- Architecture ---------- */
.arch-table {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
  background: var(--bg-card);
}

.arch-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr 0.9fr;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.arch-row:last-child { border-bottom: none; }

.arch-row--head {
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.arch-row--active {
  background: linear-gradient(90deg, rgba(0, 232, 162, 0.08), rgba(0, 240, 255, 0.04));
  color: var(--text);
  border-left: 2px solid var(--emerald);
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pill--ok {
  background: var(--emerald-dim);
  color: var(--emerald);
  border: 1px solid rgba(0, 232, 162, 0.3);
}

.pill--muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.tech-stack { margin-bottom: 40px; }

.tech-stack__title {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.tech-stack__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tech {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, background 0.25s;
}

.tech:hover {
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.06);
}

.tech__name {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.tech__role {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.code-block {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #070910;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.code-block__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.code-block__lang { color: var(--cyan); }

.code-block pre {
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.code-block .kw { color: #c792ea; }
.code-block .fn { color: #82aaff; }
.code-block .str { color: #c3e88d; }
.code-block .type { color: #ffcb6b; }
.code-block .cm { color: #546e7a; }

/* ---------- Channels ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.channel {
  display: block;
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
  min-height: 110px;
}

.channel:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
  background: rgba(0, 240, 255, 0.04);
}

.channel__n {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 8px;
  font-weight: 600;
}

.channel strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.channel p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--emerald));
  opacity: 0.4;
  border-radius: 2px;
}

.phase {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.phase:last-child { padding-bottom: 0; }

.phase__marker {
  position: absolute;
  left: -32px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase__marker span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  font-family: var(--mono);
}

.phase__content {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-left: 16px;
  transition: border-color 0.3s;
}

.phase__content:hover {
  border-color: rgba(124, 92, 255, 0.35);
}

.phase__meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--violet);
  font-family: var(--mono);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.phase__content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.phase__content p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.cta { padding-top: 60px; }

.cta__card {
  position: relative;
  padding: 64px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.3);
  background: linear-gradient(145deg, rgba(14, 17, 28, 0.9), rgba(20, 14, 40, 0.85));
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(124, 92, 255, 0.12);
}

.cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.cta__card h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 8px 0 16px;
  position: relative;
}

.cta__card > p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
}

.cta__form { position: relative; max-width: 640px; margin: 0 auto; }

.cta__fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.cta__fields input {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta__fields input::placeholder { color: var(--text-dim); }

.cta__fields input:focus {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.cta__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

.cta__success {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--emerald-dim);
  border: 1px solid rgba(0, 232, 162, 0.3);
  color: var(--emerald);
  font-size: 14px;
}

/* ---------- Docs strip ---------- */
.docs-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.docs-strip h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.docs-strip p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.docs-strip__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
  background: rgba(0, 0, 0, 0.3);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer__brand strong {
  display: block;
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 4px;
}

.footer__brand p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__cols h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer__cols a,
.footer__cols span {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer__cols a:hover { color: var(--cyan); }

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}

.footer__tagline {
  font-family: var(--mono);
  color: var(--text-dim);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .panel__grid { grid-template-columns: repeat(2, 1fr); }
  .bento--3 { grid-template-columns: 1fr; }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .tech-stack__grid { grid-template-columns: repeat(3, 1fr); }
  .agents-graph { height: auto; flex-direction: column; padding: 20px 0 40px; gap: 24px; }
  .agents-orbit {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 480px;
  }
  .agent--node {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }

  .nav__actions .btn--ghost { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__stats { padding: 16px; gap: 12px; }
  .stat__value { font-size: 1.5rem; }

  .panel { transform: none; }
  .panel__grid { grid-template-columns: 1fr 1fr; }
  .stream-line { flex-wrap: wrap; font-size: 10.5px; }

  .section { padding: 72px 20px; }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .service__num { font-size: 1.1rem; }
  .service__badge { position: static; display: inline-block; margin-bottom: 12px; }

  .arch-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }

  .arch-row--head { display: none; }

  .arch-row > div::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2px;
  }

  .channels { grid-template-columns: repeat(2, 1fr); }
  .tech-stack__grid { grid-template-columns: repeat(2, 1fr); }
  .bento--2 { grid-template-columns: 1fr; }

  .cta__card { padding: 40px 24px; }
  .cta__fields { grid-template-columns: 1fr; }
  .cta__fields .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .docs-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .panel__grid { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .agents-orbit { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-orb, .agent__ring, .pulse-dot, .stream-line { animation: none; }
}
