/* ============================================================
   Aspire — Tracking & Analytics
   Modern digital-marketing design system
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-2:      #f4f5fb;
  --dark:      #0B0B16;
  --dark-2:    #11111f;

  --text:      #14141f;
  --muted:     #61667a;
  --light:     #eef0fa;
  --light-mut: rgba(238,240,250,0.66);

  --violet:    #7C5CFF;
  --cyan:      #22D3EE;
  --pink:      #FF5DA2;
  --grad:      linear-gradient(115deg, #7C5CFF 0%, #B14DF0 46%, #22D3EE 100%);
  --grad-soft: linear-gradient(115deg, rgba(124,92,255,0.16), rgba(34,211,238,0.16));
  --glow:      rgba(124, 92, 255, 0.45);

  --line:      rgba(15, 16, 33, 0.09);
  --line-d:    rgba(238, 240, 250, 0.12);

  --head: 'Space Grotesk', 'Inter', sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1200px;
  --r:    20px;
  --shadow: 0 24px 60px rgba(20, 20, 45, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }
.section.pt0 { padding-top: 0; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--violet);
  padding: 7px 14px; border-radius: 999px;
  background: var(--grad-soft);
  margin-bottom: 22px;
}
.big { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; }
.big.light { color: #fff; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; margin-top: 22px; }
.lead.light { color: var(--light-mut); }
.lead em { color: var(--text); font-style: italic; }
.lead.light em { color: #fff; }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 8px; }
.head-aside { color: var(--muted); font-size: 17px; max-width: 380px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .18s ease, border-color .18s ease;
}
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -8px var(--glow); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px var(--glow); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 22, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: 100%; }
.logo { color: #fff; display: inline-flex; align-items: center; }
.logo svg { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: rgba(238,240,250,0.8); font-size: 14.5px; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: #fff; }
.hdr-cta { display: flex; align-items: center; gap: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none; flex-direction: column; gap: 4px;
  background: var(--dark-2); border-bottom: 1px solid var(--line-d);
  padding: 14px 24px 26px;
}
.drawer.open { display: flex; }
.drawer a { color: rgba(238,240,250,0.82); font-size: 16px; font-weight: 500; padding: 12px 4px; border-bottom: 1px solid var(--line-d); }
.drawer a.btn { justify-content: center; border: 0; margin-top: 14px; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--light); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-1 { width: 520px; height: 520px; background: #7C5CFF; top: -160px; right: -80px; animation: drift 18s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: #22D3EE; top: 40px; left: -120px; opacity: 0.35; animation: drift 22s ease-in-out infinite reverse; }
.blob-3 { width: 360px; height: 360px; background: #FF5DA2; bottom: -160px; left: 38%; opacity: 0.3; animation: drift 26s ease-in-out infinite; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}
.hero-in { position: relative; z-index: 1; padding: 120px 0 130px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  color: #fff; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-d);
}
.badge::before { content: ""; }
.badge { color: var(--cyan); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.03; color: #fff; max-width: 940px; margin: 24px 0 26px; }
.hero-sub { font-size: clamp(17px, 1.7vw, 21px); color: var(--light-mut); max-width: 640px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 0; margin: 0; }
.hero-trust li {
  font-size: 13.5px; color: rgba(238,240,250,0.8);
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-d);
}

/* ---------- Marquee ---------- */
.marquee { background: var(--dark-2); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); overflow: hidden; padding: 20px 0; }
.marquee-track { display: inline-flex; align-items: center; white-space: nowrap; animation: scroll 42s linear infinite; }
.marquee-track span { font-family: var(--head); font-weight: 600; font-size: 19px; color: rgba(238,240,250,0.62); padding: 0 8px; }
.marquee-track i { color: var(--violet); font-style: normal; font-size: 13px; padding: 0 4px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 64px 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--head); font-size: clamp(34px, 4vw, 50px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat .lbl { font-size: 13.5px; color: var(--light-mut); margin-top: 5px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.svc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(124,92,255,0.4); }
.svc-ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--grad);
  display: grid; place-items: center; color: #fff; margin-bottom: 22px;
  box-shadow: 0 12px 26px -10px var(--glow);
}
.svc-ico svg { width: 27px; height: 27px; }
.svc h3 { font-size: 23px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc .tag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--violet); background: var(--grad-soft); padding: 4px 9px; border-radius: 6px; }
.svc p { color: var(--muted); font-size: 15.5px; flex: 1; }
.svc-link { margin-top: 22px; font-weight: 600; font-size: 14.5px; color: var(--violet); display: inline-flex; gap: 7px; transition: gap .18s ease; }
.svc:hover .svc-link { gap: 12px; }
.svc-foot { margin-top: 46px; text-align: center; color: var(--muted); font-size: 15.5px; }
.svc-foot b { color: var(--text); font-weight: 600; }

/* ---------- Dark band ---------- */
.band { background: var(--dark); color: var(--light); overflow: hidden; }
.band-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.7; }
.band .wrap { position: relative; z-index: 1; }
.pull {
  margin: 38px 0 0; padding: 28px 32px;
  border-radius: var(--r); border: 1px solid var(--line-d);
  background: rgba(255,255,255,0.04);
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  font-family: var(--head); font-size: clamp(19px, 2.3vw, 26px); line-height: 1.42;
  color: #fff; max-width: 880px;
}
.pull cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; font-weight: 600; color: var(--cyan); margin-top: 18px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 54px; }
.step { padding-top: 26px; border-top: 2px solid var(--line); }
.step-n { font-family: var(--head); font-size: 40px; font-weight: 700; line-height: 1; }
.step h3 { font-size: 20px; margin: 16px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 50px; margin-top: 54px; }
.why { display: flex; gap: 16px; }
.why-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.why h3 { font-family: var(--head); font-size: 18px; margin-bottom: 5px; }
.why p { color: var(--muted); font-size: 15px; }

/* ---------- Tools ---------- */
.tg { margin-top: 32px; }
.tg h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 14px; color: var(--light);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-d);
  padding: 9px 16px; border-radius: 999px;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--violet); color: #fff; background: rgba(124,92,255,0.16); transform: translateY(-2px); }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.tst { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease; }
.tst:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tst .stars { color: var(--violet); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.tst p { font-size: 15.5px; color: var(--text); line-height: 1.62; }
.tst cite { margin-top: 18px; display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.tst-note { text-align: center; margin-top: 36px; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.cta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.cta-call { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-call .or { color: var(--light-mut); font-size: 14px; }
.form { background: rgba(255,255,255,0.04); border: 1px solid var(--line-d); border-radius: var(--r); padding: 30px; }
.form label { display: block; font-size: 13px; color: rgba(238,240,250,0.7); margin-bottom: 7px; }
.field { margin-bottom: 18px; }
.form input, .form textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--line-d);
  border-radius: 12px; padding: 13px 15px; color: #fff; font-family: var(--sans); font-size: 15px; transition: border-color .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--violet); }
.form input::placeholder, .form textarea::placeholder { color: rgba(238,240,250,0.4); }
.form button { width: 100%; justify-content: center; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-2); color: rgba(238,240,250,0.7); padding: 64px 0 34px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 340px; }
.foot-brand .logo { color: #fff; }
.foot-brand p { margin-top: 16px; font-size: 14.5px; color: rgba(238,240,250,0.55); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--sans); font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14.5px; color: rgba(238,240,250,0.7); margin-bottom: 11px; transition: color .15s ease; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(238,240,250,0.45); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .blob, .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .hdr-cta .btn-grad { display: none; }
  .burger { display: flex; }
  .svc-grid, .tst-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 80px 0; }
  .wrap { padding: 0 22px; }
  .svc-grid, .tst-grid, .steps { grid-template-columns: 1fr; }
  .hero-in { padding: 80px 0 84px; }
  .head-row { align-items: flex-start; }

  /* Hero CTAs side by side (shrink so both fit on one row) */
  .hero-sub { margin-bottom: 30px; }
  .hero-cta { flex-wrap: nowrap; gap: 8px; margin-bottom: 30px; }
  .hero-cta .btn-lg { padding: 13px 14px; font-size: 12.5px; }

  /* Contact CTA: balance the button between the text and the form */
  #contact .cta-call { margin-top: 14px; margin-bottom: 4px; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

/* Sub-hero */
.subhero { position: relative; background: var(--dark); color: var(--light); overflow: hidden; }
.subhero .hero-bg { opacity: 0.8; }
.subhero-in { position: relative; z-index: 1; padding: 92px 0 80px; }
.crumb { font-size: 13px; color: var(--light-mut); margin-bottom: 20px; letter-spacing: .2px; }
.crumb a { color: var(--cyan); }
.crumb span { opacity: .5; padding: 0 8px; }
.subhero h1 { font-size: clamp(34px, 5.2vw, 60px); color: #fff; max-width: 900px; margin-bottom: 20px; line-height: 1.05; }
.subhero .sh-sub { font-size: clamp(16px, 1.6vw, 20px); color: var(--light-mut); max-width: 700px; }
.subhero .hero-cta { margin-top: 34px; }

/* Alt light section */
.section.alt { background: var(--bg-2); }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.feat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(124,92,255,0.35); }
.feat-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 22px -10px var(--glow); }
.feat-ico svg { width: 25px; height: 25px; }
.feat h3 { font-size: 20px; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 15px; }
.feat.alt { background: var(--bg-2); }

/* Prose (legal) */
.prose { max-width: 820px; }
.prose > p:first-child { font-size: 18px; color: var(--text); }
.prose h2 { font-size: 24px; margin: 42px 0 12px; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.72; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--violet); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .meta { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { margin-top: 48px; max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--head); font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); font-size: 15.5px; margin-top: 12px; max-width: 760px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.ci-block { display: flex; gap: 16px; margin-top: 26px; }
.ci-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.ci-ico svg { width: 21px; height: 21px; }
.ci-block h4 { font-family: var(--head); font-size: 16px; margin-bottom: 3px; color: #fff; }
.ci-block p, .ci-block a { color: var(--light-mut); font-size: 15px; }
.ci-block a:hover { color: var(--cyan); }

@media (max-width: 960px) {
  .feat-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
}

/* ===== Services dropdown (desktop) ===== */
.nav-item { position: relative; height: 76px; display: inline-flex; align-items: center; }
.nav-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-toggle svg { width: 13px; height: 13px; opacity: .85; transition: transform .25s ease; }
.nav-item:hover .nav-toggle svg,
.nav-item:focus-within .nav-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 238px;
  background: rgba(18, 18, 32, 0.98);
  border: 1px solid var(--line-d);
  border-radius: 14px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}
.dropdown a {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: rgba(238, 240, 250, 0.82);
  transition: background .15s ease, color .15s ease;
}
.dropdown a:hover { background: rgba(124, 92, 255, 0.18); color: #fff; }

/* Services group inside mobile drawer */
.drawer-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); padding: 14px 4px 2px; }
.drawer .drawer-sub { padding-left: 18px; }
