/* ==========================================================================
   Quantum Media Technologies LLC — Design System
   Original premium theme. Vanilla CSS. No external UI frameworks.
   ========================================================================== */

/* ----------------------------- Design Tokens ---------------------------- */
:root {
  /* Brand palette */
  --violet: #7c3aed;
  --violet-600: #6d28d9;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --cyan-300: #22d3ee;
  --aurora: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #06b6d4 100%);
  --aurora-soft: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(6, 182, 212, .12));

  /* Ink / neutrals */
  --ink: #0b1020;
  --ink-2: #121a30;
  --ink-3: #1b2440;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #0b1020;
  --text-muted: #4b5568;
  --heading: #0b1020;
  --border: #e7e9f2;
  --ring: rgba(124, 58, 237, .35);

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --container-wide: 1320px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-sm: 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-md: 0 12px 34px rgba(16, 24, 40, .10);
  --shadow-lg: 0 26px 60px rgba(16, 24, 40, .16);
  --shadow-glow: 0 20px 60px rgba(124, 58, 237, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* --------------------------- Accessibility ------------------------------ */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section {
  padding-block: clamp(64px, 9vw, 118px);
  position: relative;
}
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-alt { background: var(--bg-alt); }
.bg-ink {
  background: radial-gradient(120% 120% at 15% 0%, #16204a 0%, var(--ink) 55%);
  color: #d7ddf0;
}
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }

/* --------------------------- Section Heading ---------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-600);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--aurora-soft);
  border: 1px solid rgba(124, 58, 237, .18);
}
.bg-ink .eyebrow,
.hero .eyebrow,
.pagehero .eyebrow,
.cta .eyebrow {
  color: var(--cyan-300);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--aurora);
}
.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 18px;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.06rem;
}
.bg-ink .section-head p { color: #aeb8d6; }
.gradient-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------ Buttons --------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn--primary {
  --btn-fg: #fff;
  background: var(--aurora);
  background-size: 160% 160%;
  box-shadow: var(--shadow-glow);
  animation: gradientShift 8s ease infinite;
}
.btn--primary:hover { box-shadow: 0 26px 70px rgba(124, 58, 237, .42); }
.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-600); box-shadow: var(--shadow-sm); }
.bg-ink .btn--ghost,
.hero .btn--ghost,
.pagehero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
.bg-ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.pagehero .btn--ghost:hover { border-color: var(--cyan-300); color: var(--cyan-300); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: var(--shadow-lg); }
.btn--lg { padding: 17px 34px; font-size: 1.04rem; }

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ------------------------------ Navbar ---------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
/* The nav is transparent over a dark hero at the top of every page, so its
   text is light by default; once scrolled it gains a light background and
   switches to dark text. */
.nav .brand { color: #fff; }
.nav .brand__name span { color: rgba(255, 255, 255, .6); }
.nav.is-scrolled .brand { color: var(--heading); }
.nav.is-scrolled .brand__name span { color: var(--slate-500); }
.nav.is-scrolled .nav__link { color: var(--slate-700); }
.nav.is-scrolled .nav__link:hover { color: var(--heading); }
.nav.is-scrolled .nav__link.is-active { color: var(--violet-600); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--heading);
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-size: 1.12rem; font-weight: 700; }
.brand__name span {
  font-family: var(--font-body);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .97rem;
  color: rgba(255, 255, 255, .82);
  padding: 10px 15px;
  border-radius: 10px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 6px;
  height: 2px;
  background: var(--aurora);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta-mobile { display: none; }
.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block; position: relative;
  width: 20px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* --------------------------- Hero / Page top ---------------------------- */
.hero {
  position: relative;
  padding-top: clamp(130px, 17vw, 190px);
  padding-bottom: clamp(70px, 10vw, 120px);
  overflow: hidden;
  background: radial-gradient(130% 120% at 12% -10%, #1a2350 0%, var(--ink) 52%);
  color: #e7ecfb;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
/* Allow grid children to shrink below their min-content so long text/panels
   never force horizontal overflow on small screens. */
.hero__grid > *, .split > * { min-width: 0; }
.hero h1 { overflow-wrap: break-word; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  color: #fff;
  letter-spacing: -.03em;
}
.hero p.lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #b6c0e2;
  max-width: 560px;
}
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.hero__meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
}
.hero__meta-item span { font-size: .84rem; color: #93a0c9; letter-spacing: .02em; }

/* Aurora / quantum backdrop */
.aurora {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.aurora__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.aurora__orb--1 { width: 460px; height: 460px; background: #7c3aed; top: -120px; left: -80px; animation: float1 16s ease-in-out infinite; }
.aurora__orb--2 { width: 400px; height: 400px; background: #06b6d4; bottom: -140px; right: -60px; animation: float2 18s ease-in-out infinite; }
.aurora__orb--3 { width: 320px; height: 320px; background: #4f46e5; top: 30%; right: 22%; opacity: .4; animation: float3 20s ease-in-out infinite; }
.aurora__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(50px,40px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-46px,-38px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-40px) scale(1.08)} }

/* Hero visual panel */
.hero__panel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__panel-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: #cbd4f4; margin-bottom: 18px;
}
.hero__panel-badge i {
  width: 9px; height: 9px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .18);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.channel-list { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.channel:hover { transform: translateX(6px); background: rgba(255, 255, 255, .09); }
.channel__text { min-width: 0; }
.channel__text b, .channel__text span { overflow-wrap: anywhere; }
.channel__bar { flex: none; }
.channel__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--aurora);
  color: #fff;
}
.channel__icon svg { width: 22px; height: 22px; }
.channel__text b { display: block; color: #fff; font-family: var(--font-display); font-size: .98rem; }
.channel__text span { font-size: .82rem; color: #9fabd4; }
.channel__bar {
  margin-left: auto; width: 74px; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); overflow: hidden;
}
.channel__bar i { display: block; height: 100%; border-radius: 999px; background: var(--aurora); }

/* Page hero (inner pages) */
.pagehero {
  position: relative;
  padding-top: clamp(140px, 16vw, 180px);
  padding-bottom: clamp(56px, 8vw, 92px);
  overflow: hidden;
  background: radial-gradient(120% 130% at 80% -20%, #1c264f 0%, var(--ink) 55%);
  color: #e7ecfb;
  text-align: center;
  isolation: isolate;
}
.pagehero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.pagehero p { margin: 18px auto 0; max-width: 620px; color: #b6c0e2; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px;
  font-size: .9rem; color: #97a3cc;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--cyan-300); }
.breadcrumb svg { width: 15px; height: 15px; opacity: .6; }

/* ------------------------------- Cards ---------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--aurora-soft);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, .25);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--aurora);
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 58, 237, .28);
  margin-bottom: 22px;
  transition: transform .4s var(--ease-out);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.24rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .92rem;
  color: var(--violet-600);
}
.card__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card__link svg { transform: translateX(5px); }
.card__num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.4rem; color: var(--slate-100);
  z-index: 0;
}

/* Numbered / featured variants */
.card--solid {
  background: radial-gradient(120% 120% at 0% 0%, var(--ink-2), var(--ink));
  color: #cdd5ee; border-color: rgba(255, 255, 255, .08);
}
.card--solid h3 { color: #fff; }
.card--solid p { color: #a9b3d6; }
.card--solid:hover { border-color: rgba(34, 211, 238, .4); }

/* ----------------------------- Stats band ------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.stat { text-align: center; padding: 10px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 10px; color: var(--text-muted); font-size: .96rem; }
.bg-ink .stat__label { color: #a9b3d6; }

/* --------------------------- About / Split ------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.progress-list { margin-top: 30px; display: grid; gap: 22px; }
.progress__head {
  display: flex; justify-content: space-between;
  font-family: var(--font-display); font-weight: 600; margin-bottom: 9px;
}
.progress__head span:last-child { color: var(--violet-600); }
.progress__track {
  height: 9px; border-radius: 999px; background: var(--slate-100); overflow: hidden;
}
.progress__bar {
  height: 100%; border-radius: 999px; background: var(--aurora);
  width: 0; transition: width 1.4s var(--ease-out);
}

/* Feature figure (stacked visual) */
.figure {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  background: radial-gradient(120% 120% at 100% 0%, #1a2350, var(--ink));
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure__glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: var(--aurora); filter: blur(60px); opacity: .5;
  top: -60px; right: -60px;
}
.figure__list { position: relative; display: grid; gap: 14px; margin-top: 6px; }
.figure__item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
}
.figure__item svg { width: 22px; height: 22px; color: var(--cyan-300); flex: none; }
.figure__item b { font-family: var(--font-display); color: #fff; font-weight: 600; }

/* ------------------------------ Process --------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative;
  padding: 34px 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.step__num {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: #fff; background: var(--aurora);
  box-shadow: 0 12px 26px rgba(124, 58, 237, .28);
  margin-bottom: 20px;
}
.step h3 { font-size: 1.16rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .95rem; }
.step__connector {
  position: absolute; top: 60px; right: -14px; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--violet), transparent);
  z-index: 2;
}
.step:last-child .step__connector { display: none; }

/* --------------------------- Feature checklist -------------------------- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; margin-top: 28px; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500; color: var(--heading);
}
.bg-ink .checklist li { color: #e2e7f7; }
.checklist .tick {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--aurora-soft); color: var(--violet-600);
}
.bg-ink .checklist .tick { background: rgba(34, 211, 238, .14); color: var(--cyan-300); }
.checklist .tick svg { width: 15px; height: 15px; }

/* --------------------------- Testimonials ------------------------------- */
.testi-track-wrap { overflow: hidden; }
.testi-track {
  display: flex;
  gap: 26px;
  transition: transform .6s var(--ease-out);
}
.testi {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-sm);
}
.testi__quote { font-size: 1.5rem; color: var(--violet); line-height: 1; margin-bottom: 12px; font-family: var(--font-display); }
.testi__stars { display: flex; gap: 3px; margin-bottom: 16px; color: #f5b301; }
.testi__stars svg { width: 18px; height: 18px; }
.testi p {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.5;
}
.testi__author { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.testi__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  background: var(--aurora);
}
.testi__author b { display: block; font-family: var(--font-display); }
.testi__author span { font-size: .9rem; color: var(--text-muted); }
.testi-controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; }
.testi-dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
  background: var(--slate-200); cursor: pointer; transition: all .3s var(--ease);
}
.testi-dot.is-active { width: 30px; background: var(--aurora); }
.testi-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--heading);
  transition: all .3s var(--ease);
}
.testi-arrow:hover { border-color: var(--violet); color: var(--violet-600); box-shadow: var(--shadow-sm); }
.testi-arrow svg { width: 20px; height: 20px; }

/* ----------------------------- Marquee ---------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 60px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.16rem;
  color: var(--slate-400); white-space: nowrap;
}
.marquee__item svg { width: 26px; height: 26px; color: var(--slate-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------- CTA band --------------------------------- */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(42px, 6vw, 76px);
  background: radial-gradient(130% 130% at 0% 0%, #241a5e 0%, var(--ink) 55%);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--aurora); opacity: .18;
  mask-image: radial-gradient(60% 120% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(60% 120% at 50% 0%, #000, transparent 70%);
}
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta p { color: #b9c2e4; max-width: 600px; margin: 18px auto 0; }
.cta__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------- Newsletter --------------------------------- */
.newsletter {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: clamp(30px, 4vw, 50px);
  border-radius: var(--radius-xl);
  background: var(--aurora);
  background-size: 180% 180%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
}
.newsletter h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.newsletter p { color: rgba(255, 255, 255, .86); margin-top: 8px; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter input {
  flex: 1; min-width: 240px;
  padding: 15px 20px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .75); }
.newsletter input:focus { background: rgba(255, 255, 255, .24); outline: 2px solid rgba(255,255,255,.6); }

/* ------------------------------- Forms ---------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--slate-50);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px var(--ring); outline: none;
}
.form-note { font-size: .86rem; color: var(--text-muted); margin-top: 4px; }
.form-status { margin-top: 6px; font-family: var(--font-display); font-weight: 600; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }

/* Contact info cards */
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card__icon {
  width: 50px; height: 50px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: #fff; background: var(--aurora);
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card b { font-family: var(--font-display); display: block; margin-bottom: 3px; }
.info-card a, .info-card p { color: var(--text-muted); font-size: .96rem; word-break: break-word; }
.info-card a:hover { color: var(--violet-600); }

/* ------------------------------ Footer ---------------------------------- */
.footer {
  background: radial-gradient(120% 120% at 100% 0%, #16204a 0%, var(--ink) 55%);
  color: #a9b3d6;
  padding-top: clamp(60px, 8vw, 90px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer .brand { color: #fff; }
.footer .brand__name span { color: var(--slate-400); }
.footer__about { margin-top: 20px; max-width: 340px; font-size: .96rem; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #cdd5ee;
  transition: all .3s var(--ease);
}
.footer__social a:hover { background: var(--aurora); color: #fff; transform: translateY(-3px); border-color: transparent; }
.footer__social svg { width: 19px; height: 19px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: #a9b3d6; font-size: .96rem; transition: color .25s var(--ease), padding .25s var(--ease); }
.footer__links a:hover { color: #fff; padding-left: 5px; }
.footer__contact { display: grid; gap: 16px; }
.footer__contact-item { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.footer__contact-item svg { width: 19px; height: 19px; color: var(--cyan-300); flex: none; margin-top: 2px; }
.footer__contact-item a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding-block: 26px;
  font-size: .9rem;
}
.footer__bottom-links { display: flex; gap: 22px; }
.footer__bottom-links a:hover { color: #fff; }

/* --------------------------- Reveal animations -------------------------- */
/* Content is visible by default; only hidden once JS confirms it can reveal it.
   This keeps the site fully readable without JavaScript (and for crawlers). */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--aurora); z-index: 1100;
  transition: width .1s linear;
}

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--aurora); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* ------------------------------ Legal ----------------------------------- */
.legal { max-width: 860px; margin-inline: auto; }
.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-top: 44px;
  padding-top: 8px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 26px; margin-bottom: 8px; }
.legal p { color: var(--text-muted); margin-top: 14px; }
.legal ul.legal-list { margin-top: 16px; display: grid; gap: 14px; }
.legal ul.legal-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}
.legal ul.legal-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px; border-radius: 5px;
  background: var(--aurora);
}
.legal ol.legal-list { margin-top: 16px; padding-left: 22px; display: grid; gap: 14px; }
.legal ol.legal-list li { color: var(--text-muted); }
.legal ol.legal-list li::marker { color: var(--violet-600); font-family: var(--font-display); font-weight: 700; }
.legal__updated {
  display: inline-block; margin-bottom: 34px;
  font-size: .9rem; color: var(--slate-500);
  padding: 6px 14px; border-radius: 999px; background: var(--slate-100);
}

/* --------------------------- Utility helpers ---------------------------- */
.mt-sm { margin-top: 18px; }
.mt-md { margin-top: 30px; }
.mt-lg { margin-top: 48px; }
.text-center { text-align: center; }
.lead-muted { color: var(--text-muted); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step__connector { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 18px clamp(20px, 5vw, 40px) 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .nav.is-open .nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav__link::after { display: none; }
  /* Menu is a white dropdown panel on mobile → links stay dark whatever the scroll state */
  .nav__menu .nav__link { color: var(--slate-700); }
  .nav__menu .nav__link:hover, .nav__menu .nav__link.is-active { color: var(--violet-600); background: var(--slate-50); }
  .nav.is-scrolled .nav__menu, .nav__menu { background: #fff; }
  .nav__cta-mobile { display: inline-flex; justify-content: center; margin-top: 12px; }
  .nav__actions .btn:not(.nav__toggle) { display: none; }
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 22px; }
  .btn { width: 100%; }
  .hero__actions .btn, .cta__actions .btn { width: auto; }
  .hero__actions, .cta__actions { flex-direction: column; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .aurora__orb { animation: none; }
}

/* ------------------------------ Print ----------------------------------- */
@media print {
  .nav, .to-top, .scroll-progress, .newsletter, .aurora { display: none; }
}
