/* =====================================================================
   PERFORMANTE AI — FOUNDATION STYLESHEET  ·  v2 (DESIGN-LANGUAGE reboot)
   Dark premium + mint accent + motion. Single source of truth, 6 pages.
   North-star: articul.ru — pure-black + saturated light-rays, oversized
   condensed display with outline/fill contrast, pill buttons, big stats.

   Structure:
     0. Fonts (Fontshare @import)
     1. Tokens (:root)
     2. Reset + base + atmosphere (rays + grain + vignette)
     3. Typography  (display, stroke/fill, eyebrow, stats)
     4. Layout utilities + grid
     5. Custom cursor
     6. Header / nav / burger
     7. Buttons  (pill)
     8. Sections + eyebrow + numbered
     9. Cards  (mint inner-glow on hover)
    10. Compare table  (mint column)
    11. Forms
    12. Popup
    13. 3D marquee  (outline text)
    14. Horizontal scroll
    15. Reveal / counters / progress
    16. Footer
    17. Responsive + reduced-motion

   NOTE: all class/hook names from v1 are preserved (data-reveal, data-counter,
   data-magnetic, .marquee, .hscroll, #popup, .compare .col-us, .metric-value,
   .mockup-laptop, .split-word …). Only their VISUAL is rebuilt.
   ===================================================================== */

/* ============================ 0. FONTS ============================ */
/* Clash Display (display) + Satoshi (body/UI) — Fontshare CDN.
   Space Grotesk / JetBrains Mono / Inter are GONE. */
@import url("https://api.fontshare.com/v2/css?f[]=clash-display@600,700&f[]=satoshi@400,500,700&display=swap");

/* ============================ 1. TOKENS ============================ */
:root {
  /* palette — near-black + mint hero accent (brand-consistent w/ platform "Breeze") */
  --bg:         #08090B;   /* near-black, a touch warm */
  --bg-2:       #0D0F13;   /* alternating sections */
  --surface:    #121519;   /* cards */
  --surface-2:  #171B21;   /* nested / hover */
  --hairline:   rgba(255, 255, 255, 0.07);
  --hairline-2: rgba(255, 255, 255, 0.12);
  --ink:        #F2F5F4;   /* warm off-white */
  --muted:      #9AA3A0;
  --faint:      #5C6560;

  --mint:       #10B981;   /* PRIMARY brand accent — CTA, metrics, active, atmosphere */
  --mint-hi:    #34E5A8;   /* bright mint — glow / hover */
  --mint-deep:  #0A7D5A;   /* deep mint for pill-fill shadow */
  --indigo:     #6366F1;   /* SECONDARY — AI tags, charts, rare second note */

  /* accent aliases kept so legacy references never break */
  --accent:     var(--mint);
  --accent-2:   var(--indigo);
  --signal:     var(--mint);
  --grad:       linear-gradient(135deg, #34E5A8, #10B981);
  --grad-soft:  linear-gradient(135deg, rgba(16,185,129,0.14), rgba(52,229,168,0.06));
  --glow-mint:  radial-gradient(closest-side, rgba(16,185,129,0.55), transparent 70%);

  /* typography */
  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
  --font-mono:    'Satoshi', system-ui, sans-serif; /* eyebrows = Satoshi uppercase + tracking, no mono */

  /* type scale (fluid) — bigger, more editorial */
  --fs-hero:  clamp(3rem, 9vw, 8rem);         /* 48 → 128 — articul-scale */
  --fs-h1:    clamp(2.35rem, 5.5vw, 4.5rem);  /* 38 → 72 */
  --fs-h2:    clamp(1.9rem, 4vw, 3.4rem);     /* 30 → 54 */
  --fs-h3:    clamp(1.25rem, 2vw, 1.75rem);
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.375rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-mono:  0.75rem;      /* eyebrow size */

  /* spacing scale */
  --sp-1:  0.25rem; --sp-2:  0.5rem;  --sp-3:  0.75rem; --sp-4:  1rem;
  --sp-5:  1.25rem; --sp-6:  1.5rem;  --sp-8:  2rem;    --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;    --sp-32: 8rem;

  --section-y: clamp(4.5rem, 10vw, 10rem);

  /* radius */
  --r-sm:  10px; --r-md:  14px; --r-lg:  20px; --r-xl:  28px; --r-pill: 999px;

  /* shadow / glow */
  --shadow:      0 30px 70px -24px rgba(0, 0, 0, 0.8);
  --shadow-sm:   0 10px 30px -16px rgba(0, 0, 0, 0.7);
  --glow-accent: 0 0 90px -8px rgba(16, 185, 129, 0.4);
  --glow-violet: 0 0 90px -10px rgba(99, 102, 241, 0.32);
  --glow-mint-sh:0 0 0 1px rgba(16,185,129,0.25), 0 22px 60px -22px rgba(16,185,129,0.45);

  /* layout */
  --maxw:      1240px;
  --maxw-wide: 1420px;
  --gutter:    clamp(1.25rem, 4vw, 3.25rem);
  --header-h:  78px;

  /* motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.5s;
}

/* ============================ 2. RESET + BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

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

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--mint); color: #04110B; }

/* --- ATMOSPHERE: mint→indigo light-rays + grain + vignette (fixed, behind all) --- */
/* layer 1: radial mint/indigo glow pools */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(48vw 60vw at 82% -12%, rgba(16,185,129,0.20), transparent 62%),
    radial-gradient(40vw 46vw at 6% 8%,   rgba(99,102,241,0.14), transparent 60%),
    radial-gradient(70vw 50vw at 50% 118%, rgba(16,185,129,0.10), transparent 68%);
  pointer-events: none;
}
/* layer 2: SVG grain overlay + top-down vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(8,9,11,0.35) 0%, transparent 22%, transparent 78%, rgba(8,9,11,0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  background-size: auto, 140px 140px;
  opacity: 1;
  mix-blend-mode: soft-light;
}
/* the grain layer's noise is strong; tame it */
body::after { background-blend-mode: normal; }

/* re-usable ray/aura element (drop <div class="aura"> inside a positioned hero) */
.aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aura::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 90vh;
  background:
    conic-gradient(from 210deg at 70% 30%,
      rgba(16,185,129,0.32), rgba(99,102,241,0.14) 30%, transparent 55%);
  filter: blur(30px);
  animation: aura-drift 18s var(--ease) infinite alternate;
}
.aura::after {
  content: '';
  position: absolute;
  bottom: -20%; left: 10%;
  width: 46vw; height: 60vh;
  background: var(--glow-mint);
  filter: blur(40px);
  opacity: 0.55;
  animation: aura-drift 22s var(--ease) infinite alternate-reverse;
}
@keyframes aura-drift {
  0%   { transform: translate3d(0,0,0) scale(1);      opacity: 0.75; }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.12); opacity: 1; }
}
/* keep hero content above the aura */
.aura ~ * { position: relative; z-index: 1; }

/* ============================ 3. TYPOGRAPHY ============================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.12; }
p  { text-wrap: pretty; }

/* HERO DISPLAY — oversized, tight, Clash. Solid fill by default. */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-transform: none;
}

/* outline/fill contrast (articul).  Two paths:
   (a) inline utility span:   <span class="tstroke">СЛОВО</span>
   (b) data-split words:      JS adds .split-word--stroke to chosen indices
       via  data-split-stroke="0,2"  on the [data-split] element.        */
.tstroke,
.split-word--stroke {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
  text-stroke: 1.4px var(--ink);
  paint-order: stroke fill;
}
.tstroke--mint,
.split-word--stroke.is-mint {
  -webkit-text-stroke-color: var(--mint);
  text-stroke: 1.4px var(--mint);
}
/* fill accent word */
.tfill-mint { color: var(--mint); }

.lead    { font-size: var(--fs-lead); color: var(--muted); line-height: 1.5; max-width: 60ch; }
.muted   { color: var(--muted); }
.faint   { color: var(--faint); }
.signal  { color: var(--mint); }
.nowrap  { white-space: nowrap; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow / label — Satoshi uppercase, wide tracking, mint tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(16,185,129,0.7);
}
.eyebrow--plain::before { display: none; }
.eyebrow--faint { color: var(--faint); }
.eyebrow--faint::before { background: var(--faint); box-shadow: none; }

/* Numeric contexts never jitter */
.tnum, .counter, .metric-value, .compare td, .price {
  font-variant-numeric: tabular-nums;
}

/* ============================ 4. LAYOUT ============================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--maxw-wide); }
.container--narrow { max-width: 800px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 5vw, 5rem); }
.section--hair { border-top: 1px solid var(--hairline); }
.section--alt { background: var(--bg-2); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-8); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 1.15fr 0.85fr; }
.grid-1-1 { grid-template-columns: 1fr 1fr; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); }
.items-center { align-items: center; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); } .mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); } .mb-12 { margin-bottom: var(--sp-12); }

.hairline { height: 1px; background: var(--hairline); border: 0; }

/* Section header block */
.section-head { max-width: 760px; margin-bottom: var(--sp-16); }
.section-head .lead { margin-top: var(--sp-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* Big section number */
.section-num {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  display: block;
  margin-bottom: var(--sp-4);
}

/* ---- DEVICE MOCKUPS — browser chrome + mint-glow + tilt ---- */
/* laptop = browser window; dark platform screenshots (plat-*.png) live here */
.mockup-laptop {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline-2);
  background: linear-gradient(180deg, #14181d, #0e1115);
  padding: 0;
  box-shadow: var(--shadow), var(--glow-accent);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform;
}
.mockup-laptop::before {           /* browser chrome bar with traffic-light dots */
  content: '';
  display: block;
  height: 34px;
  background:
    radial-gradient(circle 4px at 18px 17px, #ff5f57 55%, transparent 56%),
    radial-gradient(circle 4px at 38px 17px, #febc2e 55%, transparent 56%),
    radial-gradient(circle 4px at 58px 17px, #28c840 55%, transparent 56%),
    linear-gradient(180deg, #191d23, #14171c);
  border-bottom: 1px solid var(--hairline);
}
.mockup-laptop img { width: 100%; display: block; }
.mockup-laptop::after {            /* mint glow bleeding from behind */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 60px -30px rgba(16,185,129,0.5);
  pointer-events: none;
}
.mockup-laptop:hover,
.mockup-laptop.is-flat { transform: perspective(1400px) rotateY(0) rotateX(0); }
/* tilt via JS pointer parallax → sets --rx/--ry (falls back to static tilt above) */
.mockup-laptop[data-tilt] {
  transform: perspective(1400px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg));
}
/* halo element you can drop behind a mockup */
.mockup-halo { position: relative; }
.mockup-halo::before {
  content: '';
  position: absolute;
  inset: -14% -8% -22%;
  background: var(--glow-mint);
  filter: blur(30px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.mockup-phone {
  position: relative;
  width: 240px;
  border-radius: 36px;
  border: 9px solid #14171c;
  background: #000;
  box-shadow: var(--shadow), 0 0 60px -20px rgba(16,185,129,0.35);
  overflow: hidden;
}
.mockup-phone::before {            /* notch */
  content: '';
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 5px;
  border-radius: 999px;
  background: #14171c;
  z-index: 2;
}
.mockup-phone img { width: 100%; }

/* ============================ 5. CURSOR ============================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--mint-hi);
}
.cursor-ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff;                 /* white fill → difference inverts content beneath */
  mix-blend-mode: difference;
  transition: opacity 0.3s, width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), border-radius 0.3s var(--ease);
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 66px; height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 999px;
}
body.cursor-hover .cursor-dot { opacity: 0; }
body.cursor-ready { cursor: none; }
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready [data-magnetic],
body.cursor-ready input,
body.cursor-ready textarea { cursor: none; }

/* ============================ 6. HEADER / NAV ============================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 62px;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--hairline);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* logo — mint mark */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--mint-hi), var(--mint));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: #04110B;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.4), 0 8px 22px -8px rgba(16,185,129,0.7);
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* nav */
.nav { display: flex; align-items: center; gap: var(--sp-8); }
.nav__links { display: flex; align-items: center; gap: var(--sp-6); }
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  padding: var(--sp-2) 0;
  transition: color 0.25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(16,185,129,0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

/* burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* mobile drawer */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.nav-mobile.is-open { transform: translateY(0); visibility: visible; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-mobile .btn { align-self: flex-start; margin-top: var(--sp-4); }

/* ============================ 7. BUTTONS (pill) ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 1em 1.7em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s;
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* primary = mint fill, dark ink */
.btn--primary {
  background: var(--mint);
  color: #04120C;
  box-shadow: 0 12px 34px -14px rgba(16, 185, 129, 0.75);
}
.btn--primary:hover {
  background: var(--mint-hi);
  box-shadow: 0 16px 44px -12px rgba(52, 229, 168, 0.85), var(--glow-accent);
  transform: translateY(-2px);
}
/* ghost = outline pill → mint on hover */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--ink);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 30px -12px rgba(16,185,129,0.5);
}

.btn--lg { padding: 1.15em 2.1em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

[data-magnetic] { will-change: transform; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--mint);
}
.link-arrow svg, .link-arrow .btn__arrow { transition: transform 0.3s var(--ease); }
.link-arrow:hover .btn__arrow, .link-arrow:hover svg { transform: translateX(4px); }

/* ============================ 8. CARDS (mint inner-glow hover) ============================ */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease),
              transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
/* inner mint glow that lights on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(16,185,129,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(16,185,129,0.35);
  background: var(--surface-2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm), inset 0 0 40px -24px rgba(16,185,129,0.6);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card--pain { border-left: 2px solid var(--mint); }
.card--flush { padding: var(--sp-6); }
.card__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
  display: block;
}
.card__title { margin-bottom: var(--sp-3); }
.card__text { color: var(--muted); font-size: var(--fs-sm); }

/* icon chip — mint-tinted, stroke icons live inside */
.icon-chip {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border: 1px solid rgba(16,185,129,0.25);
  display: grid;
  place-items: center;
  color: var(--mint);
  margin-bottom: var(--sp-6);
}
.icon-chip svg { width: 22px; height: 22px; stroke-width: 1.75; }

/* metric block (counters) — oversized Clash stat numbers */
.metric { display: flex; flex-direction: column; gap: var(--sp-3); }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.metric-value.is-signal { color: var(--mint); }
.metric-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.5;
}

/* placeholder marker — Timur replaces these (indigo, distinct from mint) */
.ph {
  border-bottom: 1px dashed var(--indigo);
  color: #A5A8FF;
  font-style: normal;
}
.ph-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A5A8FF;
  border: 1px dashed var(--indigo);
  border-radius: var(--r-pill);
  padding: 0.15em 0.7em;
  vertical-align: middle;
}

/* pilot tag */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  padding: 0.25em 0.85em;
}
.tag--signal { color: var(--mint); border-color: rgba(16, 185, 129, 0.35); }

/* accordion (FAQ) */
.accordion { border-top: 1px solid var(--hairline); }
.accordion__item { border-bottom: 1px solid var(--hairline); }
.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  padding: var(--sp-6) 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s;
}
.accordion__head:hover { color: var(--mint); }
.accordion__icon {
  flex: none;
  width: 30px; height: 30px;
  position: relative;
}
.accordion__icon::before, .accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--mint);
  transition: transform 0.3s var(--ease);
}
.accordion__icon::before { width: 15px; height: 1.5px; transform: translate(-50%, -50%); }
.accordion__icon::after  { width: 1.5px; height: 15px; transform: translate(-50%, -50%); }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.accordion__body-inner { padding-bottom: var(--sp-6); color: var(--muted); max-width: 68ch; }

/* ============================ 10. COMPARE TABLE ============================ */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-sm);
}
.compare th, .compare td {
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.compare thead th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.compare tbody th {
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
}
.compare td { color: var(--muted); }
/* highlighted Performante column — mint wash + mint checks */
.compare .col-us {
  background: linear-gradient(180deg, rgba(16,185,129,0.12), rgba(16,185,129,0.05));
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.compare thead .col-us {
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: none;
}
.compare tbody .col-us, .compare td.col-us { border-left: 1px solid rgba(16,185,129,0.3); border-right: 1px solid rgba(16,185,129,0.3); }
.compare tr:first-child .col-us { border-top: 1px solid rgba(16,185,129,0.3); border-top-left-radius: var(--r-md); border-top-right-radius: var(--r-md); }
.compare tr:last-child .col-us { border-bottom: 1px solid rgba(16,185,129,0.3); border-bottom-left-radius: var(--r-md); border-bottom-right-radius: var(--r-md); box-shadow: 0 30px 60px -30px rgba(16,185,129,0.5); }
/* mint check-dot prefix inside our column */
.compare td.col-us::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(16,185,129,0.8);
  vertical-align: middle;
}

/* ============================ 11. FORMS ============================ */
.form { display: flex; flex-direction: column; gap: var(--sp-5); }
.form-row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.field input,
.field textarea,
.field select {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 0.95em 1.1em;
  color: var(--ink);
  font-size: var(--fs-body);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--mint);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239AA3A0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-note { font-size: var(--fs-sm); color: var(--faint); }
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-8);
}
.form-success.is-visible { display: block; }
.form-success .icon-chip { margin-inline: auto; color: var(--mint); }
.form.is-sent { display: none; }

/* ============================ 12. POPUP ============================ */
.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(8, 9, 11, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.popup-backdrop.is-open { opacity: 1; visibility: visible; }
.popup-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow), var(--glow-accent);
}
.popup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(16,185,129,0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.popup-card__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.popup-card__close:hover { color: var(--ink); border-color: var(--mint); transform: rotate(90deg); }

/* ============================ 13. 3D MARQUEE (outline text) ============================ */
.marquee {
  perspective: 700px;
  overflow: hidden;
  padding-block: var(--sp-8);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__stage {
  transform: rotateX(12deg);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  width: max-content;
  will-change: transform;
}
.marquee__row--rtl .marquee-track { align-self: flex-end; }
/* big outline word-chips (articul) */
.marquee .marquee__chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0;
  border: 0;
  background: none;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(242,245,244,0.55);
  text-stroke: 1.25px rgba(242,245,244,0.55);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.marquee__chip:hover {
  color: var(--mint);
  -webkit-text-stroke-color: var(--mint);
}
.marquee__chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); flex: none; box-shadow: 0 0 10px rgba(16,185,129,0.8); }
.marquee:hover .marquee-track.css-anim { animation-play-state: paused; }

/* ============================ 14. HORIZONTAL SCROLL ============================ */
.hscroll { position: relative; overflow: hidden; }
.hscroll__track {
  display: flex;
  gap: var(--sp-6);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.hscroll__panel {
  flex: none;
  width: min(84vw, 540px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 60vh;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.hscroll__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 30% 0%, rgba(16,185,129,0.10), transparent 70%);
  pointer-events: none;
}
.hscroll__panel:hover { border-color: rgba(16,185,129,0.3); }
.hscroll__panel > * { position: relative; z-index: 1; }
.hscroll__panel .step-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--mint);
  text-stroke: 1.5px var(--mint);
  letter-spacing: -0.04em;
}
.hscroll__panel h3 { margin: var(--sp-6) 0 var(--sp-4); font-size: var(--fs-h2); }
.hscroll__panel p { color: var(--muted); }
.hscroll.is-stacked .hscroll__track {
  flex-direction: column;
  width: 100%;
  transform: none !important;
}
.hscroll.is-stacked .hscroll__panel { width: 100%; min-height: auto; }

/* ============================ 15. REVEAL / PROGRESS ============================ */
[data-reveal] { will-change: transform, opacity; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--mint), var(--mint-hi));
  box-shadow: 0 0 12px rgba(16,185,129,0.7);
  z-index: 950;
}

/* split-text line mask */
.split-line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-word { display: inline-block; will-change: transform; }

/* ============================ 16. FOOTER ============================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-20) var(--sp-8);
  background:
    radial-gradient(50vw 40vw at 50% 120%, rgba(16,185,129,0.12), transparent 70%),
    var(--bg);
  position: relative;
}
.footer-grid {
  display: grid;
  gap: var(--sp-12);
  grid-template-columns: 1.5fr repeat(3, 1fr);
}
.footer-brand .lead { font-size: var(--fs-body); margin-top: var(--sp-4); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { color: var(--muted); font-size: var(--fs-sm); transition: color 0.25s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  margin-top: var(--sp-16);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  color: var(--faint);
  font-size: var(--fs-sm);
}

/* ============================ 17. RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer-brand { grid-column: 1 / -1; }
  .mockup-laptop { transform: none; }
  .mockup-laptop[data-tilt] { transform: none; }
}

@media (max-width: 860px) {
  .nav__links, .nav > .btn { display: none; }
  .burger { display: block; }
  .grid-3, .grid-2, .grid-2-1, .grid-1-1 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: var(--sp-6); }
  .btn { width: 100%; }
  .flex-cta { flex-direction: column; align-items: stretch; }
  .marquee__chip { font-size: 1.6rem; }
}

/* touch devices: no custom cursor */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.cursor-ready { cursor: auto; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__stage { transform: none; }
  .aura::before, .aura::after { animation: none; }
  .mockup-laptop, .mockup-laptop[data-tilt] { transform: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.cursor-ready { cursor: auto; }
}
