/* ============================================================
   BuildMeAI — Premium Enterprise AI Landing Page
   ============================================================ */

:root {
  /* Palette: white base, navy + royal blue accents */
  --navy-950: #060d21;
  --navy-900: #0a1633;
  --navy-800: #10224d;
  --navy-700: #1e3a8a;
  --royal-600: #2563eb;
  --royal-500: #3b82f6;
  --royal-400: #60a5fa;
  --sky-300: #93c5fd;

  --ink: #0b1220;
  --body: #47526b;
  --muted: #7a86a0;
  --line: rgba(10, 22, 51, 0.09);
  --line-strong: rgba(10, 22, 51, 0.14);

  --bg: #ffffff;
  --bg-tint: #f6f8fd;
  --glass: rgba(255, 255, 255, 0.72);

  --grad-brand: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #4f8cff 100%);
  --grad-text: linear-gradient(100deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);

  --shadow-sm: 0 1px 2px rgba(10, 22, 51, 0.05), 0 4px 12px rgba(10, 22, 51, 0.05);
  --shadow-md: 0 2px 6px rgba(10, 22, 51, 0.05), 0 16px 40px -12px rgba(10, 22, 51, 0.14);
  --shadow-lg: 0 4px 12px rgba(10, 22, 51, 0.06), 0 32px 80px -24px rgba(10, 22, 51, 0.28);
  --shadow-blue: 0 8px 24px -8px rgba(37, 99, 235, 0.5);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }

::selection { background: rgba(37, 99, 235, 0.18); }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.container-narrow { width: min(860px, 100% - 48px); }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-text-light {
  background: linear-gradient(100deg, #93c5fd, #60a5fa 50%, #a5c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-800);
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--royal-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08); }
}
.pill-dark {
  border-color: rgba(147, 197, 253, 0.25);
  background: rgba(37, 99, 235, 0.12);
  color: var(--sky-300);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease;
}
.btn-icon { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 13px 26px;
  color: #fff;
  background: var(--grad-brand);
  background-size: 150% 150%;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.35) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background-position: 100% 50%;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  padding: 13px 26px;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.btn-ghost { padding: 10px 16px; color: var(--body); background: transparent; }
.btn-ghost:hover { color: var(--ink); }

.btn-light {
  padding: 15px 30px;
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 12px 32px -8px rgba(2, 8, 30, 0.55), inset 0 -1px 0 rgba(10, 22, 51, 0.08);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(2, 8, 30, 0.65); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px -16px rgba(10, 22, 51, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px -6px rgba(6, 13, 33, 0.5);
}
.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.brand-name em { color: var(--royal-600); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(10, 22, 51, 0.05); }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 22, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 51, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
/* Pre-softened gradients — no filter:blur() (it kills scroll performance) */
.orb { position: absolute; border-radius: 50%; opacity: 0.6; will-change: transform; animation: orb-drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 640px; height: 640px; top: -260px; right: -160px; background: radial-gradient(circle, rgba(96, 165, 250, 0.4), rgba(96, 165, 250, 0.12) 45%, transparent 70%); }
.orb-2 { width: 540px; height: 540px; top: 160px; left: -260px; background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.07) 45%, transparent 70%); animation-delay: -8s; }
.orb-3 { width: 440px; height: 440px; bottom: -200px; right: 18%; background: radial-gradient(circle, rgba(30, 58, 138, 0.15), transparent 65%); animation-delay: -15s; }
@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-34px, 26px) scale(1.06); }
  100% { transform: translate(28px, -20px) scale(0.97); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  position: relative;
}

.hero-title {
  margin: 26px 0 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  color: var(--navy-900);
}
.hero-sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--body);
  line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--line-strong); }

/* --- Hero visual / dashboard --- */
.hero-visual { position: relative; perspective: 1400px; }

.dash {
  position: relative;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.hero-visual:hover .dash { transform: rotateY(-2deg) rotateX(0.5deg); }

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 254, 0.9);
}
.dash-chrome.dark {
  background: rgba(10, 22, 51, 0.55);
  border-bottom-color: rgba(147, 197, 253, 0.12);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #fca5a5; }
.dot-y { background: #fcd34d; }
.dot-g { background: #86efac; }
.dash-url {
  margin-left: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(10, 22, 51, 0.05);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}
.dash-chrome.dark .dash-url { background: rgba(147, 197, 253, 0.1); color: rgba(191, 219, 254, 0.75); }

.dash-body { display: grid; grid-template-columns: 130px 1fr; }

.dash-side {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 550;
  color: var(--muted);
}
.dash-side-item i {
  width: 12px; height: 12px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.35;
}
.dash-side-item.active { background: rgba(37, 99, 235, 0.09); color: var(--royal-600); }

.dash-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label { font-size: 0.62rem; font-weight: 550; color: var(--muted); }
.kpi-value { font-size: 1.05rem; font-weight: 750; letter-spacing: -0.02em; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 0.6rem; font-weight: 650; }
.kpi-delta.up { color: #059669; }

.dash-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 12px 4px;
}
.dash-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.dash-chart-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chart-svg { width: 100%; height: 88px; }
.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 2.4s 0.5s var(--ease) forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.dash-rows { display: flex; flex-direction: column; gap: 6px; }
.dash-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 550;
  color: var(--navy-800);
}
.row-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.row-dot.ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.row-dot.wait { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.row-meta { margin-left: auto; font-size: 0.62rem; color: var(--muted); font-weight: 500; }

/* --- floating cards --- */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  will-change: transform;
}
.float-card strong { display: block; font-size: 0.76rem; font-weight: 650; color: var(--navy-900); letter-spacing: -0.01em; }
.float-card span:not(.fc-icon) { font-size: 0.66rem; color: var(--muted); font-weight: 500; }
.fc-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
}
.fc-icon svg { width: 18px; height: 18px; }
.fc-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.fc-blue { background: rgba(37, 99, 235, 0.12); color: var(--royal-600); }

.float-card-1 { top: -26px; left: -34px; }
.float-card-2 { bottom: 36px; right: -28px; }

.float-chip {
  position: absolute;
  top: 42%;
  left: -52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #dbeafe;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 16px 32px -12px rgba(6, 13, 33, 0.55);
}
.chip-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- float animations --- */
.float-slow { animation: floaty 9s ease-in-out infinite; }
.float-med { animation: floaty 7s 0.6s ease-in-out infinite; }
.float-fast { animation: floaty 5.5s 0.3s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------- Trusted / marquee ---------- */
.trusted { padding: 34px 0 72px; }
.trusted-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding-right: 72px;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #a3adc4;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.logo-item svg { width: 19px; height: 19px; }
.logo-item:hover { color: var(--navy-800); }

/* ---------- Sections ---------- */
.section { padding: 108px 0; position: relative; }
.section-tint {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37, 99, 235, 0.05), transparent 70%),
    var(--bg-tint);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 {
  margin: 22px 0 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--navy-900);
}
.section-head p { font-size: 1.06rem; color: var(--body); }

/* ---------- Solutions grid ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 18px;
}
.s-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease;
  overflow: hidden;
}
.s-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(37, 99, 235, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.s-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow-md);
}
.s-card:hover::before { opacity: 1; }
.s-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 58, 138, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--royal-600);
  margin-bottom: 20px;
  transition: transform 0.45s var(--ease), background 0.3s ease;
}
.s-icon svg { width: 24px; height: 24px; }
.s-card:hover .s-icon { transform: scale(1.07) rotate(-3deg); }
.s-card h3 { font-size: 1.06rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 9px; color: var(--navy-900); }
.s-card p { font-size: 0.885rem; color: var(--body); line-height: 1.6; }

/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.i-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}
.i-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.i-card:hover {
  transform: translateY(-5px);
  background: #fff;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}
.i-card:hover::after { transform: scaleX(1); }
.i-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--navy-900);
  color: #93c5fd;
  margin-bottom: 18px;
  transition: transform 0.45s var(--ease);
}
.i-icon svg { width: 23px; height: 23px; }
.i-card:hover .i-icon { transform: scale(1.06); }
.i-card h3 { font-size: 1.04rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--navy-900); }
.i-card p { font-size: 0.865rem; color: var(--body); line-height: 1.58; margin-bottom: 16px; }
.i-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--royal-600);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.i-link svg { width: 13px; height: 13px; }
.i-card:hover .i-link { opacity: 1; transform: translateY(0); }

/* ---------- LegalOS ---------- */
.legalos { padding-block: 60px 108px; }
.legalos-panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px) 0;
  background: linear-gradient(165deg, #0a1633 0%, #0c1c42 55%, #10224d 100%);
  overflow: hidden;
  box-shadow: 0 48px 120px -32px rgba(6, 13, 33, 0.6);
}
.legalos-glow {
  position: absolute;
  width: 720px; height: 720px;
  top: -360px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1) 40%, transparent 65%);
  pointer-events: none;
}
.legalos-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 80%);
  pointer-events: none;
}
.legalos-head { position: relative; text-align: center; max-width: 620px; margin: 0 auto 44px; }
.legalos-head h2 {
  margin: 22px 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: #fff;
}
.legalos-head p { color: #9db1d8; font-size: 1.05rem; line-height: 1.65; }
.legalos-btn { margin-top: 26px; }

.legalos-features {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}
.lf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.07);
  border: 1px solid rgba(147, 197, 253, 0.16);
  color: #dbeafe;
  font-size: 0.865rem;
  font-weight: 600;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}
.lf:hover {
  background: rgba(147, 197, 253, 0.14);
  border-color: rgba(147, 197, 253, 0.3);
  transform: translateY(-2px);
}
.lf-ico { display: grid; place-items: center; width: 18px; height: 18px; color: var(--royal-400); }
.lf-ico svg { width: 100%; height: 100%; }

/* --- LegalOS dashboard mockup --- */
.legal-dash {
  position: relative;
  max-width: 940px;
  margin: 0 auto -2px;
  border-radius: 20px 20px 0 0;
  background: rgba(13, 25, 55, 0.92);
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 -8px 60px -12px rgba(59, 130, 246, 0.25);
}
.legal-dash-body { display: grid; grid-template-columns: 148px 1fr; min-height: 340px; }
.legal-side {
  padding: 18px 12px;
  border-right: 1px solid rgba(147, 197, 253, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-side-brand {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #dbeafe;
  padding: 6px 10px 16px;
  letter-spacing: 0.06em;
}
.legal-side-brand span { color: var(--royal-400); }
.legal-side-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 550;
  color: #7d92bd;
}
.legal-side-item.active { background: rgba(59, 130, 246, 0.15); color: #bfdbfe; }

.legal-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.legal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legal-search {
  flex: 1;
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(147, 197, 253, 0.06);
  border: 1px solid rgba(147, 197, 253, 0.12);
  font-size: 0.68rem;
  color: #7d92bd;
  font-family: var(--mono);
}
.legal-user {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

.legal-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }

.legal-doc {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(147, 197, 253, 0.1);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-doc-title {
  font-size: 0.76rem;
  font-weight: 650;
  color: #e2eaff;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.1);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.doc-line { height: 8px; border-radius: 4px; background: rgba(147, 197, 253, 0.14); }
.doc-line.w90 { width: 90%; } .doc-line.w85 { width: 85%; } .doc-line.w80 { width: 80%; }
.doc-line.w75 { width: 75%; } .doc-line.w60 { width: 60%; }
.doc-line.hl {
  height: auto;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  font-size: 0.68rem;
  color: #cfe0ff;
  line-height: 1.5;
}
.doc-line.hl b { color: #fff; }
.doc-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--royal-600);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.legal-copilot {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(147, 197, 253, 0.1);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.copilot-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #e2eaff;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.1);
}
.copilot-spark { color: var(--royal-400); font-size: 0.85rem; }
.copilot-msg {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.66rem;
  line-height: 1.55;
}
.copilot-msg.user {
  align-self: flex-end;
  max-width: 88%;
  background: rgba(59, 130, 246, 0.2);
  color: #dbeafe;
  border-bottom-right-radius: 3px;
}
.copilot-msg.ai {
  background: rgba(147, 197, 253, 0.07);
  border: 1px solid rgba(147, 197, 253, 0.1);
  color: #b9c9ec;
  border-bottom-left-radius: 3px;
}
.copilot-cursor {
  display: inline-block;
  width: 6px; height: 11px;
  margin-left: 3px;
  background: var(--royal-400);
  vertical-align: -1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.copilot-actions { display: flex; gap: 7px; }
.copilot-actions span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  font-size: 0.6rem;
  font-weight: 600;
  color: #bfdbfe;
}

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 8px;
}
.timeline-line {
  position: absolute;
  left: 35px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.timeline-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.t-step {
  position: relative;
  display: flex;
  gap: 28px;
  padding: 22px 0;
}
.t-node {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--royal-600);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}
.t-step:hover .t-node {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #93c5fd;
  transform: scale(1.05);
  box-shadow: 0 12px 28px -10px rgba(10, 22, 51, 0.45);
}
.t-body { padding-top: 5px; }
.t-body h3 { font-size: 1.14rem; font-weight: 650; letter-spacing: -0.02em; color: var(--navy-900); margin-bottom: 6px; }
.t-body p { font-size: 0.92rem; color: var(--body); max-width: 30rem; }

/* ---------- Why / comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 22px;
  align-items: stretch;
}
.c-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 38px 34px;
  overflow: hidden;
}
.c-generic {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.c-custom {
  background: linear-gradient(160deg, #0a1633, #10224d);
  color: #fff;
  box-shadow: 0 32px 80px -24px rgba(10, 22, 51, 0.5);
}
.c-glow {
  position: absolute;
  width: 420px; height: 420px;
  top: -200px; right: -140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), rgba(59, 130, 246, 0.1) 40%, transparent 65%);
  pointer-events: none;
}
.c-head { margin-bottom: 26px; position: relative; }
.c-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(10, 22, 51, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.c-badge-blue { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.c-card h3 { font-size: 1.34rem; font-weight: 700; letter-spacing: -0.025em; }
.c-generic h3 { color: var(--navy-900); }
.c-card ul { display: flex; flex-direction: column; gap: 15px; position: relative; }
.c-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.55;
}
.c-generic li { color: var(--body); }
.c-custom li { color: #c6d4f2; }
.x {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(10, 22, 51, 0.06);
  color: var(--muted);
  font-size: 0.62rem;
  margin-top: 1px;
}
.ok {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
  margin-top: 1px;
}
.ok svg { width: 12px; height: 12px; }

.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.w-stat {
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.w-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.w-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.w-stat span { font-size: 0.875rem; color: var(--body); line-height: 1.5; }

/* ---------- Testimonials ---------- */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease;
}
.quote-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-md);
}
.q-mark { width: 30px; height: 22px; color: rgba(37, 99, 235, 0.22); }
.quote-card blockquote {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--navy-800);
  letter-spacing: -0.008em;
  flex: 1;
}
.quote-card figcaption { display: flex; align-items: center; gap: 13px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -4px rgba(10, 22, 51, 0.35);
}
.av-1 { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.av-2 { background: linear-gradient(135deg, #0a1633, #1e3a8a); }
.av-3 { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.quote-card figcaption strong { display: block; font-size: 0.9rem; font-weight: 650; color: var(--navy-900); letter-spacing: -0.01em; }
.quote-card figcaption span:not(.avatar) { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(37, 99, 235, 0.28); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 26px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--royal-600); }
.faq-chev {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-tint);
  transition: transform 0.45s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.faq-chev::before, .faq-chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.8px;
  border-radius: 2px;
  background: var(--navy-800);
  translate: -50% -50%;
  transition: rotate 0.45s var(--ease), background 0.3s ease;
}
.faq-chev::after { rotate: 90deg; }
.faq-item[open] .faq-chev { transform: rotate(45deg); background: var(--royal-600); border-color: var(--royal-600); }
.faq-item[open] .faq-chev::before, .faq-item[open] .faq-chev::after { background: #fff; }
.faq-body { padding: 0 26px; overflow: hidden; }
.faq-body p {
  padding-bottom: 24px;
  max-width: 46rem;
  font-size: 0.93rem;
  color: var(--body);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }
.contact-panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px);
  text-align: center;
  background: linear-gradient(160deg, #060d21 0%, #0a1633 50%, #10224d 100%);
  overflow: hidden;
  box-shadow: 0 48px 120px -32px rgba(6, 13, 33, 0.65);
}
.contact-glow {
  position: absolute;
  width: 640px; height: 640px;
  bottom: -400px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.36), rgba(59, 130, 246, 0.12) 40%, transparent 65%);
  pointer-events: none;
}
.contact-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000, transparent 85%);
  pointer-events: none;
}
.contact-panel h2 {
  position: relative;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 780;
  letter-spacing: -0.038em;
  color: #fff;
  margin-bottom: 20px;
}
.contact-panel > p {
  position: relative;
  max-width: 34rem;
  margin: 0 auto 38px;
  color: #9db1d8;
  font-size: 1.06rem;
  line-height: 1.65;
}
.contact-panel .btn { position: relative; }
.contact-channels {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: rgba(147, 197, 253, 0.06);
  color: #cfe0ff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}
.channel svg { width: 17px; height: 17px; }
.channel:hover {
  background: rgba(147, 197, 253, 0.14);
  border-color: rgba(147, 197, 253, 0.4);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p {
  margin-top: 18px;
  max-width: 20rem;
  font-size: 0.885rem;
  color: var(--body);
  line-height: 1.65;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--body);
  font-weight: 500;
  width: fit-content;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--royal-600); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--navy-900); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  translate: 0 26px;
  scale: 0.985;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), scale 0.9s var(--ease);
}
.reveal.in { opacity: 1; translate: 0 0; scale: 1; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* Staggered grids */
.solutions-grid .reveal, .industries-grid .reveal, .legalos-features .reveal {
  transition-delay: calc(var(--stagger, 0) * 60ms);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero { padding-top: 148px; }
  .hero-copy { text-align: center; }
  .hero-sub, .hero-ctas, .hero-stats { margin-inline: auto; justify-content: center; }
  .hero-visual { max-width: 640px; margin-inline: auto; }
  .dash { transform: none; }
  .float-card-1 { left: -10px; }
  .float-card-2 { right: -10px; }
  .float-chip { display: none; }
  .compare { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .why-stats { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-ghost { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 16px; right: 16px;
    flex-direction: column;
    padding: 12px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-links.open a { padding: 13px 16px; font-size: 1rem; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }

  .legal-cols { grid-template-columns: 1fr; }
  .legal-side { display: none; }
  .legal-dash-body { grid-template-columns: 1fr; }

  .timeline-line { left: 27px; }
  .t-node { width: 44px; height: 44px; border-radius: 14px; font-size: 0.7rem; }
  .t-step { gap: 20px; padding: 16px 0; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .hero { padding: 128px 0 64px; }
  .hero-ctas .btn { width: 100%; }
  .stat-divider { display: none; }
  .hero-stats { gap: 20px 32px; }

  .dash-side { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .kpi { padding: 9px; }
  .kpi-value { font-size: 0.9rem; }
  .float-card { padding: 10px 13px; }
  .float-card-1 { top: -18px; left: -4px; }
  .float-card-2 { bottom: 20px; right: -4px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .contact-channels { flex-direction: column; align-items: stretch; }
  .channel { justify-content: center; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  pointer-events: none;
}

/* ---------- Gradient shimmer on headline accents ---------- */
.hero-title .grad-text,
.section-head .grad-text,
.grad-text-light {
  background-size: 220% auto;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Mobile performance: no expensive glass on small screens ---------- */
@media (max-width: 820px) {
  .nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
  .nav-links.open {
    backdrop-filter: none;
    background: #ffffff;
  }
  .hero-visual, .dash { perspective: none; transform: none; }
  .orb { animation: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: 0 0; }
}
