/* =====================================================================
   CODEPILOT — Premium AI Coding-Assistant Template
   Plain HTML5 + CSS3. No frameworks. Offline-ready (no external images).
   ---------------------------------------------------------------------
   REBRAND TIP: Change the look by editing the CSS variables in :root
   below. Swap --accent / --accent2 for your colors, adjust --bg / --surface
   for the dark shell, and update the font variables plus the Google Fonts
   <link> in each HTML file. Everything else cascades.
   ===================================================================== */

:root {
  /* --- Brand palette (edit these to rebrand) --- */
  --bg:        #0d1117;             /* page background (dark)            */
  --surface:   #161b22;            /* cards / raised surfaces           */
  --surface-2: #1c2430;           /* slightly lighter surface          */
  --ink:       #e6edf3;            /* primary text                      */
  --muted:     #8b949e;           /* muted / secondary text            */
  --accent:    #58a6ff;           /* primary accent (blue)             */
  --accent-d:  #388bfd;           /* darker blue for hovers            */
  --accent2:   #39d353;           /* secondary accent (green)          */
  --line:      rgba(255,255,255,.09); /* borders / dividers            */

  /* --- Syntax-highlight colors (code blocks) --- */
  --c-key:   #ff7b72;   /* keywords          */
  --c-fn:    #d2a8ff;   /* functions         */
  --c-str:   #a5d6ff;   /* strings           */
  --c-num:   #79c0ff;   /* numbers           */
  --c-com:   #8b949e;   /* comments          */
  --c-var:   #ffa657;   /* variables / props */
  --c-tag:   #7ee787;   /* tags / types      */
  --c-plain: #e6edf3;   /* plain text        */

  /* --- Fonts --- */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* --- Shape & motion --- */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --glow:      0 0 0 1px rgba(88,166,255,.25), 0 14px 40px rgba(88,166,255,.18);
  --ease:      .35s cubic-bezier(.4, 0, .2, 1);

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: 24px;
}

/* ---------------------------------------------------------------------
   RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1rem; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

code, pre { font-family: var(--font-code); }

/* ---------------------------------------------------------------------
   LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 92px 0; }
.section--soft { background: var(--surface); }
.section--tight { padding: 64px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-code);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.25);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(110deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .96rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #07101f;
  box-shadow: 0 8px 22px rgba(88,166,255,.28);
}
.btn-primary:hover { background: var(--accent-d); color: #07101f; box-shadow: 0 12px 30px rgba(88,166,255,.42); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn-light:hover { background: #fff; color: #07101f; }

.btn-sm { padding: 9px 16px; font-size: .86rem; }

/* ---------------------------------------------------------------------
   HEADER / NAV  (shared, identical IDs on every page)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(88,166,255,.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   CODE EDITOR / BLOCK VISUALS (pure CSS, syntax colored)
   --------------------------------------------------------------------- */
.code-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-code);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.code-dots { display: flex; gap: 7px; }
.code-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.code-dots i:nth-child(1) { background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }
.code-file {
  font-size: .8rem; color: var(--muted);
  margin-left: 6px;
}
.code-file .ext { color: var(--accent); }
.code-body {
  padding: 18px 20px;
  font-size: .9rem;
  line-height: 1.85;
  overflow-x: auto;
  counter-reset: ln;
}
.code-body .row {
  display: block;
  white-space: pre;
}
.code-body .row::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 1.6em;
  margin-right: 1.1em;
  color: rgba(139,148,158,.5);
  text-align: right;
  user-select: none;
}
/* token colors */
.kw  { color: var(--c-key); }
.fn  { color: var(--c-fn); }
.str { color: var(--c-str); }
.num { color: var(--c-num); }
.com { color: var(--c-com); font-style: italic; }
.var { color: var(--c-var); }
.tag { color: var(--c-tag); }
.pl  { color: var(--c-plain); }

/* AI ghost-text autocomplete suggestion */
.ghost {
  color: rgba(139,148,158,.55);
  font-style: italic;
  background: rgba(88,166,255,.06);
  border-radius: 3px;
  padding: 0 2px;
}
.cursor {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* AI suggestion chip overlay */
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: .78rem;
  color: var(--accent2);
  background: rgba(57,211,83,.1);
  border: 1px solid rgba(57,211,83,.3);
  border-radius: 999px;
  padding: 5px 12px;
}
.ai-chip .key {
  font-family: var(--font-code);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .72rem;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   HERO (home)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(88,166,255,.18), transparent 60%),
    radial-gradient(700px 520px at 0% 110%, rgba(57,211,83,.1), transparent 55%),
    var(--bg);
  padding: 84px 0 92px;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(700px 500px at 70% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(700px 500px at 70% 20%, #000 10%, transparent 70%);
  opacity: .6;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div strong {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.hero-meta div span { font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   EDITORS STRIP / TRUSTED-BY
   --------------------------------------------------------------------- */
.trusted { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trusted p { text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 40px;
}
.logo-strip span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--muted);
  opacity: .8;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: opacity var(--ease), color var(--ease);
}
.logo-strip span:hover { opacity: 1; color: var(--accent); }

/* ---------------------------------------------------------------------
   CARDS / GRIDS
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.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(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(88,166,255,.35); box-shadow: var(--glow); }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.2);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
}
.card-link span { transition: transform var(--ease); }
.card-link:hover span { transform: translateX(4px); }

/* Feature list (checks) */
.feature { display: flex; gap: 15px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #07101f;
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--font-code);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature p { margin-bottom: 0; font-size: .96rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   ALTERNATING FEATURE BLOCKS (features.html / index visual splits)
   --------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split + .split { margin-top: 72px; }
.split--reverse .split-media { order: 2; }

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.tag-row li {
  font-size: .8rem;
  font-family: var(--font-code);
  color: var(--accent);
  background: rgba(88,166,255,.08);
  border: 1px solid rgba(88,166,255,.2);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------
   HOW IT WORKS — steps
   --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.25);
  color: var(--accent);
  font-family: var(--font-code);
  font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: .94rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   STATS BAND
   --------------------------------------------------------------------- */
.stats-band {
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(88,166,255,.14), transparent 60%),
    radial-gradient(700px 400px at 85% 100%, rgba(57,211,83,.1), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  display: block;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { color: var(--muted); font-size: .94rem; }

/* ---------------------------------------------------------------------
   TESTIMONIALS
   --------------------------------------------------------------------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.quote-card .stars { color: #f0b429; margin-bottom: 14px; letter-spacing: 2px; }
.quote-card blockquote {
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.55;
}
.quote-author { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #07101f;
  font-family: var(--font-head);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.quote-author b { display: block; font-family: var(--font-head); color: var(--ink); }
.quote-author span { font-size: .86rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(88,166,255,.25), transparent 60%),
    radial-gradient(500px 400px at 5% 100%, rgba(57,211,83,.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 58px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   PAGE BANNER (inner pages)
   --------------------------------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% -20%, rgba(88,166,255,.16), transparent 60%),
    var(--surface);
  padding: 60px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { margin-bottom: 10px; }
.page-banner p { max-width: 640px; color: var(--muted); margin-bottom: 0; }
.breadcrumb {
  font-family: var(--font-code);
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; opacity: .6; }

/* ---------------------------------------------------------------------
   PRICING
   --------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(88,166,255,.5);
  box-shadow: var(--glow);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(110deg, var(--accent), var(--accent2));
  color: #07101f;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 999px;
}
.tier { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.tier-sub { color: var(--muted); font-size: .92rem; margin: 4px 0 18px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--ink); }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-note { font-size: .85rem; color: var(--muted); margin: 8px 0 22px; }
.price-card .btn { width: 100%; justify-content: center; margin-bottom: 24px; }
.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: .94rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.price-list li .ck {
  color: var(--accent2);
  font-weight: 700;
  flex: 0 0 auto;
}
.price-list li.off { color: var(--muted); }
.price-list li.off .ck { color: var(--muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 16px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
}
.faq h3 { font-size: 1.08rem; margin-bottom: 6px; }
.faq p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }

/* ---------------------------------------------------------------------
   DOCS PAGE
   --------------------------------------------------------------------- */
.docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.docs-nav {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.docs-nav h4 {
  font-family: var(--font-code);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .92rem;
  color: var(--muted);
  font-family: var(--font-head);
}
.docs-nav a:hover { background: var(--surface-2); color: var(--ink); }

.doc-block { margin-bottom: 56px; }
.doc-block:last-child { margin-bottom: 0; }
.doc-block h2 { font-size: 1.6rem; }
.doc-block p { color: var(--muted); }

.install-steps { counter-reset: step; display: grid; gap: 14px; margin: 22px 0; }
.install-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.install-steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.25);
  color: var(--accent);
  font-family: var(--font-code);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: .88rem;
}
.install-steps li b { color: var(--ink); }

/* terminal-style block */
.terminal {
  background: #010409;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--font-code);
  font-size: .9rem;
  line-height: 1.9;
  overflow-x: auto;
  margin: 18px 0;
}
.terminal .line { display: block; white-space: pre; }
.terminal .prompt { color: var(--accent2); }
.terminal .out { color: var(--muted); }
.terminal .flag { color: var(--c-var); }

.editor-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
}
.editor-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }

/* ---------------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(139,148,158,.7); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,166,255,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; }
.field .error-msg { color: #ff7b72; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff7b72; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(57,211,83,.1);
  border: 1px solid rgba(57,211,83,.4);
  color: var(--accent2);
  font-weight: 500;
}
.form-status.show { display: block; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .info-ic {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 10px; background: var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.2rem;
}
.info-row b { font-family: var(--font-head); color: var(--ink); display: block; }
.info-row span { font-size: .94rem; color: var(--muted); }
.info-row a { color: var(--accent); }

/* Map placeholder */
.map-placeholder {
  border-radius: var(--radius);
  min-height: 240px;
  background:
    linear-gradient(rgba(88,166,255,.05), rgba(88,166,255,.05)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 42px),
    var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  text-align: center;
  color: var(--muted);
}
.map-placeholder .pin { font-size: 2.3rem; }
.map-placeholder b { font-family: var(--font-head); color: var(--ink); display: block; }

/* ---------------------------------------------------------------------
   FOOTER (shared)
   --------------------------------------------------------------------- */
.site-footer {
  background: #0a0e14;
  color: var(--muted);
  padding: 60px 0 26px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.site-footer .brand { color: var(--ink); margin-bottom: 14px; }
.site-footer .brand:hover { color: var(--ink); }
.footer-about p { font-size: .94rem; color: var(--muted); max-width: 320px; }
.footer-col h4 {
  color: var(--ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; font-family: var(--font-code);
}
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .94rem; }
.footer-col a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 1rem;
  color: var(--ink);
}
.social a:hover { background: var(--accent); color: #07101f; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .87rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------------------------------------------------------------------
   SCROLL-REVEAL
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-io .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px var(--gutter) 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-card.featured { order: -1; }
  .stats-grid, .steps { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 44px 26px; }
}

@media (max-width: 460px) {
  .stats-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
}
