:root {
  --purple-950: #160522;
  --purple-900: #230936;
  --purple-800: #32104c;
  --purple-700: #4b157f;
  --purple-600: #681eb4;
  --purple-500: #8a35e6;
  --purple-100: #f3e7ff;
  --yellow-500: #ffd13b;
  --yellow-400: #ffe070;
  --yellow-100: #fff7d7;
  --ink: #1b1224;
  --muted: #62566d;
  --surface: #ffffff;
  --surface-soft: #fbf7ff;
  --border: rgba(75, 21, 127, 0.14);
  --shadow: 0 22px 55px rgba(42, 13, 68, 0.15);
  --shadow-soft: 0 12px 32px rgba(42, 13, 68, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
  --header-h: 50px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 59, 0.22), transparent 34rem),
    radial-gradient(circle at 92% 10%, rgba(138, 53, 230, 0.18), transparent 30rem),
    linear-gradient(180deg, #fffdf5 0%, #fbf7ff 38%, #ffffff 100%);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--yellow-500);
  color: var(--purple-950);
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--header-h);
  background: rgba(22, 5, 34, 0.92);
  border-bottom: 1px solid rgba(255, 209, 59, 0.20);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.brand span {
  font-size: 0.96rem;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 209, 59, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--yellow-500);
  border-radius: 9px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--header-h);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: var(--yellow-500);
  color: var(--purple-950);
  transform: translateY(-1px);
}

.nav-cta {
  background: linear-gradient(135deg, var(--yellow-500), var(--yellow-400)) !important;
  color: var(--purple-950) !important;
  box-shadow: 0 8px 20px rgba(255, 209, 59, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 50px;
  background:
    linear-gradient(135deg, rgba(35, 9, 54, 0.97), rgba(75, 21, 127, 0.95)),
    url('../images/hero-analytics.svg') center/cover no-repeat;
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero::before {
  width: 310px;
  height: 310px;
  right: 7%;
  top: 54px;
  background: rgba(255, 209, 59, 0.20);
}

.hero::after {
  width: 240px;
  height: 240px;
  left: -70px;
  bottom: -90px;
  background: rgba(138, 53, 230, 0.35);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--yellow-500);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 209, 59, 0.26);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow-500);
  box-shadow: 0 0 18px var(--yellow-500);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5.8vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: var(--yellow-500);
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.23rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow-500), var(--yellow-400));
  color: var(--purple-950);
  box-shadow: 0 18px 34px rgba(255, 209, 59, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-light {
  background: #fff;
  color: var(--purple-900);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(35, 9, 54, 0.20);
}

.hero-panel {
  position: relative;
  min-height: 410px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.dashboard-card {
  position: absolute;
  inset: 22px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.card-top strong {
  display: block;
  color: var(--purple-950);
  font-size: 1rem;
}

.card-top small,
.metric small,
.bar-row small {
  color: var(--muted);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--yellow-100);
  color: var(--purple-900);
  font-size: 0.78rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  min-height: 108px;
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbf7ff);
  border: 1px solid var(--border);
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--purple-800);
  font-size: 1.68rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.metric em {
  display: block;
  margin-top: 6px;
  color: #118044;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px 1fr 36px;
  gap: 10px;
  align-items: center;
}

.track {
  height: 9px;
  border-radius: 999px;
  background: #eadcf8;
  overflow: hidden;
}

.track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-600), var(--yellow-500));
}

.trust-strip {
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  min-height: 86px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  box-shadow: var(--shadow-soft);
}

.trust-item strong {
  display: block;
  color: var(--purple-800);
  font-size: 1rem;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-head {
  max-width: 930px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--yellow-100);
  color: var(--purple-800);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0 0 14px;
  color: var(--purple-950);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h3 {
  margin: 0 0 10px;
  color: var(--purple-900);
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.copy-card,
.feature-card,
.process-card,
.faq-item,
.cta-panel,
.keywords-panel {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.copy-card {
  padding: clamp(20px, 3.4vw, 34px);
  border-radius: var(--radius-xl);
}

.copy-card p:last-child {
  margin-bottom: 0;
}

.side-panel {
  position: sticky;
  top: 70px;
  display: grid;
  gap: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding: 12px 12px 12px 42px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 750;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 13px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--purple-950);
  font-weight: 950;
  font-size: 0.78rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: var(--yellow-500);
  font-weight: 950;
}

.feature-card p,
.process-card p,
.faq-answer p {
  color: var(--muted);
}

.highlight-section {
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 209, 59, 0.20), transparent 24rem),
    linear-gradient(135deg, var(--purple-950), var(--purple-700));
}

.highlight-section h2,
.highlight-section h3 {
  color: #fff;
}

.highlight-section .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.source-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.source-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow-500);
  font-size: 1.1rem;
}

.source-card p {
  color: rgba(255, 255, 255, 0.78);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.process-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.process-card::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--purple-100);
  color: var(--purple-800);
  font-weight: 950;
}

.keywords-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 209, 59, 0.28), transparent 18rem),
    #fff;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--purple-100);
  color: var(--purple-800);
  font-weight: 900;
  font-size: 0.9rem;
}

.faq-wrap {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 0;
  background: #fff;
  color: var(--purple-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.faq-question span:last-child {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--purple-950);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  background: #fff;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.cta-band {
  padding: 58px 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 209, 59, 0.28), transparent 18rem),
    linear-gradient(135deg, var(--purple-950), var(--purple-700));
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--purple-950);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--yellow-500);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 990;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--purple-950);
  box-shadow: 0 16px 36px rgba(35, 9, 54, 0.28);
  font-size: 1.3rem;
  font-weight: 950;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .main-nav a {
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .feature-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sources-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 58px;
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(22, 5, 34, 0.98);
    border: 1px solid rgba(255, 209, 59, 0.22);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.96rem;
  }

  .hero {
    padding: 56px 0 36px;
  }

  .hero-panel {
    min-height: 430px;
  }

  .dashboard-card {
    inset: 14px;
    padding: 16px;
  }

  .metric-grid,
  .feature-grid,
  .process-grid,
  .sources-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 78px 1fr 32px;
  }

  .section {
    padding: 54px 0;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand span {
    max-width: 218px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 13vw, 3.45rem);
  }

  .hero-panel {
    min-height: 505px;
  }

  .card-top,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
