/* ─────────────────────────────────────────
   NEVER USE SPACE GROTESK — swap it out
   Using: IBM Plex Sans + Fira Code
   ───────────────────────────────────────── */

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

:root {
  --bg:        #080b12;
  --bg-2:      #0d1117;
  --bg-3:      #111827;
  --surface:   #161d2b;
  --border:    rgba(255,255,255,.07);
  --border-hi: rgba(91,210,255,.2);
  --text:      #e8edf5;
  --text-dim:  #8b96a8;
  --text-mute: #4a5568;
  --cyan:      #5bd2ff;
  --cyan-dim:  rgba(91,210,255,.08);
  --cyan-glow: rgba(91,210,255,.15);
  --green:     #4ade80;
  --amber:     #fbbf24;
  --red:       #f87171;
  --mono: 'Fira Code', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --radius: 10px;
}
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TOP NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3rem); height: 60px;
  background: rgba(8,11,18,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), #3b9eff);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; color: #080b12;
}
.nav-logo-name { font-size: .95rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.nav-logo-name span { color: var(--cyan); }
.nav-links { display: flex; gap: .25rem; list-style: none; }
.nav-links a {
  padding: .4rem .8rem; border-radius: 6px;
  font-size: .85rem; color: var(--text-dim); text-decoration: none;
  transition: all .15s;
}
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-actions { display: flex; gap: .75rem; align-items: center; }
.nav-link-plain { font-size: .85rem; color: var(--text-dim); text-decoration: none; transition: color .15s; }
.nav-link-plain:hover { color: var(--cyan); }
.btn-nav {
  padding: .45rem 1.1rem; border-radius: 7px;
  background: var(--cyan); color: #080b12;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: all .2s; white-space: nowrap;
}
.btn-nav:hover { background: #7adbff; }
.nav-version {
  font-family: var(--mono); font-size: .7rem; color: var(--text-mute);
  padding: .2rem .5rem; border: 1px solid var(--border); border-radius: 4px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 2rem 80px;
  position: relative; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4;
}
.hero-glow-1 {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,210,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: 10%; right: 10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,158,255,.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(91,210,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,210,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .3rem .9rem .3rem .55rem; border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(91,210,255,.05);
  font-family: var(--mono); font-size: .72rem; color: var(--cyan);
  letter-spacing: .04em; margin-bottom: 2rem;
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 600;
  line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.5rem;
  color: var(--text);
}
.hero h1 .hl { color: var(--cyan); }
.hero h1 .dim { color: var(--text-dim); }

.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.15rem); font-weight: 300;
  color: var(--text-dim); max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 9px;
  background: var(--cyan); color: #080b12;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: all .2s; box-shadow: 0 0 24px rgba(91,210,255,.2);
}
.btn-primary:hover { background: #7adbff; box-shadow: 0 0 36px rgba(91,210,255,.35); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 9px;
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: .95rem; text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

.hero-install {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .6rem 1.2rem; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-family: var(--mono); font-size: .8rem; color: var(--text-dim);
  cursor: pointer; transition: border-color .2s;
}
.hero-install:hover { border-color: var(--cyan); }
.hero-install .cmd { color: var(--green); }
.hero-install .copy-icon { font-size: .85rem; opacity: .5; }

/* ── BADGES ROW ── */
.badges-row {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-top: 1.5rem;
}
.badge {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .7rem;
  color: var(--text-mute); letter-spacing: .04em;
}
.badge span { color: var(--cyan); }

/* ── SECTION COMMON ── */
section { padding: 100px clamp(1.5rem, 6vw, 6rem); }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-family: var(--mono); font-size: .7rem; color: var(--cyan);
  letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: .8rem;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.1; margin-bottom: 1rem;
}
.section-lead { font-size: 1.05rem; color: var(--text-dim); line-height: 1.7; max-width: 560px; }

/* ── COMPARISON TABLE ── */
.compare-section { background: var(--bg-2); }
.compare-wrap { overflow-x: auto; margin-top: 3rem; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th {
  padding: 1rem 1.25rem; text-align: left;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  color: var(--text-mute); letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
th:first-child { color: var(--text-dim); }
th.savv-col { color: var(--cyan); }
td {
  padding: .9rem 1.25rem; font-size: .9rem; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
td:first-child { font-weight: 500; color: var(--text); font-size: .875rem; }
.check { color: var(--green); font-size: 1rem; }
.cross { color: var(--text-mute); font-size: .9rem; }
.warn  { color: var(--amber); font-size: .9rem; }
tr:hover td { background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: none; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 3rem;
}
.feature-card {
  background: var(--bg); padding: 2rem;
  transition: background .2s; position: relative; overflow: hidden;
}
.feature-card:hover { background: var(--surface); }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }
.feat-icon {
  font-family: var(--mono); font-size: .75rem; color: var(--cyan);
  background: var(--cyan-dim); border: 1px solid var(--border-hi);
  padding: .3rem .7rem; border-radius: 5px; display: inline-block;
  margin-bottom: 1.25rem; letter-spacing: .05em;
}
.feature-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: .6rem; color: var(--text); }
.feature-card p  { font-size: .875rem; color: var(--text-dim); line-height: 1.65; }

/* ── CODE DEMO ── */
.demo-section { background: var(--bg-2); }
.demo-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start; margin-top: 3rem;
}
.demo-points { display: flex; flex-direction: column; gap: 1.5rem; }
.demo-point { display: flex; gap: 1rem; align-items: flex-start; }
.demo-point-num {
  font-family: var(--mono); font-size: .7rem; color: var(--cyan);
  background: var(--cyan-dim); border: 1px solid var(--border-hi);
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .1rem;
}
.demo-point h4 { font-size: .9rem; font-weight: 500; margin-bottom: .3rem; }
.demo-point p { font-size: .85rem; color: var(--text-dim); line-height: 1.6; }
.code-block {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1rem; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: .7rem; color: var(--text-mute);
}
.code-dots { display: flex; gap: .4rem; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.cd-r{background:#ff5f57} .cd-y{background:#febc2e} .cd-g{background:#28c840}
.code-block pre {
  padding: 1.25rem; font-family: var(--mono); font-size: .8rem;
  color: var(--text-dim); line-height: 1.8; overflow-x: auto;
  white-space: pre;
}
.c-comment { color: var(--text-mute); }
.c-key     { color: var(--cyan); }
.c-str     { color: var(--green); }
.c-fn      { color: #c3a6ff; }
.c-num     { color: var(--amber); }

/* ── SIZE CALLOUT ── */
.size-callout {
  margin-top: 3rem; display: flex; justify-content: center;
}
.size-card {
  background: var(--bg-3); border: 1px solid var(--border-hi);
  border-radius: var(--radius); padding: 2rem 3rem;
  text-align: center; max-width: 480px; width: 100%;
}
.size-num {
  font-family: var(--mono); font-size: 3.5rem; font-weight: 500;
  color: var(--cyan); line-height: 1; display: block; margin-bottom: .5rem;
}
.size-label { font-size: .9rem; color: var(--text-dim); }
.size-sub { font-family: var(--mono); font-size: .75rem; color: var(--text-mute); margin-top: .5rem; }

/* ── USE CASES ── */
.use-cases-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 1rem; margin-top: 3rem;
}
.use-case {
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: flex-start; gap: .75rem;
  transition: border-color .2s;
}
.use-case:hover { border-color: var(--border-hi); }
.use-case-icon { font-size: 1.3rem; flex-shrink: 0; }
.use-case h4 { font-size: .875rem; font-weight: 500; margin-bottom: .25rem; }
.use-case p { font-size: .8rem; color: var(--text-mute); line-height: 1.5; }

/* ── CMS CALLOUT ── */
.cms-section { background: var(--bg-2); }
.cms-inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 4rem; align-items: center; margin-top: 3rem;
}
.cms-logos {
  display: flex; flex-direction: column; gap: 1rem;
}
.cms-logo-row {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; color: var(--text-dim);
}
.cms-logo-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ── QUICK START ── */
.qs-steps {
  display: flex; flex-direction: column; gap: .75rem;
  margin-top: 2.5rem; max-width: 600px;
}
.qs-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.qs-num {
  font-family: var(--mono); font-size: .72rem; color: var(--cyan);
  width: 24px; height: 24px; border-radius: 5px;
  background: var(--cyan-dim); border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qs-step code {
  font-family: var(--mono); font-size: .8rem; color: var(--green);
  background: rgba(74,222,128,.07); padding: .15rem .45rem; border-radius: 4px;
}
.qs-step p { font-size: .875rem; color: var(--text-dim); line-height: 1.5; }

/* ── CTA BANNER ── */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-2) 0%, #0a1220 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(91,210,255,.06), transparent 70%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.05rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  padding: 3rem clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 2rem;
}
.footer-brand p { font-size: .85rem; color: var(--text-mute); margin-top: .5rem; max-width: 260px; line-height: 1.6; }
.footer-cols { display: flex; gap: 4rem; }
.footer-col h5 { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1rem; font-family: var(--mono); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .85rem; color: var(--text-mute); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .8rem; color: var(--text-mute); font-family: var(--mono); }
.footer-bottom a { color: var(--cyan); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .demo-inner, .cms-inner { grid-template-columns: 1fr; }
  .footer-cols { gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-inner { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 1.5rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.hero-tag     { animation: fadeUp .5s ease both; }
.hero h1      { animation: fadeUp .5s .1s ease both; }
.hero-sub     { animation: fadeUp .5s .2s ease both; }
.hero-actions { animation: fadeUp .5s .3s ease both; }
.hero-install { animation: fadeUp .5s .38s ease both; }
.badges-row   { animation: fadeUp .5s .46s ease both; }