:root {
  --bg: #0b0f19;
  --bg-alt: #0e1424;
  --surface: #121a2e;
  --surface-2: #16203a;
  --border: #1f2b47;
  --text: #e7ecf5;
  --muted: #97a3bd;
  --brand: #38bdf8;
  --brand-2: #818cf8;
  --brand-3: #22d3ee;
  --ring: rgba(56, 189, 248, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #06111f;
  box-shadow: 0 10px 30px -12px var(--brand);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px var(--brand); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); background: rgba(56, 189, 248, 0.08); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; display: block; flex-shrink: 0; }
.footer-brand-top { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand-top .brand-logo { width: 34px; height: 34px; }
.brand-mark {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--brand);
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #06111f; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s 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); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; color: var(--muted); font-weight: 500; border-radius: 8px; }
.mobile-menu a.btn { color: #06111f; margin-top: 8px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.20), rgba(129, 140, 248, 0.10) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--brand-3), var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 660px; margin: 0 auto 34px; }
.lead strong { color: var(--text); }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; justify-content: center; gap: 44px; margin-top: 54px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* Code window */
.hero-code { max-width: 620px; margin: 60px auto 0; padding: 0 24px; }
.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.code-dots { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; background: #2a3550; }
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }
.code-window pre { padding: 22px; overflow-x: auto; }
.code-window code { font-family: var(--mono); font-size: 0.9rem; line-height: 1.75; color: var(--text); }
.c-key { color: var(--brand-2); }
.c-var { color: #f0abfc; }
.c-fn { color: var(--brand); }
.c-prop { color: var(--brand-3); }
.c-str { color: #86efac; }
.c-cmt { color: var(--muted); font-style: italic; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.16));
  color: var(--brand);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--brand); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 840px; margin: 0 auto; }
.chips li {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chips li:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-text .btn { margin-top: 10px; }
.about-points { list-style: none; display: grid; gap: 16px; }
.about-points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-points strong { font-size: 1.05rem; }
.about-points span { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 55%);
  pointer-events: none;
}
.cta-copy { position: relative; }
.cta-copy h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 10px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }
.footer-made span { font-family: var(--mono); color: var(--brand); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 28px; }
  .cta-box { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .chips li:hover { transform: none; }
}
