/* ==================================================
   ОККО — premium landing, purple edition
   ================================================== */

:root {
  --bg: #050309;
  --bg-2: #0a0614;
  --bg-3: #0f0920;
  --surface: #14102a;
  --surface-2: #1a1435;
  --border: rgba(155, 107, 255, 0.12);
  --border-2: rgba(155, 107, 255, 0.22);
  --text: #f5f0ff;
  --text-2: #cfc5ea;
  --text-3: #9890b8;
  --text-4: #605a80;

  --okko: #7b3fe4;
  --okko-2: #9b6bff;
  --okko-3: #b388ff;
  --okko-4: #d4bbff;
  --okko-deep: #2d1b5c;
  --okko-darker: #1a0b3d;
  --okko-soft: #4c1d95;

  --grad: linear-gradient(135deg, #b388ff 0%, #7b3fe4 45%, #4c1d95 100%);
  --grad-2: linear-gradient(135deg, #9b6bff 0%, #5b21b6 100%);
  --grad-soft: linear-gradient(135deg, rgba(155, 107, 255, 0.18), rgba(76, 29, 149, 0.04));
  --grad-mesh: radial-gradient(at 20% 10%, #7b3fe4 0px, transparent 50%),
               radial-gradient(at 80% 0%, #5b21b6 0px, transparent 50%),
               radial-gradient(at 0% 60%, #4c1d95 0px, transparent 50%),
               radial-gradient(at 80% 50%, #9b6bff 0px, transparent 50%),
               radial-gradient(at 0% 100%, #6d28d9 0px, transparent 50%),
               radial-gradient(at 80% 100%, #7b3fe4 0px, transparent 50%);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-3: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-4: cubic-bezier(0.83, 0, 0.17, 1);

  --radius: 22px;
  --radius-lg: 32px;
  --radius-sm: 12px;

  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.011em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

::selection { background: var(--okko); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ================= Noise ================= */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= Cursor (Okko-style: O + три точки) ================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}

/* Кольцо «O» — центрируется на позиции мыши.
   Delay 80ms на возвращении из is-hover защищает от flicker
   при пересечении границы между карточками. */
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.7px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--ease) 80ms,
    height 0.3s var(--ease) 80ms,
    border-width 0.3s var(--ease) 80ms;
}

/* Три точки над кольцом */
.cursor-dots {
  position: absolute;
  top: -14px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  transition: top 0.3s var(--ease) 80ms, gap 0.3s var(--ease) 80ms;
}

.cursor-dots span {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #fff;
  transition: width 0.3s var(--ease) 80ms, height 0.3s var(--ease) 80ms;
}

.cursor.is-hover .cursor-ring {
  width: 36px;
  height: 36px;
  border-width: 1.8px;
  /* На входе в hover — без задержки, реагируем мгновенно */
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    border-width 0.3s var(--ease);
}
.cursor.is-hover .cursor-dots {
  top: -22px;
  gap: 6px;
  transition: top 0.3s var(--ease), gap 0.3s var(--ease);
}
.cursor.is-hover .cursor-dots span {
  width: 4.5px;
  height: 4.5px;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

@media (hover: none) { .cursor { display: none; } }

/* ================= Progress ================= */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--p, 0%);
  background: var(--grad);
  z-index: 9998;
  transition: width 0.08s linear;
  box-shadow: 0 0 14px rgba(155, 107, 255, 0.7);
}

/* ================= Navigation ================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: padding 0.4s var(--ease);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 9, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.nav.is-scrolled { padding: 12px 0; }

.nav.is-scrolled::before {
  background: rgba(10, 6, 20, 0.85);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  transition: color 0.3s;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--okko-3); }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 16px -4px rgba(123, 63, 228, 0.5);
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
}

.nav-links a {
  position: relative;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--okko-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--okko);
  border-color: var(--okko);
  color: #fff;
  box-shadow: 0 8px 30px rgba(123, 63, 228, 0.55);
}

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

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 28px 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: -1;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  background: radial-gradient(circle, #7b3fe4 0%, transparent 70%);
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 480px;
  height: 480px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, #4c1d95 0%, transparent 70%);
}

.orb-3 {
  width: 340px;
  height: 340px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #9b6bff 0%, transparent 70%);
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  max-width: 1080px;
  text-align: center;
  z-index: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.08);
  border: 1px solid var(--border-2);
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 36px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.pill > span:not(.pulse) { color: var(--text); font-weight: 500; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--okko-2);
  position: relative;
}
.pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--okko-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.hero-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.042em;
  margin-bottom: 32px;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.hero-title .word {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
}

.hero-title.is-in .word {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 720px) {
  .hero-title .word { white-space: normal; }
}

.hero-sub {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 44px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 76px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 40px -8px rgba(123, 63, 228, 0.55);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b388ff, #7b3fe4);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 54px -6px rgba(123, 63, 228, 0.8);
}

.btn-ghost {
  background: rgba(155, 107, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(155, 107, 255, 0.12);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.05);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item { display: flex; flex-direction: column; gap: 2px; text-align: left; }

.trust-item strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.trust-item span {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.trust-divider { width: 1px; height: 32px; background: var(--border); }

@media (max-width: 640px) {
  .trust-divider { display: none; }
  .hero-trust { gap: 14px; padding: 14px 20px; }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fade-up-in 1.2s 1.2s var(--ease) both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(155, 107, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.scroll-line span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--okko-2);
  animation: scroll-line 2.5s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes fade-up-in {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ================= Hero 3D UI preview ================= */
.hero-device {
  margin-top: 90px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1200px;
  position: relative;
  z-index: 2;
}

.hero-device-inner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: #0a0614;
  box-shadow: 0 40px 120px -20px rgba(123, 63, 228, 0.45),
              0 0 0 1px rgba(155, 107, 255, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotateX(12deg);
  transform-origin: top center;
  transition: transform 0.6s var(--ease);
}

.hero-device::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(155, 107, 255, 0.4), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

/* ================= Reveal utility ================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

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

/* Scramble effect (used on section titles) */
.scramble { display: inline-block; }
.scramble .ch {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ================= Marquee ================= */
.marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: marq 30s linear infinite;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.marquee-track .dot { color: var(--okko-2); font-size: 0.4em; }

@keyframes marq { to { transform: translateX(-50%); } }

/* ================= Section ================= */
.section {
  padding: 140px 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, #050309 0%, var(--bg-3) 50%, #050309 100%);
}

.section-head {
  max-width: 840px;
  margin: 0 auto 80px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--okko-2);
  margin-bottom: 20px;
  padding: 5px 13px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.1);
  border: 1px solid rgba(155, 107, 255, 0.24);
}

.section-title {
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.section-sub {
  font-size: clamp(16px, 1.25vw, 18.5px);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* ================= Abilities (merged platform + components) ================= */
.abilities-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ability {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  padding: 40px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.ability::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.ability:hover {
  border-color: rgba(155, 107, 255, 0.32);
}
.ability:hover::before { opacity: 1; }

.ability-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.ability-visual {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
}

.ability-visual svg {
  width: 100%;
  height: 100%;
  max-width: 180px;
  max-height: 180px;
}

.ability-broadcast circle:nth-child(3),
.ability-broadcast circle:nth-child(4),
.ability-broadcast circle:nth-child(5) {
  animation: broadcast-ring 3s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.ability-broadcast circle:nth-child(4) { animation-delay: 1s; }
.ability-broadcast circle:nth-child(5) { animation-delay: 2s; }

@keyframes broadcast-ring {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

.ability-body { position: relative; z-index: 1; }

.ability-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-4);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.ability h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.026em;
  margin-bottom: 12px;
  line-height: 1.15;
  text-wrap: balance;
}

.ability-head p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 580px;
}

/* Sub-blocks (внутренние подплашки c иконками) */
.ability-subs {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.ability-subs.single { grid-template-columns: 1fr; }
.ability-subs.multi  { grid-template-columns: repeat(3, 1fr); }

.ability-sub {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(155, 107, 255, 0.04);
  border: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.ability-sub:hover {
  background: rgba(155, 107, 255, 0.07);
  border-color: rgba(155, 107, 255, 0.3);
  transform: translateY(-2px);
}

.ability-subs.multi .ability-sub {
  grid-template-columns: 1fr;
  gap: 14px;
}

.ability-sub-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--okko-2);
  background: rgba(155, 107, 255, 0.1);
  border: 1px solid rgba(155, 107, 255, 0.22);
  border-radius: 11px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ability-sub-icon svg { width: 22px; height: 22px; }

.ability-sub:hover .ability-sub-icon {
  background: var(--okko);
  border-color: var(--okko);
  color: #fff;
}

.ability-sub-body h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ability-sub-body p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
  letter-spacing: -0.003em;
  margin: 0;
}

@media (max-width: 920px) {
  .ability { padding: 28px 24px; }
  .ability-head {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
    padding-bottom: 24px;
    margin-bottom: 22px;
  }
  .ability-visual { width: 140px; height: 140px; }
  .ability-visual svg { max-width: 140px; max-height: 140px; }
  .ability h3 { font-size: 24px; }
  .ability-subs.multi { grid-template-columns: 1fr; }
  .ability-subs.multi .ability-sub { grid-template-columns: 44px 1fr; }
}

/* ================= Components ================= */
.components {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.comp {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: rgba(155, 107, 255, 0.03);
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  overflow: hidden;
}

.comp::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(155, 107, 255, 0.14), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.comp:hover {
  background: rgba(155, 107, 255, 0.05);
  border-color: var(--border-2);
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.4);
}
.comp:hover::after { opacity: 1; }

.comp-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--okko-2);
  margin-bottom: 22px;
  background: rgba(155, 107, 255, 0.1);
  border: 1px solid rgba(155, 107, 255, 0.22);
  border-radius: 12px;
  transition: transform 0.4s var(--ease);
}

.comp:hover .comp-icon {
  transform: scale(1.1) rotate(-4deg);
  color: #fff;
  background: var(--okko);
  border-color: var(--okko);
}

.comp-icon svg { width: 24px; height: 24px; }

.comp h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.comp p {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.55;
}

.comp-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-4);
  transition: background 0.3s;
}
.comp:hover .comp-corner { background: var(--okko-2); box-shadow: 0 0 16px var(--okko-2); }

@media (max-width: 920px) { .components { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .components { grid-template-columns: 1fr; } }

/* ================= INTERFACE SHOWCASE — stylized admin UI ================= */
.ui-showcase {
  position: relative;
  overflow: hidden;
}

.ui-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 20% 30%, rgba(123, 63, 228, 0.18), transparent 50%),
    radial-gradient(800px circle at 80% 70%, rgba(76, 29, 149, 0.18), transparent 50%);
  pointer-events: none;
}

.ui-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.ui-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 16, 42, 0.8) 0%, rgba(10, 6, 20, 0.85) 100%);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 440px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.ui-card:hover {
  border-color: rgba(155, 107, 255, 0.3);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5);
}

.ui-card.reverse { grid-template-columns: 1.2fr 1fr; }
.ui-card.reverse .ui-copy { order: 2; }
.ui-card.reverse .ui-mock { order: 1; }

.ui-copy {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.ui-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.12);
  border: 1px solid rgba(155, 107, 255, 0.22);
  font-size: 11.5px;
  color: var(--okko-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  width: fit-content;
  font-family: 'JetBrains Mono', monospace;
}

.ui-copy h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}

.ui-copy p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 440px;
  letter-spacing: -0.005em;
}

.ui-copy ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.ui-copy ul li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}

.ui-copy ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 10px var(--okko-2);
}

.ui-mock {
  position: relative;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(123, 63, 228, 0.14), transparent 70%);
  overflow: hidden;
}

.ui-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Common browser chrome */
.browser {
  width: 100%;
  max-width: 640px;
  border-radius: 14px;
  background: #0e0920;
  border: 1px solid rgba(155, 107, 255, 0.18);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(155, 107, 255, 0.1),
              inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  transform: perspective(1400px) rotateX(4deg) rotateY(-6deg);
  transition: transform 0.6s var(--ease);
}

.ui-card:hover .browser {
  transform: perspective(1400px) rotateX(2deg) rotateY(-3deg) translateY(-4px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0a0618;
  border-bottom: 1px solid rgba(155, 107, 255, 0.1);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  background: rgba(155, 107, 255, 0.05);
  padding: 5px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-url::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--okko-2);
  border-radius: 2px;
  border-bottom: none;
  border-right: none;
  position: relative;
  top: -1px;
  transform: rotate(45deg);
}

/* Admin dashboard mock */
.admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #2d1b5c 0%, #1a0b3d 100%);
  border-bottom: 1px solid rgba(155, 107, 255, 0.15);
  font-size: 10.5px;
  font-weight: 500;
  color: #fff;
}

.admin-logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.45);
}

.admin-nav {
  display: flex;
  gap: 18px;
  flex: 1;
}
.admin-nav span {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding: 4px 0;
}
.admin-nav span.active {
  color: #fff;
}
.admin-nav span.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--okko-3);
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.admin-user::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
}

/* Table view */
.admin-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafaff;
  min-height: 260px;
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
}
.admin-title-row strong {
  color: #1a0b3d;
  font-size: 12px;
  font-weight: 600;
}
.admin-btn {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--okko);
  color: #fff;
  font-weight: 500;
}

.admin-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.admin-toolbar-btn {
  font-size: 9.5px;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #e5e1f2;
  color: #4c1d95;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-toolbar-btn.primary {
  background: var(--okko);
  color: #fff;
  border-color: var(--okko);
}

.admin-table {
  display: grid;
  gap: 2px;
  font-size: 10px;
  color: #1a0b3d;
  background: #e9e5f2;
  border-radius: 6px;
  overflow: hidden;
}

.admin-row {
  display: grid;
  grid-template-columns: 30px 2fr 1fr 1fr 60px 50px;
  gap: 8px;
  padding: 7px 10px;
  background: #fff;
  align-items: center;
  animation: row-reveal 0.5s var(--ease) both;
}

.admin-row.head {
  background: #f4f1fb;
  color: #605a80;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-row.head > span::after {
  content: ' ↕';
  color: #c8c1e0;
  font-size: 8px;
}

@keyframes row-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-row:nth-child(2) { animation-delay: 60ms; }
.admin-row:nth-child(3) { animation-delay: 120ms; }
.admin-row:nth-child(4) { animation-delay: 180ms; }
.admin-row:nth-child(5) { animation-delay: 240ms; }
.admin-row:nth-child(6) { animation-delay: 300ms; }

.admin-row span.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #605a80;
  letter-spacing: -0.02em;
}

.admin-row .idx {
  color: #9890b8;
  font-size: 9px;
}

.admin-row .tag-pub {
  font-size: 8.5px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(40, 200, 64, 0.12);
  color: #18a13a;
  font-weight: 500;
  letter-spacing: 0;
}
.admin-row .tag-draft {
  background: rgba(254, 188, 46, 0.18);
  color: #ba7e00;
}
.admin-row .tag-pub.pulse-dot::before {
  content: '●';
  margin-right: 3px;
  color: #18a13a;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.admin-row .cell-action {
  color: var(--okko);
  font-size: 12px;
  cursor: pointer;
}

/* Video editor mock */
.editor-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 280px;
  background: #fafaff;
}

.editor-sidebar {
  border-right: 1px solid #ebe6f5;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 9.5px;
  color: #605a80;
}
.editor-sidebar-title {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9890b8;
  margin-bottom: 4px;
}
.editor-sidebar .si {
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
}
.editor-sidebar .si.active {
  background: var(--okko);
  color: #fff;
  font-weight: 500;
}

.editor-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a0b3d;
  letter-spacing: -0.015em;
}

.editor-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ebe6f5;
  padding-bottom: 6px;
  font-size: 10px;
}
.editor-tabs span {
  color: #605a80;
  padding-bottom: 5px;
  position: relative;
}
.editor-tabs span.active {
  color: var(--okko);
  font-weight: 500;
}
.editor-tabs span.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--okko);
}

.editor-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 10px;
  color: #4c1d95;
  padding: 7px 0;
  border-bottom: 1px solid #f0ecf7;
  align-items: center;
}

.editor-row .lbl {
  color: #605a80;
  font-weight: 500;
}

.editor-row .val {
  color: #1a0b3d;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
}

.editor-row .chip {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #efeaf8;
  color: #4c1d95;
  font-family: 'Inter', sans-serif;
}

.editor-row .toggle {
  width: 26px;
  height: 14px;
  background: var(--okko);
  border-radius: 100px;
  position: relative;
}
.editor-row .toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: right 0.3s var(--ease);
}

/* Player mock */
.player-body {
  background: #000;
  min-height: 340px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.player-screen {
  flex: 1;
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(155, 107, 255, 0.4), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(76, 29, 149, 0.5), transparent 60%),
    linear-gradient(180deg, #1a0b3d, #0a0618);
  overflow: hidden;
}

.player-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent, transparent 3px, rgba(255, 255, 255, 0.02) 3px, rgba(255, 255, 255, 0.02) 4px);
  pointer-events: none;
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: player-pulse 3.4s ease-in-out infinite;
}

.player-play svg { width: 22px; height: 22px; margin-left: 3px; }

@keyframes player-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

.player-brand {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.player-brand .logo-mark { width: 20px; height: 20px; border-radius: 5px; box-shadow: none; }

.player-controls {
  padding: 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.player-progress-fill {
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 3px;
  animation: player-scrub 8s ease-in-out infinite;
}
.player-progress::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--okko-2);
  transform: translate(var(--x, 0px), -50%);
  animation: player-thumb 8s ease-in-out infinite;
}
@keyframes player-scrub {
  0% { width: 0; }
  80% { width: 65%; }
  100% { width: 100%; }
}
@keyframes player-thumb {
  0% { left: 0%; }
  80% { left: 65%; }
  100% { left: 100%; }
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}
.player-row .spacer { flex: 1; }
.player-row .pbtn {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

/* Templates mock */
.tpl-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 320px;
  background: #fafaff;
}

.tpl-sidebar {
  border-right: 1px solid #ebe6f5;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tpl-search {
  padding: 5px 8px;
  border: 1px solid #e5e1f2;
  border-radius: 4px;
  font-size: 9.5px;
  color: #9890b8;
  margin-bottom: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tpl-search::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1.5px solid #9890b8;
  border-radius: 50%;
}

.tpl-add {
  padding: 5px 8px;
  border: 1px dashed var(--okko);
  border-radius: 4px;
  font-size: 9.5px;
  color: var(--okko);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}
.tpl-add::before {
  content: '+ ';
}

.tpl-item {
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  color: #4c1d95;
  cursor: pointer;
  animation: row-reveal 0.5s var(--ease) both;
}
.tpl-item:nth-child(3) { animation-delay: 60ms; }
.tpl-item:nth-child(4) { animation-delay: 120ms; }
.tpl-item:nth-child(5) { animation-delay: 180ms; }
.tpl-item:nth-child(6) { animation-delay: 240ms; }
.tpl-item:nth-child(7) { animation-delay: 300ms; }
.tpl-item:nth-child(8) { animation-delay: 360ms; }
.tpl-item.active {
  background: #efeaf8;
  color: var(--okko);
  font-weight: 500;
}

.tpl-main {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tpl-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a0b3d;
}

.tpl-quality-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tpl-quality {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 9.5px;
  background: #efeaf8;
  color: var(--okko);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  animation: q-in 0.6s var(--ease) both;
}
.tpl-quality:nth-child(2) { animation-delay: 80ms; }
.tpl-quality:nth-child(3) { animation-delay: 160ms; }
.tpl-quality:nth-child(4) { animation-delay: 240ms; }
.tpl-quality:nth-child(5) { animation-delay: 320ms; }
.tpl-quality:nth-child(6) { animation-delay: 400ms; }

@keyframes q-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.tpl-graph {
  padding: 12px;
  background: #fff;
  border: 1px solid #ebe6f5;
  border-radius: 6px;
  position: relative;
  min-height: 100px;
  overflow: hidden;
}

.tpl-graph-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 9px;
  color: #9890b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tpl-graph svg {
  width: 100%;
  height: 70px;
  margin-top: 16px;
}

.tpl-graph path { stroke-dasharray: 400; stroke-dashoffset: 0; animation: graph-draw 3s ease-out forwards; }

@keyframes graph-draw {
  from { stroke-dashoffset: 400; }
  to { stroke-dashoffset: 0; }
}

/* Auto-transcoding mock */
.auto-body {
  padding: 24px 26px;
  background: #fafaff;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auto-source { display: flex; }

.auto-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ebe6f5;
  border-radius: 10px;
  font-size: 12px;
  color: #1a0b3d;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.08);
}

.auto-file-ico {
  color: var(--okko);
  display: inline-flex;
}
.auto-file-ico svg { width: 18px; height: 18px; }

.auto-file-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.auto-file-meta {
  margin-left: 4px;
  font-size: 11px;
  color: #18a13a;
  font-weight: 500;
}

.auto-pipe {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.auto-pipe-track {
  flex: 1;
  height: 6px;
  background: rgba(155, 107, 255, 0.12);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.auto-pipe-flow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      var(--okko-3) 30%,
      var(--okko) 50%,
      var(--okko-3) 70%,
      transparent 100%);
  transform: translateX(-100%);
  animation: pipe-flow 2.4s ease-in-out infinite;
}

@keyframes pipe-flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.auto-pipe-tag {
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 6px 16px -4px rgba(123, 63, 228, 0.55);
}

.auto-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.auto-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #ebe6f5;
  border-radius: 8px;
  font-size: 11.5px;
  color: #1a0b3d;
  font-weight: 500;
  animation: row-reveal 0.5s var(--ease) both;
}
.auto-out:nth-child(1) { animation-delay: 80ms; }
.auto-out:nth-child(2) { animation-delay: 160ms; }
.auto-out:nth-child(3) { animation-delay: 240ms; }
.auto-out:nth-child(4) { animation-delay: 320ms; }
.auto-out:nth-child(5) { animation-delay: 400ms; }
.auto-out:nth-child(6) { animation-delay: 480ms; }

.auto-out-q {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #4c1d95;
}

.auto-out-ok {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 200, 64, 0.14);
  color: #18a13a;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

/* ============ Playlists mock ============ */
.pl-body {
  background: #fafaff;
  min-height: 300px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pl-title { color: #1a0b3d; font-size: 12px; font-weight: 600; }
.pl-add {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--okko);
  color: #fff;
  font-weight: 500;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pl-card {
  background: #fff;
  border: 1px solid #ebe6f5;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  animation: row-reveal 0.5s var(--ease) both;
}
.pl-card:nth-child(2) { animation-delay: 80ms; }
.pl-card:nth-child(3) { animation-delay: 160ms; }
.pl-card:nth-child(4) { animation-delay: 240ms; }

.pl-card.active {
  border-color: var(--okko);
  box-shadow: 0 6px 18px -6px rgba(123, 63, 228, 0.32);
}

.pl-cover {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.pl-cover-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.pl-cover-tiles span {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.pl-cover-1 { background: linear-gradient(135deg, #b388ff 0%, #4c1d95 100%); }
.pl-cover-2 { background: linear-gradient(135deg, #ff9d6b 0%, #b91072 60%, #4c1d95 100%); }
.pl-cover-3 { background: linear-gradient(135deg, #8b5cf6 0%, #21BA72 100%); }
.pl-cover-4 { background: linear-gradient(135deg, #0FA180 0%, #4c1d95 100%); }

.pl-meta {
  padding: 8px 10px 10px;
}
.pl-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #1a0b3d;
  margin-bottom: 2px;
}
.pl-count {
  font-size: 9.5px;
  color: #605a80;
  letter-spacing: 0.01em;
}

/* ============ Monitor (jobs) mock ============ */
.mon-body {
  background: #fafaff;
  min-height: 340px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mon-subtabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #e5e1f2;
  padding-bottom: 7px;
  font-size: 10.5px;
}
.mon-subtabs span {
  color: #605a80;
  padding-bottom: 6px;
  margin-bottom: -8px;
  position: relative;
}
.mon-subtabs span.active {
  color: #1a0b3d;
  font-weight: 600;
}
.mon-subtabs span.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--okko);
}

.mon-tabs {
  display: flex;
  gap: 16px;
  font-size: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e1f2;
}
.mon-tabs span {
  color: #605a80;
  padding-bottom: 4px;
  margin-bottom: -5px;
  position: relative;
}
.mon-tabs span.active {
  color: var(--okko);
  font-weight: 600;
}
.mon-tabs span.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--okko);
}

.mon-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0 4px;
}
.mon-cancel {
  font-size: 9.5px;
  padding: 4px 10px;
  border: 1px solid #e5e1f2;
  border-radius: 4px;
  color: #9890b8;
  background: #fff;
  cursor: not-allowed;
}
.mon-mine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #1a0b3d;
}
.mon-cb {
  width: 11px;
  height: 11px;
  border: 1px solid #c8c1e0;
  border-radius: 2px;
  display: inline-block;
}

.mon-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ebe6f5;
  border-radius: 5px;
  overflow: hidden;
  font-size: 9.5px;
  flex: 1;
}

.mon-row {
  display: grid;
  grid-template-columns: 22px 1.4fr 0.8fr 0.9fr 0.9fr 0.7fr 0.9fr;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  background: #fff;
  color: #1a0b3d;
  animation: row-reveal 0.5s var(--ease) both;
}
.mon-row.mon-head {
  background: #f4f1fb;
  color: #605a80;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mon-row:nth-child(3) { animation-delay: 60ms; }
.mon-row:nth-child(4) { animation-delay: 120ms; }
.mon-row:nth-child(5) { animation-delay: 180ms; }
.mon-row:nth-child(6) { animation-delay: 240ms; }
.mon-row:nth-child(7) { animation-delay: 300ms; }

.mon-row .idx { color: #9890b8; font-size: 9px; }
.mon-row .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #605a80;
  letter-spacing: -0.02em;
}

.mon-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}
.mon-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.mon-status.done { color: #18a13a; }
.mon-status.done i { background: #18a13a; box-shadow: 0 0 6px rgba(40, 200, 64, 0.6); }
.mon-status.running { color: var(--okko); }
.mon-status.running i { background: var(--okko); animation: blink 1.2s ease-in-out infinite; }
.mon-status.queued { color: #ba7e00; }
.mon-status.queued i { background: #febc2e; }

@media (max-width: 880px) {
  .ui-card { grid-template-columns: 1fr; min-height: auto; }
  .ui-card.reverse { grid-template-columns: 1fr; }
  .ui-card.reverse .ui-copy { order: 1; }
  .ui-card.reverse .ui-mock { order: 2; }
  .ui-copy { padding: 32px; }
}

/* ================= PRODUCT FEATURES ================= */
.features { position: relative; overflow: hidden; }

.features-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px circle at 0% 20%, rgba(123, 63, 228, 0.16), transparent 50%),
    radial-gradient(700px circle at 100% 80%, rgba(76, 29, 149, 0.14), transparent 50%);
  pointer-events: none;
}

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

.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 16, 42, 0.6) 0%, rgba(10, 6, 20, 0.8) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 400px;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 107, 255, 0.32);
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(155, 107, 255, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature:hover::before { opacity: 1; }

/* Layout — equal 2×2 grid + full-width roles + analytics */
.feature.f-ads,
.feature.f-custom,
.feature.f-reels,
.feature.f-sdk { grid-column: span 1; }

.feature.f-roles,
.feature.f-analytics {
  grid-column: span 2;
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.feature.f-roles .feature-body,
.feature.f-analytics .feature-body { order: 1; }
.feature.f-roles .feature-visual,
.feature.f-analytics .feature-visual { order: 2; height: 100%; min-height: 200px; }

.feature.f-analytics { min-height: 320px; }
.feature.f-analytics .feature-visual { min-height: 220px; }

.feature-visual {
  flex: 1;
  border-radius: 14px;
  background: rgba(155, 107, 255, 0.04);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feature-body { position: relative; z-index: 1; }

.feature-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--okko-3);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(155, 107, 255, 0.1);
  margin-bottom: 14px;
}

.feature-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.feature-body p {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.55;
}

/* Ads mock — video frame with ad overlay */
.f-ads-player {
  width: 100%;
  aspect-ratio: 16 / 8;
  background: #050309;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.f-ads-video {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(155, 107, 255, 0.32), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(76, 29, 149, 0.45), transparent 55%),
    linear-gradient(135deg, #2a1559 0%, #0e0626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-ads-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent, transparent 3px, rgba(255, 255, 255, 0.03) 3px, rgba(255, 255, 255, 0.03) 4px);
}

.f-ads-video-play {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #1a0b3d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: mock-play-pulse 3.2s ease-in-out infinite;
}
.f-ads-video-play svg { width: 22px; height: 22px; margin-left: 3px; }

.f-ads-frames {
  position: absolute;
  bottom: 36px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
  height: 22px;
  opacity: 0.55;
  z-index: 1;
}
.f-ads-frames span {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.f-ads-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 3;
  pointer-events: none;
}

.f-ads-tag {
  padding: 5px 11px;
  border-radius: 6px;
  background: #ffcd00;
  color: #1a0b3d;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.f-ads-skip {
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.f-ads-skip::after {
  content: '⏭';
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.8;
}

.f-ads-count {
  display: inline-block;
  min-width: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #ffcd00;
  font-weight: 600;
}

.f-ads-timeline {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 3;
}

.f-ads-slot {
  padding: 2px 7px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 107, 255, 0.85);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(155, 107, 255, 0.5);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.f-ads-progress {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
}

.f-ads-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 3px;
  animation: ads-progress 6s ease-in-out infinite;
}

@keyframes ads-progress {
  0% { width: 0; }
  100% { width: 100%; }
}

.f-ads-mid {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 10px;
  background: var(--okko-3);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--okko-3);
}
.f-ads-mid-1 { left: 30%; }
.f-ads-mid-2 { left: 65%; }

/* React */
.f-react-stack {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  perspective: 500px;
}

.f-react-emoji {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.14), rgba(76, 29, 149, 0.06));
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--okko-3);
  animation: react-float 3.2s ease-in-out infinite;
  box-shadow: 0 10px 30px -8px rgba(123, 63, 228, 0.3);
}
.f-react-emoji.e-heart { animation-delay: 0s; }
.f-react-emoji.e-fire { animation-delay: .4s; transform: translateY(-10px); }
.f-react-emoji.e-clap { animation-delay: .8s; }

@keyframes react-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.f-react-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--okko-3);
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.15);
  border: 1px solid rgba(155, 107, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

/* Customization */
.f-custom-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a0b3d, #0a0618);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.f-custom-logo {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.f-custom-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-custom-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
}
.f-custom-fill {
  height: 100%;
  width: 60%;
  background: var(--grad);
  border-radius: 3px;
  animation: custom-fill 5s ease-in-out infinite alternate;
}

@keyframes custom-fill {
  from { width: 10%; }
  to { width: 80%; }
}

.f-custom-btns {
  display: flex;
  gap: 5px;
}
.f-custom-btns span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}
.f-custom-btns span:first-child { background: var(--grad); }

.f-custom-palette {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.f-custom-palette span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  animation: swatch-pulse 3s ease-in-out infinite;
}
.f-custom-palette span:nth-child(1) { animation-delay: 0s; }
.f-custom-palette span:nth-child(2) { animation-delay: .3s; }
.f-custom-palette span:nth-child(3) { animation-delay: .6s; }
.f-custom-palette span:nth-child(4) { animation-delay: .9s; }

@keyframes swatch-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* Roles */
.f-roles-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-role-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(155, 107, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  animation: row-reveal 0.6s var(--ease) both;
}
.f-role-row:nth-child(2) { animation-delay: .12s; }
.f-role-row:nth-child(3) { animation-delay: .24s; }

.f-role-row:hover {
  background: rgba(155, 107, 255, 0.08);
  border-color: var(--border-2);
}

.f-role-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.f-role-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.f-role-info span {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f-role-info em {
  font-size: 10px;
  color: var(--text-4);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f-role-chip {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-write { background: rgba(123, 63, 228, 0.2); color: var(--okko-3); }
.chip-mod { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.chip-read { background: rgba(100, 116, 139, 0.2); color: var(--text-3); }

/* Reels — phone with vertical scrolling */
.f-reels-phone {
  width: 158px;
  height: 290px;
  border-radius: 28px;
  background: #0a0618;
  border: 3px solid #1c1638;
  padding: 8px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(155, 107, 255, 0.1);
  overflow: hidden;
}

.f-reels-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  border-radius: 100px;
  background: #1c1638;
  z-index: 3;
}

.f-reels-viewport {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #050309;
}

.f-reels-track {
  position: absolute;
  inset: 0;
  height: 400%;
  display: flex;
  flex-direction: column;
  animation: reels-scroll 12s cubic-bezier(0.83, 0, 0.17, 1) infinite;
  will-change: transform;
}

@keyframes reels-scroll {
  0%, 22%   { transform: translate3d(0, 0, 0); }
  25%, 47%  { transform: translate3d(0, -25%, 0); }
  50%, 72%  { transform: translate3d(0, -50%, 0); }
  75%, 97%  { transform: translate3d(0, -75%, 0); }
  100%      { transform: translate3d(0, 0, 0); }
}

.f-reel {
  width: 100%;
  height: 25%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.f-reel-1 {
  background:
    radial-gradient(ellipse 130% 80% at 30% 25%, rgba(179, 136, 255, 0.9), transparent 65%),
    radial-gradient(ellipse 130% 80% at 75% 80%, rgba(123, 63, 228, 0.95), transparent 65%),
    linear-gradient(180deg, #4c1d95 0%, #1a0826 100%);
}
.f-reel-2 {
  background:
    radial-gradient(ellipse 130% 80% at 60% 20%, rgba(255, 100, 180, 0.85), transparent 65%),
    radial-gradient(ellipse 130% 80% at 25% 75%, rgba(123, 63, 228, 0.95), transparent 65%),
    linear-gradient(180deg, #7b1d57 0%, #1a0826 100%);
}
.f-reel-3 {
  background:
    radial-gradient(ellipse 130% 80% at 40% 35%, rgba(33, 186, 114, 0.85), transparent 65%),
    radial-gradient(ellipse 130% 80% at 80% 85%, rgba(123, 63, 228, 0.9), transparent 65%),
    linear-gradient(180deg, #0a584a 0%, #1a0826 100%);
}
.f-reel-4 {
  background:
    radial-gradient(ellipse 130% 80% at 20% 35%, rgba(255, 165, 60, 0.85), transparent 65%),
    radial-gradient(ellipse 130% 80% at 80% 70%, rgba(179, 136, 255, 0.95), transparent 65%),
    linear-gradient(180deg, #7a4a13 0%, #2a0826 100%);
}

.f-reel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent, transparent 3px, rgba(255, 255, 255, 0.04) 3px, rgba(255, 255, 255, 0.04) 4px);
  pointer-events: none;
  z-index: 1;
}

/* Subtle Ken-Burns motion so reel feels "playing" */
.f-reel::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: inherit;
  background-position: center;
  background-size: 110% 110%;
  opacity: 0;
  animation: reel-zoom 3s ease-in-out infinite;
  z-index: 0;
}
@keyframes reel-zoom {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.18; transform: scale(1.08); }
}

/* Bottom timeline — progress fills as reel "plays" */
.f-reel-timeline {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  overflow: hidden;
  z-index: 3;
}

.f-reel-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: #fff;
  border-radius: 3px;
  animation: reel-fill 3s linear infinite;
}

@keyframes reel-fill {
  0% { width: 0; }
  92%, 100% { width: 100%; }
}

.f-reel-side {
  position: absolute;
  right: 9px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  z-index: 2;
}

.f-reel-act {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
}

.f-reel-like {
  color: #ff4581;
}

.f-reel-num {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-top: -6px;
  margin-bottom: 2px;
}

.f-reel-bottom {
  position: absolute;
  left: 9px;
  right: 50px;
  bottom: 14px;
  height: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.f-reel-bottom::before,
.f-reel-bottom::after {
  content: '';
  display: block;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.f-reel-bottom::after { width: 60%; background: rgba(255, 255, 255, 0.18); }

.f-reels-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  z-index: 4;
  animation: reels-hint 2.4s ease-in-out infinite;
}

@keyframes reels-hint {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50% { opacity: 0.9; transform: translate(-50%, -4px); }
}

/* SDK */
.f-sdk-platforms {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.f-sdk-item {
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(155, 107, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
  animation: sdk-in 0.5s var(--ease) both;
}
.f-sdk-item:nth-child(2) { animation-delay: .08s; }
.f-sdk-item:nth-child(3) { animation-delay: .16s; }
.f-sdk-item:nth-child(4) { animation-delay: .24s; }
.f-sdk-item:nth-child(5) { animation-delay: .32s; }
.f-sdk-item:nth-child(6) { animation-delay: .4s; }

@keyframes sdk-in {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.f-sdk-item:hover {
  background: rgba(155, 107, 255, 0.1);
  border-color: var(--border-2);
  color: var(--okko-3);
  transform: translateY(-2px);
}

.f-sdk-item svg { width: 22px; height: 22px; }
.f-sdk-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Analytics */
.f-ana-chart {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.f-ana-chart svg {
  width: 100%;
  height: 120px;
}

.f-ana-chart svg path:last-child {
  stroke-dasharray: 500;
  stroke-dashoffset: 0;
  animation: ana-draw 3s ease-out forwards;
}

@keyframes ana-draw {
  from { stroke-dashoffset: 500; }
  to { stroke-dashoffset: 0; }
}

.f-ana-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.f-ana-kpi {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(155, 107, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f-ana-kpi strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.f-ana-kpi span {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 1080px) {
  .feature.f-roles,
  .feature.f-analytics { grid-template-columns: 1fr; }
  .feature.f-roles .feature-body,
  .feature.f-analytics .feature-body { order: 2; }
  .feature.f-roles .feature-visual,
  .feature.f-analytics .feature-visual { order: 1; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature.f-ads, .feature.f-custom, .feature.f-reels, .feature.f-sdk, .feature.f-roles, .feature.f-analytics { grid-column: span 1; }
}

/* ================= Network ================= */
.network-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

.net-map {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px;
  background: linear-gradient(180deg, #0b0720 0%, #07041a 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 420px;
}

.net-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(123, 63, 228, 0.14) 0%, transparent 60%);
}

.map-wrap {
  position: relative;
  aspect-ratio: 600 / 360;
  width: 100%;
}

.map-svg { width: 100%; height: 100%; position: relative; }

.map-svg .node circle:first-child {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 3s ease-in-out infinite;
}

.map-svg .node-main circle:nth-child(3) {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-expand 3s ease-out infinite;
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

@keyframes ring-expand {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.line-path {
  stroke-dashoffset: 0;
  animation: dash-flow 3s linear infinite;
}

@keyframes dash-flow { to { stroke-dashoffset: -20; } }

.map-overlay { position: absolute; inset: 0; pointer-events: none; }

.ping {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--okko-2);
  box-shadow: 0 0 20px var(--okko-2);
  animation: ping 4s ease-out infinite;
}
.p1 { top: 22%; left: 52%; animation-delay: 0s; }
.p2 { top: 68%; left: 30%; animation-delay: 1.3s; }
.p3 { top: 72%; left: 70%; animation-delay: 2.6s; }

@keyframes ping {
  0% { transform: scale(0); opacity: 1; }
  80%, 100% { transform: scale(4); opacity: 0; }
}

.net-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(155, 107, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.stat:hover {
  border-color: rgba(155, 107, 255, 0.35);
  background: rgba(155, 107, 255, 0.05);
  transform: translateY(-2px);
}

.stat-num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stat-num > span:first-child { font-size: 28px; }

.stat-label { font-size: 13px; color: var(--text-3); line-height: 1.45; }

@media (max-width: 960px) { .network-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .net-stats { grid-template-columns: 1fr; }
  .stat-num { font-size: 44px; }
}

/* ================= Audience ================= */
.audience { position: relative; overflow: hidden; }

.audience-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 63, 228, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1200px;
}

.aud-card {
  position: relative;
  padding: 32px 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #16122e 0%, #0b0720 100%);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.aud-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.aud-card:hover {
  border-color: rgba(155, 107, 255, 0.4);
  box-shadow: 0 30px 60px -20px rgba(123, 63, 228, 0.3);
}
.aud-card:hover::before { opacity: 1; }

.aud-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(155, 107, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 22px;
  transform: translateZ(30px);
  transition: transform 0.4s var(--ease), background 0.4s;
}

.aud-card:hover .aud-icon {
  background: rgba(155, 107, 255, 0.12);
  border-color: rgba(155, 107, 255, 0.4);
}

.aud-icon svg { width: 28px; height: 28px; }

.aud-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transform: translateZ(20px);
}

.aud-card p {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.aud-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.aud-list li {
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.aud-tag {
  font-size: 12px;
  color: var(--okko-2);
  font-weight: 500;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.audience-foot { margin-top: 60px; text-align: center; }

.audience-foot p {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 920px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .audience-grid { grid-template-columns: 1fr; } }

/* ================= Cases / Examples ================= */
.cases {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.case {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f0b23 0%, #07041a 100%);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case:hover { border-color: var(--border-2); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.45); }

.case:nth-child(1) { grid-column: span 3; }
.case:nth-child(2) { grid-column: span 3; }
.case:nth-child(3) { grid-column: span 2; }
.case:nth-child(4) { grid-column: span 2; }
.case:nth-child(5) { grid-column: span 2; }

.case-frame {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1535 0%, #0c0820 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.case-mock {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-bar { display: flex; gap: 6px; padding: 4px 2px; }
.mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.mock-bar span:first-child { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }

.mock-hero {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1535 0%, #0c0820 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px circle at 30% 40%, rgba(155, 107, 255, 0.35), transparent 50%),
    radial-gradient(600px circle at 80% 70%, rgba(76, 29, 149, 0.3), transparent 50%);
}

.mock-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: mock-play-pulse 3s ease-in-out infinite;
}
.mock-play svg { width: 16px; height: 16px; margin-left: 2px; }

@keyframes mock-play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.mock-row { display: flex; gap: 6px; }
.mock-row span {
  flex: 1;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(155, 107, 255, 0.1), rgba(155, 107, 255, 0.03));
}

/* Live mock */
.live-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}
.live-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f57;
  animation: live-pulse 1.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-bars {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}
.live-bars span {
  width: 6px;
  background: linear-gradient(180deg, var(--okko-3), var(--okko));
  border-radius: 2px;
  animation: live-bar 1.3s ease-in-out infinite;
  height: 20%;
}
.live-bars span:nth-child(1) { animation-delay: 0.0s; }
.live-bars span:nth-child(2) { animation-delay: 0.1s; }
.live-bars span:nth-child(3) { animation-delay: 0.2s; }
.live-bars span:nth-child(4) { animation-delay: 0.3s; }
.live-bars span:nth-child(5) { animation-delay: 0.4s; }
.live-bars span:nth-child(6) { animation-delay: 0.5s; }
.live-bars span:nth-child(7) { animation-delay: 0.6s; }

@keyframes live-bar {
  0%, 100% { height: 20%; }
  50% { height: 90%; }
}

.mock-scrubber {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin: 4px 8px 0;
  overflow: hidden;
}
.mock-scrubber-fill {
  height: 100%;
  width: 0;
  background: var(--grad);
  animation: scrub 8s ease-in-out infinite;
}
@keyframes scrub {
  0% { width: 0; }
  80% { width: 70%; }
  100% { width: 100%; }
}

/* Live case: ad-skip pill + pre/mid/post-roll timeline (взято из старого f-ads) */
.live-skip {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.01em;
  font-weight: 500;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.live-skip::after {
  content: '⏭';
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.85;
}
.live-skip-num {
  display: inline-block;
  min-width: 6px;
  font-family: 'JetBrains Mono', monospace;
  color: #ffcd00;
  font-weight: 700;
}

.live-timeline {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.live-roll {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--okko);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(155, 107, 255, 0.5);
}
.live-track {
  flex: 1;
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: visible;
}
.live-mid {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 9px;
  background: var(--okko-3);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--okko-3);
}
.live-fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--grad);
  border-radius: 2px;
  animation: live-fill-anim 6s ease-in-out infinite;
}
@keyframes live-fill-anim {
  0%   { inset: 0 100% 0 0; }
  100% { inset: 0 0 0 0; }
}

/* Partner case: палитра брендов white-label (анимация активного цвета) */
.partner-palette {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  width: fit-content;
  margin: 0 auto;
  z-index: 3;
}
.pp-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'JetBrains Mono', monospace;
}
.pp-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  border: 1.5px solid transparent;
  animation: pp-pulse 6s linear infinite;
  flex-shrink: 0;
}
/* 5 свотчей подряд — каждый подсвечивается в свой 1.2s-слот цикла */
.pp-swatch:nth-child(1) { animation-delay:  0s;    }  /* purple at t=0-0.96s */
.pp-swatch:nth-child(2) { animation-delay: -4.8s;  }  /* green  at t=1.2-2.16s */
.pp-swatch:nth-child(3) { animation-delay: -3.6s;  }  /* red    at t=2.4-3.36s */
.pp-swatch:nth-child(4) { animation-delay: -2.4s;  }  /* yellow at t=3.6-4.56s */
.pp-swatch:nth-child(5) { animation-delay: -1.2s;  }  /* blue   at t=4.8-5.76s */

@keyframes pp-pulse {
  0%, 12% {
    transform: scale(1.35);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 10px var(--c);
  }
  16%, 100% {
    transform: scale(1);
    border-color: transparent;
    box-shadow: none;
  }
}

/* Clips */
.clip-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.clip {
  position: absolute;
  width: 60px;
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1535, #2a1555);
  border: 1px solid var(--border-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.clip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(155, 107, 255, 0.45), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(76, 29, 149, 0.35), transparent 50%);
  border-radius: inherit;
}

.clip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background: rgba(255, 255, 255, 0.85);
  clip-path: polygon(30% 20%, 80% 50%, 30% 80%);
}

.clip.c1 { animation: clip-float 4s ease-in-out infinite; --x: -40px; --r: -10deg; transform: translateX(-40px) rotate(-10deg); opacity: 0.6; }
.clip.c2 { z-index: 2; --s: 1.1; transform: scale(1.1); animation: clip-float 4s ease-in-out infinite .5s; }
.clip.c3 { animation: clip-float 4s ease-in-out infinite 1s; --x: 40px; --r: 10deg; transform: translateX(40px) rotate(10deg); opacity: 0.6; }

@keyframes clip-float {
  0%, 100% { transform: translateY(0) translateX(var(--x, 0)) rotate(var(--r, 0)) scale(var(--s, 1)); }
  50% { transform: translateY(-8px) translateX(var(--x, 0)) rotate(var(--r, 0)) scale(var(--s, 1)); }
}

/* Wave TV */
.wave-tv { width: 80%; position: relative; }

.wave-screen {
  width: 100%;
  aspect-ratio: 16/10;
  background: #0a0618;
  border: 2px solid var(--border-2);
  border-radius: 10px 10px 3px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wave-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(155, 107, 255, 0.3), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(76, 29, 149, 0.25), transparent 50%);
}

.wave-bars { position: relative; z-index: 1; display: flex; align-items: center; gap: 3px; }

.wave-bars span {
  width: 3px;
  background: linear-gradient(180deg, var(--okko-3), var(--okko));
  border-radius: 2px;
  animation: wave-anim 1.2s ease-in-out infinite;
}
.wave-bars span:nth-child(odd) { height: 30px; }
.wave-bars span:nth-child(even) { height: 45px; }
.wave-bars span:nth-child(1) { animation-delay: 0s; }
.wave-bars span:nth-child(2) { animation-delay: 0.1s; }
.wave-bars span:nth-child(3) { animation-delay: 0.2s; }
.wave-bars span:nth-child(4) { animation-delay: 0.3s; }
.wave-bars span:nth-child(5) { animation-delay: 0.4s; }
.wave-bars span:nth-child(6) { animation-delay: 0.5s; }
.wave-bars span:nth-child(7) { animation-delay: 0.6s; }
.wave-bars span:nth-child(8) { animation-delay: 0.7s; }
.wave-bars span:nth-child(9) { animation-delay: 0.8s; }

@keyframes wave-anim {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.wave-stand { margin: 0 auto; width: 30%; height: 8px; background: #333; border-radius: 0 0 4px 4px; }

/* News */
.news-browser { width: 100%; height: 100%; display: flex; flex-direction: column; }

.news-bar {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(155, 107, 255, 0.04);
  border-radius: 4px;
}
.news-bar span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.news-bar span:first-child { background: #ff5f57; }
.news-bar span:nth-child(2) { background: #febc2e; }
.news-bar span:nth-child(3) { background: #28c840; }

.news-hero {
  flex: 1;
  margin: 6px 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a1535 0%, #0c0820 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Рамка-аксент бренда, цвет цикличиски меняется синхронно со свотчами */
  border: 2px solid #7b3fe4;
  animation: news-hero-brand 6s linear infinite;
}

@keyframes news-hero-brand {
  0%,  18%   { border-color: #7b3fe4; }
  20%, 38%   { border-color: #21BA72; }
  40%, 58%   { border-color: #ff5f57; }
  60%, 78%   { border-color: #febc2e; }
  80%, 98%   { border-color: #3b82f6; }
  100%       { border-color: #7b3fe4; }
}
.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px circle at 30% 40%, rgba(155, 107, 255, 0.35), transparent 50%),
    radial-gradient(400px circle at 80% 70%, rgba(76, 29, 149, 0.25), transparent 50%);
}
.news-play {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.news-play svg { width: 14px; height: 14px; margin-left: 2px; }

.news-text { display: flex; flex-direction: column; gap: 3px; }
.news-text span { height: 5px; border-radius: 2px; background: rgba(155, 107, 255, 0.16); }
.news-text span:nth-child(2) { width: 80%; }
.news-text span:nth-child(3) { width: 60%; background: rgba(155, 107, 255, 0.08); }

.case-body .case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--okko-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.1);
  border: 1px solid rgba(155, 107, 255, 0.22);
  margin-bottom: 12px;
}

.case-body .case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.case-body .case-tags .case-tag { margin-bottom: 0; }

/* Вторичный чип — индустрия (фиолетовый, как и основной) */
.case-tag-ind {
  /* унаследует все стили .case-tag — отдельных переопределений не нужно */
}

.case-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.case-body p { font-size: 14px; color: var(--text-3); line-height: 1.5; }

/* Case metrics (business outcome chips) */
.case-metrics {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.case-metric {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(155, 107, 255, 0.05);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.case-metric strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.case-metric span {
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Tools used by case — chips at the bottom of each case body */
.case-tools {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.case-tools-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 8px;
}

.case-tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tool {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.08);
  border: 1px solid rgba(155, 107, 255, 0.2);
  color: var(--okko-3);
  letter-spacing: -0.005em;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.case:hover .case-tool {
  background: rgba(155, 107, 255, 0.14);
  border-color: rgba(155, 107, 255, 0.35);
  color: var(--okko-4);
}

/* E-Com case mockup */
.ecom-mock {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecom-card {
  width: 60%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(155, 107, 255, 0.2);
  color: #1a0b3d;
  z-index: 2;
  animation: ecom-float 5s ease-in-out infinite;
}

@keyframes ecom-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

.ecom-media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 40%, rgba(155, 107, 255, 0.45), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(76, 29, 149, 0.45), transparent 50%),
    linear-gradient(135deg, #2d1b5c, #0a0618);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecom-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 0, 0, 0.95);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ecom-rec {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.2s ease-in-out infinite;
}

.ecom-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  animation: mock-play-pulse 3s ease-in-out infinite;
}
.ecom-play svg { width: 13px; height: 13px; margin-left: 2px; }

.ecom-content {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ecom-title-bar {
  height: 6px;
  border-radius: 3px;
  background: #e9e5f2;
  width: 85%;
}
.ecom-title-bar.short { width: 55%; background: #f0ecf7; }

.ecom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.ecom-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a0b3d;
  letter-spacing: -0.02em;
}

.ecom-btn {
  font-size: 9.5px;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px -4px rgba(123, 63, 228, 0.5);
}

.ecom-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(155, 107, 255, 0.12), transparent 60%);
  animation: ecom-halo 4s ease-in-out infinite;
}

@keyframes ecom-halo {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* Partner watermark */
.partner-watermark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
  background: #7b3fe4;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  /* Лого-пилюля тоже меняет фон в такт со свотчами и рамкой */
  animation: news-watermark-brand 6s linear infinite;
}

@keyframes news-watermark-brand {
  0%,  18%   { background: #7b3fe4; }
  20%, 38%   { background: #21BA72; }
  40%, 58%   { background: #ff5f57; color: #1a0826; }
  60%, 78%   { background: #febc2e; color: #1a0826; }
  80%, 98%   { background: #3b82f6; }
  100%       { background: #7b3fe4; }
}

/* Multi-Platform mock — TV слева, телефон с TikTok-лентой по центру, ноутбук справа */
.mp-solo {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* TV слева — длинное горизонтальное видео */
.mp-tv {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 28%;
  z-index: 1;
  animation: dvc-float 5s ease-in-out infinite;
}
.mp-tv-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px 6px 2px 2px;
  border: 2px solid #1c1638;
  background: linear-gradient(135deg, #2a1559 0%, #14072e 60%, #0a0418 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(155, 107, 255, 0.1);
}
.mp-tv-stand {
  margin: 4px auto 0;
  width: 26%;
  height: 5px;
  background: linear-gradient(180deg, #2a1f4a, #14092e);
  border-radius: 0 0 4px 4px;
}

/* Ноутбук справа — длинное горизонтальное видео */
.mp-laptop {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 32%;
  z-index: 1;
  animation: dvc-float 5s ease-in-out infinite -2s;
}
.mp-laptop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px 6px 0 0;
  border: 2px solid #1c1638;
  border-bottom: none;
  background: linear-gradient(135deg, #2a1559 0%, #14072e 60%, #0a0418 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(155, 107, 255, 0.1);
}
.mp-laptop-base {
  width: 114%;
  margin-left: -7%;
  height: 5px;
  background: linear-gradient(180deg, #2a1f4a, #14092e);
  border: 1.5px solid #1c1638;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5);
}

/* Контент экрана TV/laptop — play + прогресс-бар "длинного" видео */
.mp-tv-content {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(179, 136, 255, 0.4), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(76, 29, 149, 0.5), transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-tv-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px);
}
.mp-tv-play {
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a0b3d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.mp-tv-play svg { width: 50%; height: 50%; margin-left: 6%; }
.mp-tv-bar {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  overflow: hidden;
  z-index: 2;
}
.mp-tv-bar > div {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: #fff;
  border-radius: 2px;
  animation: mp-tv-scrub 6s linear infinite;
}
@keyframes mp-tv-scrub {
  0%   { width: 0; }
  100% { width: 100%; }
}

.mp-solo .devices-beam {
  position: absolute;
  inset: -10%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0%, rgba(255, 100, 180, 0.18) 18%, transparent 36%,
    rgba(155, 107, 255, 0.22) 60%, transparent 80%);
  animation: beam-spin 10s linear infinite;
  filter: blur(28px);
  z-index: 0;
}

.mp-phone {
  position: relative;
  z-index: 3;
  height: 80%;
  aspect-ratio: 9 / 19;
  border-radius: 22px;
  border: 3px solid #1c1638;
  background: #0a0618;
  padding: 6px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -16px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(155, 107, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: mp-phone-float 5s ease-in-out infinite -1s;
}

@keyframes mp-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mp-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 7px;
  border-radius: 100px;
  background: #1c1638;
  z-index: 5;
}

.mp-phone-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #050309;
}

.mp-phone-track {
  position: absolute;
  inset: 0;
  height: 400%;
  display: flex;
  flex-direction: column;
  animation: reels-scroll 12s cubic-bezier(0.83, 0, 0.17, 1) infinite;
  will-change: transform;
}

.mp-clip {
  width: 100%;
  height: 25%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mp-c1 {
  background:
    radial-gradient(ellipse 120% 80% at 30% 25%, rgba(179, 136, 255, 0.9), transparent 65%),
    radial-gradient(ellipse 120% 80% at 75% 80%, rgba(123, 63, 228, 0.95), transparent 65%),
    linear-gradient(180deg, #4c1d95 0%, #1a0826 100%);
}
.mp-c2 {
  background:
    radial-gradient(ellipse 120% 80% at 60% 20%, rgba(255, 100, 180, 0.85), transparent 65%),
    radial-gradient(ellipse 120% 80% at 25% 75%, rgba(123, 63, 228, 0.95), transparent 65%),
    linear-gradient(180deg, #7b1d57 0%, #1a0826 100%);
}
.mp-c3 {
  background:
    radial-gradient(ellipse 120% 80% at 40% 35%, rgba(33, 186, 114, 0.85), transparent 65%),
    radial-gradient(ellipse 120% 80% at 80% 85%, rgba(123, 63, 228, 0.9), transparent 65%),
    linear-gradient(180deg, #0a584a 0%, #1a0826 100%);
}
.mp-c4 {
  background:
    radial-gradient(ellipse 120% 80% at 20% 35%, rgba(255, 165, 60, 0.85), transparent 65%),
    radial-gradient(ellipse 120% 80% at 80% 70%, rgba(179, 136, 255, 0.95), transparent 65%),
    linear-gradient(180deg, #7a4a13 0%, #2a0826 100%);
}

/* Полоски — текстура «видео» */
.mp-clip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent, transparent 3px, rgba(255, 255, 255, 0.04) 3px, rgba(255, 255, 255, 0.04) 4px);
  pointer-events: none;
}

/* Боковые экшены (♥, share, цифра лайков) */
.mp-side {
  position: absolute;
  right: 7px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 3;
}

.mp-act {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}

.mp-heart {
  color: #ff4581;
}

.mp-num {
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  margin-top: -4px;
  margin-bottom: 2px;
}

/* Прогресс-бар внизу — заполняется за 3 сек циклом */
.mp-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  overflow: hidden;
  z-index: 3;
}
.mp-progress > div {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: #fff;
  border-radius: 2px;
  animation: reel-fill 3s linear infinite;
}

/* старые devices-* для этого кейса не используются, но оставляю CSS на случай */
.devices-mock {
  position: absolute;
  inset: 0;
  padding: 0;
  overflow: hidden;
  display: block;
}

.devices-beam {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(155, 107, 255, 0.2) 20%, transparent 40%, rgba(76, 29, 149, 0.15) 60%, transparent 80%);
  animation: beam-spin 8s linear infinite;
  filter: blur(20px);
}

@keyframes beam-spin { to { transform: rotate(360deg); } }

.dvc {
  position: absolute;
  animation: dvc-float 5s ease-in-out infinite;
}

.dvc-screen {
  background: linear-gradient(135deg, #1a0b3d, #0a0618);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(155, 107, 255, 0.4), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(76, 29, 149, 0.5), transparent 50%);
  border: 1.5px solid var(--border-2);
  border-radius: 6px;
  position: relative;
}

.dvc-screen::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  clip-path: polygon(30% 20%, 80% 50%, 30% 80%);
}

/* TV (center back) */
.dvc-tv {
  width: 55%;
  left: 22.5%;
  top: 28%;
  z-index: 1;
}
.dvc-tv .dvc-screen {
  aspect-ratio: 16 / 10;
  border-radius: 8px 8px 2px 2px;
  border-width: 2px;
}
.dvc-tv .dvc-stand {
  margin: 0 auto;
  width: 26%;
  height: 7%;
  aspect-ratio: 4/1;
  background: #222;
  border-radius: 0 0 3px 3px;
}

/* Laptop (front center) */
.dvc-laptop {
  width: 42%;
  left: 29%;
  bottom: 8%;
  z-index: 3;
  animation-delay: -1s;
}
.dvc-laptop .dvc-screen {
  aspect-ratio: 16 / 10;
  border-radius: 5px 5px 0 0;
}
.dvc-laptop .dvc-base {
  width: 116%;
  margin-left: -8%;
  height: 7%;
  aspect-ratio: 16 / 1;
  background: linear-gradient(180deg, #1a1535, #0a0618);
  border: 1.5px solid var(--border-2);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Phone (right) */
.dvc-phone {
  width: 12%;
  right: 12%;
  top: 42%;
  z-index: 4;
  animation-delay: -2s;
}
.dvc-phone .dvc-screen {
  aspect-ratio: 9 / 16;
  border-radius: 7px;
  border-width: 1.5px;
}

/* Tablet (left) */
.dvc-tablet {
  width: 22%;
  left: 8%;
  top: 34%;
  z-index: 2;
  transform: rotate(-4deg);
  animation-delay: -3s;
}
.dvc-tablet .dvc-screen {
  aspect-ratio: 10 / 14;
  border-radius: 6px;
  border-width: 1.5px;
}

@keyframes dvc-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-6px) rotate(var(--r, 0deg)); }
}

.dvc-tablet { --r: -4deg; }

/* Phone shows vertical reel (TikTok-style) */
.mp-reel {
  background:
    radial-gradient(ellipse 100% 80% at 30% 30%, rgba(255, 100, 180, 0.65), transparent 60%),
    radial-gradient(ellipse 100% 80% at 70% 75%, rgba(179, 136, 255, 0.7), transparent 60%),
    linear-gradient(180deg, #6e1d4f 0%, #1a0826 100%) !important;
}
.mp-reel::after {
  /* Reel и так понятно «играет» через ♥ + progress — play-треугольник из .dvc-screen скрываем */
  display: none;
}

.mp-reel-like {
  position: absolute;
  right: 5px;
  bottom: 14px;
  font-size: 8px;
  color: #ff4581;
  text-shadow: 0 0 4px rgba(255, 69, 129, 0.6);
  z-index: 3;
  animation: mp-reel-heart 2.4s ease-in-out infinite;
}
@keyframes mp-reel-heart {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; }
}

.mp-reel-progress {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 1px;
  overflow: hidden;
  z-index: 3;
  display: block;
}
.mp-reel-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 1px;
  animation: zv-scrub 4s linear infinite;
}

/* Scale case */
.scale-mock {
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.scale-graph {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
}

.scale-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: scale-draw 3s ease-out forwards;
}

@keyframes scale-draw { to { stroke-dashoffset: 0; } }

.scale-peak {
  animation: scale-peak-pulse 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes scale-peak-pulse {
  0%, 100% { r: 3; opacity: 1; }
  50% { r: 6; opacity: 0.5; }
}

.scale-badge {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(10, 6, 20, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(155, 107, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 10px 30px -8px rgba(123, 63, 228, 0.4);
}

.scale-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scale-sub {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .cases { grid-template-columns: 1fr 1fr; }
  .case:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 560px) { .cases { grid-template-columns: 1fr; } }

/* ================= Featured case — СберЗвук × Okko ================= */
.featured-case {
  position: relative;
  overflow: hidden;
  padding: 100px 0 140px;
}

.featured-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px circle at 15% 30%, rgba(33, 186, 114, 0.13), transparent 55%),
    radial-gradient(700px circle at 85% 70%, rgba(123, 63, 228, 0.18), transparent 55%);
}

.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 16, 42, 0.85) 0%, rgba(10, 6, 24, 0.92) 100%);
  border: 1px solid var(--border-2);
  padding: 64px 64px 56px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 186, 114, 0.4) 25%, rgba(123, 63, 228, 0.6) 75%, transparent);
}

.featured-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.featured-brands {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.06);
  border: 1px solid var(--border);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.012em;
  color: var(--text);
}
.brand-mark svg,
.brand-mark img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
}

.brand-x {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-3);
  letter-spacing: -0.02em;
}

.featured-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(33, 186, 114, 0.1);
  border: 1px solid rgba(33, 186, 114, 0.28);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4dd591;
}
.featured-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #21BA72;
  box-shadow: 0 0 8px #21BA72;
  animation: pulse-dot-green 2s ease-in-out infinite;
}
@keyframes pulse-dot-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.featured-title {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}

.featured-lead {
  font-size: clamp(15px, 1.15vw, 17.5px);
  color: var(--text-2);
  max-width: 660px;
  line-height: 1.6;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}

/* Скриншоты UI Звука — с прозрачным фоном, сидят прямо на тёмном фоне лендинга */
.featured-screens {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  margin: 44px 0 36px;
  align-items: center;
}

.zvuk-screen {
  margin: 0;
  padding: 32px 28px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 16, 42, 0.55) 0%, rgba(10, 6, 20, 0.7) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Лёгкое внутреннее свечение, как у featured-card */
.zvuk-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 107, 255, 0.35) 50%, transparent);
  opacity: 0.6;
}

.zvuk-screen:hover {
  border-color: rgba(155, 107, 255, 0.3);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5),
              0 0 40px -10px rgba(155, 107, 255, 0.18);
}

.zvuk-screen img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s var(--ease);
}

.zvuk-screen:hover img {
  transform: translateY(-2px);
}

.zvuk-screen figcaption {
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.005em;
  text-align: center;
  line-height: 1.45;
  max-width: 320px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ===== Лаптоп с Видеоволной ===== */
.zv-laptop {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zv-laptop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px 10px 4px 4px;
  border: 8px solid #1c1638;
  background: linear-gradient(135deg, #2a1559 0%, #14072e 60%, #0a0418 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(155, 107, 255, 0.1);
}

.zv-tv-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 28% 38%, rgba(179, 136, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 40% 35% at 70% 25%, rgba(255, 100, 180, 0.32), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(76, 29, 149, 0.4), transparent 60%);
}

.zv-tv-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent, transparent 3px, rgba(255, 255, 255, 0.025) 3px, rgba(255, 255, 255, 0.025) 4px);
}

.zv-tv-track {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.zv-tv-cover {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6b9d, #b91072);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.zv-tv-meta {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}
.zv-tv-meta em {
  font-style: normal;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.zv-tv-brand {
  position: absolute;
  top: 16px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  z-index: 2;
}

.zv-brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #21BA72 0%, #0FA180 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px -2px rgba(33, 186, 114, 0.6);
}
.zv-brand-mark svg { width: 12px; height: 12px; }

.zv-tv-content {
  position: absolute;
  bottom: 26px;
  left: 22px;
  max-width: 60%;
  z-index: 2;
  color: #fff;
}

.zv-tv-content h4 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  line-height: 1;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.zv-tv-content p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.zv-tv-buttons {
  display: flex;
  gap: 6px;
}

.zv-tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.zv-tv-btn svg { width: 10px; height: 10px; }
.zv-tv-btn.primary {
  background: linear-gradient(135deg, #b388ff 0%, #7b3fe4 100%);
  border-color: rgba(179, 136, 255, 0.55);
  box-shadow: 0 6px 18px -4px rgba(123, 63, 228, 0.55);
}

.zv-tv-scrub {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  overflow: hidden;
  z-index: 2;
}
.zv-tv-scrub > div {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
  animation: zv-scrub 8s linear infinite;
}
@keyframes zv-scrub { to { width: 100%; } }

.zv-laptop-base {
  width: 112%;
  height: 6px;
  margin-top: -2px;
  background: linear-gradient(180deg, #1c1638 0%, #0a0618 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.5);
}

/* ===== Три телефона с клипами ===== */
.zv-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
}

.zv-phone {
  flex: 1;
  max-width: 90px;
  aspect-ratio: 9 / 19;
  border-radius: 16px;
  border: 2.5px solid #1c1638;
  position: relative;
  overflow: hidden;
  background: #0a0618;
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(155, 107, 255, 0.1);
}

.zv-phone-2 { transform: translateY(-6px); }

.zv-phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  border-radius: 100px;
  background: #1c1638;
  z-index: 5;
}

.zv-phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.zv-phone-1 .zv-phone-screen {
  background: linear-gradient(180deg, #3a1559 0%, #0a0618 75%);
}
.zv-phone-2 .zv-phone-screen {
  background: linear-gradient(180deg, #6e1d4f 0%, #1a0826 75%);
}
.zv-phone-3 .zv-phone-screen {
  background: linear-gradient(180deg, #7a5a13 0%, #2a0826 75%);
}

.zv-mob-top {
  padding: 12px 8px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}
.zv-mob-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--okko-3);
  flex-shrink: 0;
}
.zv-mob-meta {
  display: flex;
  flex-direction: column;
  font-size: 6.5px;
  line-height: 1.15;
  font-weight: 600;
}
.zv-mob-meta em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 5.5px;
  font-weight: 400;
}

.zv-mob-art {
  flex: 1;
  margin: 4px 6px 6px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.zv-phone-1 .zv-mob-art {
  background:
    radial-gradient(circle at 30% 30%, rgba(179, 136, 255, 0.65), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(76, 29, 149, 0.7), transparent 60%),
    linear-gradient(135deg, #4c1d95 0%, #1a0826 100%);
}
.zv-phone-2 .zv-mob-art {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 180, 200, 0.55), transparent 60%),
    radial-gradient(circle at 25% 80%, rgba(255, 100, 150, 0.6), transparent 60%),
    linear-gradient(135deg, #b91072 0%, #2a0826 100%);
}
.zv-phone-3 .zv-mob-art {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 200, 100, 0.55), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 230, 130, 0.45), transparent 60%),
    linear-gradient(135deg, #7a4a13 0%, #2a0826 100%);
}

.zv-mob-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px);
}

.zv-mob-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 100px;
  font-size: 6.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  z-index: 2;
}
.zv-mob-cta svg { width: 7px; height: 7px; }

.zv-mob-bottom {
  padding: 0 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zv-mob-progress {
  height: 1.5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1px;
  overflow: hidden;
}
.zv-mob-progress > div {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 1px;
  animation: zv-scrub 6s linear infinite;
}

.zv-mob-ctrls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 2px;
}

@media (max-width: 880px) {
  .featured-screens { grid-template-columns: 1fr; }
  .zv-phone { max-width: 100px; }
}
@media (max-width: 480px) {
  .zv-phones { gap: 6px; }
  .zv-phone { max-width: 80px; }
}

.featured-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fact {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 18px;
  background: rgba(155, 107, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.fact:hover {
  background: rgba(155, 107, 255, 0.07);
  border-color: rgba(155, 107, 255, 0.3);
  box-shadow: 0 14px 28px -10px rgba(0,0,0,0.35);
}

.fact-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--okko-2);
}

.fact-body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text);
}

.fact-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
  letter-spacing: -0.003em;
}

@media (max-width: 980px) {
  .featured-card { padding: 44px 28px 36px; }
  .featured-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .featured-facts { grid-template-columns: 1fr; }
  .featured-brands { padding: 8px 16px; gap: 12px; }
  .brand-mark { font-size: 14px; }
}

/* ================= Integration / Steps ================= */
.integration .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step {
  position: relative;
  padding: 36px 32px 40px;
  border-radius: var(--radius);
  background: rgba(155, 107, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.step:hover {
  background: rgba(155, 107, 255, 0.05);
  border-color: rgba(155, 107, 255, 0.3);
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.4);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px -6px rgba(123, 63, 228, 0.5);
  font-family: 'JetBrains Mono', monospace;
}

.step h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.step p { font-size: 14.5px; color: var(--text-3); line-height: 1.55; }

.step-line {
  position: absolute;
  top: 62px;
  right: -28px;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-2), transparent);
}

@media (max-width: 900px) {
  .integration .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
}

/* ================= Pricing ================= */
.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #14102a 0%, #0a0618 100%);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.price:hover {
  border-color: rgba(155, 107, 255, 0.3);
  background: linear-gradient(180deg, #181232 0%, #0c081c 100%);
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.4);
}

.price-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--okko-2);
  background: rgba(155, 107, 255, 0.1);
  border: 1px solid rgba(155, 107, 255, 0.22);
  border-radius: 14px;
  margin-bottom: 22px;
  z-index: 1;
}
.price-icon svg { width: 26px; height: 26px; }

.price h3 {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  z-index: 1;
}

.price p {
  position: relative;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
  z-index: 1;
}

@media (max-width: 920px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .prices { grid-template-columns: 1fr; } }

/* ================= Extras ================= */
.extras { position: relative; overflow: hidden; }

.extras-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(155, 107, 255, 0.14), transparent 50%),
    radial-gradient(600px circle at 80% 80%, rgba(76, 29, 149, 0.12), transparent 50%);
  pointer-events: none;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.extra {
  position: relative;
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #14102a 0%, #0a0618 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  min-height: 280px;
}

.extra:hover { transform: translateY(-6px); border-color: rgba(155, 107, 255, 0.3); }

.extra-pulse {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 107, 255, 0.22), transparent 70%);
  filter: blur(24px);
  opacity: 0.55;
  transition: opacity 0.4s;
}

.extra-pulse-2 { background: radial-gradient(circle, rgba(76, 29, 149, 0.22), transparent 70%); }
.extra-pulse-3 { background: radial-gradient(circle, rgba(179, 136, 255, 0.22), transparent 70%); }

.extra:hover .extra-pulse { opacity: 0.95; }

.extra-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--okko-2);
  padding: 5px 11px;
  border-radius: 4px;
  background: rgba(155, 107, 255, 0.1);
  margin-bottom: 22px;
}

.extra h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
  position: relative;
}

.extra p { font-size: 14.5px; color: var(--text-3); line-height: 1.55; position: relative; }

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

/* ================= Contact ================= */
.contact {
  position: relative;
  overflow: hidden;
  padding: 120px 0 160px;
}

.contact-bg { position: absolute; inset: 0; pointer-events: none; }

.c-orb {
  position: absolute;
  border-radius: 50%;
  /* Без blur и без жёстких границ — мягкая радиалка с прозрачным краем,
     не клипается у границы секции */
  filter: none;
}

.c-orb-1 {
  top: 8%;
  left: 6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(123, 63, 228, 0.45) 0%, rgba(123, 63, 228, 0.18) 30%, transparent 70%);
}

.c-orb-2 {
  bottom: 8%;
  right: 6%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.5) 0%, rgba(76, 29, 149, 0.2) 30%, transparent 70%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.contact-text .section-title { margin-bottom: 22px; }
.contact-text p {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 60px;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-radius: 28px;
  background: rgba(20, 16, 42, 0.65);
  border: 1px solid var(--border);
  max-width: 640px;
  width: 100%;
  text-align: left;
}

.contact-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(123, 63, 228, 0.55);
}
.contact-avatar svg { width: 100%; height: 100%; }

.contact-person { flex: 1; }

.contact-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.contact-role {
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(155, 107, 255, 0.08);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.contact-link:hover {
  background: var(--okko);
  border-color: var(--okko);
  color: #fff;
  box-shadow: 0 8px 24px rgba(123, 63, 228, 0.45);
}

.contact-link svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .contact-card { flex-direction: column; text-align: center; }
  .contact-links { justify-content: center; }
}

/* ===== Lead form ===== */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin: 36px auto 0;
  text-align: left;
  background: linear-gradient(180deg, rgba(20, 16, 42, 0.85) 0%, rgba(10, 6, 24, 0.92) 100%);
  border: 1px solid var(--border-2);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lead-field input,
.lead-field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: rgba(155, 107, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  resize: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  letter-spacing: -0.005em;
}
.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: var(--text-4);
}
.lead-field input:focus,
.lead-field textarea:focus {
  border-color: var(--okko-2);
  background: rgba(155, 107, 255, 0.09);
}
.lead-field.invalid input,
.lead-field.invalid textarea {
  border-color: #ff5f57;
  background: rgba(255, 95, 87, 0.08);
}

.lead-full { grid-column: 1 / -1; }

.lead-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.lead-policy {
  font-size: 11.5px;
  color: var(--text-4);
  line-height: 1.4;
  max-width: 320px;
  margin: 0;
}

.lead-submit {
  padding: 13px 22px;
  font-size: 14px;
}
.lead-submit[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.lead-status {
  font-size: 13px;
  text-align: center;
  letter-spacing: -0.005em;
  min-height: 18px;
}
.lead-status[data-state="ok"] {
  color: #4dd591;
}
.lead-status[data-state="err"] {
  color: #ff7a7a;
}
.lead-status[data-state="loading"] {
  color: var(--text-3);
}

@media (max-width: 560px) {
  .lead-row { grid-template-columns: 1fr; }
  .lead-foot { flex-direction: column; align-items: stretch; }
  .lead-policy { max-width: none; }
  .lead-submit { justify-content: center; }
}

/* ================= Footer ================= */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner { max-width: var(--container); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo { display: flex; flex-direction: column; gap: 12px; }
.footer-logo .logo { margin-bottom: 4px; }
.footer-logo p {
  color: var(--text-3);
  font-size: 14px;
  max-width: 260px;
  line-height: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--okko-2); }

.footer-bot {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
  color: var(--text-4);
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bot { flex-direction: column; text-align: left; }
}

/* ================= Player demo modal ================= */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.player-modal[hidden] { display: none; }
.player-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.player-modal-shell {
  position: relative;
  width: min(95vw, 1480px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(0.95);
  transition: transform 0.35s var(--ease);
}
.player-modal.is-open .player-modal-shell {
  transform: scale(1);
}

.player-modal-body {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.player-modal-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: #0a0618;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(155, 107, 255, 0.18);
  aspect-ratio: 16 / 9;
  flex: 1 1 auto;
  min-width: 0;
}

/* ====== Controls sidebar справа от плеера ====== */
.player-modal-controls {
  width: 360px;
  flex: 0 0 360px;
  max-height: calc(min(92vw, 1480px) * 9 / 16 * 1); /* грубая привязка к высоте плеера */
  overflow-y: auto;
  background: linear-gradient(180deg, #14092e 0%, #0b061b 100%);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.75);
}
.player-modal-controls::-webkit-scrollbar { width: 8px; }
.player-modal-controls::-webkit-scrollbar-thumb {
  background: rgba(155, 107, 255, 0.35); border-radius: 4px;
}

.pmc-head-title {
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
}
.pmc-head-sub {
  font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px;
  line-height: 1.4;
}

.pmc-section {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(155, 107, 255, 0.12);
}
.pmc-section:first-of-type { border-top: 0; padding-top: 0; }
.pmc-section-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45); font-weight: 600;
}

/* Color picker row */
.pmc-color-row {
  display: flex; align-items: center; gap: 12px;
}
#pmcColor {
  width: 44px; height: 32px; border: 0; background: transparent;
  border-radius: 8px; cursor: pointer; padding: 0;
}
#pmcColor::-webkit-color-swatch-wrapper { padding: 0; }
#pmcColor::-webkit-color-swatch { border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; }
.pmc-color-presets {
  display: flex; gap: 6px; flex-wrap: wrap; flex: 1;
}
.pmc-preset {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15);
  background: var(--c); cursor: pointer; padding: 0;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.pmc-preset:hover { transform: scale(1.15); border-color: rgba(255,255,255,0.45); }

/* Toggles */
.pmc-toggles {
  display: flex; flex-direction: column; gap: 4px;
}
.pmc-toggle {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; padding: 7px 10px;
  border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,0.03);
  transition: background 0.15s var(--ease);
  user-select: none;
}
.pmc-toggle:hover { background: rgba(155, 107, 255, 0.1); }
.pmc-toggle input {
  appearance: none; -webkit-appearance: none;
  width: 32px; height: 18px; border-radius: 99px;
  background: rgba(255,255,255,0.12); position: relative; cursor: pointer;
  transition: background 0.2s var(--ease);
  flex-shrink: 0;
}
.pmc-toggle input::before {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform 0.2s var(--ease);
}
.pmc-toggle input:checked { background: var(--okko-2); }
.pmc-toggle input:checked::before { transform: translateX(14px); }
.pmc-toggle span { flex: 1; padding-right: 10px; }

/* postMessage action buttons */
.pmc-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
}
.pmc-action {
  font-size: 12px; padding: 9px 6px; border-radius: 9px;
  border: 1px solid rgba(155, 107, 255, 0.25);
  background: rgba(155, 107, 255, 0.08);
  color: #fff; cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.pmc-action:hover { background: rgba(155, 107, 255, 0.22); }
.pmc-action:active { transform: scale(0.97); }
.pmc-actions-hint {
  font-size: 10.5px; color: rgba(255,255,255,0.4); margin-top: 6px; line-height: 1.45;
}
.pmc-actions-hint code {
  background: rgba(255,255,255,0.07); padding: 1px 5px; border-radius: 4px;
  font-size: 10px;
}

/* URL preview */
.pmc-section-url { padding-bottom: 4px; }
.pmc-url {
  width: 100%; box-sizing: border-box;
  background: rgba(0,0,0,0.35); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; line-height: 1.45;
  padding: 8px 10px; resize: vertical;
  min-height: 80px; max-height: 200px;
}
.pmc-copy {
  font-size: 11px; padding: 7px 12px; border-radius: 8px;
  background: rgba(155, 107, 255, 0.15);
  border: 1px solid rgba(155, 107, 255, 0.3);
  color: #fff; cursor: pointer; align-self: flex-start;
  transition: background 0.15s var(--ease);
}
.pmc-copy:hover { background: rgba(155, 107, 255, 0.28); }
.pmc-copy.is-copied { background: rgba(52, 199, 89, 0.25); border-color: rgba(52, 199, 89, 0.5); }

/* Адаптив: на узких экранах sidebar уходит под плеер */
@media (max-width: 1100px) {
  .player-modal-shell { width: min(95vw, 880px); }
  .player-modal-body { flex-direction: column; }
  .player-modal-controls {
    width: auto; flex: 1 1 auto; max-height: 50vh;
  }
}

/* Статус загрузки плеера — поверх iframe, прячется когда придёт ready */
.player-modal-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: #0a0618;
  transition: opacity 0.3s var(--ease);
}
.player-modal-status.is-ready,
.player-modal-status.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.player-modal-status.is-error {
  opacity: 1;
  pointer-events: auto;
}

.player-modal-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(155, 107, 255, 0.18);
  border-top-color: var(--okko-2);
  animation: pm-spin 0.9s linear infinite;
}
.player-modal-status.is-error .player-modal-spinner {
  display: none;
}

@keyframes pm-spin { to { transform: rotate(360deg); } }

.player-modal-status-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.player-modal-status.is-error .player-modal-status-text {
  color: #ff7a7a;
}

.player-modal-status-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 440px;
}

._player_yqr0g_13,
._player-wrapper_yqr0g_1 {
  width: 100%;
  height: 100%;
  position: relative;
}

._player_1y4v9_1,
.player-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.player-modal-close {
  position: absolute;
  top: -42px;
  right: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(155, 107, 255, 0.12);
  border: 1px solid var(--border-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  z-index: 2;
}
.player-modal-close svg { width: 16px; height: 16px; }
.player-modal-close:hover {
  background: var(--okko);
  border-color: var(--okko);
  color: #fff;
  transform: rotate(90deg);
}

.player-modal-foot {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  letter-spacing: 0.005em;
  padding: 0 10px;
}

@media (max-width: 640px) {
  .player-modal-shell { width: 94vw; }
  .player-modal-close { top: -38px; }
}

/* ================= Perf: content-visibility on below-fold sections ================= */
.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .orb, .c-orb, .extra-pulse, .pulse, .pulse::before,
  .live-dot span, .live-bars span, .wave-bars span,
  .mock-play, .player-play, .ping, .node-main circle,
  .clip, .f-react-emoji, .f-custom-palette span,
  .mock-scrubber-fill, .player-progress-fill,
  .scale-peak, .scale-line, .f-ana-chart svg path:last-child {
    animation: none !important;
  }
}

/* ================= Perf: reduce effects on small/low-power screens ================= */
@media (max-width: 860px), (pointer: coarse) {
  .orb, .c-orb { filter: blur(40px); }
  .extra-pulse { filter: blur(18px); }
  .cursor { display: none; }
  .scroll-hint { display: none; }
  .hero-orbs .orb-3 { display: none; }
  .hero-grid { display: none; }
}
