/* =============================================================
   SELVI AURORA — Ultra-premium animated glass theme
   Implements DESIGN.md "Selvi Aurora"
   ============================================================= */

:root {
  /* Surface */
  --surface: #07050F;
  --surface-dim: #05030A;
  --surface-bright: #120A24;
  --surface-container-low: #0A0616;
  --surface-container: #120A24;
  --surface-container-high: #1B1134;

  /* Text */
  --on-surface: #F5EEFF;
  --on-surface-variant: #B9AED6;
  --on-surface-muted: rgba(245, 238, 255, 0.55);

  /* Accent */
  --primary: #C084FC;
  --primary-container: #7C3AED;
  --primary-deep: #5B21B6;
  --secondary: #38BDF8;
  --tertiary: #F472B6;

  /* App accents */
  --accent-fire: #FB7185;
  --accent-mep: #22D3EE;
  --accent-santiye: #60A5FA;

  /* Glass */
  --glass-bg: rgba(168, 120, 255, 0.06);
  --glass-bg-hover: rgba(168, 120, 255, 0.10);
  --glass-border: rgba(200, 160, 255, 0.14);
  --glass-border-hover: rgba(200, 160, 255, 0.38);
  --glass-highlight: rgba(255, 255, 255, 0.08);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Spacing */
  --gutter: 32px;
  --max-w: 1240px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 600ms;
}

/* =============================================================
   BASE
   ============================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--primary-container); color: #fff; }

/* =============================================================
   ATMOSPHERE — drifting aurora orbs + noise
   ============================================================= */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
  mix-blend-mode: screen;
}

.aurora__orb--1 {
  width: 640px; height: 640px;
  top: -200px; left: -120px;
  background: radial-gradient(circle at 30% 30%, #8B5CF6 0%, transparent 70%);
  animation: orbFloat1 22s ease-in-out infinite;
}

.aurora__orb--2 {
  width: 520px; height: 520px;
  top: 30%; right: -120px;
  background: radial-gradient(circle at 60% 40%, #38BDF8 0%, transparent 70%);
  animation: orbFloat2 28s ease-in-out infinite;
}

.aurora__orb--3 {
  width: 480px; height: 480px;
  bottom: -160px; left: 40%;
  background: radial-gradient(circle at 50% 50%, #F472B6 0%, transparent 70%);
  animation: orbFloat3 32s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 80px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-80px, 40px) scale(1.15); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -60px) scale(1.08); }
}

/* Noise overlay to kill gradient banding */
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/></svg>");
}

/* =============================================================
   LAYOUT
   ============================================================= */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* =============================================================
   NAVIGATION — floating pill
   ============================================================= */

.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1180px;
  transition: all var(--dur) var(--ease);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(12, 6, 24, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 12px 48px rgba(0, 0, 0, 0.35);
}

.nav.is-scrolled {
  top: 12px;
  max-width: 880px;
}

.nav.is-scrolled .nav__inner {
  background: rgba(12, 6, 24, 0.72);
}

.nav__logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #F5EEFF 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  transition: color 240ms var(--ease);
  position: relative;
}

.nav__links a:hover { color: var(--on-surface); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width 300ms var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__lang {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  font-size: 0.75rem;
}
.nav__lang a {
  padding: 4px 10px;
  border-radius: var(--r-full);
  transition: all 240ms var(--ease);
}
.nav__lang a.is-active {
  background: var(--primary-container);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all 300ms var(--ease);
}

/* =============================================================
   HERO
   ============================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: var(--r-full);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 32px;
  opacity: 0;
  animation: riseIn 900ms var(--ease) 200ms forwards;
}

.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ═══════════════════════════════════════════════
   SPLIT HERO — NFPA + animated phone stack
   ═══════════════════════════════════════════════ */

.hero--split { min-height: auto; padding: 160px 0 120px; display: block; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__copy { max-width: 580px; }

.hero__eyebrow-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 10px;
  box-shadow: 0 0 14px var(--primary);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__headline {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--on-surface);
  margin: 22px 0 26px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroRiseIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}

.hero__headline-accent {
  background: linear-gradient(120deg, #C084FC 0%, #F472B6 40%, #38BDF8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmerFlow 8s ease-in-out infinite;
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin: 0 0 36px;
  opacity: 0;
  animation: heroRiseIn 900ms var(--ease) 400ms forwards;
}
.hero__lead-num {
  font-weight: 700;
  font-size: 1.3em;
  background: linear-gradient(135deg, #C084FC, #F472B6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__cta {
  opacity: 0;
  animation: heroRiseIn 900ms var(--ease) 600ms forwards;
}

.hero__proof {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: heroRiseIn 900ms var(--ease) 800ms forwards;
}
.hero__proof li { display: flex; flex-direction: column; gap: 2px; }
.hero__proof strong {
  font-family: 'Geist', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #F5EEFF, #C084FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__proof span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

@keyframes heroRiseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ──────── Visual side ──────── */

.hero__visual {
  position: relative;
  height: 620px;
  perspective: 1400px;
  transform-style: preserve-3d;
  opacity: 0;
  animation: heroRiseIn 1200ms var(--ease) 300ms forwards;
}

.hero__glow {
  position: absolute;
  inset: 10% 10%;
  background:
    radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.45), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(244, 114, 182, 0.35), transparent 60%);
  filter: blur(60px);
  z-index: 0;
  animation: glowBreath 6s ease-in-out infinite;
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Phone mockups */
.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0a0616;
  border: 2px solid rgba(168, 120, 255, 0.28);
  box-shadow:
    0 0 0 6px rgba(10, 6, 22, 0.9),
    0 32px 88px rgba(124, 58, 237, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform-origin: center center;
  transition: transform 400ms var(--ease);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone__notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  border-radius: 99px;
  background: #000;
  z-index: 2;
}

.phone--back {
  transform: translate(-50%, -50%) translateX(-130px) translateY(30px) rotate(-10deg) rotateY(14deg) scale(0.9);
  z-index: 1;
  filter: blur(0.4px) brightness(0.75);
  animation: float1 9s ease-in-out infinite;
}

.phone--mid {
  transform: translate(-50%, -50%) translateY(-20px) rotate(-2deg) rotateY(-2deg);
  z-index: 3;
  animation: float2 8s ease-in-out infinite;
}

.phone--front {
  transform: translate(-50%, -50%) translateX(130px) translateY(40px) rotate(8deg) rotateY(-14deg) scale(0.88);
  z-index: 2;
  filter: brightness(0.85);
  animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(-50%, -50%) translateX(-130px) translateY(30px) rotate(-10deg) rotateY(14deg) scale(0.9); }
  50%      { transform: translate(-50%, -50%) translateX(-135px) translateY(10px) rotate(-11deg) rotateY(14deg) scale(0.9); }
}
@keyframes float2 {
  0%, 100% { transform: translate(-50%, -50%) translateY(-20px) rotate(-2deg) rotateY(-2deg); }
  50%      { transform: translate(-50%, -50%) translateY(-40px) rotate(-1deg) rotateY(-2deg); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) translateX(130px) translateY(40px) rotate(8deg) rotateY(-14deg) scale(0.88); }
  50%      { transform: translate(-50%, -50%) translateX(135px) translateY(20px) rotate(9deg) rotateY(-14deg) scale(0.88); }
}

/* Floating info badges */
.float-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(18, 10, 36, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(168, 120, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.4);
  z-index: 5;
  opacity: 0;
  animation: badgeIn 700ms var(--ease) forwards;
}

.float-badge__label {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.float-badge__sub {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.float-badge__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 12px #34D399;
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 2px;
}

.float-badge--1 { top: 8%;  left: -10px; animation-delay: 900ms;  animation-name: badgeIn, badgeFloat1; animation-duration: 700ms, 7s; animation-iteration-count: 1, infinite; }
.float-badge--2 { top: 38%; right: -10px; animation-delay: 1100ms; animation-name: badgeIn, badgeFloat2; animation-duration: 700ms, 8s; animation-iteration-count: 1, infinite; }
.float-badge--3 { bottom: 18%; left: 8%; animation-delay: 1300ms; animation-name: badgeIn, badgeFloat3; animation-duration: 700ms, 9s; animation-iteration-count: 1, infinite; }
.float-badge--4 { bottom: 4%; right: 4%; animation-delay: 1500ms; animation-name: badgeIn, badgeFloat2; animation-duration: 700ms, 8s; animation-iteration-count: 1, infinite; }

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes badgeFloat1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@keyframes badgeFloat3 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Mobile stack */
@media (max-width: 960px) {
  .hero--split { padding: 120px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { height: 480px; }
  .phone { width: 200px; }
  .phone--back  { transform: translate(-50%, -50%) translateX(-90px) translateY(20px) rotate(-10deg) scale(0.85); }
  .phone--mid   { transform: translate(-50%, -50%) translateY(-15px); }
  .phone--front { transform: translate(-50%, -50%) translateX(90px) translateY(30px) rotate(8deg) scale(0.85); }
  .float-badge { padding: 10px 14px; }
  .float-badge--1 { top: 2%; left: 0; }
  .float-badge--2 { top: 28%; right: 0; }
  .float-badge--3 { bottom: 10%; left: 4%; }
  .float-badge--4 { bottom: 0; right: 4%; }
}

@media (max-width: 560px) {
  .hero__proof { gap: 20px; }
  .hero__proof strong { font-size: 1.35rem; }
}

/* Legacy placeholder (kept to avoid unused-selector errors from older markup) */
.hero__title {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin: 0 0 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero__title-line {
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  padding: 0.08em 0;
}

.hero__title-line--1 { align-self: flex-start; }
.hero__title-line--2 { align-self: flex-start; margin-left: 0.18em; }

.shimmer-text {
  display: inline-block;
  background: linear-gradient(
    110deg,
    #F5EEFF 0%, #C084FC 25%, #F472B6 45%,
    #38BDF8 65%, #C084FC 85%, #F5EEFF 100%);
  background-size: 250% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation:
    heroRise 1200ms cubic-bezier(0.22, 1, 0.36, 1) both,
    shimmerFlow 9s ease-in-out infinite;
  animation-delay: 120ms, 1400ms;
}

.shimmer-text--alt { animation-delay: 280ms, 1400ms; }

@keyframes heroRise {
  0%   { transform: translateY(110%) skewY(8deg); opacity: 0; }
  100% { transform: translateY(0) skewY(0); opacity: 1; }
}

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

.hero__title-dot {
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.1em;
  border-radius: 50%;
  background: linear-gradient(135deg, #C084FC, #F472B6);
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.8), 0 0 60px rgba(244, 114, 182, 0.4);
  animation: dotPulse 2.4s ease-in-out 1600ms infinite;
  opacity: 0;
  animation-fill-mode: both;
}

@keyframes dotPulse {
  0%   { opacity: 0; transform: translateY(20%) scale(0.4); }
  20%  { opacity: 1; transform: translateY(0) scale(1); }
  50%  { opacity: 1; transform: translateY(0) scale(1.18);
         box-shadow: 0 0 42px rgba(192, 132, 252, 1), 0 0 90px rgba(244, 114, 182, 0.6); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Rotator chip below name */
.hero__rotator {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  padding: 12px 22px;
  border: 1px solid rgba(168, 120, 255, 0.22);
  border-radius: var(--r-full);
  background: rgba(12, 6, 24, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  animation: heroRise 900ms var(--ease) 900ms forwards;
  max-width: max-content;
}

.hero__rotator-static { color: var(--on-surface); }

.hero__rotator-separator {
  color: var(--primary);
  font-family: 'Geist', sans-serif;
  font-size: 1.2em;
  opacity: 0.7;
}

.hero__rotator-words {
  position: relative;
  display: inline-block;
  height: 1em;
  min-width: 240px;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__rotator-words .word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #C084FC, #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  opacity: 0;
  transform: translateY(100%);
  animation: wordRotate 15s infinite;
}
.hero__rotator-words .word:nth-child(1) { animation-delay: 0s; }
.hero__rotator-words .word:nth-child(2) { animation-delay: 2.5s; }
.hero__rotator-words .word:nth-child(3) { animation-delay: 5s; }
.hero__rotator-words .word:nth-child(4) { animation-delay: 7.5s; }
.hero__rotator-words .word:nth-child(5) { animation-delay: 10s; }
.hero__rotator-words .word:nth-child(6) { animation-delay: 12.5s; }

@keyframes wordRotate {
  0%, 2%    { opacity: 0; transform: translateY(100%) rotateX(-60deg); }
  4%, 14%   { opacity: 1; transform: translateY(0) rotateX(0); }
  16%, 100% { opacity: 0; transform: translateY(-100%) rotateX(60deg); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 600ms ease 2200ms forwards;
}
.hero__scroll-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--on-surface-variant);
  opacity: 0.7;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  background-size: 100% 200%;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { background-position: 0% -100%; }
  100% { background-position: 0% 100%; }
}
@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 640px) {
  .hero__title-line--2 { margin-left: 0; }
  .hero__rotator { flex-wrap: wrap; font-size: 0.72rem; padding: 10px 16px; }
  .hero__rotator-words { min-width: 180px; }
  .hero__scroll { display: none; }
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--on-surface-variant);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  opacity: 0;
  animation: riseIn 900ms var(--ease) 800ms forwards;
}

.hero__tagline {
  font-size: 0.95rem;
  color: var(--on-surface-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 48px;
  opacity: 0;
  animation: riseIn 900ms var(--ease) 1000ms forwards;
}

.hero__tagline span { display: inline-flex; align-items: center; gap: 8px; }
.hero__tagline span::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.hero__cta {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: riseIn 900ms var(--ease) 1200ms forwards;
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 300ms var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 800ms var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary:hover::before { transform: translateX(100%); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--on-surface);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.btn__arrow { transition: transform 300ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* =============================================================
   SECTIONS
   ============================================================= */

.section {
  padding: 120px 0;
  position: relative;
}

.section__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--r-full);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E9D5FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 740px;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  max-width: 640px;
  margin-bottom: 64px;
  line-height: 1.65;
}

/* =============================================================
   STATS BAND
   ============================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.stat {
  padding: 40px 28px;
  background: rgba(12, 6, 24, 0.5);
  text-align: center;
  transition: background 400ms var(--ease);
}

.stat:hover { background: rgba(30, 15, 60, 0.55); }

.stat__num {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat__label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* =============================================================
   FEATURES GRID
   ============================================================= */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: all 500ms var(--ease);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(192, 132, 252, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}
.feature:hover::before { opacity: 1; }

.feature__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: var(--r-lg);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--on-surface);
}

.feature p {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* =============================================================
   APP CARDS — hero of the page
   ============================================================= */

.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1400px;
}

.app-card {
  --accent: var(--primary);
  position: relative;
  padding: 36px 32px 32px;
  background: rgba(12, 6, 24, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 500ms var(--ease);
  transform-style: preserve-3d;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}

.app-card[data-app="sprinkcalc"] { --accent: var(--accent-fire); }
.app-card[data-app="mepcalc"]    { --accent: var(--accent-mep); }
.app-card[data-app="santiye"]    { --accent: var(--accent-santiye); }

.app-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent), transparent 55%);
  opacity: 0;
  transition: opacity 500ms var(--ease);
  z-index: -1;
  filter: blur(40px);
}

.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: rgba(200, 160, 255, 0.4);
}
.app-card:hover::before { opacity: 0.7; }
.app-card:hover::after { opacity: 1; }

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.app-card__icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}
.app-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 50%);
  pointer-events: none;
}

.app-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.app-card__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.app-card__name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.app-card__desc {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  line-height: 1.65;
  margin-bottom: 24px;
}

.app-card__features {
  margin-bottom: 28px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}
.app-card__features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-card__features li::before {
  content: '';
  width: 14px; height: 14px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.app-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 300ms var(--ease);
}
.app-card:hover .app-card__cta {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: var(--accent);
}
.app-card__cta svg { transition: transform 300ms var(--ease); }
.app-card:hover .app-card__cta svg { transform: translateX(4px); }

/* =============================================================
   SCROLL REVEAL
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal[data-delay="1"] { transition-delay: 120ms; }
.reveal[data-delay="2"] { transition-delay: 240ms; }
.reveal[data-delay="3"] { transition-delay: 360ms; }

/* =============================================================
   FOOTER
   ============================================================= */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
  text-align: center;
  color: var(--on-surface-muted);
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.footer__links a { color: var(--on-surface-variant); transition: color 240ms; }
.footer__links a:hover { color: var(--primary); }

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 960px) {
  .features, .apps, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .hero { padding: 120px 24px 72px; }

  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    padding: 20px;
    background: rgba(12, 6, 24, 0.92);
    backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
  }
  .hamburger { display: flex; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; width: 100%; }
  .btn { justify-content: center; width: 100%; }
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aurora__orb { animation: none; }
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════════════════════════
   NFPA BANNER — Flagship CTA
   ═══════════════════════════════════════════════════════════════ */

.nfpa-banner {
  position: relative;
  margin-top: 32px;
  padding: 64px 56px;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg,
    rgba(124, 58, 237, 0.18) 0%,
    rgba(168, 120, 255, 0.10) 40%,
    rgba(56, 189, 248, 0.12) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(168, 120, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 32px 88px rgba(124, 58, 237, 0.28);
  overflow: hidden;
  isolation: isolate;
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}

.nfpa-banner:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 42px 112px rgba(124, 58, 237, 0.36);
}

.nfpa-banner__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.45), transparent 60%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: nfpaPulse 8s ease-in-out infinite;
}

@keyframes nfpaPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.1); opacity: 1; }
}

.nfpa-banner__body { position: relative; z-index: 1; max-width: 860px; }

.nfpa-banner__chip {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: rgba(192, 132, 252, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.32);
  color: var(--primary);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.nfpa-banner__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  background: linear-gradient(120deg, #F5EEFF 0%, #C084FC 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nfpa-banner__desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin: 0 0 32px;
  max-width: 720px;
}

.nfpa-banner__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 48px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nfpa-banner__stats div { display: flex; flex-direction: column; gap: 4px; }

.nfpa-banner__stats strong {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #C084FC, #F472B6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.nfpa-banner__stats span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.nfpa-banner__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Nav highlight for NFPA */
.nav__nfpa {
  color: var(--primary) !important;
  font-weight: 600 !important;
}
.nav__nfpa::after { background: var(--primary) !important; }

/* Footer featured NFPA link */
.footer__featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.28);
  color: var(--primary) !important;
  font-weight: 600;
  transition: all 240ms var(--ease);
}
.footer__featured:hover {
  background: rgba(192, 132, 252, 0.22);
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-2px);
  color: #F5EEFF !important;
}

@media (max-width: 720px) {
  .nfpa-banner { padding: 40px 28px; }
  .nfpa-banner__stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .nfpa-banner__stats strong { font-size: 1.6rem; }
}
