/* CelDrive shared styles — enterprise polish pass */

:root {
  --bg: #060608;
  --bg-alt: #0e0e11;
  --bg-elev: #141418;
  --bg-stripe: #0a0a0d;
  --fg: #f5f5f7;
  --fg-mid: #b8b8c0;
  --fg-dim: #70707a;
  --accent: #00e676;
  --accent-bright: #00ff88;
  --accent-dim: #00b85f;
  --accent-glow: rgba(0, 230, 118, 0.18);
  --accent-glow-strong: rgba(0, 230, 118, 0.35);
  --border: #1f1f24;
  --border-bright: #2a2a30;
  --border-soft: #15151a;
  --code-bg: #08080a;
  --term-bar: #17171c;
  --term-dot-red: #ff5f57;
  --term-dot-yellow: #febc2e;
  --term-dot-green: #28c840;
  --container-max: 1200px;
  --container-tight: 900px;
  --radius: 10px;
  --radius-lg: 14px;
}

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

html, body { background: var(--bg); color: var(--fg); min-height: 100vh; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

code, pre, .mono {
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Monaco", monospace;
  font-feature-settings: "liga" 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-bright); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-tight { max-width: var(--container-tight); }

/* ---------- NAV ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(6, 6, 8, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
  flex-shrink: 0;
  margin-right: auto;
}
.logo-wordmark .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
}
.logo-wordmark .mark svg {
  width: 16px; height: 16px;
  color: var(--bg);
  stroke-width: 2.5;
}
.logo-wordmark .name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  flex-shrink: 0;
}
nav ul a {
  color: var(--fg-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.18s ease;
  letter-spacing: -0.003em;
}
nav ul a:hover { color: var(--fg); }
nav .nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.003em;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}
nav .nav-cta:hover {
  background: var(--accent-bright);
  box-shadow: 0 4px 12px var(--accent-glow-strong);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-glow-strong) 0%, var(--accent-glow) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  max-width: 520px;
}

.hero-left h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 24px 0 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-subline {
  font-size: 18px;
  color: var(--fg-mid);
  line-height: 1.6;
  margin: 20px 0 32px;
  font-weight: 400;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-demo {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero-demo h2 {
  font-size: 32px;
  font-weight: 600;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 95%);
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-mid);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.eyebrow .pulse {
  position: relative;
  width: 7px; height: 7px;
}
.eyebrow .pulse::before,
.eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow .pulse::after {
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 960px;
  color: var(--fg);
}
.hero h1 .accent {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero .tagline {
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--fg-mid);
  margin-top: 24px;
  max-width: 640px;
  line-height: 1.6;
}

.hero .cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero .cta .note {
  color: var(--fg-dim);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero .cta .note::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

/* ---------- TRUST BAR ---------- */

.trust-bar {
  margin-top: 64px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-dim);
}
.trust-bar .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-dim);
}
.trust-bar .items {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--fg-mid);
  font-weight: 500;
}
.trust-bar .items span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-bar .items span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 8px 32px var(--accent-glow-strong);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-bright);
}
.btn-secondary:hover {
  border-color: var(--fg-mid);
  background: var(--bg-elev);
  text-decoration: none;
}
.btn-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
  font-weight: 500;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- TERMINAL ---------- */

.terminal {
  margin-top: 44px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 860px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 80px -10px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02);
}
.terminal .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--border);
}
.terminal .bar .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal .bar .dot-r { background: var(--term-dot-red); }
.terminal .bar .dot-y { background: var(--term-dot-yellow); }
.terminal .bar .dot-g { background: var(--term-dot-green); }
.terminal .bar .title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: inherit;
  margin-right: 54px;
}
.terminal .body {
  padding: 22px 26px;
  font-family: "JetBrains Mono", "SF Mono", "Menlo", monospace;
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
}
.terminal .body .prompt { color: var(--fg-dim); user-select: none; }
.terminal .body .cmd { color: var(--accent); }
.terminal .body .out { color: var(--fg-dim); display: block; }
.terminal .body .out-ok { color: var(--accent); }
.terminal .body .out-warn { color: #febc2e; }

/* ---------- SECTIONS ---------- */

section {
  padding: 88px 0;
  position: relative;
}
section + section { border-top: 1px solid var(--border-soft); }
.section-stripe { background: var(--bg-stripe); }

h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: var(--fg);
}
h2 .accent {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-intro {
  color: var(--fg-mid);
  max-width: 680px;
  font-size: 16.5px;
  margin-bottom: 44px;
  line-height: 1.65;
}
h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--fg); letter-spacing: -0.01em; }

/* ---------- TABLE ---------- */

.table-wrap {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.015); }
th {
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-elev);
}
td code {
  background: var(--bg-elev);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Feature matrix — wide table, scrolls on mobile. Compact cells, center-aligned tier columns. */
.table-wrap:has(.feature-matrix) { overflow-x: auto; overflow-y: hidden; }
.feature-matrix { min-width: 860px; font-size: 14px; }
.feature-matrix th, .feature-matrix td { padding: 14px 16px; }
.feature-matrix thead th { text-align: center; }
.feature-matrix thead th:first-child { text-align: left; }
.feature-matrix tbody td { text-align: center; color: var(--fg-mid); }
.feature-matrix tbody td:first-child { text-align: left; color: var(--fg); }
.feature-matrix tbody tr td[colspan] { text-align: left; padding: 14px 18px; font-size: 13px; letter-spacing: 0.02em; }

/* ---------- HOW-IT-WORKS GRID ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(0, 230, 118, 0.02) 100%);
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.card p { color: var(--fg-mid); font-size: 14.5px; margin-top: 4px; line-height: 1.65; }

/* ---------- SECURITY SECTION ---------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.sec-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.sec-block-roadmap {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.03) 0%, var(--bg-alt) 60%);
  border-color: rgba(0, 230, 118, 0.25);
}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  padding: 5px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.sec-block-roadmap .sec-label {
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.06);
}
.sec-list {
  list-style: none;
}
.sec-list li {
  color: var(--fg-mid);
  font-size: 14.5px;
  line-height: 1.65;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.sec-list li:last-child { border-bottom: none; }
.sec-list li strong { color: var(--fg); font-weight: 600; }
.sec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--accent);
}
.sec-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 7px;
  height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.sec-block-roadmap .sec-list li::before {
  background: transparent;
  border-style: dashed;
}
.sec-block-roadmap .sec-list li::after { display: none; }
.sec-block-roadmap .sec-list li { padding-left: 28px; }
.sec-list code {
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ---------- PRICING ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.pricing-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
@media (min-width: 1100px) {
  .pricing-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.tier-enterprise {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-alt) 60%);
  border-color: var(--border-bright);
}
.tier-enterprise .price { font-size: 28px; }
.tier-enterprise .price .unit { font-size: 13px; }
.tier {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tier:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.05) 0%, var(--bg-alt) 50%);
  box-shadow:
    0 0 0 1px var(--accent),
    0 24px 72px -20px var(--accent-glow-strong);
}
.tier.featured::before {
  content: "Most popular";
  position: absolute;
  top: -11px; left: 30px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tier .name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mid); font-weight: 600; }
.tier .price { font-size: 42px; font-weight: 800; margin: 12px 0 4px; letter-spacing: -0.03em; }
.tier .price .unit { font-size: 14px; color: var(--fg-mid); font-weight: 400; letter-spacing: 0; }
.tier .desc { font-size: 13.5px; color: var(--fg-dim); margin-bottom: 22px; }
.tier ul { list-style: none; margin-top: 8px; flex-grow: 1; }
.tier li {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.tier li::after {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: 26px; justify-content: center; width: 100%; }
.pricing-fineprint {
  color: var(--fg-dim);
  font-size: 13px;
  margin-top: 28px;
  max-width: 700px;
  line-height: 1.65;
}
.pricing-fineprint + .pricing-fineprint { margin-top: 10px; }

/* ---------- FAQ ---------- */

.faq {
  margin-top: 40px;
  max-width: 820px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover { border-color: var(--border-bright); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .answer {
  padding: 0 24px 22px;
  color: var(--fg-mid);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-item .answer a { color: var(--accent); }

/* ---------- NOTIFY ---------- */

.notify {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.notify h3 { font-size: 26px; margin-bottom: 14px; }
.notify p {
  color: var(--fg-mid);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}
.notify form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.notify input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--fg);
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.15s ease;
}
.notify input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---------- FOOTER ---------- */

footer {
  padding: 56px 0 72px;
  color: var(--fg-dim);
  font-size: 13.5px;
  border-top: 1px solid var(--border-soft);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer .logo-wordmark { font-size: 16px; }
footer .links { display: flex; gap: 28px; }
footer a { color: var(--fg-mid); }
footer a:hover { color: var(--fg); }

/* ---------- CONTENT PAGES (terms, privacy, welcome) ---------- */

.content-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
.content-page .back-link { color: var(--fg-dim); font-size: 14px; margin-bottom: 24px; display: inline-block; }
.content-page .back-link:hover { color: var(--fg); text-decoration: none; }
.content-page h1 { font-size: 40px; margin-bottom: 8px; letter-spacing: -0.03em; font-weight: 800; }
.content-page h2 { font-size: 20px; margin: 40px 0 14px; color: var(--accent); font-weight: 600; }
.content-page .meta { color: var(--fg-dim); font-size: 14px; margin-bottom: 32px; }
.content-page p, .content-page li { color: var(--fg-mid); line-height: 1.75; }
.content-page ul, .content-page ol { padding-left: 22px; margin: 12px 0; }
.content-page li { margin-bottom: 8px; }
.content-page code {
  background: var(--bg-elev);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--accent);
  border: 1px solid var(--border);
}
.content-page .tldr {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 28px 0;
  color: var(--fg);
}

/* ---------- FADE-IN ON SCROLL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ANIMATED TERMINAL (hero typewriter) ---------- */

.terminal.term-animated .body { min-height: 220px; }
.term-animated .line { display: block; opacity: 0; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.2s ease; }
.term-animated .line.in { opacity: 1; transform: translateY(0); }
.term-animated .cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: term-blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--accent-glow-strong);
}
@keyframes term-blink { 50% { opacity: 0; } }

/* ---------- BEFORE / WITH PANELS + COUNTERS ---------- */

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.ba-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
}
.ba-panel.ba-before { border-color: var(--border); }
.ba-panel.ba-after {
  border-color: rgba(0, 230, 118, 0.3);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.035) 0%, var(--bg-alt) 70%);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.08), 0 24px 72px -30px rgba(0, 230, 118, 0.2);
}
.ba-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg-dim);
}
.ba-panel.ba-after .ba-label {
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.08);
}
.ba-panel ul { list-style: none; }
.ba-panel li {
  padding: 13px 0 13px 30px;
  color: var(--fg-mid);
  font-size: 14.5px;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.55;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ba-panel.in li { opacity: 1; transform: translateY(0); }
.ba-panel li:last-child { border-bottom: none; }
.ba-panel li strong { color: var(--fg); font-weight: 600; }
.ba-panel.ba-before li::before {
  content: "✕";
  position: absolute;
  left: 4px; top: 12px;
  color: #f87171;
  font-size: 14px;
  font-weight: 700;
}
.ba-panel.ba-after li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
/* stagger item reveals */
.ba-panel.in li:nth-child(1) { transition-delay: 0.05s; }
.ba-panel.in li:nth-child(2) { transition-delay: 0.15s; }
.ba-panel.in li:nth-child(3) { transition-delay: 0.25s; }
.ba-panel.in li:nth-child(4) { transition-delay: 0.35s; }
.ba-panel.in li:nth-child(5) { transition-delay: 0.45s; }

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.counter {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.counter::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.counter-row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}
.counter-pre {
  font-size: 22px;
  color: var(--fg-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.5);
  font-weight: 500;
}
.counter-arrow {
  color: var(--fg-dim);
  font-size: 18px;
}
.counter-val {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  min-width: 60px;
}
.counter-label {
  display: block;
  color: var(--fg-mid);
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.45;
}

/* ---------- ARCHITECTURE SVG ---------- */

.arch {
  margin-top: 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.arch svg { width: 100%; height: auto; display: block; max-width: 900px; margin: 0 auto; }
.arch .node rect {
  fill: var(--bg-elev);
  stroke: var(--border-bright);
  stroke-width: 1.5;
  rx: 10;
}
.arch .node.accent rect {
  fill: rgba(0, 230, 118, 0.08);
  stroke: var(--accent);
}
.arch .node text {
  fill: var(--fg);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.arch .node .sub {
  fill: var(--fg-dim);
  font-size: 10.5px;
  font-weight: 400;
}
.arch path.link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  opacity: 0.55;
}
.arch.in path.link {
  stroke-dashoffset: 0;
  animation: arch-draw 1.2s ease-out forwards;
}
.arch path.link { stroke-dashoffset: 300; }
.arch.in path.link:nth-child(1) { animation-delay: 0.2s; }
.arch.in path.link:nth-child(2) { animation-delay: 0.5s; }
.arch.in path.link:nth-child(3) { animation-delay: 0.8s; }
.arch.in path.link:nth-child(4) { animation-delay: 1.1s; }
@keyframes arch-draw { to { stroke-dashoffset: 0; } }
.arch .node {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.arch.in .node { opacity: 1; transform: translateY(0); }
.arch.in .node:nth-of-type(1) { transition-delay: 0.05s; }
.arch.in .node:nth-of-type(2) { transition-delay: 0.15s; }
.arch.in .node:nth-of-type(3) { transition-delay: 0.25s; }
.arch.in .node:nth-of-type(4) { transition-delay: 0.35s; }
.arch.in .node:nth-of-type(5) { transition-delay: 0.45s; }
.arch.in .node:nth-of-type(6) { transition-delay: 0.55s; }

/* ---------- LOGOS STRIP (integrations / tech-we-use) ---------- */

.logos-strip {
  margin-top: 44px;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.logos-strip .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 18px;
}
.logos-strip .items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  align-items: center;
}
.logos-strip .items span {
  color: var(--fg-mid);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
  cursor: default;
}
.logos-strip .items span:hover {
  opacity: 1;
  color: var(--accent);
}

/* ---------- COHORT / OUTCOME STORIES ---------- */

.cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.cohort-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cohort-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -20px var(--accent-glow-strong);
}
.cohort-quote {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 400;
}
.cohort-quote::before {
  content: "\201C";
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -6px;
}
.cohort-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.cohort-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg);
  font-size: 13px;
  flex-shrink: 0;
}
.cohort-who {
  font-size: 13.5px;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.3;
}
.cohort-ctx {
  color: var(--fg-dim);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

/* ---------- CARD POLISH (lift) ---------- */

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px -28px var(--accent-glow-strong);
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -20px rgba(0, 0, 0, 0.4);
}

/* ---------- SOFT SECTION TRANSITIONS ---------- */

.section-stripe {
  position: relative;
}
.section-stripe::before,
.section-stripe::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 1;
}
.section-stripe::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}
.section-stripe::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 100%);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  nav ul { gap: 16px; }
  nav ul a:not(.nav-cta) { display: none; }
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.025em; }
  .hero .tagline { font-size: 16.5px; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; justify-content: center; }
  .trust-bar { flex-direction: column; gap: 14px; align-items: flex-start; }
  section { padding: 56px 0; }
  h2 { font-size: 26px; }
  .terminal { max-width: 100%; }
  .terminal .body { font-size: 12.5px; padding: 16px; line-height: 1.7; }
  .content-page { padding: 32px 20px 72px; }
  .content-page h1 { font-size: 30px; }
  .notify { padding: 40px 24px; }
  .faq-item summary { padding: 16px 20px; font-size: 14px; }
}
