:root {
  --bg: #fafaf9;
  --bg-white: #ffffff;
  --dark: #0a0a0a;
  --dark2: #111111;
  --text: #171717;
  --muted: #6b7280;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --border: #e5e5e5;
  --border-dark: #2a2a2a;
  --code-bg: #161616;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  background: #f0f0ee;
  padding: 2px 6px;
  border-radius: 4px;
  color: #c2410c;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250,250,249,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-mark-sm {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
}

.logo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.logo-slash { color: var(--muted); font-weight: 400; margin: 0 2px; }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

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

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #222; }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,.3); }

.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: #ccc; }

.btn-outline-dark { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--dark); }

/* ── HERO ── */
.hero {
  background: var(--dark);
  padding: 80px 0 88px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  color: #fff;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255,255,255,.45);
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-footnote {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

/* Terminal */
.hero-terminal {
  background: var(--code-bg);
  border-radius: var(--radius);
  border: 1px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.terminal-bar {
  background: #1e1e1e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #2a2a2a;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-title {
  font-size: 12px;
  color: #555;
  font-family: 'SFMono-Regular', Consolas, monospace;
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 20px 22px;
}

.terminal-body pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.85;
  color: #d4d4d4;
  overflow-x: auto;
  white-space: pre;
}

.t-dim { color: #555; }
.t-label { color: #9ca3af; display: inline-block; width: 60px; }
.t-green { color: #4ade80; }
.t-cursor { animation: blink 1s step-end infinite; color: #d4d4d4; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── FACTS STRIP ── */
.facts-strip {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.facts-inner {
  display: flex;
  align-items: stretch;
}

.fact {
  flex: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.fact-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.fact-divider {
  width: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── FEATURES ── */
.features {
  padding: 96px 0;
  background: var(--bg);
}

.features-heading {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 72px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.feature-row:last-child { border-bottom: 1px solid var(--border); }

.feature-row-flip .feature-main { order: 2; }
.feature-row-flip .feature-aside { order: 1; }

.feature-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.feature-main h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.feature-main p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.feature-main p:last-child { margin-bottom: 0; }

.feature-main code {
  font-size: 13px;
}

/* Aside boxes */
.aside-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.aside-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}

.aside-spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.aside-spec:last-child { border-bottom: none; }
.aside-spec span:first-child { color: var(--muted); }
.aside-spec span:last-child { font-weight: 600; color: var(--text); }
.aside-spec .orange { color: var(--orange); }

.aside-code {
  background: var(--code-bg);
  border-color: #2a2a2a;
}

.aside-code pre {
  padding: 20px 22px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.8;
  color: #c9d1d9;
  overflow-x: auto;
  white-space: pre;
}

/* ── PRICING ── */
.pricing {
  background: var(--bg-white);
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.pricing-header {
  margin-bottom: 48px;
}

.pricing-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: var(--text);
}

.pricing-header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.65;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-featured {
  background: var(--dark);
  border-color: var(--dark);
}

.featured-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .5px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.pricing-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-card-featured h3 { color: rgba(255,255,255,.5); }

.price {
  font-size: 52px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 24px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.pricing-card-featured .price { color: #fff; }
.pricing-card-featured .price span { color: rgba(255,255,255,.35); }

.pricing-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-card li {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card li::before { content: "—"; color: var(--orange); font-weight: 700; flex-shrink: 0; }

.pricing-card-featured li { border-color: #2a2a2a; color: rgba(255,255,255,.5); }

.pricing-note {
  font-size: 13px;
  color: var(--muted);
}

/* ── FAQ ── */
.faq {
  padding: 88px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-inner { max-width: 720px; }

.faq h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item a { color: var(--orange); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta {
  background: var(--dark2);
  padding: 72px 0;
  border-top: 1px solid var(--border-dark);
}

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

.cta-inner h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.cta-inner p {
  font-size: 15px;
  color: rgba(255,255,255,.45);
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 44px 0;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.footer-left p {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: rgba(255,255,255,.85); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-flip .feature-main { order: 0; }
  .feature-row-flip .feature-aside { order: 0; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card-featured { grid-column: span 2; max-width: 420px; }
  .facts-inner { flex-direction: column; }
  .fact-divider { display: none; }
  .fact { padding: 20px 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { grid-column: span 1; max-width: none; }
  .nav-links { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
