/* ==========================================================================
   Zyntent for AI Builders — landing styles
   ========================================================================== */

:root {
  --bg: #fbf8f4;
  --bg-tint: #f6f0e8;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #ece4d8;
  --line-2: #e0d5c6;

  --orange: #ff6a00;
  --orange-2: #ff8a1f;
  --amber: #ffa41b;
  --orange-soft: #fff1e4;
  --orange-soft-2: #ffe2c6;
  --orange-ink: #c2410c;
  --grad: linear-gradient(90deg, #ff6a00 0%, #ff9a00 50%, #ff7a3d 100%);

  --dark: #0c111d;
  --dark-2: #141a2b;
  --dark-line: #232b41;
  --code-ink: #dbe3f0;

  --green: #16a34a;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 48px -20px rgba(15, 23, 42, .18);
  --shadow-glow: 0 30px 80px -30px rgba(255, 106, 0, .45);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 24px;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--font-mono); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
/* Grid children may shrink below their content width (prevents horizontal overflow) */
.hero-grid > *, .split > *, .search-demo > *, .pricing > *, .faq-wrap > *, .stats-grid > * { min-width: 0; }
.center { text-align: center; display: flex; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  background-image: linear-gradient(180deg, #ff7a14 0%, #ff6a00 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(255, 106, 0, .8);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px -10px rgba(255, 106, 0, .95); transform: translateY(-1px); }

.btn-ghost { background: rgba(255, 255, 255, .85); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: #cdbfac; background: #fff; transform: translateY(-1px); }

.btn-dark-ghost { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn-dark-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }

.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 999px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none;
  background: var(--orange-soft); color: var(--orange-ink); border: 1px solid var(--orange-soft-2);
}

/* ---------- Header ---------- */
.nav-wrap { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 8px 0 16px;
  max-width: 1200px; width: calc(100% - 2 * var(--gutter));
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease;
}
.nav-wrap.scrolled .nav { box-shadow: 0 10px 30px -14px rgba(15, 23, 42, .22); }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--orange-ink); background: var(--orange-soft); border: 1px solid var(--orange-soft-2);
  padding: 3px 8px; border-radius: 999px;
}

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(15, 23, 42, .04); }
.nav-links a.active { color: var(--ink); background: var(--orange-soft); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

.burger {
  display: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 16px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

.mobile-menu {
  margin-top: 8px; width: calc(100% - 2 * var(--gutter));
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 8px; display: grid;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; border-radius: 14px; font-weight: 500; }
.mobile-menu a:hover { background: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--orange-soft); border: 1px solid var(--orange-soft-2);
  color: var(--orange-ink); font-size: 13.5px; font-weight: 500;
  transition: background-color .15s ease;
}
.eyebrow:hover { background: var(--orange-soft-2); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 0, .15); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.lead { margin-top: 22px; max-width: 540px; font-size: 18px; color: var(--ink-2); }
.lead strong { color: var(--ink); font-weight: 600; }

.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stack-chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.stack-chips li.hot { background: var(--ink); border-color: var(--ink); color: #fff; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-ctas.center { justify-content: center; }

.hero-proof { margin-top: 28px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.hero-proof li { display: flex; align-items: center; gap: 10px; }
.tick {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23ff6a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--orange-soft-2);
}

/* Hero demo */
.hero-demo { position: relative; }
.hero-glow {
  position: absolute; inset: -10% -6% -14% -6%; z-index: 0;
  background:
    radial-gradient(40% 45% at 70% 30%, rgba(255, 154, 0, .28), transparent 70%),
    radial-gradient(45% 50% at 30% 75%, rgba(255, 106, 0, .22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.chat-card {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 244, .7);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e5ddd1; }
.chat-title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 12px; font-weight: 600; color: var(--orange-ink);
  background: var(--orange-soft); border: 1px solid var(--orange-soft-2);
  padding: 4px 10px; border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--orange); opacity: 0; animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

.chat-body {
  height: 430px; padding: 20px 18px 8px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.msg {
  max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5;
  animation: pop .35s cubic-bezier(.2, .8, .2, 1) both;
}
.msg.user { align-self: flex-end; background: #ffd9b3; color: #3b1d06; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #f4efe8; color: var(--ink); border-bottom-left-radius: 6px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: #b8aa97; animation: blink 1.2s infinite both; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.intent-line {
  align-self: flex-start;
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--orange-ink);
  background: #fff; border: 1px dashed #ffc58f; border-radius: 10px; padding: 6px 10px;
  animation: pop .35s ease both;
}
.intent-line b { color: var(--ink); font-weight: 500; }
.bolt {
  width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z' fill='%23ff6a00'/%3E%3C/svg%3E") center / contain no-repeat;
}

.offers { display: grid; gap: 8px; }
.offer {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 12px 9px 9px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .25);
  animation: pop .4s cubic-bezier(.2, .8, .2, 1) both;
}
.offer:nth-child(2) { animation-delay: .12s; }
.offer:nth-child(3) { animation-delay: .24s; }
.thumb {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
}
.thumb svg { width: 22px; height: 22px; }
.t-product { background: linear-gradient(135deg, #fff1e4, #ffd9b3); color: var(--orange-ink); }
.t-coupon { background: linear-gradient(135deg, #e8f7ee, #c9eed8); color: #15803d; }
.t-deal { background: linear-gradient(135deg, #eef2ff, #d9e0ff); color: #4338ca; }
.t-merchant { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #334155; }
.offer-meta { min-width: 0; display: grid; gap: 1px; }
.offer-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.offer-title { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-price { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); text-align: right; white-space: nowrap; }
.offer-price.code { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: #15803d; background: #e8f7ee; border: 1px dashed #86d4a4; padding: 4px 7px; border-radius: 7px; }

.chat-input {
  margin: 8px 14px 14px; display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 6px 0 16px; border: 1px solid var(--line); border-radius: 14px;
  font-size: 14px; color: var(--muted); background: #fff;
}
#chat-input-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send-btn {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--orange); color: #fff; font-weight: 700;
}

.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.float-chip.show { opacity: 1; transform: none; }
.float-chip b { color: var(--ink); }
.chip-a { top: -20px; left: 32px; }
.chip-b { bottom: -20px; right: 32px; }
.coin {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #e8f7ee; color: #15803d; font-size: 11px; font-weight: 700;
}

/* Models marquee */
.models { margin-top: 64px; display: flex; align-items: center; gap: 24px; }
.models-label { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); }
.marquee {
  overflow: hidden; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #9a8e7e; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- Stats ---------- */
.stats { padding: 36px 0 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  padding: 0;
}
.stat { padding: 28px 28px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.stats .container.stats-grid { width: calc(100% - 2 * var(--gutter)); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-tint {
  background: linear-gradient(180deg, rgba(246, 240, 232, 0) 0%, rgba(246, 240, 232, .9) 12%, rgba(246, 240, 232, .9) 88%, rgba(246, 240, 232, 0) 100%);
}
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--orange-ink); letter-spacing: .02em; margin-bottom: 14px;
}
.section-head h2, .split-copy h2 { font-size: clamp(32px, 4.3vw, 54px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.section-head.left .btn { margin-top: 26px; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Checks list */
.checks { display: grid; gap: 10px; margin-top: 20px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23ff6a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Split (earnings) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Calculator */
.calc { padding: 30px; position: sticky; top: calc(var(--nav-h) + 28px); }
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calc-head h3 { font-size: 22px; font-weight: 600; }
.field { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.field label { font-size: 14.5px; color: var(--ink-2); }
.field output { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px; outline-offset: 6px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--amber) var(--p, 50%), #eee5d9 var(--p, 50%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--orange);
  box-shadow: 0 4px 12px -2px rgba(255, 106, 0, .5);
  transition: transform .15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--orange);
  box-shadow: 0 4px 12px -2px rgba(255, 106, 0, .5);
}

.calc-result { margin-top: 20px; display: grid; gap: 12px; }
.calc-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-mini div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.calc-mini span { font-size: 12px; color: var(--muted); }
.calc-mini b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.calc-mini.two { grid-template-columns: repeat(2, 1fr); }
.calc-big {
  border-radius: 18px; padding: 18px 20px; color: #fff; display: grid; gap: 2px;
  background: radial-gradient(120% 140% at 100% 0%, #ff9a00 0%, #ff6a00 45%, #e2560a 100%);
  box-shadow: 0 16px 36px -18px rgba(255, 106, 0, .9);
}
.calc-big span { font-size: 13px; opacity: .9; }
.calc-big b { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.calc-big small { font-size: 13.5px; opacity: .95; }
.fineprint { margin: 14px 0 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- Flow demo: prompt → agent → real output ---------- */
.idea-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.idea-tab {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.idea-tab:hover { border-color: #ffc58f; color: var(--ink); }
.idea-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.flow-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.step-label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px;
}
.step-label span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 700;
}
.flow-left .step-label + .prompt-card + .step-label { margin-top: 26px; }

.prompt-card {
  background: var(--dark); border: 1px solid var(--dark-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(12, 17, 29, .6);
}
.prompt-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--dark-2); border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono); font-size: 12px; color: #8b95ab;
}
.prompt-head .win-dots i { background: #2b3450; }
.prompt {
  margin: 0; padding: 16px 18px; min-height: 236px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--code-ink);
  white-space: pre-wrap; word-break: break-word;
}
.prompt::after { content: "▍"; color: var(--orange); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.agent-steps { display: grid; gap: 8px; }
.agent-steps li {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-size: 14.5px; color: var(--muted);
  transition: color .25s ease, border-color .25s ease;
}
.agent-steps li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-2); background: #fff center / 12px no-repeat;
  transition: background-color .25s ease, border-color .25s ease;
}
.agent-steps li.done { color: var(--ink); border-color: var(--orange-soft-2); }
.agent-steps li.done::before {
  border-color: var(--orange); background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.site-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.site-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-url {
  flex: 1; min-width: 0; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-body { padding: 16px; min-height: 560px; }
.site-query {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 14.5px; color: var(--ink);
}
.site-query svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.site-meta { min-height: 18px; margin: 10px 4px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--orange-ink); }
.site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.p-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  animation: pop .4s cubic-bezier(.2, .8, .2, 1) both;
}
.p-card:nth-child(2) { animation-delay: .07s; }
.p-card:nth-child(3) { animation-delay: .14s; }
.p-card:nth-child(4) { animation-delay: .21s; }
.p-img { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #c9b9a4; background: #f6f2ec; }
.img-fallback svg { width: 30px; height: 30px; }
.p-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.p-merchant { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.p-title, .p-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.p-title { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.p-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.p-price { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.p-skel {
  height: 250px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(90deg, #f6f2ec 0%, #fbf8f4 50%, #f6f2ec 100%) 0 0 / 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.site-coupon {
  margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1.5px dashed #86d4a4; background: #f1fbf5; border-radius: 14px;
  animation: pop .4s ease .3s both;
}
.site-coupon[hidden] { display: none; }
.site-coupon .thumb { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.site-coupon .thumb svg { width: 20px; height: 20px; }
.site-coupon b { display: block; font-size: 14px; }
.site-coupon small { display: block; font-size: 12.5px; color: var(--muted); }

/* real product images inside the hero chat */
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.thumb .img-fallback { background: transparent; color: var(--orange-ink); }
.thumb .img-fallback svg { width: 22px; height: 22px; }
.t-product { overflow: hidden; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--shadow-glow); border-color: var(--orange-soft-2); }
.b-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 106, 0, .7);
}
.b-icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 23px; font-weight: 600; }
.benefit p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* Segmented control (calculator mode) */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); flex: none; }
.seg button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .15s ease;
}
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.field[hidden] { display: none; }


/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.plan { padding: 34px; position: relative; overflow: hidden; border-color: #ffd2a8; box-shadow: var(--shadow), var(--shadow-glow); }
.plan::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-head h3 { font-size: 22px; font-weight: 600; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.price .cur { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--ink-2); align-self: flex-start; margin-top: 10px; }
.price b { font-family: var(--font-display); font-size: 76px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.price .per { color: var(--muted); font-size: 16px; margin-left: 6px; }
.plan-sub { margin-top: 10px; color: var(--ink-2); }
.plan .checks { margin: 24px 0 30px; }

.earn { padding: 34px; display: flex; flex-direction: column; }
.earn-plus {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #15803d;
  background: #e8f7ee; border: 1px solid #c9eed8; margin-bottom: 18px;
}
.earn h3 { font-size: 22px; font-weight: 600; }
.earn > p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.earn-figure {
  margin-top: 20px; padding: 16px 18px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line); display: grid; gap: 2px;
}
.earn-figure span { font-size: 12.5px; color: var(--muted); }
.earn-figure b { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: #15803d; }
.earn-figure small { font-size: 13px; color: var(--ink-2); }
.link-arrow { margin-top: 12px; font-weight: 600; font-size: 14.5px; color: var(--orange-ink); }
.link-arrow:hover { color: var(--orange); }
.earn hr { border: 0; border-top: 1px dashed var(--line-2); margin: 24px 0; width: 100%; }
.enterprise b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.enterprise p { margin: 6px 0 16px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--orange-soft-2); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 17.5px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23c2410c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--line); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 40px 0 112px; }
.final-inner {
  position: relative; overflow: hidden; text-align: center;
  background: var(--dark); border-radius: 36px; padding: 88px 32px;
  border: 1px solid var(--dark-line);
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  width: calc(100% - 2 * var(--gutter));
}
.final-glow {
  position: absolute; left: 50%; top: -40%; width: 70%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 106, 0, .45), transparent);
  filter: blur(30px); pointer-events: none;
}
.final-inner h2 { position: relative; color: #fff; font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.final-inner p { position: relative; margin-top: 18px; color: #aab3c5; font-size: 18px; }
.final-inner .hero-ctas { position: relative; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .55); padding: 44px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 12px; max-width: 420px; color: var(--muted); font-size: 14.5px; }
.footer-links { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.footer-links a:hover { color: var(--orange-ink); }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 20px;
  background: rgba(12, 17, 29, .94); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px rgba(12, 17, 29, .6);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sticky-cta.show { transform: none; }
.sticky-cta div { display: grid; line-height: 1.25; }
.sticky-cta b { font-family: var(--font-display); font-size: 17px; }
.sticky-cta span { font-size: 12.5px; color: #aab3c5; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  .hero-demo { max-width: 620px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .calc { position: static; }
  .flow-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
  .site-body { min-height: 0; }
  .benefits { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap .section-head { position: static; }
  .section { padding: 88px 0; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .hide-md { display: none; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  body { font-size: 15.5px; }
  .nav { height: 56px; padding: 0 6px 0 12px; }
  .brand-tag { display: none; }
  .hero { padding: 40px 0 24px; }
  .lead { font-size: 16.5px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .chat-body { height: 440px; padding: 16px 12px 6px; }
  .msg { font-size: 14px; max-width: 92%; }
  .float-chip { display: none; }
  .models { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 48px; }
  .marquee { width: 100%; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p, .section-lead { font-size: 16.5px; }
  .stack-chips li { font-size: 13.5px; padding: 6px 12px; }
  .idea-tabs {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px 24px; padding: 0 16px 2px;
  }
  .idea-tabs::-webkit-scrollbar { display: none; }
  .prompt { min-height: 0; font-size: 12px; padding: 14px; }
  .site-body { padding: 12px; }
  .site-grid { gap: 10px; }
  .p-body { padding: 8px 10px 10px; }
  .p-title { font-size: 13px; }
  .p-desc { font-size: 12px; }
  .benefit { padding: 24px; }
  .stat { padding: 22px 18px; }
  .calc { padding: 22px; }
  .calc-big b { font-size: 38px; }
  .plan, .earn { padding: 24px; }
  .price b { font-size: 64px; }
  .final-cta { padding: 16px 0 96px; }
  .final-inner { padding: 64px 20px; border-radius: 28px; }
  .footer { padding-bottom: 100px; }
  .sticky-cta { display: flex; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; }
  .stat:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .btn-sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
