:root {
  --bg: #0b1120;
  --bg-alt: #0e1628;
  --surface: #121c30;
  --surface-2: #17233c;
  --border: #223049;
  --text: #e8eefb;
  --muted: #94a3bc;
  --brand: #0ea5e9;
  --brand-2: #6366f1;
  --brand-3: #22d3ee;
  --accent: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(2, 8, 23, 0.8);
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Sora", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.big { font-size: 1.2rem; }
.small { font-size: .9rem; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

em { font-style: italic; color: var(--brand-3); }
.grad {
  background: linear-gradient(100deg, var(--brand-3), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem .95rem; font-size: .875rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(14, 165, 233, .6);
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(99, 102, 241, .7); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: #fff; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 32, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(11, 17, 32, .9); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800;
}
.brand-name { font-size: 1.15rem; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav .btn-primary { margin-left: .25rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); }
.hero-glow {
  position: absolute; inset: -30% 0 auto 0; height: 640px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 20% 10%, rgba(14,165,233,.28), transparent 60%),
    radial-gradient(560px 320px at 82% 0%, rgba(99,102,241,.26), transparent 60%),
    radial-gradient(500px 300px at 55% 40%, rgba(34,211,238,.14), transparent 60%);
  filter: blur(6px);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  color: var(--brand-3); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.2);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-strip {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; color: var(--muted); font-size: .9rem; font-weight: 500;
}
.hero-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: .8rem; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
  font-weight: 700; color: var(--brand-3); margin-bottom: .8rem;
}
#positioning h2 { text-align: center; margin-bottom: 1.2rem; }

/* Quotes */
.quotes { margin-top: 3rem; }
.quote-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem;
}
.quote-grid p {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; font-style: italic; color: var(--text);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(14,165,233,.5); background: var(--surface-2); }
.card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split-copy h2 { margin: .6rem 0 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.check-list.tight li { padding-left: 1.8rem; font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.2rem; position: relative; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-family: var(--display); font-weight: 800;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .9rem; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.example { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.example h3 { margin-bottom: 1rem; color: var(--brand-3); }
.example p { font-size: .93rem; margin-bottom: .8rem; color: var(--muted); }
.example p strong { color: var(--text); }
.example .res { margin-bottom: 0; }

/* Calculators */
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .85rem; }
.calc h3 { font-size: 1.05rem; }
.calc label { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; color: var(--muted); font-weight: 500; }
.calc input {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: .6rem .7rem; font-family: var(--font); font-size: .95rem; width: 100%;
}
.calc input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,165,233,.2); }
.calc-out {
  margin-top: auto; background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(99,102,241,.12));
  border: 1px solid rgba(14,165,233,.3); border-radius: var(--radius-sm); padding: .8rem .9rem;
  display: flex; flex-direction: column; gap: .1rem;
}
.calc-out span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.calc-out strong { font-family: var(--display); font-size: 1.5rem; color: #fff; }
.calc-note { font-size: .78rem; color: var(--muted); }

.calc-summary {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.8rem;
}
.calc-summary > div { display: flex; flex-direction: column; }
.calc-summary span { font-size: .85rem; }
.calc-summary strong { font-family: var(--display); font-size: 2rem; color: var(--accent); }
.disclaimer { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; position: relative; display: flex; flex-direction: column; gap: 1rem;
}
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-8px); background: var(--surface-2); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.price { font-family: var(--display); font-size: 2.4rem; font-weight: 800; }
.price-for { color: var(--muted); font-size: .95rem; min-height: 2.6em; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; flex: 1; }
.price-card li { padding-left: 1.6rem; position: relative; font-size: .93rem; color: var(--text); }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Care */
.care { margin-top: 3rem; }
.care > h3 { text-align: center; margin-bottom: 1.5rem; color: var(--muted); font-weight: 600; }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.care-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.care-card h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.care-price { font-family: var(--display); font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; }
.care-price span { font-size: .95rem; color: var(--muted); font-weight: 500; }
.care-card p { color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { margin-top: 2.5rem; display: grid; gap: .8rem; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.3rem;
}
details[open] { border-color: rgba(14,165,233,.4); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand-3); font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: .8rem; font-size: .95rem; }

/* Contact */
.contact-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; box-shadow: var(--shadow);
}
.contact-copy h2 { margin: .6rem 0 1rem; }
.contact-copy .check-list { margin-top: 1.5rem; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: .75rem .85rem; font-family: var(--font); font-size: .95rem; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,165,233,.2); }
.form-status { font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #f87171; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 3rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 320px; }
.footer-brand p { margin-top: .8rem; font-size: .92rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .85rem; color: var(--muted); }

/* Reveal animation */
.section, .card, .price-card { }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* Active nav link */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px;
  background: linear-gradient(100deg, var(--brand-3), var(--brand-2));
}

/* Page hero (detail pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 90px) 0 clamp(32px, 5vw, 56px); }
.page-hero-glow {
  position: absolute; inset: -40% 0 auto 0; height: 460px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 280px at 15% 0%, rgba(14,165,233,.22), transparent 60%),
    radial-gradient(520px 280px at 85% 5%, rgba(99,102,241,.2), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 1rem; max-width: 16ch; }
.page-hero .lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--muted); max-width: 640px; margin: 0 0 1.8rem; }
.breadcrumb { display: inline-block; color: var(--muted); font-size: .85rem; margin-right: .8rem; }
.breadcrumb:hover { color: var(--text); }
.page-hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Clickable cards */
.link-card { display: flex; flex-direction: column; text-decoration: none; }
.link-card .card-link { margin-top: auto; padding-top: .9rem; color: var(--brand-3); font-weight: 600; font-size: .9rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }

/* Feature / value boxes on tool pages */
.feature-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem;
}
.feature-box h3 { margin-bottom: 1rem; }
.value-box {
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(99,102,241,.12));
  border: 1px solid rgba(14,165,233,.3); border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.value-box .kicker { margin-bottom: .4rem; }
.value-box p { color: var(--text); }
.split-copy .kicker { display: block; }

/* Vertical steps (how-it-works page) */
.steps.vertical { grid-template-columns: 1fr; gap: 1rem; }
.steps.vertical li { display: grid; grid-template-columns: auto 1fr; column-gap: 1.4rem; align-items: start; }
.steps.vertical .step-num { margin-bottom: 0; grid-row: span 3; }
.steps.vertical h3 { font-size: 1.2rem; }
.step-price { display: inline-block; margin-top: .6rem; font-size: .82rem; font-weight: 600; color: var(--brand-3); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.2); padding: .2rem .7rem; border-radius: 999px; }

/* Pricing table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.price-table thead th { background: var(--surface-2); font-family: var(--display); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .price-cell { font-family: var(--display); font-weight: 700; white-space: nowrap; color: var(--text); }

/* Prose blocks */
.prose { font-size: 1.05rem; color: var(--muted); }
.prose p { margin-bottom: 1rem; }
.prose strong { color: var(--text); }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { max-width: 22ch; margin: 0 auto 1.5rem; }

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .care-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; gap: 2rem; }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-primary { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 1rem 24px; gap: 1rem;
  }
}
@media (max-width: 520px) {
  .cards, .calc-grid, .steps, .quote-grid { grid-template-columns: 1fr; }
  .hero-strip { gap: .6rem; }
}
