/* ============================================================
   L2M CAMPUS — Campus Operating System
   Design System & Global Styles
   Theme: Deep Navy base · Indigo → Cyan accent
   ============================================================ */

:root {
  /* ---- Brand ---- */
  --indigo: #6366F1;
  --indigo-light: #818CF8;
  --cyan: #22D3EE;
  --blue: #06B6D4;
  --violet: #8B5CF6;

  /* Lively supporting colors (app / Google-Pay vibe) */
  --sky: #38BDF8;
  --emerald: #34D399;
  --teal: #2DD4BF;
  --amber: #FBBF24;
  --coral: #FB7185;
  --pink: #F472B6;

  --gradient-brand: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(99,102,241,0.9) 0%, rgba(6,182,212,0.9) 100%);
  --gradient-text: linear-gradient(90deg, #818CF8 0%, #38BDF8 45%, #22D3EE 100%);
  --gradient-mesh: radial-gradient(circle at 20% 20%, rgba(99,102,241,0.18), transparent 45%),
                   radial-gradient(circle at 80% 30%, rgba(34,211,238,0.14), transparent 45%),
                   radial-gradient(circle at 50% 85%, rgba(124,58,237,0.12), transparent 50%);

  /* ---- Backgrounds ---- */
  --bg-primary: #0a1024;
  --bg-secondary: #0c1330;
  --bg-tertiary: #101a3d;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(12, 19, 48, 0.7);
  --bg-glass-light: rgba(20, 30, 66, 0.55);

  /* ---- Text ---- */
  --text-primary: #ffffff;
  --text-secondary: rgba(226, 232, 255, 0.68);
  --text-muted: rgba(200, 212, 245, 0.4);

  /* ---- Borders ---- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.4);
  --border-glow: rgba(34, 211, 238, 0.25);

  /* ---- Glow ---- */
  --glow-indigo: 0 8px 32px rgba(99, 102, 241, 0.25);
  --glow-cyan: 0 8px 32px rgba(34, 211, 238, 0.2);
  --glow-strong: 0 12px 48px rgba(99, 102, 241, 0.32);

  /* ---- Typography ---- */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- Layout ---- */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-padding: clamp(1.25rem, 5vw, 3.5rem);
  --section-padding: clamp(4.5rem, 11vw, 8.5rem);
  --nav-height: 74px;

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* ---- Motion ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.3s var(--ease-out-quart);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
}
::selection { background: rgba(99, 102, 241, 0.35); color: #fff; }
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ---- Typography helpers ---- */
.heading-hero {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
}
.heading-section {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
}
.heading-card {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 600; line-height: 1.25; letter-spacing: -0.01em;
}
.body-large { font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.75; }
.body-base { font-size: 0.96rem; line-height: 1.75; }
.text-grad {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
}

/* ---- Layout ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-padding); position: relative; z-index: 1; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--container-padding); }
.section { padding-block: var(--section-padding); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .label { margin-bottom: 1rem; display: inline-block; }
.section-head p { color: var(--text-secondary); margin-top: 1.1rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-md);
  transition: var(--transition-base); position: relative; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand); color: #fff;
  box-shadow: var(--glow-indigo);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text-primary);
  border: 1px solid var(--border-subtle); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-accent); background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */
.grid-bg {
  display: none;
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.cursor-glow {
  position: fixed; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 65%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  transition: opacity 0.4s; opacity: 0; left: 0; top: 0; will-change: transform;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader__content { display: grid; place-items: center; gap: 1.4rem; }
.loader__logo { width: 220px; }
.loader__bar { width: 200px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.loader__bar-fill { height: 100%; width: 0; background: var(--gradient-brand); border-radius: 2px; animation: loadfill 1.4s var(--ease-out-expo) forwards; }
@keyframes loadfill { to { width: 100%; } }
.loader__text { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg-glass); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-subtle);
}
.nav__container {
  max-width: var(--container-wide); width: 100%; margin: 0 auto;
  padding-inline: var(--container-padding);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo-img { height: 46px; width: auto; }

/* ---- Brand wordmark (rounded font, matches L2M Labs style) ---- */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 0.92; }
.brand__main { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 1.85rem; letter-spacing: 0.01em; color: #F4F7FF; }
.brand__accent { color: var(--cyan); }
.brand__sub { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 700; font-size: 0.62rem; letter-spacing: 0.42em; color: #9db0d6; margin-top: 2px; padding-left: 0.42em; }
.brand--lg .brand__main { font-size: 2.4rem; }
.brand--lg .brand__sub { font-size: 0.78rem; letter-spacing: 0.55em; padding-left: 0.55em; }
.brand--xl .brand__main { font-size: 3rem; }
.brand--xl .brand__sub { font-size: 0.95rem; letter-spacing: 0.62em; padding-left: 0.62em; }
.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  font-size: 0.9rem; font-weight: 500; color: rgba(230,236,255,0.85);
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.btn-nav {
  background: var(--gradient-brand); color: #fff !important;
  padding: 0.6rem 1.25rem; border-radius: var(--radius-md);
  box-shadow: var(--glow-indigo); margin-left: 0.5rem;
}
.btn-nav:hover { transform: translateY(-1px); background: var(--gradient-brand); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__chevron {
  width: 14px; height: 14px; margin-left: 5px; display: inline-block; vertical-align: middle;
  transition: transform 0.25s ease, opacity 0.25s ease; opacity: 0.7; flex-shrink: 0; stroke-width: 2.2;
}
.nav__item:hover .nav__chevron,
.nav__item.active .nav__chevron { transform: rotate(180deg); opacity: 1; }

/* Dropdown (modules) */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 620px; padding: 1rem; border-radius: var(--radius-lg);
  background: #0d1638; backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 30px 70px rgba(0,0,0,0.65);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  opacity: 0; visibility: hidden; transition: 0.28s var(--ease-out-quart); z-index: 120;
}
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__drop-link { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.75rem; border-radius: var(--radius-md); transition: background 0.2s; }
.nav__drop-link:hover { background: rgba(99,102,241,0.18); }
.nav__drop-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: rgba(99,102,241,0.2); border: 1px solid rgba(255,255,255,0.1); }
.nav__drop-ic svg { width: 18px; height: 18px; stroke: var(--cyan); }
.nav__drop-t { font-size: 0.9rem; font-weight: 600; color: #ffffff; }
.nav__drop-d { font-size: 0.78rem; color: rgba(226,232,255,0.72); margin-top: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: calc(var(--nav-height) + 4rem); padding-bottom: 5rem; overflow: hidden; }
.hero__particles { position: absolute; inset: 0; z-index: 1; }
.hero__mesh { position: absolute; inset: 0; z-index: 0; background: var(--gradient-mesh); pointer-events: none; }
.hero__container { position: relative; z-index: 10; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 100px; margin-bottom: 1.6rem;
  background: rgba(99,102,241,0.1); border: 1px solid var(--border-accent);
  font-size: 0.78rem; font-weight: 500; color: var(--indigo-light);
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { margin-bottom: 1.4rem; }
.hero__sub { color: var(--text-secondary); max-width: 560px; margin-bottom: 2.2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero__stat .n { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; }
.hero__stat .l { font-size: 0.8rem; color: var(--text-muted); }

/* Hero visual — floating dashboard */
.hero__visual { position: relative; }
.hero__card {
  background: var(--bg-glass-light); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 1.3rem;
  backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero__card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.hero__card-top .dots { display: flex; gap: 6px; }
.hero__card-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.hero__card-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; }
.hero__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.7rem; margin-bottom: 1rem; }
.hero__kpi { background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 0.8rem; }
.hero__kpi .v { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.hero__kpi .k { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.hero__kpi.up .v { color: var(--cyan); }
.hero__chart { height: 90px; display: flex; align-items: flex-end; gap: 7px; padding: 0.6rem 0.2rem 0; }
.hero__chart span { flex: 1; background: var(--gradient-brand); border-radius: 4px 4px 0 0; opacity: 0.85; animation: grow 1.2s var(--ease-out-expo) backwards; }
@keyframes grow { from { height: 0 !important; opacity: 0; } }
.hero__rows { margin-top: 1rem; display: grid; gap: 0.5rem; }
.hero__row { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.03); border-radius: 9px; padding: 0.55rem 0.7rem; }
.hero__row .av { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-brand); flex-shrink: 0; }
.hero__row .rt { font-size: 0.8rem; color: var(--text-secondary); }
.hero__row .badge { margin-left: auto; font-size: 0.66rem; padding: 2px 8px; border-radius: 100px; background: rgba(34,211,238,0.14); color: var(--cyan); }
.hero__float-badge {
  position: absolute; padding: 0.7rem 1rem; border-radius: var(--radius-md);
  background: var(--bg-glass); border: 1px solid var(--border-accent);
  backdrop-filter: blur(14px); box-shadow: var(--glow-indigo);
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; font-weight: 500;
}
.hero__float-badge svg { width: 20px; height: 20px; stroke: var(--cyan); }
.hero__float-badge.one { top: -18px; right: -10px; animation: floaty 5s ease-in-out infinite; }
.hero__float-badge.two { bottom: 30px; left: -34px; animation: floaty 6s ease-in-out infinite 1s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ---- Hero trust row ---- */
.hero__trust { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero__trust-item { font-size: 0.9rem; color: var(--text-secondary); }
.hero__trust-item strong { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--text-primary); margin-right: 0.35rem; }
.hero__trust .divider { width: 1px; height: 26px; background: var(--border-subtle); }

/* ---- Hero product window (real dashboard mock) ---- */
.hero__visual { position: relative; }
.app-window {
  border-radius: 16px; overflow: hidden;
  background: #0b1330; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.08);
}
.app-window__bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border-subtle); }
.app-window__bar .tl { display: flex; gap: 6px; }
.app-window__bar .tl i { width: 11px; height: 11px; border-radius: 50%; }
.app-window__bar .tl i:nth-child(1) { background: #ff5f57; }
.app-window__bar .tl i:nth-child(2) { background: #febc2e; }
.app-window__bar .tl i:nth-child(3) { background: #28c840; }
.app-window__bar .url { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); background: rgba(0,0,0,0.25); padding: 0.28rem 0.8rem; border-radius: 7px; flex: 1; text-align: center; }
.app-window__body { display: grid; grid-template-columns: 128px 1fr; min-height: 320px; }
.aw-side { background: rgba(0,0,0,0.18); border-right: 1px solid var(--border-subtle); padding: 0.9rem 0.6rem; }
.aw-side .aw-brand { font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem; padding: 0.2rem 0.5rem 0.9rem; color: var(--text-primary); }
.aw-side .aw-brand b { color: var(--cyan); }
.aw-nav { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.55rem; border-radius: 8px; font-size: 0.76rem; color: var(--text-secondary); margin-bottom: 2px; }
.aw-nav .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.aw-nav.active { background: var(--gradient-brand-soft); color: #fff; box-shadow: var(--glow-indigo); }
.aw-nav.active .d { opacity: 1; background: #fff; }
.aw-main { padding: 1.1rem; }
.aw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.aw-head .h { font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; }
.aw-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.66rem; font-family: var(--font-mono); color: var(--cyan); text-transform: uppercase; letter-spacing: 0.08em; }
.aw-head .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.aw-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.aw-kpi { background: rgba(255,255,255,0.035); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 0.7rem 0.75rem; }
.aw-kpi .k { font-size: 0.64rem; color: var(--text-muted); }
.aw-kpi .v { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin-top: 3px; }
.aw-kpi .t { font-size: 0.62rem; color: var(--cyan); margin-top: 1px; }
.aw-kpi .t.up::before { content: '▲ '; }
.aw-chartbox { background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 0.8rem; margin-bottom: 0.9rem; }
.aw-chartbox .cl { font-size: 0.66rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.aw-bars { height: 74px; display: flex; align-items: flex-end; gap: 6px; }
.aw-bars span { flex: 1; background: var(--gradient-brand); border-radius: 3px 3px 0 0; opacity: 0.9; animation: grow 1.2s var(--ease-out-expo) backwards; }
.aw-feed { display: grid; gap: 0.45rem; }
.aw-fitem { display: flex; align-items: center; gap: 0.6rem; font-size: 0.74rem; color: var(--text-secondary); }
.aw-fitem .fi { width: 24px; height: 24px; border-radius: 7px; background: rgba(99,102,241,0.16); display: grid; place-items: center; flex-shrink: 0; }
.aw-fitem .fi svg { width: 13px; height: 13px; stroke: var(--cyan); fill: none; stroke-width: 2; }
.aw-fitem .tag { margin-left: auto; font-size: 0.6rem; padding: 2px 7px; border-radius: 100px; background: rgba(34,211,238,0.14); color: var(--cyan); }

.hero__phone {
  position: absolute; bottom: -26px; right: -22px; width: 168px;
  background: linear-gradient(160deg,#1a2450,#0c1330); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px; padding: 7px; box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  animation: floaty 6s ease-in-out infinite;
}
.hero__phone .scr { border-radius: 16px; overflow: hidden; background: var(--bg-secondary); }
.hero__phone .ph-hd { background: var(--gradient-brand-soft); padding: 0.8rem 0.7rem 0.6rem; }
.hero__phone .ph-hd .t { font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem; }
.hero__phone .ph-hd .s { font-size: 0.6rem; color: rgba(255,255,255,0.85); }
.hero__phone .ph-b { padding: 0.6rem; display: grid; gap: 0.4rem; }
.hero__phone .ph-t { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 0.45rem 0.55rem; font-size: 0.62rem; color: var(--text-secondary); }
.hero__phone .ph-t b { display: block; font-family: var(--font-heading); font-size: 0.85rem; color: var(--text-primary); }

@media (max-width: 1024px) {
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__phone { right: 0; }
}
@media (max-width: 560px) {
  .app-window__body { grid-template-columns: 1fr; }
  .aw-side { display: none; }
  .hero__phone { display: none; }
  .aw-kpis { grid-template-columns: repeat(3,1fr); }
}

/* ---- Hero illustration (character scene) ---- */
.hero-illus { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-illus > img { width: 100%; max-width: 560px; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4)); animation: floaty 7s ease-in-out infinite; }
.hero-illus .chip { z-index: 5; }
.hero-illus .chip.c1 { top: 6%; left: -4%; }
.hero-illus .chip.c2 { bottom: 12%; right: -6%; }

/* ---- Hero app scene (colorful, Google-Pay style) ---- */
.hero-scene { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.happ {
  position: relative; z-index: 3; width: 300px; padding: 14px;
  background: linear-gradient(165deg, #182352, #0c1430);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 40px;
  box-shadow: 0 44px 100px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.happ__screen { background: #0a1024; border-radius: 30px; overflow: hidden; }
.happ__hd { display: flex; align-items: center; gap: 0.7rem; padding: 1.2rem 1.1rem 0.9rem; background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(34,211,238,0.85)); }
.happ__hd .av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; color: #4338ca; }
.happ__hd .g { font-size: 0.7rem; color: rgba(255,255,255,0.85); }
.happ__hd .n { font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem; color: #fff; }
.happ__hd .bell { margin-left: auto; width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,0.2); display: grid; place-items: center; }
.happ__hd .bell svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.happ__balance { margin: -14px 0.8rem 0; position: relative; z-index: 2; background: linear-gradient(120deg,#7c3aed,#6366f1); border-radius: 18px; padding: 0.9rem 1rem; box-shadow: 0 14px 30px rgba(99,102,241,0.4); }
.happ__balance .bl { font-size: 0.66rem; color: rgba(255,255,255,0.8); }
.happ__balance .bv { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: #fff; }
.happ__balance .bp { position: absolute; right: 0.9rem; top: 0.9rem; font-size: 0.6rem; background: rgba(255,255,255,0.22); color: #fff; padding: 3px 8px; border-radius: 100px; }
.happ__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.55rem; padding: 1rem 0.8rem 0.5rem; }
.happ__tile { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.happ__tile .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; }
.happ__tile .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.happ__tile .lb { font-size: 0.58rem; color: var(--text-secondary); text-align: center; }
.t-indigo { background: linear-gradient(140deg,#818cf8,#6366f1); }
.t-cyan { background: linear-gradient(140deg,#22d3ee,#06b6d4); }
.t-violet { background: linear-gradient(140deg,#a78bfa,#8b5cf6); }
.t-emerald { background: linear-gradient(140deg,#34d399,#10b981); }
.t-amber { background: linear-gradient(140deg,#fbbf24,#f59e0b); }
.t-sky { background: linear-gradient(140deg,#38bdf8,#0ea5e9); }
.t-coral { background: linear-gradient(140deg,#fb7185,#f43f5e); }
.t-teal { background: linear-gradient(140deg,#2dd4bf,#14b8a6); }
.happ__promo { margin: 0.4rem 0.8rem 1rem; display: flex; align-items: center; gap: 0.6rem; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.25); border-radius: 14px; padding: 0.65rem 0.8rem; }
.happ__promo .pic { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(140deg,#34d399,#10b981); display: grid; place-items: center; flex-shrink: 0; }
.happ__promo .pic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.happ__promo .pt { font-size: 0.68rem; color: var(--text-secondary); }
.happ__promo .pt b { display: block; color: var(--text-primary); font-size: 0.76rem; }

/* Floating chips around phone */
.chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 0.5rem; background: var(--bg-glass); border: 1px solid var(--border-subtle); backdrop-filter: blur(14px); border-radius: 14px; padding: 0.6rem 0.8rem; box-shadow: 0 16px 36px rgba(0,0,0,0.4); }
.chip .ci { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.chip .ci svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.chip .ct { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.2; }
.chip .ct b { display: block; color: var(--text-primary); font-size: 0.82rem; }
.chip.c1 { top: 34px; left: -26px; animation: floaty 5.5s ease-in-out infinite; }
.chip.c2 { top: 150px; right: -34px; animation: floaty 6.5s ease-in-out infinite 0.8s; }
.chip.c3 { bottom: 40px; left: -30px; animation: floaty 6s ease-in-out infinite 0.4s; }
.chip .ring { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#22d3ee 0 76%, rgba(255,255,255,0.12) 76% 100%); display: grid; place-items: center; }
.chip .ring::after { content: '94'; font-size: 0.56rem; font-weight: 700; color: #fff; width: 24px; height: 24px; background: #0c1430; border-radius: 50%; display: grid; place-items: center; }

@media (max-width: 1024px) { .hero-scene { min-height: 480px; } }
@media (max-width: 420px) {
  .happ { width: 264px; }
  .chip.c1 { left: -12px; } .chip.c2 { right: -10px; } .chip.c3 { left: -8px; }
}

/* ---- Marquee / trusted strip ---- */
.trust-strip { border-block: 1px solid var(--border-subtle); padding-block: 2.2rem; background: rgba(255,255,255,0.012); }
.trust-strip__label { text-align: center; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.6rem; }
.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: scrollx 32s linear infinite; }
.marquee__item { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: var(--text-muted); white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   STAT BAND
   ============================================================ */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat-band__item { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); }
.stat-band__n { font-family: var(--font-heading); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; }
.stat-band__l { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.3rem; }

/* ============================================================
   MODULE SUITE
   ============================================================ */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.module-card {
  position: relative; padding: 1.7rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  transition: var(--transition-base); overflow: hidden; display: flex; flex-direction: column;
}
.module-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(99,102,241,0.14), transparent 60%);
}
.module-card:hover { transform: translateY(-5px); border-color: var(--border-accent); background: var(--bg-card-hover); box-shadow: var(--glow-indigo); }
.module-card:hover::before { opacity: 1; }
.module-card__ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(99,102,241,0.12); border: 1px solid var(--border-subtle); margin-bottom: 1.1rem;
}
.module-card__ic svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.module-card__tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--indigo-light); text-transform: uppercase; margin-bottom: 0.5rem; }
.module-card h3 { font-family: var(--font-heading); font-size: 1.22rem; font-weight: 600; margin-bottom: 0.6rem; }
.module-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.1rem; flex-grow: 1; }
.module-card__feats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.module-card__feats span { font-size: 0.72rem; padding: 3px 9px; border-radius: 100px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.module-card__link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--cyan); transition: gap 0.2s; margin-top: auto; }
.module-card__link:hover { gap: 0.7rem; }
.module-card__link svg { width: 15px; height: 15px; }

/* ---- Colorful module tiles (rotating accents) ---- */
.modules-grid .module-card__ic { border: none; }
.modules-grid .module-card:nth-child(9n+1) .module-card__ic { background: rgba(99,102,241,0.16); }
.modules-grid .module-card:nth-child(9n+1) .module-card__ic svg { stroke: #818CF8; }
.modules-grid .module-card:nth-child(9n+2) .module-card__ic { background: rgba(34,211,238,0.16); }
.modules-grid .module-card:nth-child(9n+2) .module-card__ic svg { stroke: #22D3EE; }
.modules-grid .module-card:nth-child(9n+3) .module-card__ic { background: rgba(139,92,246,0.18); }
.modules-grid .module-card:nth-child(9n+3) .module-card__ic svg { stroke: #a78bfa; }
.modules-grid .module-card:nth-child(9n+4) .module-card__ic { background: rgba(52,211,153,0.16); }
.modules-grid .module-card:nth-child(9n+4) .module-card__ic svg { stroke: #34D399; }
.modules-grid .module-card:nth-child(9n+5) .module-card__ic { background: rgba(251,191,36,0.18); }
.modules-grid .module-card:nth-child(9n+5) .module-card__ic svg { stroke: #FBBF24; }
.modules-grid .module-card:nth-child(9n+6) .module-card__ic { background: rgba(56,189,248,0.16); }
.modules-grid .module-card:nth-child(9n+6) .module-card__ic svg { stroke: #38BDF8; }
.modules-grid .module-card:nth-child(9n+7) .module-card__ic { background: rgba(251,113,133,0.16); }
.modules-grid .module-card:nth-child(9n+7) .module-card__ic svg { stroke: #FB7185; }
.modules-grid .module-card:nth-child(9n+8) .module-card__ic { background: rgba(45,212,191,0.16); }
.modules-grid .module-card:nth-child(9n+8) .module-card__ic svg { stroke: #2DD4BF; }
.modules-grid .module-card:nth-child(9n) .module-card__ic { background: rgba(244,114,182,0.16); }
.modules-grid .module-card:nth-child(9n) .module-card__ic svg { stroke: #F472B6; }
.modules-grid .module-card__ic { width: 56px; height: 56px; border-radius: 16px; }
.modules-grid .module-card__ic svg { width: 27px; height: 27px; }
.module-card { border-radius: var(--radius-xl); }

/* ---- Decorative blobs & dots (playful app backdrop) ---- */
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.5; pointer-events: none; z-index: 0; }
.blob.b-indigo { background: rgba(99,102,241,0.5); }
.blob.b-cyan { background: rgba(34,211,238,0.4); }
.blob.b-violet { background: rgba(139,92,246,0.42); }
.blob.b-amber { background: rgba(251,191,36,0.3); }
.section, .hero, .subhero { position: relative; }

/* ============================================================
   FEATURE SPLIT (mobile apps / platform)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split__visual { order: 2; }
.split__list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.split__item { display: flex; gap: 0.9rem; }
.split__item-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--gradient-brand-soft); }
.split__item-ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.split__item h4 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.2rem; }
.split__item p { color: var(--text-secondary); font-size: 0.88rem; }

/* Phone mockup */
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.phone {
  width: 230px; border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #1a2450, #0c1330);
  border: 1px solid var(--border-subtle); box-shadow: 0 40px 90px rgba(0,0,0,0.55);
  position: relative;
}
.phone__screen { border-radius: 26px; overflow: hidden; background: var(--bg-secondary); aspect-ratio: 9/19; display: flex; flex-direction: column; }
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #0c1330; border-radius: 100px; z-index: 3; }
.phone.back { position: absolute; transform: scale(0.86) translateX(-72%) rotate(-8deg); opacity: 0.7; z-index: 1; }
.phone.front { z-index: 2; }
.app-hd { padding: 2rem 1rem 1rem; background: var(--gradient-brand-soft); }
.app-hd .t { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.app-hd .s { font-size: 0.72rem; color: rgba(255,255,255,0.8); }
.app-body { padding: 0.9rem; display: grid; gap: 0.6rem; }
.app-tile { background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 0.7rem; }
.app-tile .at-t { font-size: 0.74rem; color: var(--text-muted); }
.app-tile .at-v { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-top: 2px; }
.app-tile.row { display: flex; align-items: center; gap: 0.6rem; }
.app-tile.row .cir { width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-brand); flex-shrink: 0; }
.app-tile.row .txt { font-size: 0.76rem; }
.store-badges { display: flex; gap: 0.8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.store-badge { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.1rem; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); transition: var(--transition-base); }
.store-badge:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; }
.store-badge .sb-s { font-size: 0.62rem; color: var(--text-muted); }
.store-badge .sb-t { font-size: 0.92rem; font-weight: 600; }

/* ============================================================
   PLATFORM / BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 1.15rem; }
.bento__cell { padding: 1.6rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); position: relative; overflow: hidden; transition: var(--transition-base); }
.bento__cell:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.bento__cell.wide { grid-column: span 2; }
.bento__cell.tall { grid-row: span 2; }
.bento__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,0.1); border: 1px solid var(--border-subtle); margin-bottom: 1rem; }
.bento__ic svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.bento__cell h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.bento__cell p { color: var(--text-secondary); font-size: 0.88rem; }
.bento__big { font-family: var(--font-heading); font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 700; }

/* ============================================================
   WHY / DIFFERENTIATORS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.why-card { display: flex; gap: 1.1rem; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); transition: var(--transition-base); }
.why-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.why-card__ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--gradient-brand-soft); }
.why-card__ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.why-card h4 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; margin-bottom: 0.4rem; }
.why-card p { color: var(--text-secondary); font-size: 0.89rem; }

/* ============================================================
   SECURITY
   ============================================================ */
.sec-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.sec-badges { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.9rem; }
.sec-badge { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-subtle); font-size: 0.9rem; font-weight: 500; }
.sec-badge svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; flex-shrink: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(2.5rem,6vw,4.5rem); background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(34,211,238,0.1)); border: 1px solid var(--border-accent); text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh); opacity: 0.6; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band .btn { margin-top: 1rem; }
.cta-band__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.contact-info { display: grid; gap: 1.4rem; align-content: start; }
.contact-info__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info__ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(99,102,241,0.12); border: 1px solid var(--border-subtle); }
.contact-info__ic svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.contact-info__item h4 { font-size: 0.95rem; font-weight: 600; }
.contact-info__item p, .contact-info__item a { color: var(--text-secondary); font-size: 0.9rem; }
.contact-info__item a:hover { color: var(--cyan); }
.form { display: grid; gap: 1rem; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--border-accent); background: rgba(255,255,255,0.05); }
.field textarea { resize: vertical; min-height: 96px; }
.field select option { background: var(--bg-secondary); }
.form__note { font-size: 0.78rem; color: var(--text-muted); }
.form__msg { font-size: 0.86rem; padding: 0.7rem 1rem; border-radius: var(--radius-md); display: none; }
.form__msg.ok { display: block; background: rgba(34,211,238,0.12); color: var(--cyan); border: 1px solid var(--border-glow); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border-subtle); padding-block: 3.5rem 2rem; background: var(--bg-secondary); position: relative; z-index: 10; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer__brand img { height: 40px; margin-bottom: 1rem; }
.footer__brand p { color: var(--text-secondary); font-size: 0.88rem; max-width: 300px; }
.footer__socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer__socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-card); border: 1px solid var(--border-subtle); transition: var(--transition-base); }
.footer__socials a:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; stroke: var(--text-secondary); fill: none; }
.footer__col h5 { font-family: var(--font-heading); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--text-secondary); font-size: 0.88rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 1rem; }
.footer__bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; } .reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* Back to top */
.to-top { position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-brand); display: grid; place-items: center; box-shadow: var(--glow-indigo); opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition-base); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.4; }

/* Sub-page hero */
.subhero { padding-top: calc(var(--nav-height) + 3.5rem); padding-bottom: 3rem; position: relative; overflow: hidden; }
.subhero__mesh { position: absolute; inset: 0; background: var(--gradient-mesh); z-index: 0; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); margin-bottom: 1.2rem; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--indigo-light); }

/* ============================================================
   SUB-PAGE COMPONENTS
   ============================================================ */
.subhero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.subhero__art { display: flex; justify-content: center; position: relative; }
.subhero__art > img { width: 100%; max-width: 440px; filter: drop-shadow(0 24px 46px rgba(0,0,0,0.4)); animation: floaty 7s ease-in-out infinite; }
@media (max-width: 1024px) { .subhero__art { order: -1; } .subhero__art > img { max-width: 360px; } }
.subhero h1 { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.subhero__lead { color: var(--text-secondary); font-size: clamp(1.02rem,1.4vw,1.2rem); line-height: 1.7; max-width: 560px; margin-bottom: 2rem; }
.subhero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.subhero__panel { background: var(--bg-glass-light); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 1.5rem; backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0,0,0,0.45); }
.subhero__panel h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.panel-stat { display: flex; align-items: baseline; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--border-subtle); }
.panel-stat:last-child { border-bottom: none; }
.panel-stat .ps-l { color: var(--text-secondary); font-size: 0.88rem; }
.panel-stat .ps-v { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; }

/* Pain -> gain */
.painband { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.15rem; }
.pain-card { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); }
.pain-card .pc-x { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(244,63,94,0.12); color: #fb7185; margin-bottom: 0.9rem; font-weight: 700; }
.pain-card h4 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.pain-card p { color: var(--text-secondary); font-size: 0.88rem; }

/* Feature rows (alternating) */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; margin-bottom: clamp(2.5rem,5vw,4.5rem); }
.frow:last-child { margin-bottom: 0; }
.frow.rev .frow__media { order: 2; }
.frow__media { border-radius: var(--radius-xl); background: var(--bg-glass-light); border: 1px solid var(--border-subtle); padding: 1.6rem; min-height: 240px; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.frow h3 { font-family: var(--font-heading); font-size: clamp(1.4rem,2.4vw,1.9rem); font-weight: 700; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.frow > div > p { color: var(--text-secondary); }
.frow .label { margin-bottom: 0.8rem; display: inline-block; }

/* Checklist */
.checklist { display: grid; gap: 0.75rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; color: var(--text-secondary); }
.checklist li::before { content: ''; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: var(--gradient-brand-soft) center/60% no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Mini list inside media panel */
.medialist { display: grid; gap: 0.7rem; }
.medialist .ml { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.9rem; border-radius: var(--radius-md); background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); }
.medialist .ml .mi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(99,102,241,0.14); flex-shrink: 0; }
.medialist .ml .mi svg { width: 17px; height: 17px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.medialist .ml .mt { font-size: 0.86rem; }
.medialist .ml .mv { margin-left: auto; font-size: 0.78rem; color: var(--cyan); font-family: var(--font-mono); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.15rem; counter-reset: s; }
.step { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); position: relative; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--gradient-brand); color: #fff; margin-bottom: 1rem; }
.step h4 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { color: var(--text-secondary); font-size: 0.86rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq__item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); overflow: hidden; }
.faq__q { width: 100%; text-align: left; padding: 1.1rem 1.3rem; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__q .ic { flex-shrink: 0; width: 22px; height: 22px; transition: transform 0.3s; stroke: var(--cyan); fill: none; stroke-width: 2; }
.faq__item.open .faq__q .ic { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out-quart); }
.faq__a p { padding: 0 1.3rem 1.2rem; color: var(--text-secondary); font-size: 0.92rem; }

/* Related links */
.related { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.15rem; }
.related a { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); transition: var(--transition-base); }
.related a:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.related .rl-t { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; margin-bottom: 0.3rem; }
.related .rl-d { color: var(--text-secondary); font-size: 0.85rem; }

@media (max-width: 1024px) {
  .subhero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .subhero__panel { max-width: 460px; }
  .painband { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .frow.rev .frow__media { order: 0; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .related { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__visual { max-width: 480px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell.wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split__visual { order: 0; }
  .sec-wrap, .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem 1.5rem 2.5rem;
    background: rgba(9, 14, 32, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 1000;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links > li, .nav__item { width: 100%; list-style: none; }
  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #F4F7FF;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.95rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent !important;
  }
  .nav__link:hover { color: var(--cyan); }
  .btn-nav {
    display: flex !important;
    margin: 1.5rem 0 0 !important;
    width: 100% !important;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: #ffffff !important;
    padding: 0.85rem 1.5rem !important;
    border-bottom: none !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    box-shadow: var(--glow-indigo);
  }
  .nav__hamburger { display: flex; }

  /* Mobile Accordion Dropdown */
  .nav__dropdown {
    position: static !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: block !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(13, 22, 56, 0.7) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    grid-template-columns: 1fr !important;
    gap: 0.25rem !important;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }
  .nav__item.active .nav__dropdown {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    padding: 0.5rem !important;
    margin: 0.5rem 0 0.8rem !important;
  }
  .nav__item:hover .nav__dropdown { opacity: 0; visibility: hidden; }
  .nav__item.active .nav__dropdown,
  .nav__item.active:hover .nav__dropdown { opacity: 1; visibility: visible; }
  .nav__drop-link { padding: 0.65rem 0.75rem; border-radius: 8px; background: rgba(255, 255, 255, 0.02); }
  .nav__drop-link:hover, .nav__drop-link:active { background: rgba(99, 102, 241, 0.2); }
  .nav__drop-t { font-size: 0.9rem; }
  .nav__drop-d { font-size: 0.76rem; }
  .stat-band { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .modules-grid, .bento, .why-grid, .sec-badges, .form__row { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
  .phone.back { display: none; }
  .hero__float-badge.two { left: -10px; }
}
