/* ============================================================
   Abormic — global stylesheet
   Dark cinematic base + 10 switchable themes (data-theme on <html>)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background .6s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   THEME TOKENS  — each theme overrides these custom properties
   ============================================================ */
:root,
:root[data-theme="midnight"] {
  --bg: #070b18;
  --bg-2: #0c1224;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.10);
  --text: #eef2ff;
  --muted: #9aa6c7;
  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --glow-1: rgba(91,140,255,0.55);
  --glow-2: rgba(139,92,246,0.50);
  --glow-3: rgba(34,211,238,0.40);
  --on-accent: #ffffff;
  --shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
  color-scheme: dark;
}
:root[data-theme="cyber"] {
  --bg: #05060a; --bg-2: #0a0d16;
  --surface: rgba(255,255,255,0.035); --surface-2: rgba(255,255,255,0.06);
  --border: rgba(0,255,240,0.14);
  --text: #e6fbff; --muted: #7fa8b3;
  --accent: #00f5d4; --accent-2: #ff2d95; --accent-3: #7c3aed;
  --glow-1: rgba(0,245,212,0.55); --glow-2: rgba(255,45,149,0.45); --glow-3: rgba(124,58,237,0.40);
  --on-accent: #04121a; --shadow: 0 30px 80px -30px rgba(0,245,212,0.25); color-scheme: dark;
}
:root[data-theme="emerald"] {
  --bg: #04110c; --bg-2: #08201700;
  --bg-2: #082017;
  --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.07);
  --border: rgba(52,211,153,0.16);
  --text: #eafff5; --muted: #86b7a3;
  --accent: #10b981; --accent-2: #a3e635; --accent-3: #2dd4bf;
  --glow-1: rgba(16,185,129,0.55); --glow-2: rgba(163,230,53,0.40); --glow-3: rgba(45,212,191,0.40);
  --on-accent: #05130d; --shadow: 0 30px 80px -30px rgba(16,185,129,0.25); color-scheme: dark;
}
:root[data-theme="purple"] {
  --bg: #0b0518; --bg-2: #150a2b;
  --surface: rgba(255,255,255,0.045); --surface-2: rgba(255,255,255,0.08);
  --border: rgba(168,85,247,0.18);
  --text: #f4ecff; --muted: #b199d6;
  --accent: #a855f7; --accent-2: #ec4899; --accent-3: #6366f1;
  --glow-1: rgba(168,85,247,0.55); --glow-2: rgba(236,72,153,0.45); --glow-3: rgba(99,102,241,0.40);
  --on-accent: #ffffff; --shadow: 0 30px 80px -30px rgba(168,85,247,0.30); color-scheme: dark;
}
:root[data-theme="sunset"] {
  --bg: #14060c; --bg-2: #24101a;
  --surface: rgba(255,255,255,0.045); --surface-2: rgba(255,255,255,0.08);
  --border: rgba(251,146,60,0.18);
  --text: #fff1ec; --muted: #d3a08f;
  --accent: #fb7185; --accent-2: #f59e0b; --accent-3: #f43f5e;
  --glow-1: rgba(251,113,133,0.50); --glow-2: rgba(245,158,11,0.45); --glow-3: rgba(244,63,94,0.40);
  --on-accent: #1a0a06; --shadow: 0 30px 80px -30px rgba(251,113,133,0.30); color-scheme: dark;
}
:root[data-theme="ocean"] {
  --bg: #03121a; --bg-2: #062231;
  --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.07);
  --border: rgba(56,189,248,0.18);
  --text: #e8f8ff; --muted: #83aec2;
  --accent: #38bdf8; --accent-2: #22d3ee; --accent-3: #2563eb;
  --glow-1: rgba(56,189,248,0.55); --glow-2: rgba(34,211,238,0.40); --glow-3: rgba(37,99,235,0.40);
  --on-accent: #041521; --shadow: 0 30px 80px -30px rgba(56,189,248,0.28); color-scheme: dark;
}
:root[data-theme="crimson"] {
  --bg: #120407; --bg-2: #220a10;
  --surface: rgba(255,255,255,0.045); --surface-2: rgba(255,255,255,0.08);
  --border: rgba(244,63,94,0.18);
  --text: #ffecee; --muted: #cf9199;
  --accent: #f43f5e; --accent-2: #fb7185; --accent-3: #e11d48;
  --glow-1: rgba(244,63,94,0.52); --glow-2: rgba(251,113,133,0.42); --glow-3: rgba(225,29,72,0.40);
  --on-accent: #ffffff; --shadow: 0 30px 80px -30px rgba(244,63,94,0.30); color-scheme: dark;
}
:root[data-theme="slate"] {
  --bg: #0a0e14; --bg-2: #121822;
  --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.07);
  --border: rgba(148,163,184,0.18);
  --text: #e9eef5; --muted: #93a1b5;
  --accent: #94a3b8; --accent-2: #64748b; --accent-3: #38bdf8;
  --glow-1: rgba(148,163,184,0.35); --glow-2: rgba(100,116,139,0.35); --glow-3: rgba(56,189,248,0.30);
  --on-accent: #0a0e14; --shadow: 0 30px 80px -30px rgba(0,0,0,0.75); color-scheme: dark;
}
:root[data-theme="rosegold"] {
  --bg: #120a0c; --bg-2: #201417;
  --surface: rgba(255,255,255,0.05); --surface-2: rgba(255,255,255,0.09);
  --border: rgba(251,191,158,0.20);
  --text: #fdeee9; --muted: #cea79c;
  --accent: #f6a68b; --accent-2: #e8b06b; --accent-3: #f7b7c5;
  --glow-1: rgba(246,166,139,0.45); --glow-2: rgba(232,176,107,0.40); --glow-3: rgba(247,183,197,0.38);
  --on-accent: #1c0e0a; --shadow: 0 30px 80px -30px rgba(246,166,139,0.28); color-scheme: dark;
}
:root[data-theme="aurora"] {
  --bg: #061012; --bg-2: #0a2220;
  --surface: rgba(255,255,255,0.045); --surface-2: rgba(255,255,255,0.08);
  --border: rgba(94,234,212,0.18);
  --text: #ecfffb; --muted: #8bc4bb;
  --accent: #5eead4; --accent-2: #818cf8; --accent-3: #c084fc;
  --glow-1: rgba(94,234,212,0.50); --glow-2: rgba(129,140,248,0.45); --glow-3: rgba(192,132,252,0.42);
  --on-accent: #04140f; --shadow: 0 30px 80px -30px rgba(94,234,212,0.28); color-scheme: dark;
}
/* Light theme for variety */
:root[data-theme="daybreak"] {
  --bg: #eef2f9; --bg-2: #ffffff;
  --surface: rgba(15,23,42,0.03); --surface-2: rgba(15,23,42,0.06);
  --border: rgba(15,23,42,0.10);
  --text: #0f1b33; --muted: #566079;
  --accent: #3b6fff; --accent-2: #7c3aed; --accent-3: #0ea5e9;
  --glow-1: rgba(59,111,255,0.28); --glow-2: rgba(124,58,237,0.22); --glow-3: rgba(14,165,233,0.22);
  --on-accent: #ffffff; --shadow: 0 30px 60px -30px rgba(30,50,90,0.30); color-scheme: light;
}

/* ============================================================
   LIGHT MODE — flips only the neutral tokens, so it composes with
   every palette above. data-mode is set independently of data-theme.
   Placed after the palettes so equal-specificity neutrals win here.
   ============================================================ */
:root[data-mode="light"] {
  --bg: #eaeef6; --bg-2: #ffffff;
  --surface: rgba(15,23,42,0.035); --surface-2: rgba(15,23,42,0.065);
  --border: rgba(15,23,42,0.11);
  --text: #101c33; --muted: #51607a;
  --shadow: 0 24px 60px -30px rgba(30,50,90,0.22);
  color-scheme: light;
}
/* Nudge the palest accents darker in light mode so they stay legible on white */
:root[data-mode="light"][data-theme="cyber"]    { --accent: #0891b2; }
:root[data-mode="light"][data-theme="aurora"]   { --accent: #0d9488; }
:root[data-mode="light"][data-theme="slate"]    { --accent: #475569; }
:root[data-mode="light"][data-theme="rosegold"] { --accent: #d2694a; }
:root[data-mode="light"][data-theme="emerald"]  { --accent-2: #65a30d; }
:root[data-mode="light"][data-theme="sunset"]   { --accent: #f43f5e; }
:root[data-mode="light"] .bg-orbs span { opacity: .3; }
:root[data-mode="light"] .bg-grid { opacity: .55; }

/* ============================================================
   Animated background (canvas + gradient orbs)
   ============================================================ */
#bg-canvas {
  position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%;
  pointer-events: none;
}
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: float 22s ease-in-out infinite;
}
.bg-orbs span:nth-child(1){ width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: radial-gradient(circle, var(--glow-1), transparent 70%); }
.bg-orbs span:nth-child(2){ width: 40vw; height: 40vw; right: -6vw; top: 12vh; background: radial-gradient(circle, var(--glow-2), transparent 70%); animation-delay: -7s; }
.bg-orbs span:nth-child(3){ width: 38vw; height: 38vw; left: 22vw; bottom: -14vw; background: radial-gradient(circle, var(--glow-3), transparent 70%); animation-delay: -13s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(4vw,3vh) scale(1.08); }
  66% { transform: translate(-3vw,-2vh) scale(.95); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); backdrop-filter: blur(8px);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-3) 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand .logo-img {
  height: 40px; width: auto; display: block; flex: 0 0 auto;
}
.brand .wordmark {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #2563eb;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }  /* right-aligned menu */
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--text); background: var(--surface); }
.nav-item .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; opacity: .7; }
.nav-item:hover .caret { transform: rotate(-135deg) translateY(-1px); }

/* Mega dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 320px; padding: 12px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  display: grid; gap: 4px;
}
.dropdown.two-col { grid-template-columns: 1fr 1fr; min-width: 520px; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Right-most menus open leftward so they never spill past the viewport edge */
.nav-item:nth-last-child(-n+2) .dropdown { left: auto; right: 0; transform: translateY(10px); }
.nav-item:nth-last-child(-n+2):hover .dropdown { transform: translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border-radius: 12px;
  transition: background .18s;
}
.dropdown a:hover { background: var(--surface-2); }
.dropdown .d-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); font-size: 1rem;
}
.dropdown .d-t { font-weight: 600; font-size: .92rem; color: var(--text); }
.dropdown .d-d { font-size: .78rem; color: var(--muted); line-height: 1.4; }

.nav-cta { margin-left: 18px; display: flex; align-items: center; gap: 10px; }

/* Theme toggle icon (top-right) */
.theme-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  cursor: pointer; transition: transform .3s, box-shadow .3s, background .3s;
}
.theme-btn:hover { transform: rotate(25deg); box-shadow: 0 0 24px var(--glow-1); background: var(--surface-2); }
.theme-btn svg { width: 20px; height: 20px; }

/* Theme picker panel */
.theme-panel {
  position: fixed; top: 76px; right: max(4vw, 16px); z-index: 200;
  width: 300px; padding: 18px;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.97);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.theme-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.theme-panel h4 { font-size: .95rem; margin-bottom: 4px; }
.theme-panel p { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.theme-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swatch {
  aspect-ratio: 1; border-radius: 12px; cursor: pointer; position: relative;
  border: 2px solid transparent; transition: transform .2s, border-color .2s;
  overflow: hidden;
}
.swatch:hover { transform: translateY(-3px) scale(1.05); }
.swatch.selected { border-color: #fff; }
.swatch::after {
  content: attr(data-label); position: absolute; inset: auto 0 0 0; font-size: .5rem;
  text-align: center; padding: 2px; color: #fff; background: rgba(0,0,0,.35);
  opacity: 0; transition: opacity .2s;
}
.swatch:hover::after { opacity: 1; }

/* Mobile nav */
.hamburger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .2s, box-shadow .3s, background .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--on-accent); box-shadow: 0 12px 34px -12px var(--glow-1); }
.btn-primary:hover { box-shadow: 0 18px 44px -12px var(--glow-1); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   Hero — designed product visual (no stock photos).
   Left: message + CTAs. Right: animated Abormic DAM dashboard + live chips.
   Soft gradient-mesh glow behind. Adapts to light & dark, all palettes.
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 70px 0 78px; }
.hero::before {                       /* gradient-mesh glow */
  content: ""; position: absolute; inset: -25% -12% auto -12%; height: 130%; z-index: 0;
  background:
    radial-gradient(38% 48% at 76% 26%, var(--glow-1), transparent 68%),
    radial-gradient(34% 44% at 92% 62%, var(--glow-2), transparent 68%),
    radial-gradient(30% 40% at 58% 8%, var(--glow-3), transparent 68%);
  opacity: .55; filter: blur(28px); pointer-events: none;
}
:root[data-mode="light"] .hero::before { opacity: .4; }
.hero-grid {
  position: relative; z-index: 2; width: min(1200px, 92%); margin-inline: auto;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center;
  min-height: clamp(500px, 72vh, 700px);
}
.hero-content { max-width: 600px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 22px; color: var(--text); }
.hero p.lead { font-size: clamp(1.04rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 42px; }
.hero-trust > span { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.trust-logos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.trust-logos b { font-size: .96rem; font-weight: 700; color: var(--text); opacity: .58; }

/* Dashboard mock */
.hero-visual { position: relative; }
.dash-card {
  position: relative; z-index: 2; border-radius: 20px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-2) 86%, transparent); backdrop-filter: blur(16px);
  box-shadow: var(--shadow); overflow: hidden; animation: cardIn .8s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.dash-top { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: .4; }
.dash-top .title { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.dash-top .live { margin-left: auto; font-size: .72rem; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dash-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.dash-inner { padding: 18px; display: grid; gap: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kpi { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.kpi b { font-size: 1.5rem; display: block; line-height: 1.1; }
.kpi span { font-size: .7rem; color: var(--muted); }
.dash-chart2 { position: relative; height: 132px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(180deg, transparent, var(--surface)); overflow: hidden; }
.dash-chart2 svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dash-chart2 .ln { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease forwards .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-feed { display: grid; gap: 8px; }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); font-size: .8rem; color: var(--text); }
.feed-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.feed-row .ok { background: #22c55e; } .feed-row .warn { background: #f59e0b; }
.feed-row .tail { color: var(--muted); margin-left: auto; }

/* Floating live chips */
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px; box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(10px); animation: floaty 6s ease-in-out infinite;
}
.chip .ci { font-size: 1.1rem; }
.chip b { display: block; font-size: .84rem; line-height: 1.15; color: var(--text); }
.chip small { color: var(--muted); font-size: .7rem; }
.chip-1 { top: -5%; left: -9%; animation-delay: 0s; }
.chip-2 { top: 40%; right: -8%; animation-delay: -2s; }
.chip-3 { bottom: -5%; left: -7%; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquee band below the hero */
.marquee-band { padding: 20px 0; border-block: 1px solid var(--border); background: var(--surface); }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); overflow: hidden; }
.marquee-track { display: flex; gap: 54px; width: max-content; animation: scrollx 32s linear infinite; opacity: .7; }
.marquee-track span { font-weight: 700; font-size: 1.02rem; color: var(--muted); white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
  .chip-1 { left: 0; } .chip-2 { right: 0; } .chip-3 { left: 0; }
}
@media (max-width: 560px) {
  .hero { padding: 44px 0 56px; }
  .chip-2 { display: none; }
}

/* ============================================================
   Cards & grids
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 28px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, var(--glow-1), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--surface-2), transparent);
  border: 1px solid var(--border); color: var(--accent);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; }
.card .card-link { display: inline-flex; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: .9rem; }

.feature-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s, background .3s; }
.feature-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.feature-card .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 1.25rem; }
.feature-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: .88rem; }

/* Split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: linear-gradient(135deg, var(--bg-2), var(--surface-2)); min-height: 220px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-media .glass-badge {
  position: absolute; left: 18px; bottom: 18px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--border); font-size: .85rem;
}
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 18px; }
.check-list { display: grid; gap: 12px; margin: 22px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.check-list .tick { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: .7rem; margin-top: 2px; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 44px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.stat b { font-size: clamp(2rem,4vw,3rem); display: block; }
.stat b .grad-text { display: inline; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Page hero (interior) */
.page-hero { padding: 44px 0 40px; position: relative; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; max-width: 780px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }

/* Pills / tags */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 7px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .84rem; color: var(--muted); }
.pill:hover { color: var(--text); border-color: var(--accent); }

/* CTA banner */
.cta-banner {
  position: relative; padding: 64px; border-radius: 28px; overflow: hidden; text-align: center;
  background: linear-gradient(130deg, var(--bg-2), var(--surface));
  border: 1px solid var(--border);
}
.cta-banner::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, var(--glow-1), transparent 45%), radial-gradient(circle at 80% 80%, var(--glow-2), transparent 45%); opacity:.6; }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(1.7rem,3.6vw,2.6rem); margin-bottom: 16px; }
.cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Blog / insight cards */
.post-card { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--bg-2), var(--surface-2)); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .tag { font-size: .74rem; color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { font-size: 1.12rem; margin: 10px 0; }
.post-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.post-card .meta { margin-top: 16px; font-size: .8rem; color: var(--muted); }

/* Product page specifics */
.product-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 70px 0 40px; }
.product-hero > div { min-width: 0; }   /* prevent grid blow-out on mobile */
.dash-mock { max-width: 100%; }
.breadcrumb { flex-wrap: wrap; }
.product-hero h1 { font-size: clamp(2.2rem,5vw,3.6rem); margin: 18px 0; }
.product-visual { position: relative; }
.dash-mock {
  border-radius: 18px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow);
  background: var(--bg-2);
}
.dash-mock .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.dash-mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); opacity: .5; }
.dash-body { padding: 18px; display: grid; gap: 12px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.dash-tile { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.dash-tile b { font-size: 1.4rem; display: block; }
.dash-tile span { font-size: .72rem; color: var(--muted); }
.dash-chart { height: 120px; border-radius: 12px; border: 1px solid var(--border); background:
   linear-gradient(180deg, transparent, var(--glow-3)); position: relative; overflow: hidden; }
.dash-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); font-size: .94rem; }
.spec-table td:first-child { color: var(--muted); width: 40%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .85rem; margin-bottom: 7px; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.contact-info li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.contact-info b { display: block; font-size: .95rem; }
.contact-info span { color: var(--muted); font-size: .9rem; }

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.tl-item .yr { font-weight: 800; font-size: 1.3rem; color: var(--accent); }
.tl-item h4 { margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: .92rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 30px; margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 16px 0; max-width: 300px; }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; transition: .2s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .product-hero, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Switch to the mobile menu on tablets & small laptops, so the desktop nav
   and mega-menus never crowd or overflow a narrow viewport. */
@media (max-width: 1100px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; inset: 72px 0 auto 0; margin: 0; padding: 16px 5vw 24px;
    background: color-mix(in srgb, var(--bg-2) 98%, transparent); border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.mobile-open .nav-item > a { padding: 14px; border-radius: 12px; }
  .nav-links.mobile-open .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; min-width: 0; padding: 4px 0 8px 12px; grid-template-columns: 1fr !important; }
  .nav-links.mobile-open .dropdown a { padding: 9px; }
}
@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .stats-band, .footer-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(5,1fr); }
  .section { padding: 64px 0; }
  .cta-banner { padding: 40px 24px; }
  .tl-item { grid-template-columns: 70px 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Cookie consent (DPDP + GDPR)
   ============================================================ */
.footer-legal a:hover { color: var(--accent); }
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 300;
  width: min(1100px, 94%);
  background: color-mix(in srgb, var(--bg-2) 96%, transparent);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: cookieUp .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes cookieUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-inner { display: flex; align-items: center; gap: 24px; padding: 18px 22px; }
.cookie-copy b { display: block; margin-bottom: 4px; font-size: .98rem; }
.cookie-copy span { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.cookie-copy a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 11px 18px; font-size: .88rem; }
@media (max-width: 720px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   Long-form article / legal prose
   ============================================================ */
.article { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.article-wrap { max-width: 760px; margin-inline: auto; }
.prose { color: var(--text); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 4px; }
.prose h3 { font-size: 1.15rem; margin-top: 28px; }
.prose p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.prose ul { display: grid; gap: 10px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.65; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose .lede { font-size: 1.15rem; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.prose td, .prose th { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: .95rem; vertical-align: top; }
.prose th { color: var(--text); }
.prose td { color: var(--muted); }
.callout { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.callout p { color: var(--muted); font-size: .95rem; }
.toc { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 30px; }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .92rem; }
.toc a:hover { color: var(--accent); }

/* Article hero meta */
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 16px; flex-wrap: wrap; }
.article-cover { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); margin: 8px 0 30px; aspect-ratio: 16/7; background: linear-gradient(135deg, var(--bg-2), var(--surface-2)); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.author-row { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.author-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: var(--on-accent); font-weight: 700; }

/* Case-study result tiles */
.result-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 8px 0 12px; }
.result-tiles .rt { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.result-tiles .rt b { font-size: 2rem; display: block; }
.result-tiles .rt span { color: var(--muted); font-size: .86rem; }
@media (max-width: 720px){ .result-tiles { grid-template-columns: 1fr; } }

/* Detail-page sections (services/industries) */
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.mini-stats .ms { text-align: center; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.mini-stats .ms b { font-size: 1.9rem; display: block; }
.mini-stats .ms span { color: var(--muted); font-size: .85rem; }
.step-list { display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s, background .3s; }
.step:hover { transform: translateY(-3px); background: var(--surface-2); }
.step .n { counter-increment: step; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px){ .mini-stats { grid-template-columns: 1fr; } }

/* ============================================================
   Designed visual panels (home split sections) — replace stock photos
   ============================================================ */
.viz-panel {
  position: relative; border-radius: 20px; padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--bg-2) 86%, transparent); backdrop-filter: blur(14px);
  display: grid; gap: 16px;
}
.viz-head { display: flex; align-items: center; }
.viz-title { font-weight: 700; font-size: .92rem; }
.viz-live { margin-left: auto; font-size: .74rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.viz-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s infinite; }
.viz-meter { height: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.viz-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: meterFill 1.6s cubic-bezier(.2,.8,.2,1); }
@keyframes meterFill { from { width: 0 !important; } }
.viz-meter-row { display: flex; align-items: center; font-size: .84rem; color: var(--muted); }
.viz-meter-row b { margin-left: auto; font-size: 1.1rem; }
.status-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.status-grid .st { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.status-grid .st.warn { background: #f59e0b; }
.viz-rows { display: grid; gap: 8px; }
.viz-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: .82rem; }
.viz-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.viz-row .dot.ok { background: #22c55e; } .viz-row .dot.warn { background: #f59e0b; }
.viz-row .tail { margin-left: auto; color: var(--muted); }

/* DAM gauge */
.viz-gauge { display: flex; align-items: center; gap: 22px; }
.ring { position: relative; width: 116px; height: 116px; flex: none; display: grid; place-items: center; }
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 100%, var(--surface) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 61%, #000 62%);
  mask: radial-gradient(farthest-side, transparent 61%, #000 62%);
}
.ring span { position: relative; z-index: 1; text-align: center; }
.ring b { font-size: 1.5rem; display: block; line-height: 1; }
.ring small { font-size: .68rem; color: var(--muted); }
.viz-gauge-legend { display: grid; gap: 12px; }
.viz-gauge-legend div b { font-size: 1.3rem; }
.viz-gauge-legend div span { font-size: .74rem; color: var(--muted); margin-left: 8px; }
@media (max-width: 520px) { .viz-gauge { flex-direction: column; align-items: flex-start; } }
