/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-dark: #0b1020;
  --bg-dark-2: #0f152b;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e6e8ef;
  --line-strong: #d3d7e0;
  --accent: #0ea5e9;
  --accent-2: #6366f1;
  --accent-grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 100%);
  --warm: #f97316;
  --ok: #10b981;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.18);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-grad);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
}
.brand-name { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.nav-links a { font-weight: 500; }
.nav-links .muted { color: var(--ink-3); }

.nav-cta { display: inline-flex; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 0.98rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1c2546 0%, #0b1020 100%);
  box-shadow: 0 6px 18px rgba(11, 16, 32, 0.25);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 30px rgba(11, 16, 32, 0.35); }

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink-3); }

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

.kbd {
  display: inline-block;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(99, 102, 241, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 22px 0 18px;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.13rem;
  color: var(--ink-2);
  line-height: 1.6;
}

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

.hero-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.hero-meta strong { color: var(--ink); font-weight: 700; }
.hero-meta .dot { opacity: 0.5; }

/* ---------- Product shot ---------- */
.product-shot {
  position: relative;
  padding: 16px 0 80px;
}
.product-shot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(960px, 92%);
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(34, 211, 238, 0.22) 0%,
    rgba(99, 102, 241, 0.16) 35%,
    transparent 70%
  );
  filter: blur(72px);
  z-index: 0;
  pointer-events: none;
}
.product-shot .container {
  position: relative;
  z-index: 1;
}
.shot-frame {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px -20px rgba(15, 23, 42, 0.45),
    0 60px 120px -30px rgba(99, 102, 241, 0.28);
}
.shot-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, #0c1123, #0a0e1d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shot-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.3);
}
.shot-dot:nth-of-type(1) { background: #ff5f57; }
.shot-dot:nth-of-type(2) { background: #febc2e; }
.shot-dot:nth-of-type(3) { background: #28c840; }
.shot-url {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: rgba(226, 232, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-caption {
  margin: 0;
  padding: 16px 20px;
  background: #0a0e1d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.88rem;
  color: rgba(226, 232, 255, 0.7);
}
.shot-caption-eyebrow {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
@media (max-width: 640px) {
  .shot-url { display: none; }
  .shot-caption { font-size: 0.82rem; padding: 14px 16px; }
  .shot-caption-eyebrow { display: block; margin: 0 auto 6px; }
}

/* ---------- Logo strip ---------- */
.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0;
}
.logos-inner { text-align: center; }
.logos-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 44px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 500;
  opacity: 0.85;
}

/* ---------- Pillars ---------- */
.pillars { padding: 88px 0 32px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pill-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.pillar h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pillar p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.pillar code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ---------- Section header ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.025em;
  margin: 14px 0 12px;
  font-weight: 800;
}
.section-header p {
  color: var(--ink-2);
  font-size: 1.04rem;
  margin: 0;
}

/* ---------- Features ---------- */
.features { padding: 88px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feature:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}
.feature h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- Advanced ---------- */
.advanced {
  padding: 96px 0;
  background:
    radial-gradient(1000px 600px at 100% 0%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg-dark);
  color: #e2e8f0;
}
.advanced .section-header h2 { color: #fff; }
.advanced .section-header p { color: #94a3b8; }
.advanced .eyebrow {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.2);
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.adv-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.adv-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}
.adv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.adv-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.adv-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.adv-card p {
  color: #cbd5e1;
  font-size: 0.96rem;
  margin: 0 0 10px;
}
.adv-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: #67e8f9;
}
.adv-stat {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
}
.adv-stat strong { color: #fff; }
.adv-stat a { color: #67e8f9; border-bottom: 1px dotted #67e8f9; }

/* ---------- Stack ---------- */
.stack { padding: 96px 0; }
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.stack-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.025em;
  margin: 14px 0 14px;
}
.stack-copy p {
  color: var(--ink-2);
  font-size: 1.04rem;
}
.stack-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.stack-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-2);
}
.stack-list li:last-child { border-bottom: 1px solid var(--line); }
.stack-list strong { color: var(--ink); }

.stack-code {
  background: var(--bg-dark-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.code-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: transparent;
  color: #94a3b8;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { color: #cbd5e1; }
.tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}
.code-block {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
}
.c-com { color: #64748b; font-style: italic; }
.c-pmt { color: #67e8f9; user-select: none; }
.c-str { color: #fbbf24; }

/* ---------- Pricing ---------- */
.pricing {
  padding: 96px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%) padding-box,
              var(--accent-grad) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 6px;
}
.price-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--ink-2);
  font-weight: 600;
}
.price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.price-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}
.price-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 96px 0;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  font-weight: 800;
}
.final-cta > .container > p {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin: 0 0 40px;
}
.final-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
}
.final-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.final-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.final-card.alt:hover { border-color: var(--accent-2); }
.final-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink-3);
}
.final-card h3 {
  margin: 4px 0 4px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.final-card p {
  margin: 0 0 12px;
  color: var(--ink-2);
}
.final-card code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
}
.final-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}
.final-card.alt .final-link { color: var(--accent-2); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 64px 0 24px;
}
.footer .brand-name { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 60px;
}
.foot-brand p {
  margin: 12px 0 0;
  max-width: 280px;
  font-size: 0.92rem;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.foot-cols h5 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.foot-cols a {
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  color: #94a3b8;
}
.foot-cols a:hover { color: #fff; }
.foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .advanced-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .final-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 64px 0 56px; }
  .pillars, .features, .advanced, .stack, .pricing, .final-cta { padding: 64px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
