/* =====================================================================
   QUANTYUG · AURORA LIGHT THEME — shared stylesheet
   "The Quantum Era of Enterprise Software"
   ---------------------------------------------------------------------
   Table of contents
   01. Reset & base
   02. Design tokens (:root)
   03. Per-product theme classes (.theme-*)
   04. Typography
   05. Layout primitives (container / section / grid / eyebrow / split)
   06. Aurora mesh background
   07. Navigation (sticky glass + dropdown + mobile menu)
   08. Buttons & pills
   09. Glass cards
   10. Badges & eyebrow chips
   11. Hero helpers & orbit visual
   12. Stat blocks
   13. Mockup / device frame
   14. Marquee strip
   15. Scroll reveal
   16. Footer (light)
   17. Forms
   18. Toast
   19. Utilities
   20. Responsive breakpoints
   21. Reduced-motion overrides
   ===================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

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

ul[role="list"],
ol[role="list"] { list-style: none; padding: 0; }

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

::selection {
  background: color-mix(in srgb, var(--accent-2) 22%, transparent);
  color: var(--ink);
}

/* ======================= 02. Design tokens ========================= */
:root {
  /* surfaces & background */
  --bg: #f6f7fc;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3fb;

  /* borders */
  --border: rgba(16, 22, 60, .09);
  --border-strong: rgba(16, 22, 60, .15);

  /* ink & text */
  --ink: #0d1230;      /* headings — near-black indigo */
  --text: #3b4166;     /* body */
  --text-dim: #6b7299;
  --muted: #5b6289;

  /* brand accents (deepened for contrast on white) */
  --accent-1: #0ea5c4;
  --accent-2: #7c3aed;
  --accent-3: #db2777;

  /* gradients */
  --grad: linear-gradient(120deg, #22d3ee, #7c3aed 55%, #ec4899);
  --grad-ink: linear-gradient(120deg, #0891b2, #7c3aed 55%, #db2777);
  --grad-soft: linear-gradient(120deg,
      color-mix(in srgb, var(--accent-1) 16%, #fff),
      color-mix(in srgb, var(--accent-2) 16%, #fff));

  /* radii */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --nav-h: 68px;

  /* shadows */
  --shadow-sm: 0 2px 8px rgba(20, 20, 60, .06);
  --shadow: 0 24px 60px -24px rgba(90, 70, 190, .28);
  --shadow-card: 0 12px 30px -12px rgba(30, 30, 80, .14);
  --glow: 0 12px 34px -10px color-mix(in srgb, var(--accent-2) 55%, transparent);

  /* typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .5s;
}

/* ================== 03. Per-product theme classes ================== */
/* Each product page adds one of these to <body>: overrides accents +
   gradients so the whole page takes on the product identity — still
   on the bright Aurora light background. */

/* Rentflow — cyan / blue */
.theme-tenant {
  --accent-1: #0891b2;
  --accent-2: #2563eb;
  --accent-3: #06b6d4;
  --grad: linear-gradient(120deg, #22d3ee, #3b82f6 55%, #6366f1);
  --grad-ink: linear-gradient(120deg, #0e7490, #2563eb 55%, #4f46e5);
}

/* HRMS — violet / purple */
.theme-hrms {
  --accent-1: #7c3aed;
  --accent-2: #6d28d9;
  --accent-3: #c026d3;
  --grad: linear-gradient(120deg, #a78bfa, #7c3aed 55%, #d946ef);
  --grad-ink: linear-gradient(120deg, #6d28d9, #7c3aed 55%, #a21caf);
}

/* Gurukul — emerald / teal */
.theme-school {
  --accent-1: #0d9488;
  --accent-2: #059669;
  --accent-3: #0ea5c4;
  --grad: linear-gradient(120deg, #2dd4bf, #10b981 55%, #22d3ee);
  --grad-ink: linear-gradient(120deg, #0f766e, #059669 55%, #0e7490);
}

/* Helix CRM — pink / amber */
.theme-crm {
  --accent-1: #db2777;
  --accent-2: #e11d48;
  --accent-3: #f59e0b;
  --grad: linear-gradient(120deg, #f472b6, #ec4899 55%, #fbbf24);
  --grad-ink: linear-gradient(120deg, #be185d, #db2777 55%, #d97706);
}

/* ========================= 04. Typography ========================== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  letter-spacing: .002em;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem); }
h4 { font-size: 1.18rem; }

p { color: var(--text); }

.lead {
  font-size: clamp(1.05rem, .98rem + .55vw, 1.3rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 60ch;
}

strong { color: var(--ink); font-weight: 600; }

small { font-size: .82rem; }

.mono { font-family: var(--font-mono); }

/* gradient text helper */
.grad-text,
.text-grad {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =================== 05. Layout primitives ========================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
  position: relative;
}

.section-sm { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }

/* soft radial glow accents dropped between sections */
.glow-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.glow-accent::before {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  top: -12rem;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
      color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
  filter: blur(20px);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1.2rem + 2vw, 3.25rem);
  position: relative;
  z-index: 1;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .lead { margin-inline: auto; }

.section-title {
  margin-top: .55rem;
}

.section-sub {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 1.08rem;
}

/* eyebrow label — mono, uppercase, gradient */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 12%, transparent);
}
.eyebrow.grad {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* grids */
.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto {
  display: grid;
  gap: clamp(1rem, .6rem + 1.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* split — asymmetric two-column (e.g. hero copy + visual) */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ================= 06. Aurora mesh background ====================== */
/* Injected by app.js (falls back to nothing if JS is off, but the page
   still reads perfectly on the flat --bg). Fixed, behind everything. */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

/* faint hairline grid for tech texture */
.aurora-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 22, 60, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 22, 60, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 40%, transparent 85%);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
  mix-blend-mode: multiply;
}
.aurora-blob.b1 {
  width: 42vw; height: 42vw;
  top: -10vw; left: -6vw;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .55), transparent 70%);
  animation: aurora-drift-1 26s ease-in-out infinite;
}
.aurora-blob.b2 {
  width: 46vw; height: 46vw;
  top: -6vw; right: -8vw;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .42), transparent 70%);
  animation: aurora-drift-2 32s ease-in-out infinite;
}
.aurora-blob.b3 {
  width: 40vw; height: 40vw;
  bottom: -14vw; left: 18vw;
  background: radial-gradient(closest-side, rgba(236, 72, 153, .38), transparent 70%);
  animation: aurora-drift-3 30s ease-in-out infinite;
}
.aurora-blob.b4 {
  width: 34vw; height: 34vw;
  bottom: -6vw; right: 8vw;
  background: radial-gradient(closest-side, rgba(251, 191, 133, .34), transparent 70%);
  animation: aurora-drift-1 36s ease-in-out infinite reverse;
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}
@keyframes aurora-drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-5vw, 5vw, 0) scale(.92); }
}
@keyframes aurora-drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4vw, -6vw, 0) scale(1.1); }
}

/* ========================= 07. Navigation ========================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
    border-color .3s var(--ease);
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -18px rgba(30, 30, 80, .3);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-word .brand-grad {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* primary links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.nav-links > .nav-item > .nav-link,
.nav-links > a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .8rem;
  border-radius: var(--r-pill);
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a.nav-link:hover,
.nav-links .nav-item:hover > .nav-link,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
}

/* dropdown */
.nav-item { position: relative; }
.nav-item.has-dropdown { display: inline-flex; align-items: center; }
.nav-caret-btn {
  display: inline-flex;
  align-items: center;
  padding: .5rem .35rem;
  margin-left: -.5rem;
  color: var(--text-dim);
  border-radius: var(--r-pill);
  transition: color .2s var(--ease);
}
.nav-caret-btn:hover,
.nav-item:hover > .nav-caret-btn { color: var(--ink); }
.nav-caret {
  width: 14px; height: 14px;
  transition: transform .25s var(--ease);
}
.nav-item.open .nav-caret,
.nav-item:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 340px;
  padding: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: .2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease),
    visibility .22s;
}
.nav-item:hover > .nav-dropdown,
.nav-item.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Hover bridge: the dropdown sits .5rem below the link, and that gap used to
   drop :hover — the menu closed before the pointer could reach a product.
   This invisible strip spans the gap (and the dropdown's full width, so
   diagonal moves survive too). Only interactive while the menu is open, so
   it never swallows clicks on the page behind it. */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 340px;
  max-width: 90vw;
  height: .75rem;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.nav-item.has-dropdown:hover::after,
.nav-item.has-dropdown.open::after { pointer-events: auto; }
.nav-dropdown { z-index: 2; }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem .7rem;
  border-radius: var(--r-sm);
  transition: background .18s var(--ease);
}
.dropdown-link:hover { background: var(--surface-2); }
.dropdown-ic {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow-sm);
}
.dropdown-ic svg { width: 20px; height: 20px; }
.dropdown-ic[data-p="tenant"] { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.dropdown-ic[data-p="hrms"]   { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.dropdown-ic[data-p="school"] { background: linear-gradient(135deg, #2dd4bf, #10b981); }
.dropdown-ic[data-p="crm"]    { background: linear-gradient(135deg, #f472b6, #f59e0b); }
.dropdown-txt { display: flex; flex-direction: column; line-height: 1.3; }
.dropdown-txt strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
.dropdown-txt small { color: var(--text-dim); font-size: .8rem; }

.dropdown-all {
  margin-top: .3rem;
  padding: .55rem .7rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-align: center;
  border-radius: var(--r-sm);
}
.dropdown-all:hover { background: var(--surface-2); }

/* nav actions (CTA + hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  place-items: center;
}
.nav-toggle span {
  position: relative;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 95;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-overlay a {
  padding: .85rem .4rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.nav-overlay .overlay-group-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.1rem .4rem .3rem;
}
.nav-overlay .overlay-sub {
  padding-left: 1rem;
  font-size: 1rem;
  color: var(--text-dim);
}
.nav-overlay .btn-primary { margin-top: 1.4rem; justify-content: center; }

/* ==================== 08. Buttons & pills ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
    background .25s var(--ease), border-color .2s var(--ease), color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent-2) 62%, transparent);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-card),
    inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 45%, transparent);
}

.btn-soft {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.btn-soft:hover { background: color-mix(in srgb, var(--accent-2) 14%, #fff); }

.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }

.btn-arrow svg { transition: transform .2s var(--ease); width: 18px; height: 18px; }
.btn-arrow:hover svg { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

/* ========================= 09. Glass cards ========================= */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
    border-color .3s var(--ease);
  overflow: hidden;
}
/* gradient hairline that appears on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

.card-glass {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-flush { padding: 0; }

/* feature card interior */
.card-ic {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow-sm);
}
.card-ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-dim); font-size: .96rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--accent-2);
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* ==================== 10. Badges & chips =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent-2) 16%, transparent);
}
.badge-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-1) 55%, transparent); }
  50%      { box-shadow: 0 0 0 5px transparent; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: var(--r-pill);
  font-size: .85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ================== 11. Hero helpers & orbit ======================= */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem);
  overflow: hidden;
}
.hero h1 { margin-block: 1rem .6rem; }
.hero .lead { margin-bottom: 1.8rem; }

/* elegant light orbit / gradient sphere visual */
.orbit {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 480px);
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit-core {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff, transparent 42%),
    var(--grad);
  box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--accent-2) 55%, transparent);
  animation: float-soft 7s ease-in-out infinite;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.orbit-ring.r1 { inset: 8%; animation: spin 26s linear infinite; }
.orbit-ring.r2 { inset: 20%; border-style: dashed; animation: spin 20s linear infinite reverse; }
.orbit-ring.r3 { inset: 0%; border-color: var(--border); }
.orbit-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-1) 14%, transparent);
  top: 6%; left: 50%;
  transform: translateX(-50%);
}
.orbit-card {
  position: absolute;
  padding: .7rem .95rem;
  background: color-mix(in srgb, #fff 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink);
  animation: float-soft 6s ease-in-out infinite;
}
.orbit-card.top-left { top: 8%; left: -4%; }
.orbit-card.bottom-right { bottom: 10%; right: -6%; animation-delay: -3s; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* frosted card stack alternative visual */
.card-stack { position: relative; }
.card-stack .card { position: relative; }
.card-stack .card + .card { margin-top: -1rem; }

/* ========================= 12. Stat blocks ========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(1rem, .5rem + 2vw, 2.5rem);
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-label {
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ================== 13. Mockup / device frame ===================== */
.mockup {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: .4rem; }
.mockup-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mockup-dots i:nth-child(1) { background: #ff6b6b; }
.mockup-dots i:nth-child(2) { background: #fdbf47; }
.mockup-dots i:nth-child(3) { background: #4bd47b; }
.mockup-url {
  flex: 1;
  max-width: 320px;
  margin-left: .5rem;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
}
.mockup-body { padding: clamp(1rem, .5rem + 2vw, 1.75rem); }

/* ======================= 14. Marquee strip ======================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.1rem;
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.marquee-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ======================= 15. Scroll reveal ======================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.from-left { transform: translateX(-26px); }
.reveal.from-right { transform: translateX(26px); }
.reveal.scale-in { transform: scale(.94); }

/* ========================== 16. Footer ============================ */
.site-footer {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: .9;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(1.6rem, 1rem + 2.5vw, 3rem);
  padding-bottom: 3rem;
}
.footer-brand .brand { font-size: 1.3rem; margin-bottom: 1rem; }
.footer-blurb {
  color: var(--text-dim);
  font-size: .94rem;
  max-width: 34ch;
  margin-bottom: 1.3rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-col a {
  color: var(--text-dim);
  font-size: .94rem;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--accent-2); }

.footer-news p { color: var(--text-dim); font-size: .92rem; margin-bottom: .9rem; }
.footer-news .field-inline {
  display: flex;
  gap: .5rem;
}
.footer-news input {
  flex: 1;
  min-width: 0;
}

.footer-socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.footer-socials a:hover {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
  transform: translateY(-2px);
}
.footer-socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .86rem;
}
.footer-bottom .footer-legal { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--accent-2); }

/* =========================== 17. Forms ============================ */
.field { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.field-label,
label.field-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.field-hint { font-size: .8rem; color: var(--muted); }

.input,
.select,
.textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: .8rem 1rem;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
::placeholder { color: var(--muted); }

.input:focus,
.select:focus,
.textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 15%, transparent);
}
textarea { min-height: 140px; resize: vertical; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa1c4' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-dim);
}
.checkbox-row input { width: auto; margin-top: .2rem; accent-color: var(--accent-2); }

/* =========================== 18. Toast ============================ */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 260px;
  max-width: 380px;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: .92rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  pointer-events: auto;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast-ic {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad);
}
.toast.success .toast-ic { background: #10b981; }
.toast.error .toast-ic { background: #ef4444; }
.toast-ic svg { width: 15px; height: 15px; }
.toast-body strong { display: block; font-size: .92rem; }
.toast-body span { color: var(--text-dim); font-size: .84rem; }

/* ========================= 19. Utilities ========================= */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.full { width: 100%; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: clamp(2rem, 5vw, 4rem); }
.relative { position: relative; }
.z1 { position: relative; z-index: 1; }
.maxw-prose { max-width: 65ch; }

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: .5rem;
  z-index: 300;
  padding: .6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
}
.skip-link:focus { left: .5rem; }

/* ==================== 20. Responsive breakpoints ================== */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions .btn-primary { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toast-wrap { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { max-width: none; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .brand { font-size: 1.1rem; }
}

/* ================== 21. Reduced-motion overrides ================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .aurora-blob,
  .orbit-core,
  .orbit-ring,
  .orbit-card,
  .marquee-track { animation: none !important; }
}
