/* ============================================================
   ChengetAi Labs — Design System
   Building Africa's Intelligent Digital Infrastructure
   ============================================================ */

:root {
  /* Brand palette — African savanna: deep forest, emerald, sun gold */
  --bg: #060d0a;
  --bg-soft: #0a1510;
  --surface: #0e1a14;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --green: #22c55e;
  --emerald: #10b981;
  --gold: #f5b841;
  --amber: #f59e0b;
  --sky: #38bdf8;

  --text: #e9f2ec;
  --text-soft: #b7cabe;
  --text-dim: #86a091;

  --grad-brand: linear-gradient(96deg, #34d399 0%, #a3e635 55%, #f5b841 100%);
  --grad-card: linear-gradient(160deg, rgba(52, 211, 153, 0.12), rgba(245, 184, 65, 0.05));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 60px rgba(34, 197, 94, 0.18);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 72px;
  --header-bg: rgba(6, 13, 10, 0.78);
}

/* ---- Light theme (enterprise) ---- */
:root[data-theme="light"] {
  --bg: #f6f9f7;
  --bg-soft: #eef3f0;
  --surface: #ffffff;
  --card: rgba(6, 40, 24, 0.03);
  --card-hover: rgba(6, 40, 24, 0.06);
  --line: rgba(6, 40, 24, 0.10);
  --line-strong: rgba(6, 40, 24, 0.18);

  --green: #16a34a;
  --emerald: #059669;
  --gold: #c98a10;

  --text: #0d2018;
  --text-soft: #3c5347;
  --text-dim: #5f7568;

  --grad-card: linear-gradient(160deg, rgba(16, 185, 129, 0.10), rgba(201, 138, 16, 0.06));
  --shadow-glow: 0 0 60px rgba(16, 163, 74, 0.12);
  --shadow-card: 0 14px 40px rgba(13, 32, 24, 0.10);
  --header-bg: rgba(255, 255, 255, 0.82);
}

/* Follow the OS when the visitor hasn't chosen a theme */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f6f9f7; --bg-soft: #eef3f0; --surface: #ffffff;
    --card: rgba(6, 40, 24, 0.03); --card-hover: rgba(6, 40, 24, 0.06);
    --line: rgba(6, 40, 24, 0.10); --line-strong: rgba(6, 40, 24, 0.18);
    --green: #16a34a; --emerald: #059669; --gold: #c98a10;
    --text: #0d2018; --text-soft: #3c5347; --text-dim: #5f7568;
    --grad-card: linear-gradient(160deg, rgba(16, 185, 129, 0.10), rgba(201, 138, 16, 0.06));
    --shadow-glow: 0 0 60px rgba(16, 163, 74, 0.12);
    --shadow-card: 0 14px 40px rgba(13, 32, 24, 0.10);
    --header-bg: rgba(255, 255, 255, 0.82);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img, svg, canvas { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(34, 197, 94, 0.35); }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.container-wide { width: min(1360px, 94vw); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead { color: var(--text-soft); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 46em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-brand); border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; }
.logo .mark {
  width: 38px; height: 38px; flex-shrink: 0;
  background: url("../img/logo.svg") center / contain no-repeat;
  color: transparent; font-size: 0; /* hide the fallback letter */
  filter: drop-shadow(0 2px 12px rgba(52, 211, 153, 0.45));
}
.logo em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 10px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--card-hover); }
.nav-links a.active { color: var(--green); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 8px 10px; color: var(--text); cursor: pointer; font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-brand); color: #06130c;
  box-shadow: 0 6px 26px rgba(34, 197, 94, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(34, 197, 94, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; border-radius: 9px; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 90px;
  min-height: 92vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
#globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero-glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, transparent 62%);
  top: -300px; right: -220px;
}
.hero-glow-2 {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 65, 0.10) 0%, transparent 60%);
  bottom: -280px; left: -180px;
}
.hero-inner { position: relative; z-index: 2; }
.hero .lead { margin: 22px 0 34px; }
.hero-domains {
  display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 26px 0 6px;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-soft);
}
.hero-domains span { display: inline-flex; align-items: center; gap: 8px; }
.hero-domains span + span::before { content: "•"; color: var(--gold); margin-right: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; color: var(--text-soft); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.45);
  background: var(--card-hover);
  box-shadow: var(--shadow-card);
}
.card h3 { margin: 16px 0 10px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }

.card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--grad-card);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--green);
}
.card-link:hover { gap: 10px; }
.card-link { transition: gap 0.18s; }

.feature-list { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.feature-list li {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--text-soft); font-size: 0.93rem;
}
.feature-list li::before {
  content: "✓"; color: var(--green); font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}

.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(34, 197, 94, 0.12); color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.tag.gold { background: rgba(245, 184, 65, 0.1); color: var(--gold); border-color: rgba(245, 184, 65, 0.3); }
.tag.sky { background: rgba(56, 189, 248, 0.1); color: var(--sky); border-color: rgba(56, 189, 248, 0.3); }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 34px 0;
}
.stat { text-align: center; padding: 24px 12px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; }
.stat span { font-size: 0.86rem; color: var(--text-dim); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* ---------- Dashboard mockup ---------- */
.mock-window {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.mock-titlebar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-titlebar i:nth-child(1) { background: #f87171; }
.mock-titlebar i:nth-child(2) { background: #fbbf24; }
.mock-titlebar i:nth-child(3) { background: #34d399; }
.mock-titlebar span { margin-left: 10px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }
.mock-body { padding: 22px; }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px;
}
.metric label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); display: block; }
.metric b { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.metric .delta { display: block; font-size: 0.7rem; color: var(--green); }
.metric .delta.warn { color: var(--gold); }

.bar-track { height: 7px; background: rgba(255, 255, 255, 0.07); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--grad-brand); }

.mock-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.mock-table th {
  text-align: left; padding: 9px 12px; color: var(--text-dim);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em;
  border-bottom: 1px solid var(--line);
}
.mock-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.mock-table tr:last-child td { border-bottom: none; }
.mock-table .mono { font-family: var(--font-mono); font-size: 0.78rem; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status.ok { color: #34d399; } .status.ok::before { background: #34d399; box-shadow: 0 0 8px #34d399; }
.status.warn { color: var(--gold); } .status.warn::before { background: var(--gold); }
.status.off { color: #f87171; } .status.off::before { background: #f87171; }
.status.run { color: var(--sky); } .status.run::before { background: var(--sky); animation: pulse 1.4s infinite; }

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

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text); font-family: var(--font); font-size: 0.94rem;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.field select option { background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Radio platform picker (Deploy) ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform-option { position: relative; }
.platform-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.platform-option .opt-card {
  display: block;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 18px 16px; text-align: center; cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
  background: rgba(255, 255, 255, 0.02);
}
.platform-option .opt-card b { font-family: var(--font-display); display: block; font-size: 0.98rem; }
.platform-option .opt-card small { color: var(--text-dim); font-size: 0.75rem; }
.platform-option .opt-card .opt-ico { display: block; font-size: 1.5rem; margin-bottom: 8px; }
.platform-option .opt-card small { display: block; }
.platform-option input:checked + .opt-card {
  border-color: var(--green); background: rgba(34, 197, 94, 0.09);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); transform: translateY(-2px);
}

/* ---------- Terminal / console ---------- */
.console {
  background: #04100a; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 18px; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.8;
  min-height: 200px; max-height: 320px; overflow-y: auto;
}
.console .ln { white-space: pre-wrap; }
.console .ok { color: #34d399; }
.console .info { color: var(--sky); }
.console .warn { color: var(--gold); }
.console .dim { color: var(--text-dim); }
.console .err { color: #f87171; }

/* ---------- Copyable command line ---------- */
.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #04100a; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 12px 14px; margin: 10px 0;
}
.cmd code {
  font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-soft);
  white-space: nowrap; overflow-x: auto;
}
.cmd code::before { content: "$ "; color: var(--green); }
.copy-btn { flex-shrink: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 26px; display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.price-card:hover { transform: translateY(-5px); border-color: rgba(34, 197, 94, 0.4); }
.price-card.featured {
  border-color: var(--green);
  background: linear-gradient(170deg, rgba(34, 197, 94, 0.09), rgba(245, 184, 65, 0.04));
  box-shadow: var(--shadow-glow);
}
.price-card .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.price-card .plan-for { font-size: 0.84rem; color: var(--text-dim); margin: 4px 0 18px; }
.price-card .price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; }
.price-card .price small { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); }
.price-card .feature-list { margin: 20px 0 26px; flex: 1; }
.price-card .btn { margin-top: auto; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tab-btn {
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-strong);
  color: var(--text-soft); font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  transition: all 0.16s;
}
.tab-btn:hover { color: var(--text); border-color: var(--green); }
.tab-btn.active { background: var(--grad-brand); color: #06130c; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.4s ease; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid rgba(34, 197, 94, 0.35); border-radius: var(--radius-xl);
  padding: 70px 40px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(245, 184, 65, 0.14), transparent 55%),
    var(--surface);
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: var(--text-soft); max-width: 40em; margin: 0 auto 30px; }
.cta-banner .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 46px; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid ul a { font-size: 0.9rem; color: var(--text-soft); transition: color 0.15s; }
.footer-grid ul a:hover { color: var(--green); }
.footer-brand p { font-size: 0.9rem; color: var(--text-dim); margin-top: 14px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.82rem; color: var(--text-dim);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 76px) 0 64px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 75% -20%, rgba(34, 197, 94, 0.14), transparent 55%),
    radial-gradient(ellipse at 10% 110%, rgba(245, 184, 65, 0.08), transparent 50%);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin-top: 18px; }
.breadcrumb { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb b { color: var(--text-soft); font-weight: 500; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 800;
  color: var(--gold); letter-spacing: 0.1em;
}
.step h3 { font-size: 1.02rem; margin: 10px 0 8px; }
.step p { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Logos strip ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  padding: 26px 0; opacity: 0.85;
}
.logo-strip span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  color: var(--text-dim); letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Portal layout ---------- */
.portal-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-h)); padding-top: var(--header-h); }
.portal-side {
  border-right: 1px solid var(--line); background: var(--bg-soft);
  padding: 28px 16px; display: flex; flex-direction: column; gap: 4px;
}
.portal-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 0.91rem; font-weight: 500; color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.portal-side a:hover { background: var(--card-hover); color: var(--text); }
.portal-side a.active { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.portal-main { padding: 34px clamp(20px, 4vw, 46px); }
.portal-main h1 { font-size: 1.7rem; margin-bottom: 6px; }
.portal-sub { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 30px; }

/* ---------- Auth card ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) 20px 60px;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(34, 197, 94, 0.13), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(245, 184, 65, 0.09), transparent 50%);
}
.auth-card {
  width: min(430px, 100%);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl); padding: 40px 36px;
  box-shadow: var(--shadow-card);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card > p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 26px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 0.98rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green); font-size: 1.3rem; font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-soft); font-size: 0.93rem; }

/* ---------- Alert / toast ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text-soft); font-size: 0.9rem;
}
.notice.success { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .pricing-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(6, 13, 10, 0.98); border-bottom: 1px solid var(--line);
    padding: 14px 18px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-side { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .pricing-grid, .steps, .platform-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); min-height: auto; }
  .metric-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- ChengetAi Studio ---------- */
.studio-shell {
  display: grid; grid-template-columns: 250px 1fr;
  gap: 24px; align-items: start;
}
.studio-side {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 12px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.studio-side .side-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); padding: 6px 12px 8px;
}
.studio-side button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: 10px; border: none; background: none;
  font-family: var(--font); font-size: 0.92rem; font-weight: 500;
  color: var(--text-soft); cursor: pointer; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.studio-side button:hover { background: var(--card-hover); color: var(--text); }
.studio-side button.active { background: rgba(34, 197, 94, 0.12); color: var(--green); }

.studio-main {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); overflow: hidden;
}
.studio-topbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.studio-topbar h2 { font-size: 1.05rem; }
.studio-topbar .controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.studio-topbar select {
  padding: 8px 12px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--text); font-family: var(--font); font-size: 0.85rem;
}
.studio-topbar select option { background: var(--surface); }

.studio-body { padding: 20px; }
.studio-prompt {
  width: 100%; min-height: 110px; resize: vertical;
  padding: 14px 16px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  color: var(--text); font-family: var(--font); font-size: 0.95rem; line-height: 1.6;
}
.studio-prompt:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.studio-hint { font-size: 0.8rem; color: var(--text-dim); }

.studio-output { margin-top: 20px; }
.studio-output .console { max-height: 460px; }
.studio-output pre {
  background: #04100a; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 18px; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7;
  overflow: auto; max-height: 460px; white-space: pre-wrap; color: var(--text-soft);
}
.studio-output img {
  border-radius: var(--radius-md); border: 1px solid var(--line-strong);
  max-height: 520px; margin: 0 auto;
}
.file-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.file-tabs button {
  padding: 6px 12px; border-radius: 7px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-strong);
  color: var(--text-soft); font-family: var(--font-mono); font-size: 0.72rem;
}
.file-tabs button.active { border-color: var(--green); color: var(--green); background: rgba(34, 197, 94, 0.08); }

@media (max-width: 900px) {
  .studio-shell { grid-template-columns: 1fr; }
  .studio-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .studio-side .side-label { width: 100%; }
  .studio-side button { width: auto; }
}

/* ============================================================
   Enterprise components (redesign)
   ============================================================ */

/* Theme toggle */
.theme-toggle {
  background: none; border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 7px 10px; cursor: pointer;
  color: var(--text); font-size: 1rem; line-height: 1;
  display: inline-grid; place-items: center;
  transition: border-color 0.16s, color 0.16s;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.theme-toggle .icon-dark { display: none; }
:root[data-theme="light"] .theme-toggle .icon-dark { display: inline; }
:root[data-theme="light"] .theme-toggle .icon-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-dark { display: inline; }
  :root:not([data-theme]) .theme-toggle .icon-light { display: none; }
}

/* Enterprise hero */
.hero-ent {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 96px) 0 100px;
  border-bottom: 1px solid var(--line);
}
.hero-ent .container { position: relative; z-index: 2; }
.hero-ent-grid { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; }
.hero-ent .eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--text-soft);
  margin-bottom: 22px;
}
.hero-ent h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 15ch; }
.hero-ent .lead { margin: 22px 0 32px; font-size: clamp(1.05rem, 1.8vw, 1.32rem); }
.trust-row {
  margin-top: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px;
  font-size: 0.82rem; color: var(--text-dim);
}
.trust-row b { color: var(--text-soft); font-weight: 600; }

/* Module cards (Platform) */
.module-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.module-card:hover { transform: translateY(-4px); border-color: rgba(34,197,94,0.4); box-shadow: var(--shadow-card); }
.module-card .m-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; background: var(--grad-card); border: 1px solid rgba(52,211,153,0.25);
  margin-bottom: 16px;
}
.module-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.module-card p { font-size: 0.9rem; color: var(--text-soft); }
.module-shot {
  margin-top: 16px; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); background:
    repeating-linear-gradient(45deg, rgba(34,197,94,0.05) 0 10px, transparent 10px 20px), var(--bg-soft);
  height: 120px; display: grid; place-items: center;
  color: var(--text-dim); font-size: 0.75rem; font-family: var(--font-mono);
}

/* Feature grid (enterprise features) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature-cell { background: var(--bg); padding: 22px 20px; display: flex; gap: 12px; align-items: flex-start; transition: background 0.16s; }
.feature-cell:hover { background: var(--card-hover); }
.feature-cell .fc-ico { font-size: 1.2rem; }
.feature-cell b { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.feature-cell span { font-size: 0.82rem; color: var(--text-dim); }

/* Deployment cards */
.deploy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.deploy-card { text-align: center; padding: 28px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); transition: transform 0.2s, border-color 0.2s; }
.deploy-card:hover { transform: translateY(-4px); border-color: rgba(34,197,94,0.4); }
.deploy-card .d-ico { font-size: 2rem; margin-bottom: 12px; }
.deploy-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.deploy-card p { font-size: 0.85rem; color: var(--text-soft); }

/* Testimonials / success */
.quote-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.quote-card .q-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--green); line-height: 0.6; }
.quote-card p { font-size: 1.02rem; color: var(--text); margin: 14px 0 20px; }
.quote-card .q-who { display: flex; align-items: center; gap: 12px; }
.quote-card .q-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #06130c; font-weight: 800; }
.quote-card .q-who b { font-size: 0.9rem; } .quote-card .q-who span { font-size: 0.8rem; color: var(--text-dim); display: block; }

.metric-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.metric-band .mb { text-align: center; }
.metric-band .mb b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.metric-band .mb span { font-size: 0.85rem; color: var(--text-dim); }

/* Architecture diagram (placeholder) */
.arch-diagram {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); padding: 30px; overflow-x: auto;
}
.arch-layer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 12px; }
.arch-node {
  padding: 10px 16px; border-radius: 10px; font-family: var(--font-mono); font-size: 0.78rem;
  border: 1px solid var(--line-strong); background: var(--card); white-space: nowrap;
}
.arch-node.brand { background: var(--grad-card); border-color: rgba(52,211,153,0.35); color: var(--text); font-weight: 600; }
.arch-arrow { text-align: center; color: var(--text-dim); margin-bottom: 12px; }

/* Interactive industry cards */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind-card {
  position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; background: var(--card); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ind-card:hover { transform: translateY(-5px); border-color: rgba(34,197,94,0.45); box-shadow: var(--shadow-card); }
.ind-card .i-ico { font-size: 1.8rem; margin-bottom: 12px; }
.ind-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.ind-card p { font-size: 0.84rem; color: var(--text-soft); }
.ind-card .i-go { margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--green); }
.ind-card::after {
  content: ""; position: absolute; inset: 0; background: var(--grad-card); opacity: 0;
  transition: opacity 0.25s; z-index: -1;
}
.ind-card:hover::after { opacity: 1; }

/* Map placeholder */
.map-embed {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
  min-height: 240px; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px), var(--bg-soft);
  color: var(--text-dim); font-size: 0.9rem;
}

/* Nav dropdown (mega) kept simple */
.nav-cta .btn-primary.btn-sm { box-shadow: 0 4px 18px rgba(34,197,94,0.3); }

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .deploy-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid, .deploy-grid, .ind-grid, .metric-band { grid-template-columns: 1fr; }
}

/* ── Dare repository search bar ───────────────────────────── */
.dare-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 26px 0 4px;
}
.dare-search input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}
.dare-search input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.dare-search .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .dare-search { flex-direction: column; }
  .dare-search .btn { width: 100%; }
}
