/* ═══════════════════════════════════════════════════════════
   Airusia — Investment Landing  ·  Genesis Teal Edition 2.0
   Syne (display 700/800) · Plus Jakarta Sans (body 300–700)
   Palette: #06131A bg · #28B8A0 teal · #EDF8F4 ink
   ═══════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Montserrat:ital,wght@0,700;0,800;0,900;1,700;1,800;1,900&display=swap');

/* ── CUSTOM PROPERTIES ── */
:root {
  --bg:          #06131A;
  --bg2:         #081820;
  --card:        #0B2030;
  --card2:       #0E2538;
  --teal:        #28B8A0;
  --teal2:       #1E9A85;
  --teal-glow:   rgba(40,184,160,.22);
  --teal-lo:     rgba(40,184,160,.08);
  --teal-hi:     #C8EEE4;
  --ink:         #EDF8F4;
  --muted:       #6BA398;
  --dim:         #1C3D52;
  --border:      rgba(40,184,160,.15);
  --border2:     rgba(40,184,160,.28);

  --radius:      12px;
  --r-sm:        8px;
  --r-lg:        20px;
  --r-xl:        32px;

  --nav-h:       72px;
  --ease:        cubic-bezier(.22,.68,0,1.2);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in:     cubic-bezier(.4,0,1,1);
  --ease-std:    cubic-bezier(.25,.46,.45,.94);

  --font-head:   'DM Sans', system-ui, sans-serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --font-logo:   'Montserrat', 'DM Sans', system-ui, sans-serif;

  --section-py:  clamp(80px, 10vw, 140px);
  --container:   1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
figure { margin: 0; }

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .18s var(--ease-out), height .18s var(--ease-out), background .2s;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid var(--border2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .28s var(--ease-out), height .28s var(--ease-out), border-color .2s;
  will-change: transform;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 54px; height: 54px; border-color: var(--teal); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ── GRAIN ── */
.grain {
  position: fixed; inset: 0;
  z-index: 9990; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── SCROLL PROGRESS ── */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--teal);
  z-index: 9999; pointer-events: none;
  transition: width .06s linear;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ── UTILITY ── */
.teal     { color: var(--teal); }
.dim-txt  { color: var(--muted); }
.mono     { font-family: var(--font-mono); font-size: .8em; letter-spacing: .06em; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; display: block;
  width: 22px; height: 1.5px;
  background: var(--teal); flex-shrink: 0;
}

/* Dot grid */
.dot-grid {
  background-image: radial-gradient(circle, rgba(40,184,160,.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── BUTTONS ── */
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 36px; border-radius: 999px;
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 700;
  letter-spacing: .02em;
  transition: transform .22s var(--ease), box-shadow .22s, background .2s, color .2s, border-color .2s;
  cursor: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--teal); color: var(--bg);
  box-shadow: 0 0 0 rgba(40,184,160,0);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px var(--teal-glow);
}
.btn-outline {
  border: 1.5px solid var(--dim);
  color: var(--ink); background: transparent;
}
.btn-outline:hover {
  border-color: var(--teal); color: var(--teal);
  transform: translateY(-3px);
  background: var(--teal-lo);
}
.btn-lg { padding: 18px 52px; font-size: .95rem; }
@media (hover: none) { .btn-primary, .btn-outline { cursor: pointer; } }

/* ── REVEAL ANIMATIONS ── */
.r {
  opacity: 0;
  transform: translateY(40px) scale(.98);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.r.in { opacity: 1; transform: none; }
.r-left {
  opacity: 0; transform: translateX(-36px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.r-left.in { opacity: 1; transform: none; }
.r-right {
  opacity: 0; transform: translateX(36px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.r-right.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .r, .r-left, .r-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,19,26,.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-logo);
  font-size: 1.25rem; font-weight: 800;
  font-style: italic;
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .2s;
  text-decoration: none;
}
.nav-logo:hover { color: var(--teal); }
.logo-mark { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .02em;
  background: linear-gradient(90deg, var(--ink) 0%, var(--teal-hi) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--ink);
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  font-size: .82rem; font-weight: 600;
  color: var(--muted);
  padding: 7px 14px; border-radius: 999px;
  letter-spacing: .02em;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: var(--teal-lo); }
.nav-cta {
  color: var(--teal) !important;
  border: 1px solid var(--border2);
  padding: 7px 18px;
}
.nav-cta:hover { background: var(--teal-lo) !important; }

/* Burger */
.burger {
  display: none; flex-direction: column;
  gap: 5px; padding: 6px; cursor: none;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(6,19,26,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 899;
  padding: 48px 32px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 800;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--teal); }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   01 — HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow-x: clip; /* clip вместо hidden — не создаёт stacking context, не обрезает sticky */
}

/* Canvas particle background */
#hero-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  z-index: 0;
  opacity: .7;
}

/* Dot grid layer */
.hero-dots {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, rgba(40,184,160,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Gradient veil — semi-transparent so particles show through */
.hero-veil {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(6,19,26,.82) 0%,
    rgba(6,19,26,.38) 50%,
    rgba(6,19,26,.72) 100%
  );
  pointer-events: none;
}

/* Bottom fade */
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px; z-index: 3;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-body {
  position: relative; z-index: 4;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: clamp(40px, 8vh, 80px);
  padding-bottom: clamp(80px, 12vh, 140px);
  width: 100%;
}

.hero-left {
  min-width: 0;
  overflow: visible;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  opacity: 0;
  animation: hero-tag-in .8s .2s var(--ease-out) forwards;
}
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--teal-glow); }
  50%      { opacity: .7; box-shadow: 0 0 0 5px transparent; }
}
@keyframes hero-tag-in {
  from { opacity: 0; letter-spacing: .5em; }
  to   { opacity: 1; letter-spacing: .2em; }
}

/* ── BRAND WORDMARK ── */
.hero-brand {
  font-family: var(--font-logo);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  /* Компенсация italic-наклона — буква A не обрезается слева */
  padding-left: .08em;
  margin-left: -.08em;

  background: linear-gradient(
    110deg,
    var(--ink)    0%,
    var(--teal-hi) 55%,
    var(--teal)   100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  filter: drop-shadow(0 0 32px rgba(40,184,160,.25));

  opacity: 0;
  animation: brand-in 1s .35s var(--ease-out) forwards;
}
@keyframes brand-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ── HERO H1 (слоган под брендом) ── */
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.8vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 28px;
  color: var(--ink);
}
.hero-h1 .hl-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: line-reveal .7s var(--ease-out) forwards;
}
.hero-h1 .hl-line:nth-child(1) { animation-delay: .55s; }
.hero-h1 .hl-line:nth-child(2) { animation-delay: .7s; }
.hero-h1 .hl-line:nth-child(3) { animation-delay: .85s; color: var(--teal); }
@keyframes line-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fallback: если анимации отключены */
@media (prefers-reduced-motion: reduce) {
  .hero-brand { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-h1 .hl-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.hero-sub {
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up .8s 1s var(--ease-out) forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-btns {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fade-up .8s 1.15s var(--ease-out) forwards;
}

.hero-stats {
  display: flex; gap: 0; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  opacity: 0;
  animation: fade-up .8s 1.3s var(--ease-out) forwards;
}
.hs-item {
  padding: 0 28px 0 0;
  margin-right: 28px;
  border-right: 1px solid var(--border);
}
.hs-item:last-child { border-right: none; margin-right: 0; }
.hs-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--teal-hi);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.hs-lbl {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* Hero right: canvas visualization label */
.hero-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 16px; opacity: 0;
  animation: fade-up .8s 1.1s var(--ease-out) forwards;
}
.hero-canvas-hint {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: fade-up .6s 1.8s ease forwards;
  color: var(--muted);
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--muted);
  border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 7px; border-radius: 3px;
  background: var(--teal);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%,100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(8px); opacity: 0; }
}

/* ═══ HERO NETWORK SVG ═══ */
.hero-network {
  width: 100%; max-width: 420px;
  opacity: 0;
  animation: fade-up .8s 1.3s var(--ease-out) forwards;
  filter: drop-shadow(0 0 18px rgba(40,184,160,.12));
}

/* Connection lines */
.net-line {
  stroke: rgba(40,184,160,.25);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  animation: line-drift 3s linear infinite;
}
.nl-1  { animation-delay: 0s;     stroke-opacity: .3; }
.nl-2  { animation-delay: .5s;    stroke-opacity: .25; }
.nl-3  { animation-delay: 1s;     stroke-opacity: .28; }
.nl-4  { animation-delay: 1.5s;   stroke-opacity: .22; }
.nl-5  { animation-delay: 2s;     stroke-opacity: .26; }
.nl-6  { animation-delay: .8s;    stroke-opacity: .2; }
.nl-x1 { animation-delay: .3s;    stroke-opacity: .12; stroke-dasharray: 4 6; }
.nl-x2 { animation-delay: 1.2s;   stroke-opacity: .1;  stroke-dasharray: 4 6; }
.nl-x3 { animation-delay: 1.8s;   stroke-opacity: .1;  stroke-dasharray: 4 6; }
@keyframes line-drift {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -20; }
}

/* Satellite nodes */
.sat-ring {
  fill: none;
  stroke: var(--teal);
  stroke-width: .8;
  opacity: 0;
  animation: ring-appear 1s var(--ease-out) forwards;
}
.sat-node {
  fill: var(--card2);
  stroke: var(--teal);
  stroke-width: 1.5;
  opacity: 0;
  animation: node-appear .6s var(--ease-out) forwards;
}
.sat-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px; font-weight: 700;
  fill: var(--teal-hi);
  text-anchor: middle;
  opacity: 0;
  animation: node-appear .4s var(--ease-out) forwards;
}
.sat-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 6px; font-weight: 400;
  fill: var(--muted);
  text-anchor: middle;
  opacity: 0;
  animation: node-appear .4s var(--ease-out) forwards;
}

/* Staggered delays per satellite */
.sg-1 .sat-ring, .sg-1 .sat-node, .sg-1 .sat-lbl, .sg-1 .sat-sub { animation-delay: 1.4s; }
.sg-2 .sat-ring, .sg-2 .sat-node, .sg-2 .sat-lbl, .sg-2 .sat-sub { animation-delay: 1.6s; }
.sg-3 .sat-ring, .sg-3 .sat-node, .sg-3 .sat-lbl, .sg-3 .sat-sub { animation-delay: 1.8s; }
.sg-4 .sat-ring, .sg-4 .sat-node, .sg-4 .sat-lbl, .sg-4 .sat-sub { animation-delay: 2.0s; }
.sg-5 .sat-ring, .sg-5 .sat-node, .sg-5 .sat-lbl, .sg-5 .sat-sub { animation-delay: 2.2s; }
.sg-6 .sat-ring, .sg-6 .sat-node, .sg-6 .sat-lbl, .sg-6 .sat-sub { animation-delay: 2.4s; }

/* Pulsing ring decoration on each sat — opacity only (cross-browser) */
.sat-ring {
  animation: ring-pulse 3s ease-in-out infinite;
}
.sg-1 .sat-ring { animation-delay: 0s; }
.sg-2 .sat-ring { animation-delay: .5s; }
.sg-3 .sat-ring { animation-delay: 1s; }
.sg-4 .sat-ring { animation-delay: 1.5s; }
.sg-5 .sat-ring { animation-delay: 2s; }
.sg-6 .sat-ring { animation-delay: 2.5s; }
@keyframes ring-pulse {
  0%,100% { opacity: .12; }
  50%      { opacity: .3; }
}
@keyframes ring-appear {
  from { opacity: 0; }
  to   { opacity: .2; }
}
@keyframes node-appear {
  from { opacity: 0; transform: scale(.6); transform-origin: center; transform-box: fill-box; }
  to   { opacity: 1; transform: scale(1); }
}

/* Hub node */
.hub-node {
  fill: rgba(40,184,160,.15);
  stroke: var(--teal);
  stroke-width: 2;
  animation: hub-breathe 4s ease-in-out infinite;
}
.hub-ring-1 {
  fill: none; stroke: var(--teal); stroke-width: .8; opacity: .15;
  animation: hub-breathe 4s 1s ease-in-out infinite;
}
.hub-ring-2 {
  fill: none; stroke: var(--teal); stroke-width: .5; opacity: .08;
  animation: hub-breathe 4s 2s ease-in-out infinite;
}
@keyframes hub-breathe {
  0%,100% { opacity: .18; }
  50%      { opacity: .32; }
}
.hub-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 800;
  fill: var(--teal-hi);
  text-anchor: middle; letter-spacing: .08em;
}
.hub-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 7px; font-weight: 400;
  fill: var(--muted);
  text-anchor: middle; letter-spacing: .1em;
}

/* Reduced motion: keep graphic, stop animations */
@media (prefers-reduced-motion: reduce) {
  .net-line, .sat-ring, .sat-node, .sat-lbl, .sat-sub,
  .hub-node, .hub-ring-1, .hub-ring-2 {
    animation: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 1024px) {
  .hero-body { grid-template-columns: 1fr; gap: 0; }
  .hero-right { display: none; }
  .hero-left { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   02 — PROBLEM
   ═══════════════════════════════════════════════════════════ */
.problem-sec {
  padding: var(--section-py) 0;
  background: var(--bg2);
  position: relative;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.problem-sec h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.problem-body {
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.75;
}

/* Comparison SVG diagrams */
.prob-diagrams {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.prob-diagram {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  transition: border-color .3s;
}
.prob-diagram:hover { border-color: var(--border2); }
.prob-diag-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 16px;
}
.prob-diag-label.bad  { color: #E87070; }
.prob-diag-label.good { color: var(--teal); }
.diag-svg { width: 100%; height: 120px; }

/* ── ANIMATED PATH IN PROBLEM DIAGRAMS ── */
/* "Bad" chaotic paths already use data-draw (path draw on scroll) */
/* "Good" line uses animated glowing dot traveling along the path */
.beam-dot {
  fill: var(--teal);
  filter: drop-shadow(0 0 4px var(--teal));
  animation: beam-travel 2.4s ease-in-out infinite;
}
@keyframes beam-travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.beam-traveler {
  offset-path: path('M10 55 L195 55');
  offset-rotate: 0deg;
  animation: beam-travel 2.4s ease-in-out 1.2s infinite;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 8px var(--teal), 0 0 16px rgba(40,184,160,.4);
}

@media (max-width: 860px) {
  .problem-layout { grid-template-columns: 1fr; }
  .prob-diagrams { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .prob-diagrams { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   03 — PLATFORM (LAYERED CARDS)
   ═══════════════════════════════════════════════════════════ */
.platform-sec {
  padding: var(--section-py) 0;
  position: relative;
}

.platform-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 80px;
}
.platform-intro h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05; letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.platform-intro p {
  color: var(--muted);
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
}

/* Sticky layer stack */
.layers-outer {
  position: relative;
  height: 280vh; /* scroll space for 4 cards */
}
.layers-pin {
  position: sticky;
  top: var(--nav-h);
  padding: 40px 0;
  overflow: hidden;
}
.layer-stack {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  height: 480px;
}
.layer-card {
  position: absolute;
  inset: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(60px) scale(.96);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), border-color .3s;
}
.layer-card.visible {
  opacity: 1; transform: none;
}
.layer-card.stacked {
  opacity: 1;
  transform: translateY(calc(var(--stack-i) * -12px)) scale(calc(1 - var(--stack-i) * .025));
  border-color: var(--border);
}
.layer-card:hover { border-color: var(--border2); }

.layer-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--teal-lo);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.layer-icon svg { width: 24px; height: 24px; stroke: var(--teal); }

.layer-num {
  font-family: var(--font-mono);
  font-size: .7rem; color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.layer-card h3 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--ink);
}
.layer-card p {
  color: var(--muted);
  font-size: clamp(.88rem, 1.1vw, 1rem);
  line-height: 1.7;
  max-width: 500px;
}
.layer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-lo);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 20px;
}

/* Layer progress dots */
.layer-progress {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.lp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dim);
  transition: background .3s, transform .3s;
}
.lp-dot.active { background: var(--teal); transform: scale(1.5); }

@media (max-width: 1024px) {
  .layers-outer { height: auto; }
  .layers-pin { position: relative; top: 0; padding: 0; }
  .layer-stack { height: auto; position: relative; }
  .layer-card {
    position: relative; opacity: 1; transform: none;
    margin-bottom: 16px;
    grid-template-columns: auto 1fr;
  }
  .layer-progress { display: none; }
}

@media (max-width: 540px) {
  .layer-card { grid-template-columns: 1fr; }
  .layer-icon { width: 44px; height: 44px; }
}

/* ═══════════════════════════════════════════════════════════
   04 — MARKET SIZE
   ═══════════════════════════════════════════════════════════ */
.market-sec {
  padding: var(--section-py) 0;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

/* Background ring decoration */
.market-ring {
  position: absolute;
  right: -200px; top: 50%; transform: translateY(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.market-ring::before {
  content: '';
  position: absolute; inset: 80px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.market-ring::after {
  content: '';
  position: absolute; inset: 160px;
  border-radius: 50%;
  border: 1px solid var(--teal-glow);
}

.market-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px); align-items: center;
  position: relative; z-index: 1;
}
.market-left h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; text-wrap: balance;
  margin-bottom: 20px;
}
.market-left p {
  color: var(--muted); font-size: clamp(.88rem, 1.1vw, 1rem);
  line-height: 1.75; margin-bottom: 40px;
}

.market-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .3s, transform .3s var(--ease);
}
.metric-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.metric-val {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--teal-hi);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-lbl {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* SVG Circle diagram */
.market-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.market-circles svg { width: 100%; max-width: 400px; height: auto; }

@media (max-width: 860px) {
  .market-layout { grid-template-columns: 1fr; }
  .market-ring { display: none; }
  .market-visual { justify-content: flex-start; }
  .market-circles svg { max-width: 300px; }
}

/* ═══════════════════════════════════════════════════════════
   05 — TRACTION
   ═══════════════════════════════════════════════════════════ */
.traction-sec {
  padding: var(--section-py) 0;
  position: relative;
}
.traction-sec h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; text-wrap: balance;
  margin-bottom: 56px; max-width: 600px;
}

.traction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
}

.traction-list {
  display: flex; flex-direction: column; gap: 0;
}
.traction-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color .3s;
}
.traction-item:first-child { border-top: 1px solid var(--border); }
.traction-item:hover { border-bottom-color: var(--border2); }
.traction-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-lo);
  border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.traction-check svg { width: 12px; height: 12px; stroke: var(--teal); stroke-width: 2.2; }
.traction-text {
  font-size: clamp(.88rem, 1.1vw, 1rem);
  color: var(--ink); line-height: 1.6; font-weight: 500;
}
.traction-text em {
  font-style: normal; color: var(--muted);
  font-size: .85em; display: block; margin-top: 4px;
}

.traction-status {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
}
.traction-status h3 {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.01em; margin-bottom: 20px;
  color: var(--teal-hi);
}
.status-line {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: .88rem; color: var(--muted);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.done   { background: var(--teal); }
.status-dot.active {
  background: var(--teal);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.status-dot.future { background: var(--dim); }

@media (max-width: 720px) {
  .traction-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   06 — STRATEGIC ASK
   ═══════════════════════════════════════════════════════════ */
.ask-sec {
  padding: var(--section-py) 0;
  background: var(--bg2);
}
.ask-sec h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; text-wrap: balance;
  margin-bottom: 56px; max-width: 600px;
}

.ask-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ask-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
  transition: border-color .3s, transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.ask-card:hover { border-color: var(--border2); transform: translateY(-6px); }
.ask-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--teal-lo);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.ask-icon svg { width: 22px; height: 22px; stroke: var(--teal); stroke-width: 1.8; }
.ask-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 12px; color: var(--ink);
}
.ask-card p {
  color: var(--muted);
  font-size: clamp(.85rem, 1vw, .96rem);
  line-height: 1.7;
  flex: 1;
}
.ask-tag {
  display: inline-block; margin-top: 20px;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); padding: 4px 10px;
  background: var(--teal-lo); border: 1px solid var(--border);
  border-radius: 999px;
}

@media (max-width: 860px) {
  .ask-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .ask-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   07 — CONTACTS
   ═══════════════════════════════════════════════════════════ */
.contacts-sec {
  padding: var(--section-py) 0;
  position: relative;
}
.contacts-sec h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; text-wrap: balance;
  margin-bottom: 56px; max-width: 700px;
}

.contacts-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px); align-items: flex-start;
}

/* Form */
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group {
  display: flex; flex-direction: column; gap: 6px;
}
.form-group label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: .9rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-lo);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236BA398' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-group select option { background: var(--card); color: var(--ink); }

/* Honeypot (hidden from humans, visible to bots) */
.form-hp { position: absolute; opacity: 0; height: 0; pointer-events: none; overflow: hidden; }

.form-consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 4px 0;
}
.form-consent input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px; min-width: 18px;
  border: 1.5px solid var(--dim);
  border-radius: 4px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.form-consent input[type="checkbox"]:checked {
  background: var(--teal); border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%2306131A' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.form-consent label {
  font-size: .82rem; color: var(--muted); line-height: 1.5; cursor: pointer;
}
.form-consent a { color: var(--teal); text-decoration: underline; }

.form-error {
  font-size: .78rem; color: #E87070;
  margin-top: 4px; display: none;
}
.form-error.show { display: block; }

.form-success {
  background: var(--teal-lo);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .9rem; color: var(--teal-hi);
  display: none; text-align: center;
}
.form-success.show { display: block; }

/* Form submit */
.form-submit { align-self: flex-start; }
.form-submit button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 40px; border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 700;
  letter-spacing: .02em;
  background: var(--teal); color: var(--bg);
  transition: transform .22s var(--ease), box-shadow .22s;
  cursor: none;
}
.form-submit button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px var(--teal-glow);
}
@media (hover: none) { .form-submit button { cursor: pointer; } }

/* Contact right: QR + links */
.contacts-right {
  display: flex; flex-direction: column; gap: 32px;
}
.qr-wrapper {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.qr-box {
  position: relative;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  display: inline-block;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.qr-box:hover { transform: scale(1.04); }
.qr-frame {
  position: absolute; inset: -6px;
  border-radius: calc(var(--radius) + 6px);
  border: 1.5px solid var(--border2);
  pointer-events: none;
  transition: border-color .3s, box-shadow .3s;
}
.qr-box:hover .qr-frame {
  border-color: var(--teal);
  box-shadow: 0 0 20px var(--teal-glow), 0 0 0 4px var(--teal-lo);
}
#qr-canvas { display: block; }
.qr-hint {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

.contact-links {
  display: flex; flex-direction: column; gap: 12px;
}
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
  font-weight: 600; font-size: .9rem;
}
.contact-link:hover {
  border-color: var(--border2);
  background: var(--card2);
  transform: translateX(4px);
}
.contact-link svg { width: 20px; height: 20px; stroke: var(--teal); flex-shrink: 0; }
.contact-link span { color: var(--ink); }
.contact-link small { font-size: .75rem; color: var(--muted); margin-left: auto; }

@media (max-width: 860px) {
  .contacts-layout { grid-template-columns: 1fr; }
  .qr-wrapper { flex-direction: row; align-items: center; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .qr-wrapper { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-logo);
  font-size: 1.1rem; font-weight: 800;
  font-style: italic;
  letter-spacing: .02em; color: var(--ink);
  transition: color .2s;
  text-decoration: none;
}
.footer-logo:hover { color: var(--teal); }
.footer-logo span {
  font-family: var(--font-logo);
  font-style: italic;
  background: linear-gradient(90deg, var(--ink) 0%, var(--teal-hi) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy {
  font-size: .8rem; color: var(--muted); text-align: center;
}
.footer-legal {
  font-size: .72rem; color: var(--dim);
  margin-top: 6px; line-height: 1.5;
}
.footer-pp-btn {
  color: var(--teal); cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}
.footer-nav {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-nav a {
  font-size: .8rem; color: var(--muted);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--teal); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   PRIVACY MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,19,26,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  max-width: 640px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .3s var(--ease-out);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card2); color: var(--muted);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.modal-close:hover { background: var(--dim); color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.modal-box h2 {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.01em; margin-bottom: 24px;
  padding-right: 40px;
}
.modal-content p {
  font-size: .88rem; color: var(--muted);
  margin-bottom: 14px; line-height: 1.7;
}
.modal-content strong { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px;
  max-width: 420px; z-index: 8000;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.cookie-banner.show { opacity: 1; pointer-events: all; transform: none; }
.cookie-banner p { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.cookie-banner a { color: var(--teal); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.btn-sm {
  padding: 8px 18px; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn-sm:hover { transform: translateY(-2px); }
.btn-sm-primary { background: var(--teal); color: var(--bg); border: none; }
.btn-sm-outline { background: transparent; color: var(--muted); border: 1px solid var(--dim); }
.btn-sm-outline:hover { border-color: var(--teal); color: var(--teal); }
@media (hover: none) { .btn-sm { cursor: pointer; } }

@media (max-width: 480px) {
  .cookie-banner { left: 16px; right: 16px; max-width: none; }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE TICKER
   ═══════════════════════════════════════════════════════════ */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.mq-item {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 22px;
  transition: color .2s;
}
.mq-item:hover { color: var(--teal); }
.mq-sep {
  color: var(--teal);
  opacity: .35;
  font-size: .7rem;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   TYPEWRITER EFFECT
   ═══════════════════════════════════════════════════════════ */
.type-word {
  color: var(--teal);
  font-weight: 600;
  display: inline;
  border-right: 2px solid var(--teal);
  padding-right: 2px;
  animation: cursor-blink 1s step-end infinite;
  white-space: nowrap;
}
@keyframes cursor-blink {
  0%, 100% { border-right-color: var(--teal); }
  50%       { border-right-color: transparent; }
}

/* ═══════════════════════════════════════════════════════════
   RISK REVERSAL BADGES
   ═══════════════════════════════════════════════════════════ */
.risk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-hi);
  background: var(--teal-lo);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}
.risk-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════ */
.faq-sec {
  padding: var(--section-py) 0;
  background: var(--bg2);
}
.faq-sec h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 56px;
  max-width: 600px;
}
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: border-color .3s;
}
.faq-item[open] {
  border-color: var(--border2);
}
.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: clamp(.92rem, 1.15vw, 1.08rem);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--teal); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-lo);
  border: 1px solid var(--border2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .35s var(--ease-out);
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s;
}
.faq-icon::before { width: 11px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 11px; }
details[open] .faq-icon {
  background: var(--teal-lo);
  transform: rotate(45deg);
}
.faq-body {
  overflow: hidden;
  padding: 0 48px 28px 0;
  max-width: 700px;
}
.faq-body p {
  font-size: clamp(.88rem, 1.05vw, 1rem);
  color: var(--muted);
  line-height: 1.78;
}

@media (max-width: 600px) {
  .faq-body { padding-right: 0; }
  .faq-q { font-size: .9rem; }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL MOBILE FIXES
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  :root { --section-py: clamp(60px, 8vw, 100px); }

  /* Hero */
  .hero-h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
  .hero-brand { font-size: clamp(3rem, 7vw, 6rem); }
  .hero-sub { max-width: 100%; }
  .hero-btns { flex-direction: row; }
  .hero-stats { gap: 20px; }
  .hs-item { padding-right: 20px; margin-right: 20px; }

  /* Problem */
  .problem-layout { grid-template-columns: 1fr; }
  .prob-diagrams  { grid-template-columns: 1fr 1fr; }

  /* Market */
  .market-layout { grid-template-columns: 1fr; }
  .market-ring   { display: none; }
  .market-metrics { grid-template-columns: 1fr 1fr; }

  /* Traction */
  .traction-grid { grid-template-columns: 1fr; }

  /* Ask */
  .ask-grid { grid-template-columns: 1fr 1fr; }

  /* Contacts */
  .contacts-layout { grid-template-columns: 1fr; }
  .qr-wrapper { flex-direction: row; align-items: center; }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
  /* Nav */
  .nav-links { display: none; }
  .burger    { display: flex; }

  /* Hero */
  .hero-h1 { font-size: clamp(1.4rem, 5.5vw, 2.2rem); line-height: 1.25; }
  .hero-brand { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-tag { font-size: .62rem; letter-spacing: .14em; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns a { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; border-top: none; padding-top: 20px; }
  .hs-item { border-right: none; padding-right: 0; margin-right: 0;
             border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .hs-item:last-child { border-bottom: none; padding-bottom: 0; }

  /* Problem diagrams */
  .prob-diagrams { grid-template-columns: 1fr; }

  /* Market metrics */
  .market-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-val { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Ask */
  .ask-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Contacts */
  .qr-wrapper { flex-direction: column; }
  .contact-links { gap: 8px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy  { text-align: left; }

  /* Cookie */
  .cookie-banner { left: 12px; right: 12px; max-width: none; }
  .cookie-actions { flex-direction: row; }
  .cookie-actions button { flex: 1; }

  /* FAQ */
  .faq-q { font-size: .88rem; gap: 12px; }
  .faq-body { padding-right: 0; }
}

/* ── Small mobile (≤400px) ── */
@media (max-width: 400px) {
  .hero-h1    { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .hero-brand { font-size: clamp(2.4rem, 14vw, 3.5rem); }
  .btn-lg  { padding: 14px 28px; font-size: .85rem; }
  .container { padding: 0 16px; }
}

/* ── Ensure hero text never overflows ── */
.hero-h1, .hero-sub {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════
   HERO MOCKUP — CSS Dashboard
   ═══════════════════════════════════════════════════════════ */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  animation: fade-up .8s 1.1s var(--ease-out) forwards;
}

.hero-mockup {
  width: 100%;
  max-width: 460px;
  background: rgba(11, 32, 48, 0.92);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(40,184,160,.08),
    0 32px 80px rgba(0,0,0,.5),
    0 0 60px rgba(40,184,160,.06);
  position: relative;
  overflow: hidden;
}

/* Subtle teal glow top-left */
.hero-mockup::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(40,184,160,.12), transparent 70%);
  pointer-events: none;
}

/* Search bar */
.hm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: border-color .3s;
}
.hm-search:hover { border-color: var(--border2); }
.hm-search-text {
  flex: 1;
  font-size: .78rem;
  color: var(--muted);
}
.hm-search-badge {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--teal);
  background: var(--teal-lo);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Category tabs */
.hm-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hm-cat {
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.hm-cat:hover,
.hm-cat.active {
  color: var(--teal);
  border-color: var(--border2);
  background: var(--teal-lo);
}

/* Service cards */
.hm-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.hm-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .25s, transform .25s var(--ease);
  animation: hm-card-in .5s var(--ease-out) both;
}
.hm-card:nth-child(1) { animation-delay: 1.4s; }
.hm-card:nth-child(2) { animation-delay: 1.6s; }
.hm-card:nth-child(3) { animation-delay: 1.8s; }
@keyframes hm-card-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
.hm-card:hover {
  border-color: var(--border2);
  transform: translateX(-3px);
}
.hm-card--featured {
  border-color: rgba(40,184,160,.3);
  background: linear-gradient(135deg, rgba(40,184,160,.06), var(--card2));
}

.hm-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.hm-logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hm-logo--crm   { background: rgba(99,102,241,.15); color: #818cf8; }
.hm-logo--cloud { background: rgba(14,165,233,.15);  color: #38bdf8; }
.hm-logo--ai    { background: rgba(40,184,160,.15);  color: var(--teal); }

.hm-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hm-card-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.hm-card-cat {
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.hm-badge {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 3px 7px;
  border-radius: 4px;
}
.hm-badge--top { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.hm-badge--new { background: rgba(40,184,160,.15);  color: var(--teal); border: 1px solid var(--border2); }

.hm-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.hm-star       { color: #fbbf24; font-size: .7rem; }
.hm-star--half { opacity: .5; }
.hm-star--dim  { color: var(--dim); }
.hm-rating  { font-size: .72rem; font-weight: 700; color: var(--ink); margin-left: 4px; }
.hm-reviews { font-size: .65rem; color: var(--muted); }

.hm-price {
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.hm-price strong { color: var(--teal-hi); }

.hm-tags-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.hm-tag {
  font-size: .6rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Compare bar */
.hm-compare {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--teal-lo);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  font-size: .72rem;
  color: var(--teal-hi);
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .2s;
}
.hm-compare:hover { background: rgba(40,184,160,.14); }
.hm-compare-arrow { margin-left: auto; }

/* Live indicator */
.hm-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .65rem;
  color: var(--muted);
}
.hm-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hm-live-text { line-height: 1.3; }

/* Mockup responsive */
@media (max-width: 1024px) {
  .hero-right { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   CATEGORIES SECTION
   ═══════════════════════════════════════════════════════════ */
.categories-sec {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.categories-sec h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 48px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s var(--ease);
  text-decoration: none;
  display: block;
  aspect-ratio: 4/3;
}
.cat-card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
}
.cat-card:hover .cat-overlay {
  opacity: .55;
}
.cat-card:hover .cat-img-wrap img {
  transform: scale(1.06);
}

.cat-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cat-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
  filter: brightness(.7) saturate(.8);
}
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,19,26,.1) 0%,
    rgba(6,19,26,.75) 100%
  );
  opacity: .7;
  transition: opacity .3s;
}

.cat-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-icon {
  width: 32px; height: 32px;
  background: var(--teal-lo);
  border: 1px solid var(--border2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  margin-bottom: 6px;
}
.cat-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.cat-count {
  font-size: .68rem;
  color: var(--teal-hi);
  font-weight: 600;
  letter-spacing: .04em;
}

/* CTA card */
.cat-card--cta {
  background: linear-gradient(135deg, rgba(40,184,160,.12), rgba(40,184,160,.04));
  border-color: var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card--cta:hover {
  background: linear-gradient(135deg, rgba(40,184,160,.2), rgba(40,184,160,.08));
}
.cat-cta-inner {
  text-align: center;
  padding: 20px;
}
.cat-cta-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}
.cat-cta-label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}
.cat-cta-link {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.cat-card--cta:hover .cat-cta-link { border-color: var(--teal); }

/* Cat grid responsive */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { aspect-ratio: 3/2; }
}
@media (max-width: 400px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO PHOTO (sphere teal)
   ═══════════════════════════════════════════════════════════ */
.hero-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
  /* Blend with dark background */
  mix-blend-mode: luminosity;
  filter: brightness(.9) saturate(1.2) hue-rotate(-10deg);
  transition: transform .6s var(--ease-out), filter .4s;
}
.hero-visual-wrap:hover .hero-photo {
  transform: scale(1.03);
  filter: brightness(1) saturate(1.4) hue-rotate(-10deg);
}

.hero-photo-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 60%,
    rgba(40,184,160,.18) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: var(--r-xl);
}

/* ═══════════════════════════════════════════════════════════
   MARKET PHOTO (growth chart)
   ═══════════════════════════════════════════════════════════ */
.market-photo-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(40,184,160,.04);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color .3s;
}
.market-photo-wrap:hover { border-color: var(--border2); }

.market-photo {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  border-radius: var(--r-sm);
  /* Blend green chart with teal palette */
  filter: saturate(1.1) brightness(.95);
  transition: transform .5s var(--ease-out);
}
.market-photo-wrap:hover .market-photo {
  transform: scale(1.04);
}

.market-photo-caption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.market-photo-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.market-photo-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal-hi);
  letter-spacing: -.01em;
}

/* ═══════════════════════════════════════════════════════════
   TRACTION PHOTO (code/laptop)
   ═══════════════════════════════════════════════════════════ */
.traction-photo-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.traction-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.7) saturate(.8);
  transition: transform .5s var(--ease-out);
}
.traction-status:hover .traction-photo {
  transform: scale(1.04);
}
.traction-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,19,26,.2) 0%,
    rgba(11,32,48,.85) 100%
  );
}

/* ═══════════════════════════════════════════════════════════
   ASK CARD PHOTO (co-evolution)
   ═══════════════════════════════════════════════════════════ */
.ask-card-photo {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.ask-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(.75) saturate(.9);
  transition: transform .5s var(--ease-out);
}
.ask-card:hover .ask-card-photo img {
  transform: scale(1.06);
}
.ask-card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,19,26,.05) 0%,
    rgba(11,32,48,.6) 100%
  );
}

/* ═══════════════════════════════════════════════════════════
   CATEGORIES — replace stock photos with themed photos
   ═══════════════════════════════════════════════════════════ */
/* keyboard photo for dev category */
.cat-card[href*="contacts"]:nth-child(7) .cat-img-wrap img {
  content: url('assets/photos/platform_keyboard.png');
}

/* ═══════════════════════════════════════════════════════════
   PROBLEM PHOTO DIAGRAMS
   ═══════════════════════════════════════════════════════════ */
.prob-diagram--photo {
  padding: 0;
  overflow: hidden;
}
.prob-diagram--photo .prob-diag-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  margin: 0;
  background: rgba(6,19,26,.75);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.prob-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.prob-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
  filter: brightness(.75) saturate(.9);
}
.prob-diagram--photo:hover .prob-photo-wrap img {
  transform: scale(1.05);
}
.prob-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,19,26,.1) 0%,
    rgba(6,19,26,.7) 100%
  );
}
.prob-photo-overlay--teal {
  background: linear-gradient(
    to bottom,
    rgba(40,184,160,.08) 0%,
    rgba(6,19,26,.65) 100%
  );
}
.prob-photo-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-size: .72rem;
  color: var(--teal-hi);
  font-weight: 600;
  line-height: 1.4;
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════
   MARKET PHOTO — secondary overlay
   ═══════════════════════════════════════════════════════════ */
.market-photo-secondary {
  position: absolute;
  bottom: 56px;
  right: -16px;
  width: 55%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.market-photo-wrap:hover .market-photo-secondary {
  opacity: 1;
  transform: translateX(0);
}
.market-photo-secondary img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(.85) saturate(1.1);
}

/* Always show on desktop */
@media (min-width: 860px) {
  .market-photo-secondary {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   LAYER CARD PHOTO — сбоку, не перекрывает текст
   ═══════════════════════════════════════════════════════════ */
.layer-card-photo {
  position: absolute;
  top: 0; right: 0;
  width: 38%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  pointer-events: none;
}
.layer-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.5) saturate(.7);
  transition: transform .5s var(--ease-out);
}
.layer-card:hover .layer-card-photo img {
  transform: scale(1.06);
}
.layer-card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--card) 0%,
    rgba(11,32,48,.6) 50%,
    rgba(11,32,48,.2) 100%
  );
}

/* Ограничиваем ширину текста чтобы не залезал под фото */
.layer-card > div:not(.layer-icon):not(.layer-card-photo) {
  max-width: 58%;
}

/* На мобильных убираем боковое фото */
@media (max-width: 1024px) {
  .layer-card-photo { display: none; }
  .layer-card > div:not(.layer-icon):not(.layer-card-photo) {
    max-width: 100%;
  }
}
