/* Wye Analytics — site styles. Tokens from the Wye Analytics design system v2 (Two Streams). */
:root {
  --surface-100: #F5F8FC;
  --surface-200: #E6EDF7;
  --line: #D5DEEA;
  --ink: #0F172A;
  --ink-muted: #475569;
  --brand: #1D4ED8;
  --brand-deep: #1E3A8A;
  --brand-tint: #DCE6FD;
  --accent: #06B6D4;
  --accent-tint: #CFF4FA;
  --on-brand: #FFFFFF;
  --on-dark: #FFFFFF;
  --on-accent: #0F172A;
  --field-dark: #0B1533;
  --field-dark-200: #14214A;
  --field-dark-line: #26345F;
  --on-dark-muted: #A9B6CC;
  --brand-rev: #3B82F6;
  --accent-rev: #22D3EE;
  --success-rev: #47CD89;

  /* Glass */
  --glass-light: rgba(245, 248, 252, 0.72);
  --glass-light-strong: rgba(245, 248, 252, 0.9);
  --glass-light-line: rgba(213, 222, 234, 0.9);
  --glass-dark: rgba(20, 33, 74, 0.5);
  --glass-dark-line: rgba(255, 255, 255, 0.1);
  --blur: saturate(160%) blur(18px);

  --font-display: Poppins, "Segoe UI", system-ui, sans-serif;
  --font-sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-sm); }
.dark :focus-visible { outline-color: var(--accent-rev); }
::selection { background: var(--brand-tint); color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 200; background: var(--surface-100); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; margin: 0; }
.display { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.display-sm { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
.lead { font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 60ch; }
.small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.kpi { font-family: var(--font-sans); font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
p { margin: 0 0 var(--space-4); }
.muted { color: var(--ink-muted); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-6); position: relative; }
.section { padding: 112px 0; position: relative; }
.section-tight { padding: var(--space-16) 0; position: relative; }
.section-head { display: grid; gap: var(--space-4); margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-10); }
.section-head .lead { margin: 0; }
.alt { background: var(--surface-200); }
.grid { display: grid; gap: var(--space-6); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .section { padding: 88px 0; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section-head.split { grid-template-columns: 1fr; } .section { padding: 72px 0; } .wrap { padding: 0 20px; } }

/* Dark field */
.dark { background: var(--field-dark); color: var(--on-dark); }
.dark .lead, .dark .muted, .dark .small { color: var(--on-dark-muted); }
.dark .label { color: var(--accent-rev); }
.dark a:not(.btn) { color: var(--on-dark); }

/* Background texture for dark sections: hairline grid + blurred brand light */
.texture { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.texture::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M56 0H0V56' fill='none' stroke='%23ffffff' stroke-opacity='0.05'/%3E%3C/svg%3E"); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.blob.b1 { width: 520px; height: 520px; background: var(--brand); top: -160px; right: -80px; }
.blob.b2 { width: 380px; height: 380px; background: var(--accent); bottom: -180px; left: 8%; opacity: .25; }
.blob.b3 { width: 300px; height: 300px; background: var(--brand-rev); top: 30%; left: -120px; opacity: .3; }
.dark > .wrap, .hero > .wrap, .page-hero > .wrap { z-index: 1; }

/* ---------- Glass ---------- */
.glass { background: var(--glass-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-light-line); }
.glass-dark { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-dark-line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-light-strong); }
  .glass-dark { background: var(--field-dark-200); }
}

/* ---------- Header (floating glass bar) ---------- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; max-width: calc(var(--max) + 32px); margin: 0 auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: 0 10px 0 20px; border-radius: var(--radius-lg); transition: background .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease); }
.site-header.scrolled .nav { background: var(--glass-light-strong); }
/* Over the dark hero: dark glass with reverse logo; turns light once scrolled */
.logo .m-rev { display: none; }
.site-header:not(.scrolled) .nav { background: rgba(11, 21, 51, 0.38); border-color: rgba(255, 255, 255, 0.12); }
.site-header:not(.scrolled) .logo, .site-header:not(.scrolled) .menu-link, .site-header:not(.scrolled) .menu-link:hover, .site-header:not(.scrolled) .menu-link[aria-expanded="true"] { color: var(--on-dark); }
.site-header:not(.scrolled) .menu-link:hover, .site-header:not(.scrolled) .menu-link[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
.site-header:not(.scrolled) .menu-link[aria-current="page"] { color: var(--accent-rev); }
.site-header:not(.scrolled) .menu-link[aria-current="page"]::before { background: var(--accent-rev); }
.site-header:not(.scrolled) .logo .m-pri { display: none; }
.site-header:not(.scrolled) .logo .m-rev { display: block; }
.site-header:not(.scrolled) .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.2); }
.site-header:not(.scrolled) .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.site-header:not(.scrolled) .btn-primary { background: var(--on-dark); color: var(--field-dark); }
.site-header:not(.scrolled) .btn-primary:hover { background: var(--brand-tint); }
.site-header:not(.scrolled) .menu-btn { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.2); }
.site-header.hide .nav { transform: translateY(-120%); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 34px; height: auto; }
.logo .wm { font-family: var(--font-display); font-size: 19px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.logo .wm b { font-weight: 700; }
.logo .wm span { font-weight: 400; }
.logo:hover { color: var(--ink); }
.site-footer .logo { color: var(--on-dark); }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--ink); text-decoration: none; font: 500 15px/20px var(--font-sans); border-radius: var(--radius-md); background: none; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.menu-link:hover, .menu-link[aria-expanded="true"] { background: rgba(15, 23, 42, 0.06); color: var(--ink); }
.menu-link[aria-current="page"] { color: var(--brand); }
.menu-link[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 4px; }
.menu-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.menu-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

/* Services dropdown */
.dropdown { position: absolute; top: calc(100% + 14px); left: 50%; width: 560px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; border-radius: var(--radius-lg); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; background: rgba(245, 248, 252, 0.97) !important; }
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--ink); transition: background .15s; }
.dd-item:hover { background: rgba(29, 78, 216, 0.07); color: var(--ink); }
.dd-item strong { display: block; font: 600 15px/20px var(--font-sans); margin-bottom: 2px; }
.dd-item span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dd-item .icon { width: 38px; height: 38px; }
.dd-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 6px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
body.menu-open .menu-btn .i-open { display: none; }
body.menu-open .menu-btn .i-close { display: block; }

/* Mobile drawer */
.drawer { display: none; }
@media (max-width: 980px) {
  .menu, .nav-actions .btn-ghost { display: none; }
  .menu-btn { display: grid; }
  .drawer { display: block; position: fixed; inset: 88px 16px auto; max-height: calc(100dvh - 104px); overflow-y: auto; z-index: 99; border-radius: var(--radius-lg); padding: 12px; background: rgba(245, 248, 252, 0.97) !important; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; pointer-events: auto; }
  body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
  .drawer a.d-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px; font: 600 17px/24px var(--font-display); color: var(--ink); text-decoration: none; border-radius: var(--radius-md); }
  .drawer a.d-link svg { width: 18px; height: 18px; color: var(--ink-muted); }
  .drawer a.d-link:hover { background: rgba(15, 23, 42, 0.05); }
  .drawer a.d-link[aria-current="page"] { color: var(--brand); }
  .drawer .d-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 0 8px; }
  .drawer .d-sub a { padding: 10px 12px; font-size: 14px; color: var(--ink-muted); text-decoration: none; border-radius: var(--radius-md); background: rgba(15, 23, 42, 0.04); }
  .drawer .d-cta { display: grid; gap: 8px; padding: 12px 4px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
  .scrim { position: fixed; inset: 0; background: rgba(11, 21, 51, 0.35); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .2s; }
  body.menu-open .scrim { opacity: 1; visibility: visible; }
}
@media (max-width: 420px) { .nav-actions .btn-primary { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 12px 20px; border-radius: var(--radius-md); font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 20px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-deep); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(15, 23, 42, 0.05); color: var(--ink); }
.dark .btn-ghost, .btn-glass { color: var(--on-dark); border-color: var(--glass-dark-line); background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dark .btn-ghost:hover, .btn-glass:hover { background: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.dark .btn-primary { background: var(--on-dark); color: var(--field-dark); }
.dark .btn-primary:hover { background: var(--brand-tint); color: var(--field-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 168px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent-rev); }
.hero .lead { margin-bottom: 36px; font-size: 19px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--on-dark-muted); }
.hero-note .dots { display: flex; }
.hero-note .dots span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--field-dark); margin-left: -8px; display: grid; place-items: center; background: var(--field-dark-200); }
.hero-note .dots span:first-child { margin-left: 0; }
.hero-note .dots svg { width: 14px; height: 14px; color: var(--on-dark); }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--on-dark); }
.pill-badge b { background: var(--brand-rev); color: var(--field-dark); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 12px; font-weight: 600; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 136px; } }

.page-hero { position: relative; overflow: hidden; padding: 172px 0 96px; }
.page-hero h1 { margin: 20px 0 24px; max-width: 16ch; }
.page-hero .lead { margin: 0; }
.page-hero .streams-bg { position: absolute; right: -40px; top: 54%; transform: translateY(-50%); width: 520px; opacity: .85; pointer-events: none; z-index: 0; }
@media (max-width: 980px) { .page-hero .streams-bg { opacity: .25; right: -200px; } .page-hero { padding: 140px 0 72px; } }
.crumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted) !important; text-decoration: none; }
.crumbs a:hover { color: var(--on-dark) !important; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Hero dashboard (glass) */
.dash { border-radius: var(--radius-xl); padding: var(--space-6); color: var(--on-dark); position: relative; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; background: var(--brand-tint); color: var(--ink); }
.dark .chip { background: rgba(255, 255, 255, 0.06); color: var(--on-dark-muted); border: 1px solid var(--glass-dark-line); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success-rev); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: var(--space-6); }
.dash-kpi { background: rgba(11, 21, 51, 0.55); border: 1px solid var(--glass-dark-line); border-radius: var(--radius-md); padding: var(--space-4); }
.dash-kpi .label { color: var(--on-dark-muted); }
.dash-kpi .kpi { font-size: 32px; line-height: 38px; margin-top: 4px; }
.dash-kpi .hl { color: var(--accent-rev); }
.dash-kpi .delta { font-size: 13px; color: var(--success-rev); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; border-bottom: 1px solid var(--glass-dark-line); }
.bars span { flex: 1; background: var(--brand-rev); border-radius: var(--radius-sm) var(--radius-sm) 0 0; transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bars span:nth-child(2) { animation-delay: .05s; } .bars span:nth-child(3) { animation-delay: .1s; } .bars span:nth-child(4) { animation-delay: .15s; } .bars span:nth-child(5) { animation-delay: .2s; } .bars span:nth-child(6) { animation-delay: .25s; }
.bars span.win { background: var(--accent-rev); }
@keyframes grow { from { transform: scaleY(0); } }
.bar-labels { display: flex; gap: 10px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--on-dark-muted); }
.float-card { position: absolute; border-radius: var(--radius-lg); padding: 12px 16px; display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-size: 13px; animation: float 6s ease-in-out infinite; }
.float-card .icon { width: 34px; height: 34px; background: rgba(59, 130, 246, 0.2); color: var(--on-dark); }
.float-card strong { display: block; font-size: 14px; }
.float-card.f1 { left: -36px; bottom: -64px; }
.float-card.f2 { right: -20px; top: -26px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .float-card { display: none; } }

/* Platform marquee */
.marquee { margin-top: 96px; padding: 28px 0; border-top: 1px solid var(--glass-dark-line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font: 600 18px/24px var(--font-display); color: var(--on-dark-muted); white-space: nowrap; opacity: .8; }
.marquee-label { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 72px; font-weight: 600; }
.marquee-label + .marquee { margin-top: 16px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.stat { border-radius: var(--radius-lg); padding: var(--space-6); }
.stat .kpi { color: var(--on-dark); }
.stat .small { margin: 8px 0 0; color: var(--on-dark-muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: var(--space-4); position: relative; transition: border-color .2s, transform .25s var(--ease); }
.card.fill { background: var(--surface-200); border-color: transparent; }
.card.dark { background: var(--field-dark); border-color: var(--field-dark); overflow: hidden; }
.card.dark > *:not(.texture) { position: relative; }
.card h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-muted); }
.card .spacer { flex: 1; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--brand); color: inherit; transform: translateY(-3px); }
.icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.icon svg { width: 22px; height: 22px; }
.num { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--brand); }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.bento .wide { grid-column: span 2; }
.bento .card { min-height: 300px; overflow: hidden; }
.bento .card .visual { margin-top: auto; }
.bento .dark-card { background: var(--field-dark); color: var(--on-dark); border-color: var(--field-dark); }
.bento .dark-card p { color: var(--on-dark-muted); }
.bento .dark-card .icon { background: rgba(59, 130, 246, 0.2); color: var(--on-dark); }
.bento .dark-card .link-arrow { color: var(--on-dark); }
.bento .dark-card:hover { border-color: var(--brand-rev); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.mini-bars i { flex: 1; background: var(--brand-tint); border-radius: 3px 3px 0 0; }
.mini-bars i.on { background: var(--brand); }
.dark-card .mini-bars i { background: rgba(59, 130, 246, 0.35); }
.dark-card .mini-bars i.on { background: var(--brand-rev); }
.creator-row { display: flex; gap: 8px; }
.creator-row span { flex: 1; aspect-ratio: 9 / 14; border-radius: 10px; background: var(--surface-200); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-muted); }
.creator-row span svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento .wide { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .wide { grid-column: auto; } }

/* Service rows (services page) */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface-100); }
.svc + .svc { margin-top: var(--space-6); }
.svc h2 { margin: 8px 0 16px; }
.svc .lead { margin: 0; }
.svc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.svc li { display: flex; gap: 12px; align-items: flex-start; }
.svc li svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.svc .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.svc-side { background: var(--surface-200); border-radius: var(--radius-lg); padding: 32px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: var(--space-6); padding: 28px; } .svc-side { padding: 24px; } }
.tag { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--ink); font-size: 13px; font-weight: 500; }
.dark .tag { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); position: relative; }
.process::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 1px; background: var(--glass-dark-line); }
.step { position: relative; }
.step .bubble { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--font-display); color: var(--on-dark); margin-bottom: 24px; position: relative; }
.step h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; row-gap: 40px; } .process::before { display: none; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Case preview cards */
.case-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-100); text-decoration: none; color: inherit; transition: transform .25s var(--ease), border-color .2s; }
.case-card:hover { transform: translateY(-4px); border-color: var(--brand); color: inherit; }
.case-card .top { position: relative; overflow: hidden; background: var(--field-dark); color: var(--on-dark); padding: 28px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.case-card .top .blob { width: 220px; height: 220px; filter: blur(60px); }
.case-card .top > *:not(.blob):not(.cover) { position: relative; }
.case-card .top .small { color: var(--on-dark-muted); margin-top: 4px; }
.case-card .top .kpi { font-size: 48px; line-height: 52px; }
.case-card .top .tag { align-self: flex-start; }
.case-card .bottom { padding: 24px 28px 28px; display: grid; gap: 10px; }
.case-card h3 { font-size: 19px; line-height: 27px; font-weight: 600; }
.case-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* Case studies page */
.case { display: grid; grid-template-columns: 1.05fr 0.95fr; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-100); }
.case + .case { margin-top: var(--space-6); }
.case-body { padding: 48px; display: flex; flex-direction: column; gap: var(--space-4); }
.case-body h2 { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.case-side { position: relative; overflow: hidden; background: var(--field-dark); color: var(--on-dark); padding: 40px; display: grid; gap: var(--space-4); align-content: start; }
.case-side > * { position: relative; }
.case-side .small { color: var(--on-dark-muted); }
.case-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { border-radius: var(--radius-md); padding: var(--space-4); }
.tile .kpi { font-size: 28px; line-height: 34px; }
.tile .label { color: var(--on-dark-muted); margin-top: 6px; display: block; }
.tile.hl .kpi { color: var(--accent-rev); }
.case dl { margin: 0; display: grid; gap: 16px; }
.case dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.case dd { margin: 4px 0 0; }
.mini-chart { border-radius: var(--radius-md); padding: var(--space-4); }
.mini-chart .label { color: var(--on-dark-muted); margin-bottom: 8px; }
.mini-chart svg { width: 100%; height: auto; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .case-body, .case-side { padding: 24px; } .case-kpis { grid-template-columns: 1fr; } }

.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 40px; padding: 6px; border-radius: var(--radius-pill); }
.filter { padding: 9px 18px; border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; transition: background .15s, color .15s; }
.filter:hover { background: rgba(15, 23, 42, 0.06); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--surface-100); }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-10); } }
.panel { background: var(--surface-200); border-radius: var(--radius-xl); padding: var(--space-10); position: relative; overflow: hidden; }
.panel.dark { background: var(--field-dark); }
.panel > * { position: relative; }

.checks { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-4); }
.checks li { display: flex; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }
.dark .checks svg { color: var(--accent-rev); }

/* Compare table */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-100); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 16px 24px; background: var(--surface-200); font-weight: 600; }
.compare td { padding: 20px 24px; border-top: 1px solid var(--line); vertical-align: top; }
.compare td:first-child { color: var(--ink-muted); }
.compare td:first-child s { text-decoration-color: rgba(71, 85, 105, 0.5); }
.compare td:last-child { font-weight: 500; }
.compare td:last-child svg { display: inline-block; width: 18px; height: 18px; color: var(--brand); vertical-align: -3px; margin-right: 8px; }

/* Jobs */
details.job-detail { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-100); transition: border-color .2s; }
details.job-detail + details.job-detail { margin-top: 12px; }
details.job-detail summary { list-style: none; cursor: pointer; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; }
details.job-detail summary::-webkit-details-marker { display: none; }
details.job-detail summary h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
details.job-detail:hover { border-color: var(--brand); }
.chev { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.chev svg { width: 18px; height: 18px; }
details.job-detail[open] .chev { transform: rotate(180deg); background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
details.job-detail[open] { border-color: var(--brand); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); border-top: 1px solid var(--line); margin: 0 28px; padding: 24px 0 28px; }
.job-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.job-body ul { margin: 0 0 var(--space-6); padding-left: 18px; color: var(--ink-muted); }
.job-body li { margin-bottom: 6px; }
@media (max-width: 760px) { .job-body { grid-template-columns: 1fr; gap: 0; } }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 16px/24px var(--font-sans); color: var(--ink); background: rgba(255, 255, 255, 0.7); border: 1px solid #94A3B8; border-radius: var(--radius-md); padding: 11px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; cursor: pointer; background: rgba(255, 255, 255, 0.7); transition: background .15s, border-color .15s; }
.pills input:checked + label { background: var(--brand-tint); border-color: var(--brand); color: var(--ink); }
.pills input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-note { padding: var(--space-4); border-radius: var(--radius-md); background: var(--brand-tint); display: none; margin: 0; }
.form-note.show { display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.contact-list li { display: flex; gap: var(--space-4); }

/* Socials */
.socials { display: flex; gap: 10px; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark) !important; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-dark-line); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--brand-rev); border-color: var(--brand-rev); transform: translateY(-2px); }
.socials.light .social { color: var(--ink) !important; background: var(--surface-100); border-color: var(--line); }
.socials.light .social:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand) !important; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 26px; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin: 16px 0 0; color: var(--ink-muted); max-width: 70ch; }

/* CTA band */
.cta-band { border-radius: var(--radius-xl); padding: 72px; display: grid; grid-template-columns: 1fr auto; gap: var(--space-10); align-items: center; position: relative; overflow: hidden; }
.cta-band .streams-bg { position: absolute; right: -60px; bottom: -120px; width: 420px; opacity: .35; pointer-events: none; }
.cta-band > *:not(.texture):not(.streams-bg) { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 40px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--field-dark); color: var(--on-dark-muted); padding: 96px 0 32px; font-size: 15px; position: relative; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1fr auto; gap: var(--space-10); align-items: end; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--field-dark-line); }
.foot-top h2 { color: var(--on-dark); max-width: 18ch; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--space-10); }
.site-footer h3 { font-family: var(--font-sans); color: var(--on-dark); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a:not(.btn):not(.social) { color: var(--on-dark-muted); text-decoration: none; transition: color .15s; }
.site-footer a:not(.btn):not(.social):hover { color: var(--on-dark); }
.foot-legal { border-top: 1px solid var(--field-dark-line); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: 13px; line-height: 18px; }
.foot-legal nav { display: flex; gap: 20px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }


/* ---------- Team ---------- */
.team-card { align-items: flex-start; text-align: left; }
.team-card h3 { font-size: 19px; line-height: 26px; }
.team-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.avatar { position: relative; width: 112px; height: 112px; flex: none; margin-bottom: 4px; }
.avatar .ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; animation: spin 9s linear infinite; }
.team-card:hover .avatar .ring { animation-duration: 2.4s; }
.avatar .face { position: absolute; inset: 10px; border-radius: 50%; overflow: hidden; background: var(--field-dark); display: grid; place-items: center; }
.avatar .face::before { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: var(--brand); filter: blur(18px); opacity: .55; top: -10%; right: -10%; }
.avatar .face span { position: relative; font: 700 28px/1 var(--font-display); color: var(--on-dark); letter-spacing: -0.02em; }
.avatar .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.team-card:hover .avatar .face img { transform: scale(1.06); }
.avatar .badge { position: absolute; right: 2px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--field-dark); border: 3px solid var(--surface-100); display: grid; place-items: center; }
.avatar .badge svg { width: 18px; height: auto; }
.li-btn svg { width: 16px; height: 16px; color: #0A66C2; }
.li-btn:hover svg { transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 3D funnel ---------- */
.funnel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.funnel-stage { position: relative; perspective: 1000px; }
.funnel-svg { position: relative; width: 100%; height: auto; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -10deg)); transition: transform .4s var(--ease); overflow: visible; }
.funnel-glow { position: absolute; left: 25%; right: 25%; bottom: 0; height: 40%; border-radius: 50%; background: var(--accent); filter: blur(80px); opacity: .28; }
.funnel-svg .seg { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translateY(-30px) scale(.96); transition: opacity .7s var(--ease) var(--d), transform .7s var(--ease) var(--d); }
.funnel-stage.in .seg { opacity: 1; transform: none; animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--d) * 4); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.funnel-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.funnel-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--radius-md); }
.funnel-list li i { width: 10px; height: 40px; border-radius: 4px; }
.funnel-list .label { color: var(--on-dark-muted); display: block; margin-bottom: 2px; }
.funnel-list .kpi { font-size: 26px; line-height: 32px; color: var(--on-dark); display: block; }
.funnel-list em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.funnel-list li.hl .kpi { color: var(--accent-rev); }
.funnel-list li.hl em { color: var(--success-rev); }
@media (max-width: 900px) { .funnel-grid { grid-template-columns: 1fr; gap: 40px; } .funnel-stage { max-width: 480px; margin: 0 auto; } }

/* ---------- Legal pages ---------- */
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 100px; border-radius: var(--radius-lg); padding: 24px; }
.legal-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14px; }
.legal-toc a { color: var(--ink-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--brand); }
.legal { max-width: 720px; }
.legal section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 14px; }
.legal p, .legal li { color: var(--ink-muted); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 8px; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static; } }


/* ---------- Case study: shared ---------- */
.client-logo { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 8px 16px; border-radius: var(--radius-md); background: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.4); text-decoration: none; }
.client-logo img { display: none; height: 30px; width: auto; max-width: 180px; object-fit: contain; }
.client-logo b { font: 700 18px/1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.client-logo.loaded img { display: block; }
.client-logo.loaded b { display: none; }
.client-logo.sm { height: 38px; padding: 6px 12px; }
.client-logo.sm img { height: 24px; max-width: 130px; }
.client-logo.sm b { font-size: 15px; }
.cs-client { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cs-tags .tag svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Case cards (listing + home) */
.case-card .top .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tags span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.cc-tags span + span::before { content: "·"; margin-right: 6px; color: var(--ink-muted); }
.case-card .link-arrow { color: var(--brand); margin-top: 4px; }
.case-card[hidden] { display: none; }

/* Featured case */
.featured-case { display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface-100); text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .2s; }
.featured-case:hover { transform: translateY(-4px); border-color: var(--brand); color: inherit; }
.fc-body { padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.fc-body .client-logo { border-color: var(--line); }
.fc-body .chip .dot { background: var(--success); }
.fc-body .lead { margin: 0; }
.fc-side { position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.fc-side > *:not(.texture) { position: relative; }
.fc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-sources span { font-size: 13px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-dark-line); color: var(--on-dark); }
@media (max-width: 900px) { .featured-case { grid-template-columns: 1fr; } .fc-body, .fc-side { padding: 28px; } }

/* ---------- Case study page ---------- */
.cs-hero { position: relative; overflow: hidden; padding: 160px 0 72px; }
.cs-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-top: 16px; }
.cs-hero h1 { margin: 24px 0 20px; }
.cs-hero .lead { margin: 0 0 20px; }
.cs-hero-visual { position: relative; }
.cs-feature { width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--glass-dark-line); }
.mini-dash { border-radius: var(--radius-xl); padding: 20px; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .5s var(--ease); }
.cs-hero-visual:hover .mini-dash { transform: none; }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.mk { background: rgba(11, 21, 51, 0.55); border: 1px solid var(--glass-dark-line); border-radius: var(--radius-md); padding: 14px; }
.mk .label { color: var(--on-dark-muted); display: block; }
.mk strong { font: 600 24px/30px var(--font-sans); font-variant-numeric: tabular-nums; }
.mk:first-child strong { color: var(--accent-rev); }
.spark { width: 100%; height: 80px; }
.cs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
@media (max-width: 980px) { .cs-hero-grid { grid-template-columns: 1fr; } .cs-hero { padding-top: 132px; } .cs-metrics { grid-template-columns: 1fr 1fr; } .mini-dash { transform: none; } }

.dw-bar { display: flex; align-items: center; gap: 12px; }
.dw-bar .dots { display: flex; gap: 6px; }
.dw-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.dw-title { font: 600 14px/20px var(--font-sans); color: var(--on-dark); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Data flow */
.flow { display: grid; grid-template-columns: minmax(220px, 1.1fr) 0.6fr minmax(180px, 0.8fr) 0.3fr minmax(220px, 1fr); align-items: center; }
.flow-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow-sources li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: #FFFFFF; }
.src-ico { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font: 700 13px/1 var(--font-display); flex: none; }
.flow-sources strong { display: block; font-size: 15px; line-height: 20px; }
.flow-sources span:not(.src-ico) { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.flow-lines { width: 100%; height: 100%; min-height: 200px; overflow: visible; }
.flow-lines path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 8; animation: flowdash 1.6s linear infinite; }
.flow-lines path.a { stroke: var(--brand); }
.flow-lines path.b { stroke: var(--accent); }
.flow-lines.out { min-height: 20px; }
@keyframes flowdash { to { stroke-dashoffset: -28; } }
.flow-hub { border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; display: grid; justify-items: center; gap: 8px; background: var(--field-dark) !important; }
.flow-hub .icon { background: rgba(59, 130, 246, 0.2); color: var(--on-dark); }
.flow-hub strong { font: 600 17px/24px var(--font-display); }
.flow-hub span:last-child { font-size: 13px; line-height: 18px; color: var(--on-dark-muted); }
.flow-out-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; }
.flow-out-card > *:not(.texture) { position: relative; }
.flow-out-card strong { font: 600 20px/28px var(--font-display); }
.kpi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kpi-chips span { font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-dark-line); }
@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; gap: 0; justify-items: stretch; }
  .flow-lines { min-height: 0; height: 48px; transform: rotate(90deg); width: 48px; justify-self: center; }
  .flow-lines.out { height: 40px; }
  .flow-sources { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .flow-sources { grid-template-columns: 1fr; } }

/* Demo dashboard */
.dash-window { border-radius: var(--radius-xl); padding: 20px; }
.dw-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 20px 0; }
.seg-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: rgba(11, 21, 51, 0.6); border: 1px solid var(--glass-dark-line); }
.seg-tabs button { border: 0; background: transparent; color: var(--on-dark-muted); font: 600 13px/18px var(--font-sans); padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s; }
.seg-tabs button:hover { color: var(--on-dark); }
.seg-tabs button[aria-pressed="true"] { background: var(--brand-rev); color: var(--field-dark); }
.dw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dw-kpi { background: rgba(11, 21, 51, 0.55); border: 1px solid var(--glass-dark-line); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 4px; }
.dw-kpi .label { color: var(--on-dark-muted); }
.dw-kpi .v { font: 600 24px/30px var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dw-kpi:first-child .v { color: var(--accent-rev); }
.dw-kpi .d { font-size: 12px; font-weight: 600; }
.dw-kpi .d.good { color: var(--success-rev); }
.dw-kpi .d.bad { color: #F97066; }
.dw-kpi.flash .v { animation: flash .5s var(--ease); }
@keyframes flash { from { opacity: .2; transform: translateY(4px); } }
.dw-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 10px; }
.dw-card { background: rgba(11, 21, 51, 0.55); border: 1px solid var(--glass-dark-line); border-radius: var(--radius-md); padding: 16px; }
.dw-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-dark-muted); }
.legend i, .dw-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-left: 6px; }
.l1 { background: var(--brand-rev); } .l2 { background: var(--accent-rev); }
.dw-chart-wrap { position: relative; }
.dw-chart { width: 100%; height: 220px; display: block; cursor: crosshair; }
.dw-chart .gl { stroke: var(--field-dark-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dw-chart .area { fill: rgba(59, 130, 246, 0.14); }
.dw-chart .ln { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dw-chart .rev { stroke: var(--brand-rev); }
.dw-chart .spend { stroke: var(--accent-rev); }
.dw-chart .cursor { stroke: var(--on-dark-muted); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.dw-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--field-dark); border: 1px solid var(--glass-dark-line); border-radius: var(--radius-md); padding: 8px 12px; font-size: 12px; display: grid; gap: 2px; pointer-events: none; white-space: nowrap; }
.dw-tip i { margin: 0 6px 0 0; vertical-align: middle; }
.dw-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dw-channels li { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; transition: opacity .2s; }
.dw-channels li.dim { opacity: .35; }
.dw-channels b { font-variant-numeric: tabular-nums; }
.dw-channels i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dw-channels em { display: block; height: 100%; background: var(--brand-rev); border-radius: 4px; }
.dw-channels li:first-child em { background: var(--accent-rev); }
.dw-note { margin: 14px 0 0; }
.embed-wrap { margin-top: 32px; }
.embed-wrap iframe { width: 100%; height: 720px; border: 1px solid var(--glass-dark-line); border-radius: var(--radius-lg); background: var(--field-dark-200); }
@media (max-width: 860px) { .dw-grid { grid-template-columns: 1fr; } .embed-wrap iframe { height: 520px; } }

/* Story */
.cs-story { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.cs-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-card { border-radius: var(--radius-lg); padding: 24px; }
.aside-card dl { margin: 16px 0 0; display: grid; gap: 14px; }
.aside-card dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.aside-card dd { margin: 4px 0 0; font-size: 15px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chart-card { background: var(--surface-200); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.bar-chart span { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; }
.bar-chart span.after { background: var(--accent); }
.prose { max-width: 720px; font-size: 17px; line-height: 30px; }
.prose h2 { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; line-height: 30px; font-weight: 600; margin: 32px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; color: #334155; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 8px 0; height: auto; }
.prose blockquote { margin: 32px 0; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--accent-tint); font: 600 20px/30px var(--font-display); color: var(--ink); }
.prose blockquote p { margin: 0; color: var(--ink); }
.prose a { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-200); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.prose code { font-size: 14px; background: var(--surface-200); padding: 2px 6px; border-radius: var(--radius-sm); }
.note { padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface-200); font-size: 14px; color: var(--ink-muted) !important; }
@media (max-width: 960px) { .cs-story { grid-template-columns: 1fr; gap: 32px; } .cs-aside { position: static; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gal-item { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: var(--surface-200); }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 92vw); }
.lightbox::backdrop { background: rgba(11, 21, 51, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { border-radius: var(--radius-lg); max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox p { color: var(--on-dark); text-align: center; margin-top: 12px; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(11, 21, 51, 0.7); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-close svg { width: 20px; height: 20px; }

/* CTA with form */
.cs-cta { grid-template-columns: 1fr minmax(320px, 440px); align-items: start; }
.cs-form { position: relative; z-index: 1; background: var(--surface-100); color: var(--ink); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 14px; }
.cs-form .small { color: var(--ink-muted); }
.cs-form .pills label { font-size: 13px; padding: 6px 12px; }
@media (max-width: 900px) { .cs-cta { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 24px 80px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track, .float-card, .bars span, .chip .dot, .avatar .ring, .funnel-stage.in .seg, .flow-lines path { animation: none; }
  .funnel-svg .particles { display: none; }
}
@media (max-width: 520px) {
  .dw-kpis { grid-template-columns: 1fr 1fr; }
  .dw-kpi .v { font-size: 20px; line-height: 26px; }
  .dash-window { padding: 14px; }
  .cs-metrics .kpi { font-size: 30px; line-height: 36px; }
}
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note.ok { background: #DCFAE6; color: #054F31; }
