:root {
  --paper: #F6F3EC;
  --paper-2: #EDE8DC;
  --ink: #14110F;
  --ink-2: #3B3631;
  --muted: #7A7268;
  --line: #DCD5C7;
  --accent: #FF5A1F;
  --accent-2: #FFD9C8;
  --lime: #C6F432;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; justify-content: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 0 -1px #B83A0C; }
.btn-accent:hover { box-shadow: 0 8px 0 -1px #B83A0C; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: var(--paper); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.link-quiet { font-weight: 500; color: var(--ink-2); }
.link-quiet:hover { color: var(--accent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }
.logo-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--accent); font-size: 15px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* mono tile */
.mono { display: inline-grid; place-items: center; border-radius: 28%; background: var(--c); color: var(--fg); font-family: var(--sans); font-weight: 700; letter-spacing: -0.3px; flex-shrink: 0; }

/* hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
h1 { font-size: clamp(44px, 6.4vw, 82px); line-height: .98; letter-spacing: -2.5px; font-weight: 700; margin: 22px 0 20px; }
h1 em { letter-spacing: -1px; }
.lede { font-size: 18.5px; color: var(--ink-2); max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

.mock { position: relative; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 10px 10px 0 var(--ink); overflow: visible; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 8px; }
.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; background: var(--paper); border-radius: 0 0 16px 16px; min-height: 330px; }
.mock-col h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.mock-col h6 b { background: var(--paper-2); border-radius: 6px; padding: 0 6px; color: var(--ink-2); }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; font-size: 12.5px; box-shadow: 0 1px 0 var(--line); }
.mcard p { font-weight: 500; line-height: 1.35; }
.mcard small { color: var(--muted); font-size: 11px; }
.mcard.done p { text-decoration: line-through; color: var(--muted); }
#flyCard { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-2); }
#flyCard.fly { animation: fly 0.7s cubic-bezier(.2,1.4,.4,1); }
@keyframes fly { from { opacity: 0; transform: translateY(-30px) scale(.9) rotate(-3deg); } to { opacity: 1; transform: none; } }
.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-bottom: 4px; }
.tag-ig { background: #FCE4EE; color: #B0124F; }
.tag-g { background: #EDE5FA; color: #5A2FA3; }
.tag-pri { background: var(--accent-2); color: #A33A0D; }
.flow-pill { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; box-shadow: 0 10px 30px rgba(20,17,15,.25); }
.fp-step { display: inline-flex; align-items: center; gap: 6px; opacity: .35; transition: opacity .3s; }
.fp-step.lit { opacity: 1; }
.fp-arrow { opacity: .4; }
.fp-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 11px; transform: scale(0); transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.fp-check.lit { transform: scale(1); }

/* marquee */
.marquee-sec { padding: 40px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee-label { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 50s linear infinite; padding-bottom: 16px; }
.marquee-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 14px; background: var(--paper); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: 110px 0; }
.sec-tint { background: var(--paper-2); }
.sec-dark { background: var(--ink); color: var(--paper); }
.sec-dark .sec-lede, .sec-dark .kicker { color: #B9B0A3; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -1.6px; font-weight: 700; margin-bottom: 20px; }
.sec-lede { font-size: 18px; color: var(--ink-2); max-width: 620px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.trio-card { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); padding: 28px; transition: transform .2s, box-shadow .2s; }
.trio-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.trio-accent { background: var(--accent); color: #fff; }
.trio-accent ul li::before { color: var(--ink) !important; }
.trio-ico { font-size: 28px; margin-bottom: 16px; }
.trio-card h3 { font-size: 26px; letter-spacing: -.5px; margin-bottom: 10px; }
.trio-card p { font-size: 15.5px; margin-bottom: 16px; opacity: .9; }
.trio-card ul { list-style: none; font-size: 14.5px; display: grid; gap: 6px; }
.trio-card ul li::before { content: "→ "; color: var(--accent); font-weight: 700; }

/* natural language */
.nl-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.checks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: #DCD4C8; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.checks code { font-family: var(--mono); font-size: 13px; background: #2A2520; padding: 2px 6px; border-radius: 5px; color: var(--lime); }
.nl-demo { background: #1E1A17; border: 1px solid #3B3631; border-radius: 18px; padding: 22px; min-height: 380px; }
.nl-input { font-family: var(--mono); font-size: 15px; background: #2A2520; border-radius: 10px; padding: 14px 16px; color: var(--paper); min-height: 76px; line-height: 1.6; }
.nl-prompt { color: var(--accent); margin-right: 8px; font-weight: 700; }
.caret { display: inline-block; width: 8px; height: 17px; background: var(--lime); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nl-flow { margin-top: 18px; display: grid; gap: 0; }
.nl-step { display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 12px 14px; opacity: 0; transform: translateY(8px); animation: rise .4s forwards; }
.nl-step small { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.nl-step b { font-size: 14.5px; }
.nl-link { width: 2px; height: 16px; background: #5A524A; margin-left: 30px; opacity: 0; animation: rise .3s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* database */
.db-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.db-grid .btn { margin-top: 26px; }
.db-visual { background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px; box-shadow: 10px 10px 0 var(--accent); }
.db-toggle { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.db-toggle button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font: 600 13px var(--sans); cursor: pointer; color: var(--ink-2); }
.db-toggle button.on { background: var(--ink); color: var(--paper); }
.db-stage { position: relative; min-height: 220px; }
.db-table { width: 100%; border-collapse: collapse; font-size: 14px; transition: opacity .35s, transform .35s; }
.db-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.db-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.p-lead { background: #E4EEFB; color: #1E5BB8; }
.p-prop { background: #FFF1C9; color: #8A6300; }
.p-won { background: #E1F7D5; color: #2D7A0F; }
.db-board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; opacity: 0; transform: scale(.96); pointer-events: none; transition: opacity .35s, transform .35s; }
.db-board h6 { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .6px; margin-bottom: 8px; }
.db-board > div { background: var(--paper); border-radius: 10px; padding: 10px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.dcard small { display: block; font-weight: 400; color: var(--muted); }
.db-stage.board .db-table { opacity: 0; transform: scale(.96); }
.db-stage.board .db-board { opacity: 1; transform: none; pointer-events: auto; }

/* recipes */
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.recipe { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.recipe:hover { border-color: var(--ink); transform: translateY(-3px); }
.recipe-icons { display: flex; align-items: center; gap: 6px; }
.recipe-icons .arr { color: var(--muted); font-size: 13px; }
.recipe h4 { font-size: 17px; letter-spacing: -.2px; line-height: 1.3; }
.recipe p { font-size: 14px; color: var(--muted); }

/* integrations */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 34px 0 22px; }
.cat-filter button { border: 1.5px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer; color: var(--ink-2); }
.cat-filter button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.integ { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; animation: rise .35s forwards; opacity: 0; transform: translateY(6px); }
.integ b { display: block; font-size: 14.5px; }
.integ small { color: var(--muted); font-size: 12px; }

/* math */
.math-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; margin-top: 44px; }
.math-col { border: 1px solid #3B3631; border-radius: 18px; padding: 30px; }
.math-h { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: #B9B0A3; margin-bottom: 18px; }
.math-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #3B3631; font-size: 16.5px; }
.math-line.total { border-bottom: 0; font-weight: 700; font-size: 20px; color: #FF8E66; text-decoration: line-through; text-decoration-thickness: 2px; }
.math-vs { font-family: var(--serif); font-style: italic; font-size: 44px; color: #7A7268; }
.math-kairo { background: var(--lime); color: var(--ink); border: 0; text-align: center; }
.math-kairo .math-h { color: var(--ink-2); }
.math-big { font-size: clamp(72px, 9vw, 110px); white-space: nowrap; font-weight: 700; letter-spacing: -6px; line-height: 1; }
.math-note { font-size: 12.5px; color: #7A7268; margin-top: 18px; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; margin-top: 44px; max-width: 860px; }
.price-card { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.badge { position: absolute; top: -13px; left: 28px; background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--ink); }
.plan { font-weight: 600; color: var(--ink-2); }
.price { font-size: 64px; font-weight: 700; letter-spacing: -2.5px; line-height: 1.1; margin: 6px 0; }
.price small { display: inline-block; white-space: nowrap; font-size: 18px; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.plan-sub { color: var(--muted); margin-bottom: 22px; }
.price-card ul { list-style: none; display: grid; align-content: start; gap: 10px; margin-bottom: 28px; flex: 1; font-size: 15px; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* faq */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 30px; }
.faq details { border-bottom: 1.5px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 700px; }

/* final */
.final { background: var(--accent); color: #fff; padding: 110px 0; }
.final-in { text-align: center; }
.final h2 { font-size: clamp(36px, 5.4vw, 68px); }
.final em { color: var(--ink); }
.final .btn-accent { background: var(--ink); box-shadow: 0 6px 0 -1px #000; }

.foot { background: var(--ink); color: #B9B0A3; padding: 40px 0 30px; font-size: 14px; }
.foot .logo { color: var(--paper); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot nav a:hover { color: var(--accent); }
.foot-legal { font-size: 12px; color: #6E665D; margin-top: 22px; }

/* responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .nl-grid, .db-grid { grid-template-columns: 1fr; gap: 56px; }
  .trio, .recipes { grid-template-columns: 1fr; }
  .math-row { grid-template-columns: 1fr; gap: 16px; }
  .math-vs { text-align: center; }
  .pricing { grid-template-columns: 1fr; }
  .sec { padding: 80px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-cta .link-quiet { display: none; }
  .mock-body { grid-template-columns: 1fr 1fr; }
  .mock-col:nth-child(3) { display: none; }
  .flow-pill { font-size: 11px; gap: 5px; padding: 8px 10px; }
  .flow-pill .mono { display: none; }
  .hero-ctas .btn { width: 100%; }
  .math-big { font-size: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .nl-step, .nl-link, .integ { opacity: 1; transform: none; }
}

.mono img { width: 58%; height: 58%; filter: brightness(0) invert(1); }
.mono.dark img { filter: brightness(0); }
