@font-face {
  font-family: Outfit;
  src: url("../fonts/Outfit-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #fffdfb;
  --bg-muted: #f7f4f1;
  --bg-card: #fff;
  --ink: #121212;
  --ink-2: #5c5c57;
  --ink-3: #8a8680;
  --line: #ece8e4;
  --line-strong: #ddd6d0;
  --orange: #ff5a1f;
  --orange-2: #f97316;
  --orange-deep: #e24112;
  --ember: #fff1e8;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --radius: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(18, 18, 18, 0.08);
  --shadow-lg: 0 28px 70px rgba(226, 65, 18, 0.16);
  --max: 1160px;
  --nav-h: 70px;
  --font: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.announce {
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  color: #fff;
  font-size: 13px;
  font-weight: 560;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: -0.01em;
}
.announce a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 251, 0.84);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--nav-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  letter-spacing: -0.06em;
  font-size: 22px;
  flex-shrink: 0;
}
.logo-mark { width: 22px; height: 26px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links > a,
.drop > summary {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
}
.nav-links > a:hover,
.drop > summary:hover,
.nav-links > a.active {
  color: var(--ink);
  background: var(--ember);
}
.drop { position: relative; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  margin-bottom: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 280px;
  display: grid;
  gap: 2px;
}
.mega a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 620;
}
.mega a:hover { background: var(--ember); }
.mega small {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 450;
  margin-top: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.star {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
}
.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line-strong);
  width: 42px;
  height: 42px;
  border-radius: 11px;
  margin-left: auto;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
  border-radius: 1px;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  padding: 11px 18px;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 90, 31, 0.28);
}
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ember); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 36px 0 56px;
}
.hero-heat {
  position: absolute;
  inset: 0;
  background: url("../img/ember.svg") center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
.hero-heat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.promo {
  display: inline-flex;
  background: #fff;
  color: var(--orange-deep);
  border: 1px solid #ffd7c4;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 5px 8px;
  letter-spacing: 0;
}
.chip.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.chip.md { color: var(--orange-deep); background: var(--ember); border-color: transparent; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0 0 16px;
  font-weight: 750;
  max-width: 12ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 620;
  color: var(--orange);
}
.hero .lead {
  color: var(--ink-2);
  font-size: 1.15rem;
  margin: 0 0 26px;
  max-width: 36rem;
  font-weight: 450;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.setup-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.terminal {
  background: #161412;
  color: #efe8e2;
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: lift 6.5s var(--ease) infinite;
}
@keyframes lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.terminal-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3532;
}
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #b9aea6;
}
.demo-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.demo-tabs button {
  border: 0;
  background: transparent;
  color: #b9aea6;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
}
.demo-tabs button.active { background: #2a2522; color: #fff; }
.demo-row { display: flex; gap: 8px; }
.demo-row input {
  flex: 1;
  border: 1px solid #3a3532;
  background: #1e1b19;
  color: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  font-family: var(--mono);
  font-size: 12.5px;
}
.demo-row input:focus { border-color: var(--orange); }
.demo-out {
  margin-top: 12px;
  min-height: 148px;
  background: #0f0e0d;
  border-radius: 12px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: #ffd7c4;
  white-space: pre-wrap;
}
.demo-out.busy { opacity: 0.55; }
.demo-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8a8079;
  font-family: var(--mono);
}

.marquee-wrap { padding: 8px 0 40px; overflow: hidden; }
.marquee-wrap p {
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 520;
  margin: 0 0 18px;
}
.marquee-fade {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  display: flex;
  gap: 44px;
  animation: slide 30s linear infinite;
  width: max-content;
}
.logo-pill {
  color: #9a948e;
  font-weight: 750;
  letter-spacing: 0.04em;
  font-size: 15px;
  white-space: nowrap;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 28px 0 8px;
}
.trust-row article {
  text-align: center;
  padding: 16px 8px;
  border-top: 1px solid var(--line);
}
.trust-row strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}
.trust-row span { color: var(--ink-2); font-size: 13px; }

.section { padding: 92px 0; }
.section.muted { background: var(--bg-muted); }
.section.tight { padding: 72px 0; }
.eyebrow {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 12px;
  margin: 0 0 10px;
  font-weight: 500;
}
h1, h2, h3 { letter-spacing: -0.05em; line-height: 1.1; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin: 0 0 16px; font-weight: 750; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin: 0 0 18px; font-weight: 730; }
h3 { font-size: 1.2rem; margin: 0 0 8px; font-weight: 650; }
.lead { color: var(--ink-2); font-size: 1.125rem; max-width: 46rem; }
.note { font-size: 14px; color: var(--ink-2); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 168px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #ffd0b8;
}
.card .num {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 12px;
  margin-bottom: 12px;
  display: block;
}
.card p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
.card .new {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  background: var(--orange);
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  vertical-align: middle;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin: 48px 0;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.mock {
  background: #161412;
  color: #efe8e2;
  border-radius: 18px;
  padding: 20px;
  min-height: 240px;
  font-family: var(--mono);
  font-size: 12.5px;
  box-shadow: var(--shadow);
}
.mock .k { color: var(--orange-2); font-weight: 500; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
}
.tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
pre.block, .panel {
  background: #161412;
  color: #efe8e2;
  border-radius: 16px;
  padding: 16px 18px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
pre { margin: 0; white-space: pre-wrap; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  min-height: 180px;
}
.quote::before {
  content: "“";
  display: block;
  font-size: 42px;
  line-height: 1;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}
.quote p { margin: 0; color: var(--ink); font-size: 16px; font-weight: 520; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--orange);
  font-weight: 400;
  font-size: 22px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

.cta-band {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 90, 31, 0.55), transparent 42%),
    #121212;
  z-index: -1;
}
.cta-band h2 { color: #fff; margin-bottom: 22px; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 28px;
}
.footer h3 {
  font-size: 12px;
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
}
.footer a, .footer p {
  color: var(--ink-2);
  font-size: 14px;
  display: block;
  margin: 7px 0;
}
.footer a:hover { color: var(--ink); }
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}

.page-hero { padding: 56px 0 12px; }
.page-hero .lead { margin: 0 0 8px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.rec {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow);
  position: relative;
}
.plan .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-weight: 650;
}
.plan h3 {
  font-size: 13px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan .price {
  font-size: 2.2rem;
  letter-spacing: -0.06em;
  margin: 4px 0 8px;
  font-weight: 750;
  line-height: 1;
}
.plan ul { list-style: none; padding: 0; margin: 12px 0 22px; flex: 1; }
.plan li {
  margin: 10px 0;
  font-size: 14px;
  padding-left: 20px;
  position: relative;
  color: var(--ink-2);
}
.plan li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  left: 0;
  top: 7px;
}
.plan .btn { width: 100%; }
.plan input[type="range"] { width: 100%; accent-color: var(--orange); margin: 10px 0; }
.credits {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
}
.credits td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  font-size: 14px;
}
.credits td:last-child { font-family: var(--mono); color: var(--ink-2); text-align: right; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  min-height: 180px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.tile:hover { transform: translateY(-3px); border-color: #ffd0b8; }
.tile small { color: var(--ink-2); display: block; margin-top: 8px; font-size: 14px; }

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 36px 0 88px;
}
.side {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.side p {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 8px;
  font-weight: 650;
}
.side a {
  display: block;
  padding: 7px 8px;
  color: var(--ink-2);
  font-size: 14px;
  border-radius: 8px;
}
.side a:hover, .side a.active { color: var(--ink); background: var(--ember); }

.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post .meta { color: var(--ink-3); font-size: 13px; margin-top: 16px; }

.form { max-width: 560px; display: grid; gap: 14px; }
.form label { font-size: 14px; font-weight: 550; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  background: #fff;
  outline: none;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.16);
}
.prose { max-width: 720px; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }

.cookie {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 380px;
  background: var(--ink);
  color: #fff;
  padding: 16px 18px;
  border-radius: 16px;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.cookie[hidden] { display: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js [data-reveal].in { animation: rise 0.8s var(--ease) forwards; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
  }
  .mega { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 8px; min-width: 0; }
  .menu-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  .hero-grid, .split, .bento, .quotes, .plans, .cases, .docs-layout,
  .footer-grid, .trust-row, .posts {
    grid-template-columns: 1fr;
  }
  .split.reverse { direction: ltr; }
  .hero h1 { max-width: none; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .cookie { left: 12px; right: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .terminal, [data-reveal] {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
