/* ==========================================================================
   "Neon glass" — dark card layout.
   Fixed backdrop of drifting cyan / magenta / indigo blobs over a faint dotted
   grid · floating glass pill top bar · centred hero with gradient highlight ·
   flex-wrap grid of glass cards with neon number rings · gradient-bordered
   conclusion card · minimal footer.
   Fonts: Sora (headings) + Inter (body). All layout on flexbox, no raster images.
   ========================================================================== */

:root {
  /* Palette */
  --bg:       #07080f;
  --text:     #eef2ff;
  --muted:    rgba(238, 242, 255, 0.68);
  --faint:    rgba(238, 242, 255, 0.5);
  --cyan:     #22d3ee;
  --magenta:  #e879f9;
  --indigo:   #6366f1;
  --grad:     linear-gradient(90deg, var(--cyan), var(--magenta));
  --grad-d:   linear-gradient(135deg, var(--cyan), var(--magenta));

  /* Glass */
  --glass:    rgba(255, 255, 255, 0.06);
  --glass-2:  rgba(255, 255, 255, 0.09);
  --line:     rgba(255, 255, 255, 0.12);
  --line-2:   rgba(255, 255, 255, 0.28);
  --blur:     18px;
  --r:        24px;
  --r-sm:     20px;

  /* Type */
  --ff-head:  "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --wrap:     1120px;
  --gutter:   clamp(16px, 4vw, 40px);
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 999px; }

/* ---------- Page shell ---------- */
.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Fixed backdrop: gradient blobs + dotted grid ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.62;
  will-change: transform;
  animation: drift var(--dur, 36s) ease-in-out infinite alternate;
}

.bg__blob--cyan {
  left: -18vw;
  top: -24vw;
  width: 64vw;
  height: 64vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle at 45% 45%, rgba(34, 211, 238, 0.85), rgba(34, 211, 238, 0) 68%);
  --dur: 34s;
}

.bg__blob--magenta {
  right: -14vw;
  top: 8vh;
  width: 58vw;
  height: 58vw;
  max-width: 740px;
  max-height: 740px;
  background: radial-gradient(circle at 50% 50%, rgba(232, 121, 249, 0.75), rgba(232, 121, 249, 0) 68%);
  --dur: 40s;
  animation-delay: -14s;
  animation-direction: alternate-reverse;
}

.bg__blob--indigo {
  left: 22vw;
  bottom: -34vh;
  width: 72vw;
  height: 72vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.8), rgba(99, 102, 241, 0) 68%);
  --dur: 38s;
  animation-delay: -22s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(7vw, 6vh, 0) scale(1.08); }
  100% { transform: translate3d(-5vw, 10vh, 0) scale(0.96); }
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(238, 242, 255, 0.28) 1px, transparent 1.6px);
  background-size: 28px 28px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 34%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 34%, #000 10%, transparent 100%);
}

/* ---------- Floating glass pill top bar ---------- */
.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(var(--wrap), calc(100% - 32px));
  min-height: 64px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s, border-color 0.3s;
}

.topbar.is-scrolled {
  background: rgba(14, 16, 28, 0.55);
  border-color: var(--line-2);
}

.logo { display: flex; align-items: center; min-width: 0; }

.logo img {
  height: 40px;
  width: auto;
  max-width: min(280px, 52vw);
  object-fit: contain;
  object-position: left center;
}

/* placeholder wordmark (only until a per-domain logo file is dropped in) */
.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-emblem { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.brand-name { font-family: var(--ff-head); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }

.tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.tag__dot,
.eyebrow__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6), 0 0 12px var(--cyan);
  animation: pulse 2.2s ease-out infinite;
}

.eyebrow__dot {
  background: var(--magenta);
  box-shadow: 0 0 0 0 rgba(232, 121, 249, 0.6), 0 0 12px var(--magenta);
  animation-name: pulse-m;
  animation-delay: -0.8s;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55), 0 0 12px var(--cyan); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0), 0 0 12px var(--cyan); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), 0 0 12px var(--cyan); }
}

@keyframes pulse-m {
  0%   { box-shadow: 0 0 0 0 rgba(232, 121, 249, 0.55), 0 0 12px var(--magenta); }
  70%  { box-shadow: 0 0 0 9px rgba(232, 121, 249, 0), 0 0 12px var(--magenta); }
  100% { box-shadow: 0 0 0 0 rgba(232, 121, 249, 0), 0 0 12px var(--magenta); }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(36px, 5vw, 56px);
}

.hero__inner {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  max-width: 17ch;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

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

.hero__lead {
  max-width: 640px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}

.pill::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-d);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

/* ---------- Cards ---------- */
.cards {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-top: clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  position: relative;
  flex: 1 1 calc(50% - 12px);
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

/* an odd trailing card spans the row and lays out side by side */
.card:nth-child(odd):last-child {
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
}

.card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* neon number ring: circular, gradient border drawn by a masked pseudo-element */
.card__num {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.2), 0 0 26px rgba(232, 121, 249, 0.14);
}

.card__num::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad-d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card__title {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(21px, 1.9vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.card__text {
  max-width: 72ch;
  font-size: clamp(16px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .card:hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 80px rgba(34, 211, 238, 0.07),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05),
      0 26px 70px rgba(0, 0, 0, 0.42);
  }
}

/* ---------- Conclusion ---------- */
.outro {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 24px auto 0;
}

.outro__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

/* gradient border (cyan → magenta) */
.outro__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* corner glow */
.outro__card::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.34), rgba(34, 211, 238, 0.12) 40%, rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
}

.outro__card > * { position: relative; z-index: 1; }

.outro__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

.outro__text {
  max-width: 70ch;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.footer {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: auto auto 0;
  padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}

.footer::before {
  content: "";
  width: 120px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--grad);
  opacity: 0.7;
}

.footer__brand { display: flex; align-items: center; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand .brand-emblem { width: 24px; height: 24px; }
.footer__brand .brand-name { font-size: 16px; }

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: border-color 0.25s, background-color 0.25s;
}

.footer__top:hover { border-color: var(--line-2); background: var(--glass-2); }

/* ---------- Entrance motion (opt-in via media query; fill-mode backwards so hover transforms stay free) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero__inner > *,
  .card,
  .outro__card {
    animation: rise 0.8s var(--ease) backwards;
  }

  .hero__inner > :nth-child(1) { animation-delay: 0.05s; }
  .hero__inner > :nth-child(2) { animation-delay: 0.12s; }
  .hero__inner > :nth-child(3) { animation-delay: 0.2s; }
  .hero__inner > :nth-child(4) { animation-delay: 0.28s; }

  .card,
  .outro__card { animation-delay: calc(0.3s + var(--i, 0) * 0.07s); }
}

/* ---------- Adaptive ---------- */
@media (max-width: 760px) {
  .card { flex: 1 1 100%; }

  .card:nth-child(odd):last-child {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .topbar {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 56px;
    margin-top: 12px;
    padding: 8px 8px 8px 16px;
  }

  .logo img { height: 30px; }
  .brand-emblem { width: 28px; height: 28px; }
  .brand-name { font-size: 17px; }

  .tag { padding: 10px 14px 10px 12px; letter-spacing: 0.14em; }

  .hero { padding-top: 48px; }
  .hero__inner { gap: 20px; }
  .hero__title { font-size: clamp(34px, 10vw, 38px); letter-spacing: -0.025em; }

  .card { gap: 16px; }
  .card__num { width: 48px; height: 48px; font-size: 14px; }

  .outro { margin-top: 20px; }
  .outro__card::after { right: -160px; top: -160px; width: 360px; height: 360px; }
}

/* ---------- Reduced motion: no drifting blobs, no pulsing dots, no entrance motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html { scroll-behavior: auto; }
  .bg__blob { will-change: auto; }
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* ---------- Multi-paragraph copy (client text) ---------- */
.hero__lead + .hero__lead,
.card__text + .card__text,
.outro__text + .outro__text { margin-top: 0.9em; }
