:root {
  --primary: #533afd;
  --primary-active: #3a24d6;
  --primary-glow: #6f5cff;
  --ink: #ffffff;
  --body: #a8a8a8;
  --muted: #888888;
  --hairline: #222222;
  --hairline-strong: #333333;
  --canvas: #0f0f0f;
  --canvas-deep: #000000;
  --surface: #181818;
  --surface-elev: #222222;
  --ok: #33d17a;
  --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 9999px;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--body); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.02em; font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); padding: 10px 18px; font-size: 14px; font-weight: 500; font-family: var(--sans); cursor: pointer; border: 1px solid transparent; transition: background 0.12s, border-color 0.12s; }
.btn.lg { padding: 13px 24px; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-glow); }
.btn-outline { border-color: var(--hairline-strong); color: var(--ink); }
.btn-outline:hover { background: var(--surface); }
.btn-ghost { color: var(--body); }
.btn-ghost:hover { color: var(--ink); }

.pill { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.88px; color: var(--body); background: var(--surface-elev); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 5px 12px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; color: var(--ink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 clamp(16px, 5vw, 40px); background: rgba(15,15,15,0.72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 104px) clamp(16px, 5vw, 40px) clamp(40px, 6vw, 72px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.55; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side at 50% 40%, #000 55%, transparent); mask-image: radial-gradient(closest-side at 50% 40%, #000 55%, transparent); }
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(36px, 6.5vw, 72px); line-height: 1.04; margin: 20px 0 0; }
.grad { background: linear-gradient(90deg, var(--primary-glow), #b6acff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 660px; margin: 20px auto 0; font-size: clamp(15px, 2vw, 18px); line-height: 1.55; color: var(--body); }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* terminal mockup */
.terminal { max-width: 920px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--canvas-deep); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 16px; box-shadow: 0 0 0 1px rgba(111,92,255,0.06), 0 30px 80px -40px rgba(111,92,255,0.5); }
@media (max-width: 680px) { .terminal { grid-template-columns: 1fr; } }
.pane { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 14px 16px; text-align: left; min-height: 132px; }
.pane-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pane-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.pane-title { margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.pane pre { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--body); white-space: pre-wrap; }
.c-muted { color: var(--muted); } .c-key { color: #b6acff; } .c-str { color: #7fd6a3; }
.c-tool { color: var(--ink); } .c-ok { color: var(--ok); } .c-accent { color: var(--primary-glow); }

/* ---------- Bands ---------- */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 96px) clamp(16px, 5vw, 40px); border-top: 1px solid var(--hairline); }
.section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.88px; color: var(--primary-glow); margin-bottom: 12px; }
.band h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; max-width: 720px; }
.band-sub { margin: 12px 0 0; font-size: 16px; color: var(--body); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 26px; }
.step-n { width: 34px; height: 34px; border-radius: var(--r-md); background: rgba(83,58,253,0.16); color: var(--primary-glow); display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--mono); margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 28px; }
.ficon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface-elev); display: flex; align-items: center; justify-content: center; color: var(--primary-glow); margin-bottom: 18px; }
.ficon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }

/* ---------- Border glow (cursor-following) — ported from reactbits ---------- */
.feature, .step { position: relative; isolation: isolate; }
.feature > *, .step > * { position: relative; z-index: 1; }
/* glowing border ring masked to the 1.5px edge, centered on the cursor */
.feature::before, .step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--primary-glow), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none; z-index: 2;
}
/* faint inner spotlight following the cursor */
.feature::after, .step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 92, 255, 0.10), transparent 55%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none; z-index: 0;
}
.feature:hover::before, .step:hover::before,
.feature:hover::after, .step:hover::after { opacity: 1; }

/* integrations grid */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 36px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.logo-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); transition: border-color 0.12s, transform 0.12s; }
.logo-tile:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.logo-tile img { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-elev); padding: 5px; object-fit: contain; }
.logo-tile .fallback { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-elev); display: flex; align-items: center; justify-content: center; color: var(--primary-glow); font-weight: 700; }
.logo-tile span { font-size: 12px; color: var(--body); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--hairline); padding: clamp(64px, 10vw, 120px) 20px; text-align: center; }
.cta-glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 760px; height: 420px; background: radial-gradient(closest-side, rgba(83,58,253,0.22), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; }
.cta p { margin: 14px 0 28px; font-size: 17px; color: var(--body); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 40px clamp(16px, 5vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
.foot-meta { font-size: 13px; color: var(--muted); }
