/* Landing page: builds on the tokens in style.css. */

.l-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.75rem max(16px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.l-nav .links { display: flex; gap: 0.2rem; }
.l-nav .links a { color: var(--muted); text-decoration: none; padding: 0.35rem 0.65rem; border-radius: 6px; font-weight: 500; font-size: 0.92rem; }
.l-nav .links a:hover { color: var(--ink); background: var(--soft); }
.l-nav .spacer { flex: 1; }
@media (max-width: 860px) { .l-nav .links { display: none; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.l-section { padding: 5.5rem 0; }
.l-section.tight { padding: 3.5rem 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.78rem/1 "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.l-h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1rem; max-width: 22ch; }
.l-lead { font-size: 1.1rem; color: var(--muted); max-width: 58ch; line-height: 1.6; }

.btn-l {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-radius: 10px;
  font-weight: 650; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--panel);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-l:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.btn-l.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-l.small { padding: 0.45rem 0.85rem; font-size: 0.9rem; border-radius: 8px; }
.btn-l .arrow { transition: transform 0.15s; }
.btn-l:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero-l { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero-l::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-l::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -140px; top: -220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.hero-l h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 1.25rem; font-weight: 780; }
.hero-l h1 em { font-style: normal; color: var(--accent); }
.hero-l .l-lead { font-size: 1.18rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.audience { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.audience span { display: inline-flex; align-items: center; gap: 0.45rem; }
.audience b { color: var(--ink); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }

/* Live quote card */
.live {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.18), 0 0 0 1px color-mix(in srgb, var(--line) 50%, transparent);
  position: relative;
}
.live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; font-size: 0.85rem; }
.live-head .file { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--muted); }
.live-badge { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.75rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 0.2rem 0.55rem; border-radius: 999px; }
.live-part { background: var(--soft); border-radius: 10px; padding: 1rem; display: grid; place-items: center; aspect-ratio: 16 / 8; position: relative; overflow: hidden; }
.live-part svg { width: 100%; height: 100%; }
.live-part path { fill: none; stroke-linecap: round; }
.live-part .cut { stroke: var(--cut); stroke-dasharray: 1; stroke-dashoffset: 1; animation: lasercut 0.9s ease-in-out forwards; animation-delay: calc(var(--i) * 0.22s + 0.2s); }
.live-part .bend { stroke: var(--bend); stroke-dasharray: 0.03 0.02; opacity: 0; animation: fadein 0.5s ease forwards; animation-delay: 1.9s; }
@keyframes lasercut { 0% { stroke: var(--accent); } 80% { stroke: var(--accent); } to { stroke-dashoffset: 0; stroke: var(--cut); } }
@keyframes fadein { to { opacity: 1; } }
.live-specs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.8rem 0; }
.live-qty { display: flex; gap: 0.3rem; margin-left: auto; }
.live-qty button { padding: 0.2rem 0.6rem; font-size: 0.8rem; border-radius: 999px; }
.live-qty button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.live-offers { display: grid; gap: 0.45rem; }
.live-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: center; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; opacity: 0; transform: translateY(6px); animation: rise 0.45s ease forwards; animation-delay: calc(var(--i) * 0.12s + 2.1s); }
.live-offer.first { border-color: var(--accent); background: var(--accent-soft); }
.live-offer .who { font-weight: 600; font-size: 0.92rem; }
.live-offer .who small { color: var(--muted); font-weight: 400; }
.live-offer .p { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.05rem; text-align: right; }
.live-offer .d { color: var(--muted); font-size: 0.78rem; }
.live-offer.no { opacity: 0; border-style: dashed; }
.live-offer.no .p { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
@keyframes rise { to { opacity: 1; transform: none; } }
.live-foot { margin-top: 0.7rem; font-size: 0.78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.ticker { position: absolute; left: -1.4rem; top: 3.4rem; background: var(--ink); color: var(--bg); font-size: 0.78rem; padding: 0.45rem 0.7rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); opacity: 0; animation: rise 0.5s ease forwards 3.2s; }
@media (max-width: 960px) { .ticker { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .live-part .cut, .live-part .bend, .live-offer, .ticker { animation: none; stroke-dashoffset: 0; opacity: 1; transform: none; }
}

/* Stats strip */
.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div.s { padding: 1.4rem 1rem; border-left: 1px solid var(--line); }
.strip div.s:first-child { border-left: 0; }
.strip b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.strip span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 720px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip div.s:nth-child(3) { border-left: 0; } .strip div.s { border-top: 1px solid var(--line); } }

/* Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 0; position: relative; }
.timeline .t { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px dashed var(--line); }
.timeline .t:last-child { border-bottom: 0; }
.timeline .when { font: 600 0.8rem "JetBrains Mono", ui-monospace, monospace; color: var(--muted); padding-top: 0.15rem; }
.timeline .t.now .when { color: var(--accent); }
.timeline .what b { display: block; }
.timeline .what span { color: var(--muted); font-size: 0.92rem; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .vs { grid-template-columns: 1fr; } }
.vs .col { border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; background: var(--panel); }
.vs .col.new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.vs h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }
.vs .col.new h3 { color: var(--accent); }
.vs .big { font-size: 2.2rem; font-weight: 780; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.3rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.stepc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; position: relative; overflow: hidden; }
.stepc::before { counter-increment: step; content: "0" counter(step); font: 700 0.85rem "JetBrains Mono", ui-monospace, monospace; color: var(--accent); display: block; margin-bottom: 1.1rem; }
.stepc h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.stepc p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.stepc .vis { margin-top: 1.25rem; background: var(--soft); border-radius: 10px; padding: 0.9rem; font-size: 0.82rem; min-height: 7.5rem; display: grid; align-content: center; gap: 0.35rem; }
.mini-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.mini-row .k { color: var(--muted); }
.mini-row .v { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* Audiences */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .aud { grid-template-columns: 1fr; } }
.audc { border-radius: 20px; padding: 2rem; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.audc.shop { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.audc.shop .muted, .audc.shop li span { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.audc h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.audc .tag-l { font: 600 0.75rem "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.8rem; }
.audc ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.audc li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; }
.audc li .ic { width: 1.6rem; height: 1.6rem; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; }
.audc.shop li .ic { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.audc li b { display: block; }
.audc li span { color: var(--muted); font-size: 0.93rem; }
.audc .btn-l { align-self: flex-start; margin-top: auto; }
.audc.shop .btn-l:not(.primary) { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }

/* Pricing explanation */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.calc .row-c { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.calc .row-c:last-of-type { border-bottom: 0; }
.calc .row-c small { display: block; color: var(--muted); font-size: 0.8rem; }
.calc .row-c .a { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc .tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 2px solid var(--ink); }
.calc .tot b { font-size: 1.5rem; letter-spacing: -0.02em; }
.facts { display: grid; gap: 1.2rem; margin-top: 1.75rem; }
.facts > div { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.9rem; }
.facts .n { font: 700 1rem "JetBrains Mono", ui-monospace, monospace; color: var(--accent); }
.facts b { display: block; margin-bottom: 0.15rem; }
.facts span { color: var(--muted); font-size: 0.95rem; }

/* Agents */
.agents { background: #101113; color: #ececec; border-radius: 24px; padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: center; position: relative; overflow: hidden; }
.agents::after { content: ""; position: absolute; width: 500px; height: 500px; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(255, 122, 61, 0.25), transparent 65%); }
@media (max-width: 900px) { .agents { grid-template-columns: 1fr; } }
.agents .l-lead { color: #a3a5aa; }
.agents .eyebrow { color: #ff7a3d; }
.term { background: #1b1d20; border: 1px solid #2c2f33; border-radius: 12px; font: 0.82rem/1.65 "JetBrains Mono", ui-monospace, monospace; overflow: hidden; position: relative; z-index: 1; }
.term .bar-t { display: flex; gap: 6px; padding: 0.65rem 0.8rem; border-bottom: 1px solid #2c2f33; }
.term .bar-t i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d42; }
.term pre { background: none; border: 0; margin: 0; padding: 1rem 1.1rem; color: #d4d4d4; white-space: pre-wrap; word-break: break-word; }
.term .c { color: #6b6f76; }
.term .k { color: #ff7a3d; }
.term .s { color: #8ce99a; }
.term .u { color: #74c0fc; }
.agents .chips-a { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0; }
.agents .chips-a code { background: #1f2124; border: 1px solid #2f3236; color: #ececec; padding: 0.25rem 0.55rem; border-radius: 6px; font-size: 0.78rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 1.5rem; } }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0.7rem 0 0; max-width: 62ch; }

/* Final CTA and footer */
.final { text-align: center; padding: 5rem 1rem; border-radius: 24px; background:
  radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--panel);
  border: 1px solid var(--line); }
.final h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.final .hero-cta { justify-content: center; margin: 2rem 0 0; }
.l-foot { padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.88rem; }
.l-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.l-foot a { color: var(--muted); text-decoration: none; margin-left: 1.2rem; }
.l-foot a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Technologies */
.techs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 900px) { .techs { grid-template-columns: 1fr; } }
.tech { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; display: flex; flex-direction: column; }
.tech-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.tech-ic { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; }
.tech h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tech p { color: var(--muted); font-size: 0.95rem; }
.tech ul { margin: auto 0 0; padding: 0.8rem 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; font-size: 0.85rem; }
.tech li::before { content: "→ "; color: var(--accent); }
.live-tabs { display: flex; gap: 0.25rem; }
.live-tabs button { font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 999px; }
.live-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.live-part svg polygon { stroke-width: 0.4; }
.live-part.loading { opacity: 0.4; transition: opacity 0.2s; }
