:root {
  --bg: #ffffff;
  --bg-muted: #f6f7f8;
  --text: #17181a;
  --text-muted: #6b7076;
  --text-faint: #9a9ea3;
  --border: #e7e8ea;
  --card-bg: #ffffff;
  --chip-bg: #f2f3f4;
  --accent: #17181a;
  --accent-contrast: #ffffff;
  --glow: radial-gradient(60% 50% at 55% 20%, rgba(0,0,0,0.05), rgba(0,0,0,0) 70%);
  --shadow-card: 0 1px 2px rgba(16,18,20,0.04), 0 1px 1px rgba(16,18,20,0.03);
  --text-faint-dim: #64676a;
}

:root[data-theme="dark"] {
  --bg: #0c0d0e;
  --bg-muted: #131415;
  --text: #f2f3f4;
  --text-muted: #9a9ea3;
  --text-faint: #6b7076;
  --border: #232527;
  --card-bg: #141516;
  --chip-bg: #1a1b1d;
  --accent: #f2f3f4;
  --accent-contrast: #0c0d0e;
  --glow: radial-gradient(60% 50% at 55% 15%, rgba(255,255,255,0.06), rgba(255,255,255,0) 70%);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 1px 1px rgba(0,0,0,0.2);
  --text-faint-dim: #46494d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d0e;
    --bg-muted: #131415;
    --text: #f2f3f4;
    --text-muted: #9a9ea3;
    --text-faint: #6b7076;
    --border: #232527;
    --card-bg: #141516;
    --chip-bg: #1a1b1d;
    --accent: #f2f3f4;
    --accent-contrast: #0c0d0e;
    --glow: radial-gradient(60% 50% at 55% 15%, rgba(255,255,255,0.06), rgba(255,255,255,0) 70%);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 1px 1px rgba(0,0,0,0.2);
    --text-faint-dim: #46494d;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  height: 640px;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-sm .brand-logo { height: 26px; }

:root[data-theme="dark"] .brand {
  background: #fff;
  padding: 6px 14px;
  border-radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand {
    background: #fff;
    padding: 6px 14px;
    border-radius: 10px;
  }
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.btn-text {
  color: var(--text);
  padding: 8px 4px;
  font-size: 14px;
}
.btn-text:hover { color: var(--text-muted); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { opacity: .85; }

.btn-brand {
  position: relative;
  background-color: #fff;
  background-image: url('../assets/button_flow_bg.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 133px auto;
  color: #000;
  box-shadow: inset 0 0 0 2px #eee;
  padding-right: 54px;
  transition: transform .15s ease, opacity .15s ease;
}

.btn-brand:hover {
  transform: translateY(-1px);
}

.btn-brand:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-muted); }

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
}

.toggle-track {
  width: 34px;
  height: 18px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  display: inline-block;
}

.toggle-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .2s ease;
}

:root[data-theme="dark"] .toggle-thumb { transform: translateX(16px); }

.icon-sun, .icon-moon { flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.eyebrow-asterisk {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  -webkit-text-stroke: 0.6px currentColor;
  animation: eyebrow-spin 2.6s linear infinite;
}

@keyframes eyebrow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.eyebrow-cursor {
  display: inline-block;
  width: 9px;
  height: 12px;
  margin-left: 1px;
  background: var(--text-faint);
  animation: eyebrow-blink 1.2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes eyebrow-blink {
  0%, 100% { background-color: var(--text-faint); }
  50% { background-color: var(--text-faint-dim); }
}

.eyebrow-ellipsis {
  color: var(--text-faint);
}

.hero-left h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  font-weight: 400;
}

.hero-rotate {
  display: inline-block;
  color: var(--text-faint);
  transition: opacity 0.25s ease;
}

.hero-cta {
  display: flex;
  gap: 12px;
}

.hero-right p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 8px;
  max-width: 38ch;
}

/* Built for strip */
.built-for {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.built-for-label {
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
  white-space: nowrap;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}

.section-muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 48px;
}

.section-eyebrow {
  display: block;
  color: var(--text-faint);
  font-size: 15px;
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: 32px;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 500;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 20px;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 8px 0 32px;
}

.card-logo--sm {
  height: 32px;
}

.card-logo--xs {
  height: 26px;
}

.card-logo img {
  height: 100%;
  width: auto;
  display: block;
}

:root[data-theme="dark"] .card-logo {
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-logo {
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
  }
}

.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  border-top: 2px solid var(--border);
  padding-top: 20px;
}

.step-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.step h3 {
  font-size: 19px;
  margin: 12px 0 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* CTA banner */
.cta-banner {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-left h1 { font-size: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .section-head h2 { font-size: 26px; }
  .cta-banner { padding: 32px; }
}
