/* ============================================================
   Mi4 Corporation — Global Stylesheet v2
   Award-Winning Premium Design System
   ============================================================ */

/* --- Import --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors — richer, deeper, more distinctive */
  --obsidian:       #04080f;
  --navy:           #060d1a;
  --navy-900:       #0a1628;
  --navy-800:       #0f1e36;
  --navy-700:       #162440;
  --navy-600:       #1e3055;
  --navy-500:       #2a4575;

  /* Surface colors for dark sections */
  --surface-0:      #060d1a;
  --surface-1:      #0c1829;
  --surface-2:      #112035;
  --surface-3:      #182b47;

  /* Accent — richer orange with glow */
  --orange:         #f95f0a;
  --orange-bright:  #ff7a2a;
  --orange-dim:     #c44a05;
  --orange-glow:    rgba(249, 95, 10, 0.15);
  --orange-glow-sm: rgba(249, 95, 10, 0.08);

  /* Cyan — technology accent */
  --cyan:           #22d3ee;
  --cyan-dim:       #0ea5e9;
  --cyan-glow:      rgba(34, 211, 238, 0.08);

  /* Neutral palette */
  --white:          #ffffff;
  --slate-50:       #f8fafc;
  --slate-100:      #f1f5f9;
  --slate-200:      #e2e8f0;
  --slate-300:      #cbd5e1;
  --slate-400:      #94a3b8;
  --slate-500:      #64748b;
  --slate-600:      #475569;
  --slate-700:      #334155;
  --slate-800:      #1e293b;
  --slate-900:      #0f172a;

  /* Semantic aliases (backwards-compatible) */
  --color-navy:         var(--navy-900);
  --color-navy-800:     var(--navy-800);
  --color-navy-700:     var(--navy-700);
  --color-navy-600:     var(--navy-600);
  --color-blue-primary: #1e3a5f;
  --color-blue-light:   #38bdf8;
  --color-blue-50:      #eff6ff;
  --color-blue-100:     #dbeafe;
  --color-orange:       var(--orange);
  --color-orange-dark:  var(--orange-dim);
  --color-orange-light: #fed7aa;
  --color-orange-50:    #fff7ed;
  --color-white:        var(--white);
  --color-slate-50:     var(--slate-50);
  --color-slate-100:    var(--slate-100);
  --color-slate-200:    var(--slate-200);
  --color-slate-300:    var(--slate-300);
  --color-slate-400:    var(--slate-400);
  --color-slate-500:    var(--slate-500);
  --color-slate-600:    var(--slate-600);
  --color-slate-700:    var(--slate-700);
  --color-slate-800:    var(--slate-800);
  --color-slate-900:    var(--slate-900);
  --color-text:         var(--slate-900);
  --color-text-muted:   var(--slate-500);
  --color-text-light:   var(--slate-400);
  --color-border:       var(--slate-200);
  --color-bg:           var(--white);
  --color-bg-alt:       var(--slate-50);
  --color-success:      #10b981;
  --color-error:        #ef4444;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Scale */
  --text-xs:   0.6875rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;

  /* Layout */
  --max-width:    1280px;
  --container-px: 1.5rem;
  --nav-height:   68px;

  /* Radius */
  --r-sm:   4px;
  --r:      8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Legacy radius aliases */
  --radius-sm:  var(--r-sm);
  --radius:     var(--r);
  --radius-md:  var(--r-md);
  --radius-lg:  var(--r-lg);
  --radius-xl:  var(--r-xl);
  --radius-full: var(--r-full);

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.06);
  --shadow:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.16);
  --shadow-xl:   0 16px 48px rgba(0,0,0,0.2);
  --shadow-2xl:  0 24px 64px rgba(0,0,0,0.28);
  --shadow-card: 0 2px 8px rgba(4,8,15,0.06), 0 8px 32px rgba(4,8,15,0.04);
  --shadow-card-hover: 0 4px 24px rgba(4,8,15,0.12), 0 16px 48px rgba(4,8,15,0.08);
  --shadow-glow-orange: 0 0 32px rgba(249,95,10,0.25), 0 0 64px rgba(249,95,10,0.1);
  --shadow-glow-cyan: 0 0 32px rgba(34,211,238,0.15);

  /* Transitions */
  --ease-out:   cubic-bezier(0.0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:  120ms var(--ease-out);
  --t-base:  200ms var(--ease-out);
  --t-slow:  350ms var(--ease-out);
  --transition: var(--t-base);
  --transition-slow: var(--t-slow);

  /* Spacing aliases for backwards compat */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.625;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: 6rem;
}

.section--alt {
  background: var(--slate-50);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--darker {
  background: var(--navy-900);
  color: var(--white);
}

.section--gradient {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-600) 100%);
  color: var(--white);
}

/* ============================================================
   GRAIN TEXTURE (adds depth to dark backgrounds)
   ============================================================ */
.grain {
  position: relative;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.grain > * { position: relative; z-index: 1; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.heading-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.heading-hero {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-page {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-section {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-card {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-lead {
  font-size: clamp(var(--text-lg), 1.5vw, var(--text-xl));
  line-height: 1.65;
  color: var(--color-text-muted);
}

.text-lead--light {
  color: rgba(255,255,255,0.65);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow--light {
  color: var(--orange-bright);
}

.eyebrow--cyan {
  color: var(--cyan);
}

.gradient-text {
  background: linear-gradient(120deg, var(--orange-bright) 0%, #ff9a3c 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--orange {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white { color: white; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  transition: width 0.6s var(--ease-out);
}

.nav--solid::after { width: 100%; }

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(4, 8, 15, 0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 24px rgba(0,0,0,0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  flex-shrink: 0;
  transition: opacity var(--t-base);
}
.nav__logo:hover { opacity: 0.85; }

.nav__logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.06em;
  box-shadow: 0 2px 8px rgba(249, 95, 10, 0.4);
  flex-shrink: 0;
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  padding: 7px 13px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--r);
  transition: color var(--t-base), background var(--t-base);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* Dropdown */
.nav__dropdown { position: relative; }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 260px;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.nav__dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile toggle */
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Mobile nav */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 20px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 99;
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
}

.nav__mobile.is-open { display: flex; }

.nav__mobile-link {
  padding: 10px 14px;
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--r);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__mobile-link:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.nav__mobile-section {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 4px;
}

.nav__mobile-section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 4px 14px 8px;
}

/* ============================================================
   BUTTONS — premium with glow and hover states
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r);
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
}

/* Primary — orange with glow */
.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(249,95,10,0.25), 0 4px 16px rgba(249,95,10,0.2);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  opacity: 0;
  transition: opacity var(--t-base);
}

.btn--primary:hover::before { opacity: 1; }

.btn--primary:hover {
  box-shadow: 0 2px 8px rgba(249,95,10,0.35), 0 8px 32px rgba(249,95,10,0.25);
  transform: translateY(-1px);
}

.btn--primary:active { transform: translateY(0); }

/* Secondary — glass */
.btn--secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

.btn--outline:hover {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 16px rgba(249,95,10,0.3);
}

/* Ghost (light backgrounds) */
.btn--ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
}

.btn--ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

/* Dark */
.btn--dark {
  background: var(--navy-900);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn--dark:hover {
  background: var(--navy-800);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* Sizes */
.btn--sm  { padding: 0.375rem 0.875rem; font-size: var(--text-xs); border-radius: var(--r); }
.btn--lg  { padding: 0.875rem 1.75rem; font-size: var(--text-base); border-radius: var(--r-md); }
.btn--xl  { padding: 1rem 2.25rem; font-size: var(--text-lg); border-radius: var(--r-md); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 10% 50%, rgba(249,95,10,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(34,211,238,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(10,22,40,0.9) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% -20%, rgba(22,36,64,0.6) 0%, transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 5rem;
  width: 100%;
}

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 90% at 15% 50%, rgba(249,95,10,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 20%, rgba(34,211,238,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.4);
  transition: color var(--t-fast);
}

.page-hero__breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.page-hero__breadcrumb-sep { color: rgba(255,255,255,0.2); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-header .eyebrow { margin-bottom: 12px; }
.section-header .heading-section { margin-bottom: 16px; }

/* ============================================================
   CARDS — with spotlight hover effect
   ============================================================ */
.card {
  --sx: 50%;
  --sy: 50%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-slow), transform var(--t-slow), border-color var(--t-slow);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--slate-300);
}

/* Spotlight hover (JS adds --sx/--sy) */
.card--spotlight {
  background:
    radial-gradient(circle at var(--sx) var(--sy), rgba(249,95,10,0.04) 0%, transparent 60%),
    var(--white);
}

.card--glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  transition: background var(--t-slow), border-color var(--t-slow), transform var(--t-slow);
}

.card--glass:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

/* Spotlight on dark glass cards */
.card--glass-spotlight {
  background:
    radial-gradient(circle at var(--sx) var(--sy), rgba(249,95,10,0.06) 0%, transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  transition: background var(--t-slow), border-color var(--t-slow), transform var(--t-slow);
}

.card--glass-spotlight:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.card--featured {
  border-color: rgba(249,95,10,0.4);
  box-shadow: 0 0 0 1px rgba(249,95,10,0.2), 0 4px 32px rgba(249,95,10,0.1);
}

/* ============================================================
   ANIMATED BORDER CARDS (glowing ring on hover)
   ============================================================ */
.card--glow {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-slow), transform var(--t-slow);
}

.card--glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--orange), var(--cyan), var(--orange));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity var(--t-slow);
  z-index: -1;
}

.card--glow:hover::before { opacity: 1; }
.card--glow:hover {
  box-shadow: 0 8px 40px rgba(249,95,10,0.15);
  transform: translateY(-3px);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
  display: grid;
  gap: 20px;
}

.features-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   BENTO GRID (homepage product showcase)
   ============================================================ */
.bento {
  display: grid;
  gap: 16px;
}

.bento--products {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.bento__item--span2 { grid-column: span 2; }
.bento__item--tall  { grid-row: span 2; }

/* ============================================================
   STATS
   ============================================================ */
.stats-strip {
  background: var(--navy);
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 0% 50%, rgba(249,95,10,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 80% at 100% 50%, rgba(34,211,238,0.04) 0%, transparent 55%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__number span { color: var(--orange-bright); }

.stat__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Dividers between stats */
.stats-grid > * + * {
  border-left: 1px solid rgba(255,255,255,0.07);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 95% 50%, rgba(249,95,10,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 30% 60% at 5% 50%, rgba(34,211,238,0.04) 0%, transparent 55%);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,95,10,0.4), rgba(34,211,238,0.2), transparent);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding-block: 5rem;
}

/* ============================================================
   MARQUEE (trusted by strip)
   ============================================================ */
.marquee {
  overflow: hidden;
  display: flex;
  gap: 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 28s linear infinite;
  flex-shrink: 0;
}

.marquee__track--dup {
  animation: marquee-scroll 28s linear infinite;
  flex-shrink: 0;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.marquee__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ============================================================
   TESTIMONIALS — editorial style
   ============================================================ */
.testimonial-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--orange-bright);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-700);
  flex: 1;
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.75;
  color: var(--orange);
  font-weight: 900;
  display: block;
  margin-bottom: 12px;
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--slate-900);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--slate-400);
  margin-top: 2px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge--orange { background: #fff4ee; color: var(--orange-dim); border: 1px solid #ffd4ba; }
.badge--blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge--green  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge--dark   { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.12); }
.badge--cyan   { background: rgba(34,211,238,0.08); color: var(--cyan); border: 1px solid rgba(34,211,238,0.2); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-card {
  border-radius: var(--r-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
}

.pricing-feature__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #10b981;
}

/* ============================================================
   FOOTER — architectural, premium
   ============================================================ */
.footer {
  background: var(--obsidian);
  color: rgba(255,255,255,0.65);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,95,10,0.3), rgba(34,211,238,0.15), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(249,95,10,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast);
}

.footer__link:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer__copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
}

.scroll-indicator__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(0.8); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.65s cubic-bezier(0.0, 0, 0.2, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }
.animate-delay-6 { animation-delay: 0.6s; opacity: 0; }

.float { animation: float 5s ease-in-out infinite; }

/* Scroll-triggered reveals */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.0, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.0, 0, 0.2, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-delay="4"] { transition-delay: 0.32s; }
[data-animate][data-delay="5"] { transition-delay: 0.40s; }
[data-animate][data-delay="6"] { transition-delay: 0.48s; }

/* Stagger variant for grids */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate-stagger].is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.00s; }
[data-animate-stagger].is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
[data-animate-stagger].is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
[data-animate-stagger].is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
[data-animate-stagger].is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
[data-animate-stagger].is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

/* ============================================================
   INTEGRATION PILLS
   ============================================================ */
.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-full);
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}

.integration-pill:hover {
  background: rgba(255,255,255,0.09);
  color: white;
  border-color: rgba(255,255,255,0.18);
}

.integration-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ============================================================
   LOGOS STRIP (legacy)
   ============================================================ */
.logos-strip {
  padding-block: 3rem;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.logos-strip__label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.logos-strip__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logos-strip__logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--slate-300);
  letter-spacing: -0.02em;
  opacity: 0.55;
  transition: opacity var(--t-base);
}

.logos-strip__logo:hover { opacity: 0.9; }

/* ============================================================
   DASHBOARD MOCKUP
   ============================================================ */
.dashboard-mockup {
  background: var(--navy-900);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255,255,255,0.03);
}

.dashboard-mockup__bar {
  background: var(--navy-800);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dashboard-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-mockup__content { padding: 1.5rem; }

/* ============================================================
   UTILITY
   ============================================================ */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.w-full { width: 100%; }
.relative   { position: relative; }
.overflow-hidden { overflow: hidden; }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-banner__content { grid-template-columns: 1fr; text-align: center; }
  .stats-grid > * + * { border-left: none; }
}

@media (max-width: 768px) {
  :root { --container-px: 1.125rem; }
  .section { padding-block: 4rem; }
  .section-header { margin-bottom: 2.5rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__mobile-toggle { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .features-grid--2,
  .features-grid--3,
  .features-grid--4 { grid-template-columns: 1fr; }
  .hero__content { padding-block: 4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner__content { grid-template-columns: 1fr; }
  .bento--products { grid-template-columns: 1fr; }
  .bento__item--span2 { grid-column: span 1; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn--xl { padding: 0.875rem 1.5rem; font-size: var(--text-base); }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .footer, .cta-banner { display: none; }
  body { font-size: 12pt; }
}
