/* ==========================================================================
   AUREVIA — Enterprise Technology
   Design System  •  pure CSS, zero dependencies
   --------------------------------------------------------------------------
   1. Tokens        2. Reset/Base     3. Typography     4. Layout
   5. Buttons       6. Badges/Pills   7. Cards          8. Header/Nav
   9. Footer       10. Hero          11. Sections      12. Forms
  13. Components    14. Animations    15. Utilities     16. Responsive
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* Brand */
  --brand-50:  #eef3ff;
  --brand-100: #dbe5ff;
  --brand-200: #b9cdff;
  --brand-300: #8aacff;
  --brand-400: #5a83fb;
  --brand-500: #2f5cf0;   /* primary */
  --brand-600: #1f43d6;
  --brand-700: #1a36ac;
  --brand-800: #182d85;
  --brand-900: #162659;
  --brand: var(--brand-500);
  --brand-strong: var(--brand-600);

  /* Cyan accent (glow / highlights) */
  --cyan: #3fc7ff;
  --cyan-soft: #7ad9ff;

  /* Neutrals / ink */
  --ink-950: #060912;
  --ink-900: #080d1b;
  --ink-850: #0b1326;
  --ink-800: #0f1a31;
  --ink-700: #1a2740;
  --slate-600: #475069;
  --slate-500: #5c6883;
  --slate-400: #8290ab;

  /* Semantic (light — default) */
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --bg-softer: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f7f9fe;
  --text: #0b1326;
  --text-muted: #525e79;
  --text-faint: #7e8aa3;
  --border: rgba(11, 19, 38, 0.10);
  --border-strong: rgba(11, 19, 38, 0.16);
  --ring: rgba(47, 92, 240, 0.45);
  --shadow-color: 220 40% 16%;
  --card: #ffffff;
  --card-border: rgba(11, 19, 38, 0.09);
  --glass: rgba(255, 255, 255, 0.72);
  --grid-line: rgba(11, 19, 38, 0.05);

  /* Effects */
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.06), 0 1px 1px hsl(var(--shadow-color) / 0.04);
  --shadow-md: 0 8px 24px -10px hsl(var(--shadow-color) / 0.18), 0 2px 6px hsl(var(--shadow-color) / 0.06);
  --shadow-lg: 0 28px 60px -28px hsl(var(--shadow-color) / 0.30), 0 8px 18px -10px hsl(var(--shadow-color) / 0.12);
  --shadow-glow: 0 0 0 1px rgba(47,92,240,.18), 0 22px 60px -24px rgba(47,92,240,.55);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --dur: 0.45s;
}

/* Dark surface scope — apply to any section/element to flip it luxe-dark */
.surface-dark {
  --bg: var(--ink-900);
  --bg-soft: var(--ink-850);
  --bg-softer: var(--ink-800);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.05);
  --text: #f3f6ff;
  --text-muted: #a7b3ce;
  --text-faint: #7886a3;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.10);
  --glass: rgba(13, 20, 38, 0.55);
  --grid-line: rgba(255, 255, 255, 0.05);
  --shadow-color: 230 60% 4%;
  color: var(--text);
  background: var(--bg);
}

/* 2. RESET / BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02","cv03","cv04","ss01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(47,92,240,.22); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* 3. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { color: var(--text-muted); }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text-muted); max-width: 60ch; }
strong { color: var(--text); font-weight: 650; }
.text-grad {
  background: linear-gradient(100deg, var(--brand-400) 0%, var(--cyan) 60%, #b8e6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--font-mono); }

/* 4. LAYOUT ================================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: .75rem; } .gap { gap: 1.25rem; } .gap-lg { gap: 2rem; }
.wrap { flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 1.1rem;
}
.surface-dark .eyebrow { color: var(--cyan-soft); }
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: currentColor; opacity: .55;
}
.section-head { max-width: 56ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.1rem; }
.section-head.center .lead { margin-inline: auto; }

/* 5. BUTTONS =============================================================== */
.btn {
  --b-bg: var(--brand-500);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .96rem; letter-spacing: -0.01em;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  background: var(--b-bg); color: #fff; white-space: nowrap;
  border: 1px solid transparent; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-md);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
}
.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: var(--shadow-md); border-color: var(--brand-300); color: var(--text); }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none;
}
.btn-outline:hover { border-color: var(--brand-400); color: var(--brand-500); box-shadow: none; transform: translateY(-2px); }
.surface-dark .btn-outline { color: #fff; }
.surface-dark .btn-outline:hover { color: #fff; border-color: var(--cyan); background: rgba(255,255,255,.04); }
.btn-lg { padding: 1.02rem 1.85rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--brand-500); font-size: .95rem;
  transition: gap .25s var(--ease), color .2s var(--ease);
}
.surface-dark .link-arrow { color: var(--cyan-soft); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { gap: .7rem; }
.link-arrow:hover svg { transform: translateX(2px); }

/* 6. BADGES / PILLS ======================================================== */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .85rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); box-shadow: var(--shadow-sm);
}
.pill-brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.surface-dark .pill { background: rgba(255,255,255,.05); }
.surface-dark .pill-brand { background: rgba(63,199,255,.10); color: var(--cyan-soft); border-color: rgba(63,199,255,.25); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.tag { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* 7. CARDS ================================================================= */
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.5vw, 2rem);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.surface-dark .card-hover:hover { border-color: rgba(63,199,255,.35); }
.card-glass { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, var(--brand-50), #fff);
  border: 1px solid var(--brand-100); color: var(--brand-600);
  box-shadow: var(--shadow-sm);
}
.surface-dark .icon-box {
  background: linear-gradient(150deg, rgba(63,199,255,.14), rgba(47,92,240,.10));
  border-color: rgba(63,199,255,.22); color: var(--cyan-soft);
}
.icon-box svg { width: 26px; height: 26px; }

/* feature card with top sheen line */
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-300), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.feature-card:hover::before { opacity: 1; }

/* 8. HEADER / NAV ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(8,13,27,.5);
}
/* header sitting over a dark hero — keep nav legible until scrolled */
.site-header.over-dark:not(.scrolled) .brand { color: #f3f6ff; }
.site-header.over-dark:not(.scrolled) .brand span { color: inherit; }
.site-header.over-dark:not(.scrolled) .nav-link { color: rgba(243,246,255,.82); }
.site-header.over-dark:not(.scrolled) .nav-link:hover,
.site-header.over-dark:not(.scrolled) .nav-item:hover .nav-link { color: #fff; }
.site-header.over-dark:not(.scrolled) .nav-toggle { border-color: rgba(255,255,255,.28); color: #fff; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; color: var(--text); }
.brand .mark { width: 34px; height: 34px; }
.mark-chip { display: block; background: #fff; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.mark-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* horizontal logo lockup (2026 brand) */
.brand-lockup { gap: 0; flex: 0 0 auto; line-height: 0; }
.brand-img { height: 42px; width: auto; max-width: 100%; display: block; }
@media (max-width: 600px) { .brand-img { height: 34px; } }
/* white badge so the gradient logo reads on dark surfaces (footer / mobile menu) */
.brand-plaque { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 7px 13px; line-height: 0; box-shadow: var(--shadow-sm); }
.brand-plaque img { display: block; width: auto; height: 36px; }
@media (max-width: 600px) { .brand-plaque img { height: 32px; } }

/* header: icon + OSSYS wordmark (no strapline). mix-blend hides the icon's white box on the light header */
.brand-mark { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.brand-icon { height: 34px; width: auto; display: block; mix-blend-mode: multiply; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.42rem; letter-spacing: .02em; color: var(--text); line-height: 1; }
@media (max-width: 600px) { .brand-icon { height: 30px; } .brand-word { font-size: 1.22rem; } }
.brand b { font-weight: 800; }
.brand span { color: inherit; }
.surface-dark .brand span { color: inherit; }

.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .85rem; border-radius: 10px;
  font-weight: 550; font-size: .95rem; color: var(--text-muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); opacity: .7; }
.nav-item:hover .nav-link .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(720px, 90vw); padding: 1.1rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.surface-dark .mega { background: var(--ink-850); }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.mega-link { display: flex; gap: .85rem; padding: .8rem; border-radius: 14px; transition: background .2s var(--ease); }
.mega-link:hover { background: var(--surface-2); }
.mega-link .icon-box { width: 42px; height: 42px; border-radius: 11px; }
.mega-link .icon-box svg { width: 21px; height: 21px; }
.mega-link h5 { font-family: var(--font-sans); font-size: .92rem; font-weight: 650; color: var(--text); margin-bottom: .12rem; }
.mega-link p { font-size: .82rem; line-height: 1.4; color: var(--text-faint); }
.mega-foot { margin-top: .6rem; padding: .85rem 1rem; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Mobile nav */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; border: 1px solid var(--border); }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none;
}
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(6,9,18,.55); opacity: 0; transition: opacity .35s var(--ease); }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 88vw);
  background: var(--ink-900); color: #f3f6ff; padding: 1.25rem var(--gutter) 2rem;
  transform: translateX(100%); transition: transform .4s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-nav.open { visibility: visible; pointer-events: auto; }
.mobile-nav.open .mobile-nav__scrim { opacity: 1; }
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.m-link { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #f3f6ff; border-bottom: 1px solid rgba(255,255,255,.08); }
.m-link svg { width: 18px; height: 18px; opacity: .6; }

/* 9. FOOTER ================================================================ */
.site-footer { background: var(--ink-950); color: #cdd6e8; padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 320px at 12% -10%, rgba(47,92,240,.22), transparent 70%);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.footer-col h6 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #7886a3; margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: .35rem 0; color: #aeb9d1; font-size: .92rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-brand p { color: #97a3bd; font-size: .92rem; max-width: 34ch; margin-top: 1rem; }
.footer-bottom { position: relative; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.09); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: .85rem; color: #8593af; }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); color: #cdd6e8; transition: all .25s var(--ease); }
.social a:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* 10. HERO ================================================================= */
.hero { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 78%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; top: -180px; left: -80px; background: radial-gradient(circle, rgba(47,92,240,.55), transparent 65%); }
.glow-2 { width: 480px; height: 480px; top: -120px; right: -120px; background: radial-gradient(circle, rgba(63,199,255,.42), transparent 65%); }
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }

/* WebGL hero stage */
.hero-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 520px;
  border-radius: var(--radius-xl); overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(58% 52% at 50% 44%, rgba(63,199,255,.16), transparent 70%),
    radial-gradient(76% 72% at 50% 58%, rgba(47,92,240,.13), transparent 72%);
}
.hero-stage::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  border: 1px solid var(--border); opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, transparent 95%, #000 100%);
  mask-image: radial-gradient(closest-side, transparent 95%, #000 100%);
}
.hero-stage canvas {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  display: block; pointer-events: none;
}
.hero-stage__badge {
  position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .45rem .9rem; border-radius: var(--radius-pill);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
}
/* graceful fallback when WebGL is unavailable */
.hero-stage.no-webgl::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%; filter: blur(6px);
  background: radial-gradient(circle at 50% 45%, rgba(47,92,240,.40), rgba(63,199,255,.14) 58%, transparent 72%);
}

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 1.6rem clamp(1rem,2vw,1.6rem); text-align: left; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.stat .num .text-grad, .stat .num span { background: linear-gradient(120deg, var(--brand-500), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: .55rem; font-size: .86rem; color: var(--text-muted); }

/* logo marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee .logo { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text-faint); display: flex; align-items: center; gap: .5rem; opacity: .85; white-space: nowrap; }
.marquee .logo svg { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* 11. SECTION DECOR ======================================================== */
.bg-soft { background: var(--bg-soft); }
.divider-top { border-top: 1px solid var(--border); }
.product-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar i:nth-child(1){ background:#ff5f57 } .browser-bar i:nth-child(2){ background:#febc2e } .browser-bar i:nth-child(3){ background:#28c840 }
.browser-url { margin-left: .6rem; font-size: .76rem; color: var(--text-faint); font-family: var(--font-mono); }

/* mock dashboard */
.mock { padding: 1.1rem; display: grid; gap: .8rem; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.mock-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.mock-kpi { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: .85rem; }
.mock-kpi .k { font-size: .68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.mock-kpi .v { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-top: .25rem; color: var(--text); }
.mock-kpi .v small { font-size: .7rem; color: #16a34a; font-weight: 600; margin-left: .3rem; }
.mock-chart { height: 132px; border: 1px solid var(--card-border); border-radius: 12px; background: var(--card); padding: .8rem; display: flex; align-items: flex-end; gap: .5rem; }
.mock-chart span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); opacity: .85; }
.mock-chart span:nth-child(even){ background: linear-gradient(180deg, var(--cyan), var(--brand-500)); }

.float-card {
  position: absolute; background: var(--glass); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border);
  border-radius: 16px; padding: .85rem 1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem;
}
.float-card .dot-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.surface-dark .float-card .dot-icon { background: rgba(63,199,255,.14); color: var(--cyan-soft); }
.float-card .dot-icon svg { width: 20px; height: 20px; }
.float-card .ttl { font-size: .82rem; font-weight: 650; color: var(--text); }
.float-card .sub { font-size: .72rem; color: var(--text-faint); }

/* 12. FORMS ================================================================ */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field label .req { color: #e0392f; }
.field .hint { font-size: .78rem; color: var(--text-faint); }
.input, .textarea, .select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-size: .96rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--ring); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237e8aa3' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-note { font-size: .82rem; color: var(--text-faint); }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); color: #15803d; font-weight: 600; align-items: center; gap: .6rem; }
.form-success.show { display: flex; }
.surface-dark .form-success { color: #86efac; }
.form-error { display: none; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(224,57,47,.1); border: 1px solid rgba(224,57,47,.35); color: #b91c1c; font-weight: 600; align-items: center; gap: .6rem; }
.form-error.show { display: flex; }
.surface-dark .form-error { color: #fca5a5; }

/* 13. COMPONENTS =========================================================== */
/* CTA banner */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(2.5rem, 5vw, 4.5rem); background: linear-gradient(135deg, var(--ink-850), var(--brand-800) 130%); }
.cta-banner .grid-overlay { -webkit-mask-image: radial-gradient(ellipse 70% 100% at 80% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 100% at 80% 50%, #000, transparent 75%); }

/* checklist */
.checklist { display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-muted); }
.checklist li svg { flex: none; width: 22px; height: 22px; color: #22c55e; margin-top: 1px; }
.checklist li strong { display: block; color: var(--text); }

/* step / process */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { display: flex; gap: 1.1rem; }
.step .n { counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.step .n::before { content: "0" counter(step); }
.surface-dark .step .n { background: rgba(63,199,255,.12); color: var(--cyan-soft); border-color: rgba(63,199,255,.22); }

/* accordion */
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text); }
.acc-trigger .ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); transition: transform .3s var(--ease), background .3s; }
.acc-trigger .ico svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.acc-item.open .acc-trigger .ico { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.acc-item.open .acc-trigger .ico svg { transform: rotate(45deg); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.acc-panel-inner { padding-bottom: 1.4rem; color: var(--text-muted); max-width: 70ch; }

/* tabs */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; padding: .4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); width: fit-content; }
.tab { padding: .6rem 1.1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; color: var(--text-muted); transition: all .25s var(--ease); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.surface-dark .tab.active { background: var(--brand-500); color: #fff; }
.tab-panel { display: none; } .tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }

/* avatar / quote */
.quote-card { display: grid; gap: 1.5rem; }
.quote-card blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--cyan)); flex: none; }
.who .name { font-weight: 650; color: var(--text); }
.who .role { font-size: .85rem; color: var(--text-faint); }

/* article card */
.article-card { display: flex; flex-direction: column; height: 100%; padding: 0; }
.article-card .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink-800), var(--brand-700)); }
.article-card .thumb .grid-overlay { -webkit-mask-image: none; mask-image: none; opacity: .5; }
.article-card .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.article-card .thumb .glyph svg { width: 56px; height: 56px; }
.article-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.article-card .meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--text-faint); }
.article-card h3 { font-size: 1.2rem; }
.article-card .body p { font-size: .92rem; flex: 1; }

/* case stat */
.metric { display: grid; gap: .25rem; }
.metric .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1; background: linear-gradient(120deg, var(--brand-500), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .cap { font-size: .88rem; color: var(--text-muted); }

/* value / why card */
.value-row { display: flex; gap: 1.1rem; padding: 1.4rem 0; border-top: 1px solid var(--border); }
.value-row:last-child { border-bottom: 1px solid var(--border); }

/* breadcrumb */
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--brand-500); }
.crumbs svg { width: 14px; height: 14px; }

/* page hero */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero .container { position: relative; z-index: 1; }

/* 14. ANIMATIONS =========================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { 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; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty-2 { animation: floaty 7.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .floaty, .floaty-2 { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .12s !important; }
}

/* 15. UTILITIES ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-sm{margin-top:.75rem} .mt{margin-top:1.25rem} .mt-lg{margin-top:2rem} .mt-xl{margin-top:3rem}
.mb-0{margin-bottom:0} .mxauto{margin-inline:auto}
.maxw-sm{max-width:34ch} .maxw{max-width:52ch} .maxw-lg{max-width:62ch}
.full{width:100%} .relative{position:relative} .hidden{display:none}
.order-first{order:-1}
.divider { height:1px; background:var(--border); border:0; margin-block:0; }
.rounded { border-radius: var(--radius); }
.glass-card { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* 16. RESPONSIVE =========================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.wide-m { grid-column: 1 / -1; }
  .btn-block-m { width: 100%; }
  .hide-sm { display: none; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
}
@media (max-width: 420px) {
  .stat-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
