
:root {
  --bg: #14151B;
  --bg2: #111115;
  --bg3: #1C1D25;
  --bg4: #22232D;
  --teal: #5BCFC9;
  --teal-dim: #3A8F8A;
  --teal-glow: rgba(91,207,201,0.08);
  --teal-border: rgba(91,207,201,0.2);
  --white: #F0F0F0;
  --muted: #6B6D7A;
  --muted2: #9A9CAA;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --mono: 'Space Mono', monospace;
  --sans: 'Usual', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20,21,27,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0;
}

.nav-logo svg { height: 22px; width: auto; }

.nav-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(91,207,201,0.1);
  border: 1px solid var(--teal-border);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

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

.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.15s;
}

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

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #A8E6E4;
  background: rgba(12,255,212,0.12);
  border: 1px solid rgba(12,255,212,0.3);
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(12,255,212,0.20);
  border-color: rgba(12,255,212,0.5);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,207,201,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: #A8E6E4;
  background: rgba(12,255,212,0.07);
  border: 1px solid rgba(12,255,212,0.2);
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #A8E6E4;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 780px;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: #A8E6E4;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--muted2);
  max-width: 520px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
  font-weight: 300;
}

/* config block */
.config-block {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  text-align: left;
}

.config-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.config-dots {
  display: flex;
  gap: 6px;
}

.config-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border2);
}

.config-filename {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.copy-btn {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted2);
  background: none;
  border: 1px solid var(--border2);
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.04em;
}

.copy-btn:hover { color: var(--teal); border-color: var(--teal-border); }
.copy-btn.copied { color: var(--teal); border-color: var(--teal-border); }

.config-body {
  padding: 20px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted2);
  white-space: pre;
  overflow-x: auto;
}

.config-body .k { color: #7EFFF9; }
.config-body .v { color: #7ECFCB; }
.config-body .s { color: #5BCFC9; }
.config-body .c { color: var(--muted); }

.endpoint-body {
  padding: 28px 24px;
  font-size: 15px;
  white-space: normal;
  word-break: break-all;
  text-align: left;
}

.endpoint-url {
  font-family: var(--mono);
  color: #A8E6E4;
  letter-spacing: 0.01em;
}

.endpoint-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.hero-links a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.hero-links a:hover { color: var(--teal); }

/* ── SECTION SHARED ── */
section {
  padding: 100px 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #A8E6E4;
  background: rgba(12,255,212,0.07);
  border: 1px solid rgba(12,255,212,0.2);
  padding: 5px 12px; border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  max-width: 580px;
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--muted2);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── TERMINAL SECTION ── */
.terminal-section {
  padding: 100px 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.terminal-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.terminal-window {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #FF5F56; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #27C93F; }

.terminal-title {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.mode-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mode-badge.agent {
  color: var(--teal);
  background: rgba(91,207,201,0.1);
  border: 1px solid var(--teal-border);
}

.mode-badge.human {
  color: #A78BFA;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
}

.terminal-code {
  padding: 20px;
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
  color: var(--muted2);
  font-size: 11.5px;
}

.tc-prompt { color: var(--teal); }
.tc-key { color: #7EFFF9; }
.tc-val { color: #E2C97E; }
.tc-str { color: #7ECFCB; }
.tc-num { color: #0CFFD4; }
.tc-bool { color: #0CC2FF; }
.tc-null { color: var(--muted); }
.tc-box { color: var(--muted2); }
.tc-label { color: var(--muted2); }
.tc-dim { color: var(--muted); }
.tc-grn { color: #0CFFD4; }

.token-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.token-count span { color: var(--muted2); }

/* ── TOOLS MARQUEE ── */
.tools-section {
  padding: 100px 2rem;
}

.tools-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tools-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 30s linear infinite;
  margin-bottom: 12px;
}

.marquee-track.rev {
  animation-direction: reverse;
  animation-duration: 24s;
}

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

.tool-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  white-space: nowrap;
  transition: border-color 0.2s;
  cursor: default;
}

.tool-chip:hover {
  border-color: var(--teal-border);
}

.tool-chip-more {
  border-style: dashed;
  border-color: var(--border2);
  background: transparent;
  text-decoration: none;
  color: inherit;
}

.tool-chip-more .tool-name { color: var(--muted2); }
.tool-chip-more .tool-desc { color: var(--muted); }

.tool-chip-more:hover {
  border-color: var(--teal-border);
  background: var(--teal-glow);
}

.tool-icon-more {
  background: transparent;
  border: 1px dashed var(--border2);
  color: var(--muted2);
}

.tool-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}

.tool-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.tool-desc {
  font-size: 11px;
  color: var(--muted);
  max-width: 180px;
  white-space: normal;
  line-height: 1.4;
}

/* ── FEATURES GRID ── */
.features-section {
  padding: 100px 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg2);
  padding: 32px 28px;
  position: relative;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg3);
}

.feature-icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(91,207,201,0.08);
  border: 1px solid var(--teal-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.feature-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── INTEGRATIONS ── */
.integrations-section {
  padding: 100px 2rem;
}

.integrations-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.int-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.int-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
  cursor: default;
}

.int-row:hover { border-color: var(--border2); }

.int-logo {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted2);
  flex-shrink: 0;
  letter-spacing: 0;
}

.int-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  flex: 1;
}

.int-status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 3px;
}

.int-status.live {
  color: #0CFFD4;
  background: rgba(12,255,212,0.08);
  border: 1px solid rgba(12,255,212,0.2);
}

.int-status.soon {
  color: var(--muted);
  background: var(--bg4);
  border: 1px solid var(--border);
}

.int-group { margin-top: 28px; }
.int-group:first-of-type { margin-top: 36px; }

.int-group-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.int-group .int-list { margin-top: 0; }

/* architecture diagram */
.arch-diagram {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 78px 24px 20px;
  position: relative;
  margin-top: 296px;
}

.arch-title {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
}

.arch-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 216;
  max-width: 540px;
  margin: 0 auto;
}

.arch-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.arch-wire {
  fill: none;
  stroke: url(#wire-grad);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.arch-col-label {
  position: absolute;
  top: -22px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.arch-col-label-left  { left: 0; }
.arch-col-label-right { right: 0; }

.arch-node {
  position: absolute;
  width: 30%;
  height: 40px;
  top: calc(var(--row) / 216 * 100%);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white);
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 5px;
  letter-spacing: 0.02em;
  z-index: 2;
  transition: border-color 0.2s, background 0.2s;
}

.arch-node-src { left: 0; }
.arch-node-dst { right: 0; }

.arch-node:hover {
  border-color: var(--teal-border);
  background: rgba(91,207,201,0.06);
}

.arch-node-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}

.arch-hub {
  position: absolute;
  left: 40%;
  top: 40.74%;
  width: 20%;
  height: 18.52%;
  background: var(--bg3);
  border: 1px solid var(--teal-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 0 0 4px var(--bg3);
}

.arch-hub-label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.arch-hub-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.arch-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 7px;
  border: 1px solid var(--teal);
  opacity: 0;
  animation: arch-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes arch-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.22); }
}

/* ── CTA ── */
.cta-section {
  padding: 160px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(12,255,212,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(12,255,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 100%, black 30%, transparent 100%);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(12,255,212,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--sans);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--muted2);
  margin-bottom: 48px;
  font-weight: 300;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-block;
  background: rgba(12,255,212,0.12); color: #A8E6E4;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 6px;
  text-decoration: none; border: 1px solid rgba(12,255,212,0.3); cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: rgba(12,255,212,0.20);
  border-color: rgba(12,255,212,0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  color: var(--muted2);
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  padding: 10px 22px; border-radius: 6px;
  text-decoration: none;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s; letter-spacing: -0.01em;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .arch-diagram { padding: 36px 16px 16px; margin-top: 0; }
  .arch-node { font-size: 10px; height: 34px; padding: 0 8px; gap: 6px; }
  .arch-node-icon { width: 18px; height: 18px; font-size: 8px; }
  .arch-hub-label { font-size: 12px; }
}

@media (max-width: 768px) {
  .terminal-inner,
  .tools-header,
  .integrations-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  nav .nav-links { display: none; }
}
