:root {
  --night: #0a0a18;
  --night-2: #12122a;
  --night-3: #1b1b3a;
  --ink: #0f1024;
  --ink-soft: #4a4c68;
  --muted: #8a8ca8;
  --line: #e6e6f2;
  --paper: #ffffff;
  --paper-alt: #f6f5fc;
  --violet: #7c5cff;
  --pink: #ff4d8d;
  --orange: #ffb020;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --grad: linear-gradient(95deg, #7c5cff 0%, #ff4d8d 50%, #ffb020 100%);
  --max: 1180px;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--paper);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -0.02em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,24,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--head); font-weight: 700; font-size: 20px; color: #fff; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.03em;
  box-shadow: 0 6px 20px rgba(255,77,141,0.35);
}
nav { display: flex; align-items: center; }
nav a { color: rgba(255,255,255,0.75); font-size: 15px; font-weight: 500; margin-left: 30px; }
nav a:hover { color: #fff; text-decoration: none; }
nav a.nav-cta {
  color: #fff; padding: 9px 18px; border-radius: 999px; background: var(--grad); font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--night); padding: 110px 0 120px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; background: #7c5cff; top: -200px; left: -140px; }
.hero::after  { width: 520px; height: 520px; background: #ff4d8d; bottom: -260px; right: -120px; opacity: 0.4; }
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.9);
  margin-bottom: 26px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; margin-bottom: 24px; }
.hero p.lead { font-size: 20px; color: rgba(255,255,255,0.72); max-width: 560px; margin-bottom: 38px; }
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 12px; font-weight: 700; font-size: 16px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255,77,141,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,77,141,0.45); }
.btn.ghost { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); box-shadow: none; margin-left: 12px; }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* Dashboard card */
.dash {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45); backdrop-filter: blur(8px);
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 600; }
.dash-live { font-size: 12px; font-weight: 700; color: var(--lime); display: flex; align-items: center; gap: 6px; }
.dash-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s infinite; }
.dash svg { width: 100%; height: auto; display: block; }
.dash svg .line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease-out forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.chip { border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.chip small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; }
.chip b { font-family: var(--head); font-size: 17px; }
.up { color: var(--lime); } .down { color: var(--cyan); }

/* ---------- Channel marquee ---------- */
.channels { background: var(--night-2); border-top: 1px solid rgba(255,255,255,0.06); overflow: hidden; padding: 22px 0; }
.marquee { display: flex; gap: 56px; width: max-content; animation: scroll 32s linear infinite; }
.marquee span {
  font-family: var(--head); font-weight: 700; font-size: 20px; color: rgba(255,255,255,0.55); white-space: nowrap;
  display: flex; align-items: center; gap: 56px;
}
.marquee span::after { content: "✦"; color: var(--pink); font-size: 14px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.alt { background: var(--paper-alt); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: inline-block; }
section h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin-bottom: 16px; max-width: 760px; }
section .intro { color: var(--ink-soft); max-width: 680px; margin-bottom: 52px; font-size: 19px; }

.cards { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c, var(--violet)); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(20,20,60,0.10); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--c, var(--violet)) 14%, white); color: var(--c, var(--violet));
}
.icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* Process */
.process { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: #7c5cff; filter: blur(120px); opacity: .25; top: -250px; right: -200px; }
.process .wrap { position: relative; }
.process .intro { color: rgba(255,255,255,0.7); }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { border-radius: 18px; padding: 28px 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.step .n {
  font-family: var(--head); font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 18px;
  background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,0.68); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about p { color: var(--ink-soft); margin-bottom: 16px; font-size: 18px; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; font-weight: 500;
}
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800;
}

/* CTA band */
.cta-band { padding: 0 0 100px; }
.cta-box {
  border-radius: 28px; padding: 64px 56px; color: #fff; position: relative; overflow: hidden;
  background: var(--grad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-box::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.25), transparent 50%); pointer-events: none; }
.cta-box h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0; max-width: 620px; position: relative; z-index: 1; }
.cta-box .btn { background: var(--night); box-shadow: 0 10px 30px rgba(10,10,24,0.35); position: relative; z-index: 1; }

/* Contact */
.contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-grid .card h3 { font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-grid .card p { color: var(--ink); font-size: 19px; font-weight: 600; font-family: var(--head); }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--night); color: #fff; padding: 72px 0 60px; position: relative; overflow: hidden; }
.legal-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: #ff4d8d; filter: blur(110px); opacity: .3; top: -240px; right: -120px; }
.legal-hero .wrap { position: relative; max-width: 820px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.legal-hero .updated { color: rgba(255,255,255,0.6); }
.legal { padding: 60px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 23px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
footer.site { background: var(--night); color: rgba(255,255,255,0.65); padding: 64px 0 36px; font-size: 15px; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; margin-bottom: 40px; }
footer.site h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; font-family: "Inter", sans-serif; }
footer.site p { margin-bottom: 7px; }
footer.site .tag { max-width: 360px; margin-top: 12px; }
footer.site .base { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 14px; color: rgba(255,255,255,0.45); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  nav a:not(.nav-cta) { display: none; }
  .logo { font-size: 17px; }
  .hero { padding: 72px 0 80px; }
  section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .btn.ghost { margin-left: 0; margin-top: 12px; }
  .cta-box { padding: 44px 28px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dash svg .line { stroke-dashoffset: 0; }
}

.logo-img { width: 40px; height: 40px; display: block; filter: drop-shadow(0 6px 16px rgba(255,77,141,0.35)); }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 18px; }
.contact-side .card h3 { font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-side .card p { color: var(--ink); font-size: 18px; font-weight: 600; font-family: var(--head); word-break: break-word; }
.lead-form {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  display: grid; gap: 18px; box-shadow: 0 20px 60px rgba(20,20,60,0.08); overflow: hidden;
}
.lead-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lead-form .opt { font-weight: 400; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper-alt);
  transition: border-color .15s, box-shadow .15s, background .15s; width: 100%;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(124,92,255,0.15);
}
.lead-form .btn { border: 0; cursor: pointer; justify-self: start; font-family: inherit; }
.lead-form .form-note { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.thanks { padding: 120px 0; }
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
  .lead-form { padding: 24px; }
}
