:root {
  --bg: #08090c;
  --bg2: #0e1014;
  --card: #12151b;
  --line: #1f242e;
  --line2: #2a303c;
  --txt: #e6e9ef;
  --dim: #8b94a6;
  --dimmer: #5a6373;
  --acc: #4ade80;
  --acc2: #22d3ee;
  --crit: #ff4d5e;
  --high: #ff9a3c;
  --med: #ffd93d;
  --low: #6b9bff;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt); font-family: var(--sans);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(74,222,128,.10), transparent),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(34,211,238,.06), transparent);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8,9,12,.82); backdrop-filter: blur(14px);
}
nav .wrap { display: flex; align-items: center; height: 62px; gap: 32px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.logo .mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: grid; place-items: center; font-size: 13px; color: #06120a; font-weight: 800;
}
nav .links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--dim); }
nav .links a:hover { color: var(--txt); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line2); background: var(--card); cursor: pointer;
  transition: .16s; white-space: nowrap;
}
.btn:hover { border-color: var(--acc); color: var(--acc); }
.btn-p {
  background: var(--acc); color: #06120a; border-color: var(--acc);
}
.btn-p:hover { background: #6ee79b; color: #06120a; border-color: #6ee79b; }

/* ---------- HERO ---------- */
header { padding: 88px 0 68px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
  font-family: var(--mono); color: var(--acc); border: 1px solid rgba(74,222,128,.28);
  background: rgba(74,222,128,.06); padding: 5px 12px; border-radius: 100px; margin-bottom: 26px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.3 } }
h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.06; letter-spacing: -.035em;
  font-weight: 800; max-width: 15ch;
}
h1 em { font-style: normal; color: var(--acc); }
.sub {
  font-size: 18.5px; color: var(--dim); max-width: 62ch; margin-top: 24px; line-height: 1.65;
}
.cta { display: flex; gap: 13px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px;
  margin-top: 56px; overflow: hidden;
}
.hero-stats div { background: var(--bg2); padding: 20px 22px; }
.hero-stats b { display: block; font-size: 26px; font-family: var(--mono); letter-spacing: -.03em; }
.hero-stats span { font-size: 12.5px; color: var(--dimmer); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }

/* ---------- SECTIONS ---------- */
section { padding: 76px 0; border-top: 1px solid var(--line); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--acc2);
  text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 14px;
}
h2 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -.025em; line-height: 1.18; font-weight: 750; max-width: 20ch; }
h2 + p.lead { color: var(--dim); margin-top: 15px; font-size: 16.5px; max-width: 68ch; }

/* ---------- PROBLEM ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.prob {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--bg2);
  position: relative; overflow: hidden;
}
.prob::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--line2); }
.prob.bad::before { background: var(--crit); }
.prob.good::before { background: var(--acc); }
.prob h3 { font-size: 16px; margin-bottom: 9px; letter-spacing: -.01em; }
.prob p { color: var(--dim); font-size: 14.5px; }
.prob .tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--dimmer); margin-bottom: 12px; display: block; font-weight: 600;
}

/* ---------- PIPELINE ---------- */
.pipe { margin-top: 42px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg2); }
.step { display: grid; grid-template-columns: 58px 1fr auto; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: none; }
.step .num {
  font-family: var(--mono); font-size: 13px; color: var(--acc); border: 1px solid rgba(74,222,128,.25);
  background: rgba(74,222,128,.05); width: 32px; height: 32px; border-radius: 7px;
  display: grid; place-items: center; font-weight: 700;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 14.5px; max-width: 62ch; }
.step .tool {
  font-family: var(--mono); font-size: 11.5px; color: var(--acc2);
  border: 1px solid rgba(34,211,238,.22); background: rgba(34,211,238,.05);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap; height: fit-content;
}

/* ---------- REPORT PREVIEW ---------- */
.rep { margin-top: 40px; border: 1px solid var(--line); border-radius: 14px; background: #0b0d11; overflow: hidden; }
.rep-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-bottom: 1px solid var(--line); background: var(--bg2);
}
.rep-bar .d { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.rep-bar span { margin-left: 9px; font-family: var(--mono); font-size: 12px; color: var(--dimmer); }
.rep-body { padding: 24px; font-family: var(--mono); font-size: 13.2px; line-height: 1.75; overflow-x: auto; }
.rep-body .c-dim { color: var(--dimmer); }
.rep-body .c-acc { color: var(--acc); }
.rep-body .c-crit { color: var(--crit); }
.rep-body .c-high { color: var(--high); }
.rep-body .c-cy { color: var(--acc2); }
.sev { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.sev.c { background: rgba(255,77,94,.14); color: var(--crit); border: 1px solid rgba(255,77,94,.3); }
.sev.h { background: rgba(255,154,60,.14); color: var(--high); border: 1px solid rgba(255,154,60,.3); }
.sev.m { background: rgba(255,217,61,.13); color: var(--med); border: 1px solid rgba(255,217,61,.28); }

/* ---------- PRICING ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.plan { border: 1px solid var(--line); border-radius: 13px; padding: 26px 22px; background: var(--bg2); display: flex; flex-direction: column; }
.plan.hot { border-color: rgba(74,222,128,.4); background: linear-gradient(180deg, rgba(74,222,128,.045), var(--bg2)); position: relative; }
.plan.hot::after {
  content: 'populer'; position: absolute; top: -10px; right: 16px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  background: var(--acc); color: #06120a; padding: 3px 8px; border-radius: 4px; font-weight: 700;
}
.plan h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 650; font-family: var(--mono); }
.plan .amt { font-size: 34px; font-weight: 750; letter-spacing: -.03em; margin: 12px 0 4px; font-family: var(--mono); }
.plan .amt small { font-size: 13px; color: var(--dimmer); font-weight: 400; font-family: var(--sans); }
.plan ul { list-style: none; margin-top: 20px; font-size: 14px; color: var(--dim); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: '→'; position: absolute; left: 0; color: var(--acc); font-family: var(--mono); font-size: 12px; }
.plan .btn { margin-top: 22px; justify-content: center; }

/* ---------- STACK ---------- */
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; margin-top: 38px; }
.chip {
  border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px; background: var(--bg2);
  font-size: 14px; display: flex; flex-direction: column; gap: 4px; transition: .15s;
}
.chip:hover { border-color: var(--line2); }
.chip b { font-weight: 650; font-size: 14.5px; }
.chip span { font-size: 12.5px; color: var(--dimmer); font-family: var(--mono); }

/* ---------- FAQ ---------- */
.faq { margin-top: 38px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono); color: var(--acc); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { padding: 0 0 21px; color: var(--dim); font-size: 15px; max-width: 78ch; }

/* ---------- CTA BAND ---------- */
.band {
  text-align: center; padding: 74px 24px; border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(74,222,128,.07), transparent);
}
.band h2 { margin: 0 auto 16px; max-width: 22ch; }
.band p { color: var(--dim); max-width: 56ch; margin: 0 auto 30px; font-size: 16.5px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13.5px; color: var(--dimmer); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .cols { display: flex; gap: 34px; flex-wrap: wrap; }
footer a:hover { color: var(--txt); }
.warn {
  margin-top: 18px; padding: 13px 16px; border: 1px solid rgba(255,154,60,.25);
  background: rgba(255,154,60,.05); border-radius: 9px; font-size: 13px; color: #c9a06a;
}

/* ---------- FORM ---------- */
.form-card { max-width: 660px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 32px; margin-top: 36px; }
label { display: block; font-size: 13.5px; font-weight: 600; margin: 18px 0 7px; color: var(--txt); }
label:first-of-type { margin-top: 0; }
label small { font-weight: 400; color: var(--dimmer); }
input, select, textarea {
  width: 100%; background: #0a0c10; border: 1px solid var(--line2); color: var(--txt);
  padding: 11px 13px; border-radius: 8px; font-size: 14.5px; font-family: var(--sans); transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); }
textarea { resize: vertical; min-height: 96px; font-family: var(--mono); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12.5px; color: var(--dimmer); margin-top: 6px; }
.note {
  margin-top: 24px; padding: 14px 16px; border: 1px dashed var(--line2);
  border-radius: 9px; font-size: 13.5px; color: var(--dim);
}

/* ---------- DOCS ---------- */
.doc { max-width: 800px; }
.doc h3 { font-size: 20px; margin: 34px 0 12px; letter-spacing: -.015em; }
.doc p { color: var(--dim); margin-bottom: 12px; font-size: 15.5px; }
.doc ul { color: var(--dim); margin: 0 0 14px 22px; font-size: 15.5px; }
.doc li { margin-bottom: 7px; }
.doc pre {
  background: #0a0c10; border: 1px solid var(--line); border-radius: 10px;
  padding: 17px 19px; overflow-x: auto; font-family: var(--mono); font-size: 13px;
  line-height: 1.7; margin: 14px 0; color: #c3cad6;
}
.doc code { font-family: var(--mono); font-size: 13.5px; background: #12151b; padding: 2px 6px; border-radius: 4px; color: var(--acc2); }
.doc pre code { background: none; padding: 0; color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
th { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line2); color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
td strong { color: var(--txt); }

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .prob-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  nav .links { display: none; }
}
@media (max-width: 620px) {
  .prob-grid, .price-grid { grid-template-columns: 1fr; }
  header { padding: 56px 0 44px; }
  section { padding: 54px 0; }
  .step { grid-template-columns: 40px 1fr; }
  .step .tool { grid-column: 2; }
  footer .wrap { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   INTERACTION LAYER — animations & dynamic states
   ═══════════════════════════════════════════════════════════════ */

/* ── scroll progress bar ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 200;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  pointer-events: none;
}

/* ── scroll reveal ── */
.rv {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1),
              transform .5s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
.rv-in { opacity: 1; transform: none; }

/* ── nav: solidify + active link ── */
nav { transition: background .25s, border-color .25s, box-shadow .25s; }
nav.scrolled {
  background: rgba(8,9,12,.94);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 10px 30px -18px #000;
}
nav .links a { position: relative; transition: color .18s; }
nav .links a.on { color: var(--txt); }
nav .links a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px;
  background: var(--acc); border-radius: 2px;
  animation: navIn .25s ease-out;
}
@keyframes navIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── logo mark subtle breathe ── */
.logo .mark { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .mark { transform: rotate(-8deg) scale(1.08); }

/* ── buttons: lift, glow, ripple ── */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: translateY(1px); }
.btn-p:hover { box-shadow: 0 0 0 1px rgba(74,222,128,.35), 0 8px 26px -10px rgba(74,222,128,.5); }
.btn:not(.btn-p):hover { box-shadow: 0 6px 20px -12px rgba(255,255,255,.28); }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.42), rgba(255,255,255,0) 68%);
  transform: scale(0); animation: rip .62s ease-out forwards;
}
@keyframes rip { to { transform: scale(1); opacity: 0; } }

/* ── hero accent sheen ── */
.sheen {
  background: linear-gradient(100deg, var(--acc) 0%, var(--acc2) 38%, #d9ffe9 50%, var(--acc2) 62%, var(--acc) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: sheenMove 6.5s linear infinite;
}
@keyframes sheenMove { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }

/* ── badge pulse ring ── */
.badge .dot { position: relative; }
.badge .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--acc); opacity: .5;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ── pipeline steps: hover spotlight + number pop ── */
.step { position: relative; transition: background .2s, padding-left .2s; }
.step::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: var(--acc); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.step.hot { background: rgba(74,222,128,.032); padding-left: 28px; }
.step.hot::before { transform: scaleY(1); }
.step .num { transition: transform .28s cubic-bezier(.34,1.56,.64,1), border-color .2s, color .2s; }
.step.hot .num {
  transform: scale(1.13); border-color: var(--acc); color: #06120a;
  background: var(--acc);
}
.step .tool { transition: border-color .2s, color .2s, transform .2s; }
.step.hot .tool { border-color: var(--acc2); transform: translateX(-2px); }

/* ── cards: tilt base + hover border ── */
.tilt { transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .25s, box-shadow .3s; transform-style: preserve-3d; }
.plan, .prob, .fnd { will-change: transform; }
.plan:hover, .prob:hover, .fnd:hover { border-color: var(--line2); box-shadow: 0 18px 40px -26px #000; }
.plan.hot:hover { border-color: rgba(74,222,128,.6); box-shadow: 0 18px 44px -22px rgba(74,222,128,.3); }
.chip { transition: transform .2s, border-color .2s, background .2s; }
.chip:hover { transform: translateY(-3px); border-color: var(--acc2); background: rgba(34,211,238,.04); }

/* ── plan "populer" badge shimmer ── */
.plan.hot::after {
  background: linear-gradient(100deg, var(--acc) 25%, #b6ffd4 50%, var(--acc) 75%);
  background-size: 220% 100%; animation: sheenMove 4.5s linear infinite;
}

/* ── FAQ: open animation ── */
details p { animation: faqIn .3s ease-out; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
details[open] summary { color: var(--txt); }
summary { transition: color .18s; }
summary:hover { color: var(--acc); }
summary::after { transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .2s; }
details[open] summary::after { transform: rotate(180deg); }

/* ── hero stats: hover lift ── */
.hero-stats div, .stats div { transition: background .2s; }
.hero-stats div:hover, .stats div:hover { background: #14171e; }
.hero-stats b, .stats b { transition: color .2s; }
.hero-stats div:hover b { color: var(--acc); }

/* ── copy affordances ── */
.doc pre { position: relative; }
.cp-btn {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 5px; cursor: pointer;
  background: var(--card); color: var(--dimmer);
  border: 1px solid var(--line2); opacity: 0; transition: .18s;
}
.doc pre:hover .cp-btn { opacity: 1; }
.cp-btn:hover { color: var(--acc); border-color: var(--acc); }
.cp-btn.ok { color: #06120a; background: var(--acc); border-color: var(--acc); opacity: 1; }
.copyable { cursor: pointer; transition: color .2s, background .2s; border-radius: 4px; }
.copyable:hover { color: var(--acc); }
.copyable.copied { background: rgba(74,222,128,.16); color: var(--acc); }

/* ── finding cards: reason/source accent on hover ── */
.fnd { transition: border-color .25s, box-shadow .3s, transform .3s cubic-bezier(.22,.61,.36,1); }
.fnd:hover .fh { background: rgba(74,222,128,.03); }

/* ── form: live validation + tier summary ── */
input.valid, select.valid, textarea.valid { border-color: rgba(74,222,128,.5); }
input.invalid, select.invalid, textarea.invalid { border-color: rgba(255,77,94,.5); }
input.valid + .hint::after { content: ''; }
.tier-summary {
  margin: 22px 0 4px; padding: 15px 17px; border-radius: 10px;
  border: 1px solid var(--line); background: #0b0d11;
  transition: transform .2s, border-color .2s;
}
.tier-summary b { font-size: 15px; }
.tier-summary .ts-price { font-family: var(--mono); color: var(--acc); font-size: 15px; margin-left: 8px; }
.tier-summary .ts-eat {
  font-family: var(--mono); font-size: 11.5px; color: var(--dimmer); margin-left: 9px;
  text-transform: uppercase; letter-spacing: .07em;
}
.tier-summary p { color: var(--dim); font-size: 13.5px; margin-top: 7px; }
.tier-summary.pop { border-color: rgba(74,222,128,.45); transform: scale(1.012); }

/* ── form submit result ── */
#result { animation: faqIn .3s ease-out; }
#result code { color: var(--acc2); }

/* ── hash pulse ── */
.pulse { animation: pulseHi 1.2s ease-out; }
@keyframes pulseHi {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.4); }
  70%  { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ── footer links ── */
footer .cols a { position: relative; transition: color .18s; }
footer .cols a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: var(--acc); transition: right .25s cubic-bezier(.22,.61,.36,1);
}
footer .cols a:hover::after { right: 0; }

/* ── swiper buttons: scale on press ── */
.sw-btn:active { transform: translateY(-50%) scale(.92); }

/* ── reduced motion: kill everything decorative ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .sheen { -webkit-text-fill-color: var(--acc); color: var(--acc); background: none; }
}
