:root {
  --bg: #f4f7fc;
  --bg-2: #ffffff;
  --ink: #0b1f44;
  --muted: #4a5a78;
  --blue: #1247ab;
  --blue-2: #2d6bff;
  --blue-soft: rgba(18, 71, 171, 0.1);
  --red: #e11d2e;
  --red-2: #ff4a58;
  --line: rgba(18, 71, 171, 0.14);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-2: rgba(255, 255, 255, 0.84);
  --danger: #b42318;
  --ok: #0f7a43;
  --display: "Syne", "Avenir Next", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --shadow: 0 24px 50px rgba(11, 31, 68, 0.08);
  --shadow-2: 0 30px 70px rgba(18, 71, 171, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 500px at 88% -10%, rgba(45, 107, 255, 0.14), transparent 55%),
    radial-gradient(900px 420px at -10% 8%, rgba(225, 29, 46, 0.08), transparent 50%),
    var(--bg);
}
a { color: var(--blue); }
img { max-width: 100%; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 30;
  background: var(--ink); color: #fff; padding: 8px 12px;
  border-radius: 8px;
}

.grid-bg, .grain, .orb-a, .orb-b, .orb-c { pointer-events: none; }
.grid-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(18, 71, 171, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 71, 171, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 35%, transparent 80%);
}
.grain {
  position: fixed; inset: 0; z-index: 0; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb-a, .orb-b, .orb-c {
  position: fixed; border-radius: 50%; filter: blur(70px); z-index: 0;
}
.orb-a {
  width: 42vw; height: 42vw; top: -12vw; right: -8vw;
  background: radial-gradient(circle, rgba(45, 107, 255, 0.28), transparent 68%);
}
.orb-b {
  width: 38vw; height: 38vw; bottom: 8vh; left: -14vw;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.16), transparent 70%);
}
.orb-c {
  width: 24vw; height: 24vw; top: 46vh; right: 18vw;
  background: radial-gradient(circle, rgba(18, 71, 171, 0.12), transparent 70%);
}

.nav {
  position: sticky; top: 0; z-index: 8;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(244, 247, 252, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1180px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
}
.mark { width: 34px; height: 34px; flex: 0 0 34px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 20px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 14.5px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
.btn-gold {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 46, 0.22);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-wide { width: 100%; }

.hero {
  position: relative; z-index: 1;
  min-height: 0;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  max-width: 1180px; margin: 0 auto; padding: 48px 22px 28px; gap: 24px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.kicker {
  display: inline-flex; gap: 8px; align-items: center;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px;
  color: var(--blue); font-weight: 700; margin-bottom: 16px;
}
.kicker i { width: 28px; height: 2px; background: var(--red); display: inline-block; }
h1 {
  font-family: var(--display); font-weight: 750; letter-spacing: -0.04em;
  font-size: clamp(40px, 6vw, 76px); line-height: 0.98; margin: 0 0 18px;
}
.hero h1 em { font-style: italic; color: var(--red); font-weight: 700; }
.lede { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note { color: var(--muted); font-size: 13px; max-width: 460px; }
.hero-stage {
  position: relative; height: clamp(380px, 38vw, 540px); min-height: 0;
}
.stage-frame {
  position: relative; width: 100%; height: 100%;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(232,239,255,0.55));
  border: 1px solid rgba(18, 71, 171, 0.16);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.hud {
  position: absolute; width: 18px; height: 18px; z-index: 2;
  border: 2px solid var(--blue-2);
}
.hud-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hud-tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-color: var(--red); }
.hud-bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-color: var(--red); }
.hud-br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
#stage {
  width: 100%; height: 100%; display: block;
}
.stage-fallback {
  display: none; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 32% 30%, rgba(45, 107, 255, 0.28), transparent 42%),
    radial-gradient(circle at 72% 62%, rgba(225, 29, 46, 0.2), transparent 46%),
    linear-gradient(160deg, #eaf0ff, #ffffff 55%, #ffe8ea);
}
.stage-fallback.on { display: block; }
body.reduce-motion #stage { display: none; }
body.reduce-motion .stage-fallback { display: block; }

.section { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 84px 22px; scroll-margin-top: 88px; }
.section h2 {
  font-family: var(--display); font-weight: 750; font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 12px;
}
.section .intro { color: var(--muted); max-width: 620px; margin: 0 0 36px; }

.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.15);
  transition: transform .35s ease, border-color .25s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 71, 171, 0.28);
  box-shadow: var(--shadow-2);
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; font-family: var(--display); letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.icon {
  width: 36px; height: 36px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
}

.svc-group { margin-bottom: 34px; }
.svc-group-title {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.svc-footnote {
  color: var(--muted); font-size: 13.5px; max-width: 720px; margin: 8px 0 0;
}

.plans { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.plan { grid-column: span 4; display: flex; flex-direction: column; min-height: 100%; }
.plan.wide { grid-column: span 6; }
.plan .price { font-family: var(--display); font-size: 40px; margin: 8px 0 4px; letter-spacing: -0.03em; }
.plan .price span { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 600; }
.plan .setup { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 18px; color: var(--ink); font-size: 14.5px; }
.plan li:before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.plan.featured {
  background: linear-gradient(180deg, rgba(18, 71, 171, 0.1), rgba(255, 255, 255, 0.75));
  border-color: rgba(18, 71, 171, 0.32);
}
.plan.featured li:before { background: var(--red); }
.badge {
  display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--red); border-radius: 999px; padding: 4px 9px;
  margin-bottom: 10px; font-weight: 700;
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num {
  font-family: var(--display); font-size: 42px; color: var(--blue);
  margin-bottom: 8px; line-height: 1;
}
.step:nth-child(even) .num { color: var(--red); }

.audit-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
form.glass { padding: 26px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="url"] {
  width: 100%; background: rgba(255, 255, 255, 0.9); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 14px;
  font-family: inherit; font-size: 15px;
}
input:focus { outline: 2px solid var(--blue-2); border-color: var(--blue); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { min-height: 24px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

.site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); padding: 36px 22px 48px;
  background: rgba(255, 255, 255, 0.45);
}
.foot-in { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-in p, .foot-in a { color: var(--muted); font-size: 14px; }
.foot-in strong { color: var(--ink) !important; font-family: var(--display); }
.legal-links { display: flex; gap: 16px; }

.legal { max-width: 760px; margin: 0 auto; padding: 36px 22px 80px; position: relative; z-index: 1; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); }
.legal h2 { font-family: var(--display); font-size: 26px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal .box, .legal .warn {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: var(--glass); margin: 16px 0;
}
.legal .warn { background: rgba(225, 29, 46, 0.06); border-color: rgba(225, 29, 46, 0.2); }
.back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }

/* Progressive enhancement: section content is always visible, even without JS. */
.reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; min-height: auto; }
  .hero-stage { height: 420px; }
  .services, .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan.wide { grid-column: auto; }
  .audit-wrap { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .services, .steps { grid-template-columns: 1fr; }
  .hero-stage { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}
