/* ================================================================
   BRIGENT — "Control Room Terminal" Aesthetic
   Deep navy + teal/mint accent + dot-grid blueprint feel
   Fonts: Syne (display), IBM Plex Sans (body), JetBrains Mono (code)
   ================================================================ */

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

:root {
  --bg:         #060a14;
  --bg-surface: #0b1022;
  --bg-card:    #0f1528;
  --bg-raised:  #141c34;
  --border:     #1a2444;
  --border-hi:  #253360;
  --text:       #e8ecf4;
  --text-2:     #8d99b4;
  --text-3:     #566380;
  --mint:       #00e5a0;
  --mint-dim:   rgba(0,229,160,0.12);
  --mint-glow:  rgba(0,229,160,0.08);
  --blue:       #4f8efa;
  --amber:      #f5a623;
  --red:        #f45d5d;
  --green:      #2dd4a0;
  --max-w:      1120px;
  --r:          10px;
  --r-sm:       6px;
  --mono:       "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --display:    "Syne", sans-serif;
  --body:       "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--mint); text-decoration: none; transition: color .15s; }
a:hover { color: #5dffc8; }
code { font-family: var(--mono); }

/* === Dot Grid Background === */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(6,10,20,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo:hover { color: var(--mint); }
.logo-mark { color: var(--mint); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 7px 18px !important;
  background: var(--mint) !important;
  color: var(--bg) !important;
  border-radius: var(--r-sm);
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: opacity .15s, transform .15s !important;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-2);
  border-radius: 1px;
  position: absolute;
  left: 0;
}
.nav-toggle span:first-child { top: 2px; }
.nav-toggle span:last-child { bottom: 2px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding: 130px 0 40px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, var(--mint-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,160,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0,229,160,0); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-sub code {
  color: var(--mint);
  font-size: 0.92em;
  background: var(--mint-dim);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Waitlist form */
.wl-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.wl-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.92rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  min-width: 0;
}
.wl-input:focus { border-color: var(--mint); }
.wl-input::placeholder { color: var(--text-3); }

.btn-accent {
  background: var(--mint);
  color: var(--bg);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 0 24px rgba(0,229,160,0.15);
}
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 0 32px rgba(0,229,160,0.25); }
.btn-accent:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.wl-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.wl-note.ok { color: var(--green); }
.wl-note.err { color: var(--red); }

/* === Terminal === */
.hero-terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,229,160,0.05),
    0 8px 40px rgba(0,0,0,0.4),
    0 0 80px rgba(0,229,160,0.04);
}

.term-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  opacity: 0.8;
}
.term-dot.r { background: #f45d5d; }
.term-dot.y { background: #f5a623; }
.term-dot.g { background: #2dd4a0; }

.term-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.term-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
}

.term-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s, transform .35s;
}
.term-line.visible,
.term-line:first-child {
  opacity: 1;
  transform: translateY(0);
}
.term-line:first-child { opacity: 1; transform: none; }

.dim { color: var(--text-3); }

.step-icon {
  display: inline-block;
  width: 18px;
  text-align: center;
  margin-right: 4px;
  transition: color .2s;
}
.step-icon.pending { color: var(--text-3); }
.step-icon.done { color: var(--mint); font-weight: 700; }

.term-step { color: var(--text-2); }

.term-result { color: var(--mint); font-weight: 500; }
.url { text-decoration: underline; text-underline-offset: 3px; }

.term-line.cost { opacity: 0; }
.term-line.cost.visible { opacity: 1; }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 32px 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 100px;
}

.stat-val {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.5px;
}

.stat-key {
  font-size: 0.74rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* ================================================================
   SECTIONS — shared
   ================================================================ */
.sec {
  padding: 100px 0;
}

.sec-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-header {
  text-align: center;
  margin-bottom: 64px;
}

.sec-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.sec-header h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 16px;
}

.sec-desc {
  font-size: 1.02rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ================================================================
   PIPELINE (How It Works)
   ================================================================ */
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.pipe-step {
  flex: 1;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
}
.pipe-step:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 24px var(--mint-glow);
}

.pipe-icon {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 1px solid rgba(0,229,160,0.2);
}

.pipe-step h3 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pipe-step p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.6;
}

.pipe-connector {
  display: flex;
  align-items: center;
  padding-top: 36px;
  color: var(--text-3);
  flex-shrink: 0;
  width: 40px;
}
.pipe-connector svg { width: 100%; height: 20px; }

/* ================================================================
   ARCHITECTURE
   ================================================================ */
.arch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 40px;
}

.arch-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-box {
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: border-color .2s;
}

.arch-you {
  border-color: var(--border-hi);
}

.arch-brigent-box {
  background: var(--mint-dim);
  border-color: rgba(0,229,160,0.25);
  padding: 24px 36px;
}

.arch-label {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
}
.arch-brigent-box .arch-label { color: var(--mint); }

.arch-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 2px;
  font-family: var(--mono);
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.arch-arrow-svg { width: 80px; height: 20px; }
.arch-flow-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.prov {
  padding: 10px 20px;
  font-size: 0.84rem;
}
.prov em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-3);
  font-size: 0.76rem;
  margin-left: 6px;
}

.arch-foot {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-3);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================================================================
   CAPABILITIES
   ================================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.cap-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.cap-head {
  margin-bottom: 14px;
}

.cap-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--mint-dim);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,229,160,0.15);
}

.cap-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ================================================================
   USE CASES — Terminal Showcase
   ================================================================ */
.uc-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Featured hero card --- */
.uc-hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(0,229,160,0.06),
    0 8px 32px rgba(0,0,0,0.3);
}

.uc-term {
  border-right: 1px solid var(--border);
}

.uc-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.uc-term-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.uc-term-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
}

.uc-cmd {
  color: var(--text-2);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.uc-prompt {
  color: var(--mint);
  font-weight: 700;
  margin-right: 6px;
}

.uc-output {
  color: var(--text-3);
  line-height: 2.2;
}

.uc-check {
  color: var(--mint);
  font-weight: 700;
  margin-right: 4px;
}

.uc-live {
  display: inline-block;
  color: var(--mint);
  font-weight: 500;
  margin-top: 4px;
}

.uc-hero-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.uc-hero-info h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.uc-hero-info p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Infra tags — shared between hero and small cards */
.uc-infra {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.uc-infra-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--mint);
  background: var(--mint-dim);
  border: 1px solid rgba(0,229,160,0.15);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* --- Smaller cards grid --- */
.uc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.uc-card { width: calc(33.333% - 8px); }

.uc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.uc-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.uc-card-cmd {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-card-cmd .uc-prompt {
  font-size: 0.7rem;
}

.uc-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.uc-card p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.uc-card .uc-infra-tag {
  font-size: 0.62rem;
}

/* --- Use case responsive --- */
@media (max-width: 768px) {
  .uc-hero-card {
    grid-template-columns: 1fr;
  }
  .uc-term {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .uc-card { width: calc(50% - 6px); }
}

@media (max-width: 500px) {
  .uc-card { width: 100%; }
}

/* ================================================================
   CODE SHOWCASE
   ================================================================ */
.code-showcase {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.code-tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.code-tab:hover { color: var(--text-2); }
.code-tab.active {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.code-panel {
  display: none;
  padding: 24px;
  overflow-x: auto;
}
.code-panel.active { display: block; }

.code-panel pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-2);
}

.code-panel .kw { color: #c792ea; }
.code-panel .fn { color: #82aaff; }
.code-panel .st { color: var(--green); }
.code-panel .cm { color: var(--text-3); }

/* ================================================================
   INTEGRATION CARDS
   ================================================================ */
.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.int-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .2s;
  display: flex;
  flex-direction: column;
}
.int-card:hover { border-color: var(--border-hi); }

.int-featured {
  border-color: rgba(0,229,160,0.2);
  box-shadow: 0 0 40px var(--mint-glow);
}

.int-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-dim);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.int-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.int-card p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.int-install {
  margin-bottom: 16px;
}

.int-install code {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--mint);
}

.int-points {
  list-style: none;
  margin-top: auto;
}

.int-points li {
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.int-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ================================================================
   PRICING
   ================================================================ */
.price-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}

.price-main {
  border-color: rgba(0,229,160,0.2);
  box-shadow: 0 0 48px var(--mint-glow);
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.price-card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.price-card-head h3 { margin-bottom: 0; }

.price-badge {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--mint);
  background: var(--mint-dim);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.price-rows {
  display: flex;
  flex-direction: column;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(26,36,68,0.7);
}
.price-row:last-child { border-bottom: none; }

.price-tier-name {
  font-weight: 600;
  font-size: 0.88rem;
  min-width: 70px;
}

.price-tier-spec {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--mono);
}

.price-tier-cost {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mint);
  text-align: right;
  min-width: 80px;
}
.price-tier-cost small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-3);
}

.price-tier-cost.free {
  color: var(--text-2);
  font-weight: 500;
}

.price-footnote {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   API SURFACE
   ================================================================ */
.api-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.api-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}

.api-group h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.api-item {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-2);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-item em {
  font-style: normal;
  font-size: 0.66rem;
  color: var(--text-3);
  background: var(--bg-raised);
  padding: 1px 6px;
  border-radius: 3px;
}

.method {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
}
.method.post { background: rgba(0,229,160,0.1); color: var(--green); }
.method.get { background: rgba(79,142,250,0.1); color: var(--blue); }
.method.patch { background: rgba(245,166,35,0.1); color: var(--amber); }
.method.del { background: rgba(244,93,93,0.1); color: var(--red); }

/* ================================================================
   CTA
   ================================================================ */
.sec-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sec-cta::before {
  content: "";
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-wrap h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 14px;
}

.cta-wrap > p {
  font-size: 1.02rem;
  color: var(--text-2);
  margin-bottom: 36px;
}

.wl-form-lg {
  max-width: 460px;
  margin: 0 auto;
}

/* ================================================================
   FOOTER
   ================================================================ */
.foot {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.foot-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-3);
}

.foot-copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

.foot-links {
  display: flex;
  gap: 24px;
}
.foot-links a {
  font-size: 0.82rem;
  color: var(--text-3);
}
.foot-links a:hover { color: var(--text-2); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .wl-form { margin: 0 auto; }
  .wl-note { text-align: center; }

  .pipeline { flex-direction: column; gap: 0; }
  .pipe-connector {
    width: 20px; height: 32px;
    padding-top: 0;
    margin-left: 24px;
    transform: rotate(90deg);
  }

  .cap-grid,
  .int-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .price-layout { grid-template-columns: 1fr; }

  .arch { flex-direction: column; }
  .arch-flow { transform: rotate(90deg); margin: -4px 0; }
  .arch-providers { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    gap: 12px;
  }
  .nav-toggle { display: block; }

  .hero { padding: 110px 0 30px; }

  .wl-form { flex-direction: column; }
  .btn-accent { width: 100%; padding: 14px; }

  .cap-grid,
  .int-grid {
    grid-template-columns: 1fr;
  }

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

  .sec { padding: 64px 0; }

  .stats-row { justify-content: center; }
  .stat { min-width: 80px; }

  .foot-inner { flex-direction: column; gap: 12px; text-align: center; }
  .foot-left { flex-direction: column; gap: 6px; }
}

/* ================================================================
   SUBPAGES (about, privacy, faq, contact)
   ================================================================ */
.page-sec {
  padding-top: 120px;
}

.page-wrap {
  max-width: 720px;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.page-updated {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 40px;
}

.page-body {
  margin-top: 40px;
}

.page-body h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.page-body p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-body ul {
  list-style: none;
  margin-bottom: 16px;
}

.page-body ul li {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}

.page-body ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--mint);
}

.page-body code {
  background: var(--bg-raised);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--mint);
}

.page-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-cta {
  margin-top: 48px;
  text-align: center;
}

/* FAQ tabs */
.faq-tabs {
  display: flex;
  gap: 4px;
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px;
  max-width: 280px;
}

.faq-tab {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s;
}
.faq-tab:hover { color: var(--text-2); }
.faq-tab.active {
  background: var(--mint-dim);
  color: var(--mint);
}

.faq-section { display: none; }
.faq-section.active { display: block; }

.faq-notice {
  background: var(--mint-dim);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--mint);
  margin-bottom: 28px;
  font-family: var(--mono);
  line-height: 1.6;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Contact form */
.page-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-form {
  margin-top: 8px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.92rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--mint); }
.form-input::placeholder { color: var(--text-3); }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

select.form-input {
  cursor: pointer;
}

.contact-form .btn-accent {
  width: 100%;
  padding: 14px;
}

.contact-form .form-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
}
.contact-form .form-note.ok { color: var(--green); }
.contact-form .form-note.err { color: var(--red); }
