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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-padding-top: var(--header-height, 72px);
}

@media (min-width: 769px) {
  html {
    scroll-snap-type: y proximity;
  }

  /* Hero uses a JS-driven sticky animation — exclude it from snap
     so the scroll-back is smooth without a proximity-triggered jump */
  .section,
  .pricing-page-hero,
  .business-page-hero,
  .business-vertical,
  .business-platform,
  .features-page-hero,
  .feature-detail,
  .nodes-page-hero,
  .nodes-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  footer.site-footer {
    scroll-snap-align: end;
  }
}


html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--base-font-size);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 0; /* header is floating/transparent, no push needed */
  transition: background 0.25s ease, color 0.25s ease;
  -ms-overflow-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  margin: 10px;
}

/* ── Custom scroll indicator ────────────────────────── */

.scroll-indicator {
  position: fixed;
  top: 12px;
  right: 8px;
  z-index: 220;
  width: 4px;
  height: calc(100dvh - 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.scroll-indicator.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-indicator.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.scroll-indicator__track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-color) 55%, transparent);
}

.scroll-indicator__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(0);
  cursor: grab;
  touch-action: none;
  will-change: transform, height;
}

.scroll-indicator__thumb.is-dragging {
  cursor: grabbing;
  background: var(--accent-hover);
}

@media (max-width: 768px) {
  .scroll-indicator {
    right: 4px;
    width: 3px;
  }

  .scroll-indicator__thumb {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    transition: none;
  }
}

/* ── Header ─────────────────────────────────────────── */

/* ── Site header ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  /* transparent — no bg strip */
  background: transparent;
  pointer-events: none; /* let children handle events */
}

/* All clickable children need pointer-events back */
.site-header > * { pointer-events: auto; }

/* Logo — dark pill so it's always visible on any bg */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: rgba(12,12,12,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}
.brand span { opacity: 0.9; }

/* Floating pill nav — centered, always dark */
.top-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(12,12,12,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px;
  pointer-events: auto;
}

.top-nav a {
  color: rgba(255,255,255,0.5);
  padding: 7px 16px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.top-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.top-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
}

/* Right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  background: #c8ff00;
  color: #000;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
  /* dark shadow so it stands out on light bg too */
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.btn-login:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.theme-toggle-btn {
  width: 72px;
  height: 38px;
  border-radius: 38px;
  background: #383838;
  border: 1px solid #464646;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.theme-toggle-btn:hover {
  background: #464646;
}

.theme-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 9px;
  box-sizing: border-box;
}

.theme-slider-track .track-icon {
  color: #888888;
  z-index: 1;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.theme-slider-thumb {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D6FF3F;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.3s ease;
  z-index: 2;
}

.theme-slider-thumb .thumb-icon {
  width: 15px;
  height: 15px;
  color: #111;
  fill: none;
  stroke: #111;
}

.theme-slider-thumb .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-slider-thumb .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  padding: 24px;
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.mobile-menu-links a {
  font-size: 18px;
  font-weight: 400;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
  background-color: #09090b;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 70vw;
  max-width: 960px;
  max-height: 700px;
  background: radial-gradient(ellipse at center, rgba(190, 255, 0, 0.09) 0%, rgba(180, 255, 0, 0.03) 45%, transparent 70%);
  filter: blur(60px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-glow-2 {
  top: 20%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(ellipse at center, rgba(214, 255, 63, 0.05) 0%, transparent 65%);
  filter: blur(80px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 30;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background-color: rgba(214, 255, 63, 0.06);
  border: 1px solid rgba(214, 255, 63, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(30px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(13px, 1.3vw, 16px);
  color: rgba(255, 255, 255, 0.45);
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Hero models ticker ─────────────────────────────── */

.hero-models {
  margin-top: 36px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero-models-label {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.hero-models-scroll {
  overflow: hidden;
}

.hero-models-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: modelsScroll 28s linear infinite;
}

.hero-models:hover .hero-models-track {
  animation-play-state: paused;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: default;
  user-select: none;
}

.model-chip:hover {
  border-color: rgba(214, 255, 63, 0.3);
  color: rgba(214, 255, 63, 0.75);
}

@keyframes modelsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Hero Collage Redesign ─────────────────────────────── */

/* ── Sticky scroll wrapper ────────────────────────────────── */
.hero-scroll-wrap {
  /* 100vh hero + 70vh pin time = 170vh total */
  height: 170vh;
  position: relative;
  /* No snap here — hero ↔ choose-section transition is JS-driven */
}

.hero.hero-collage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #0c0c0c;
  /* overflow: visible so hcards that extend beyond bounds are NOT clipped */
  overflow: visible;
  will-change: transform, opacity, border-radius;
  transform-origin: top center;
  /* Cushion the JS-driven values so trackpad flicks don't cause
     visible frame drops; keep very short so it doesn't lag on scroll */
  transition: opacity 60ms linear, transform 60ms linear;
}

/* Vignette: darkens center for text legibility, cards unaffected */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 58%,
    transparent 100%);
}

/* Subtle brand ambient glow - positioned centrally, very low opacity */
.hero-ambient {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.035) 0%, transparent 65%);
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
}

/* Node graph decorative SVG */
.hero-nodegraph {
  position: absolute;
  top: 8%;
  right: 3%;
  width: 20vw;
  height: 30vw;
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}

/* ── Card base ───────────────────────────────────────────── */

.hcard {
  position: absolute;
  margin: 0;
  padding: 0;
  /* Entrance hover transition — disabled during scroll via .hero-scrolling */
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease,
              opacity 0.3s ease;
  will-change: transform, opacity;
}

/* When scrolling: remove transition so JS drive is frame-perfect */
.hero-scrolling .hcard {
  transition: none;
}

.hcard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  /* Premium floating shadow: 4 layers for depth */
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 10px 28px rgba(0, 0, 0, 0.48),
    0 28px 64px rgba(0, 0, 0, 0.38),
    0 56px 100px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Subtle top-edge shimmer on each card */
.hcard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

/* Label: unified - always top-left, same size, same radius */
.hcard-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(4, 4, 4, 0.88);
  color: #d6ff3f;
  border: 1px solid rgba(214, 255, 63, 0.3);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2;
}

/* ── Isometric tilt classes ──────────────────────────────── */
/* Left cards lean toward center (positive rotateY)           */
/* Right cards lean toward center (negative rotateY)          */
/* All share the same perspective and rotateX for unity       */

/* Tilt classes: only set default transform as fallback.
   Individual cards override default via per-card rules (defined later).
   Hover: card "faces" the viewer - rotateZ snaps to 0 for polish. */

.hcard--tilt-r {
  transform: perspective(1000px) rotateY(9deg) rotateX(3deg) rotateZ(-5deg);
}

.hcard--tilt-r:hover {
  transform: perspective(1000px) rotateY(1deg) rotateX(0deg) rotateZ(0deg) translateY(-10px) !important;
}

.hcard--tilt-l {
  transform: perspective(1000px) rotateY(-9deg) rotateX(3deg) rotateZ(5deg);
}

.hcard--tilt-l:hover {
  transform: perspective(1000px) rotateY(-1deg) rotateX(0deg) rotateZ(0deg) translateY(-10px) !important;
}

/* ── Card 1 - character concept, top-far-left ───────────── */
.hcard-char {
  width: 17vw;
  height: 17vw;
  top: 5%;
  left: 0%;
  z-index: 2;
  transform: perspective(1000px) rotateY(8deg) rotateX(2deg) rotateZ(-7deg);
}

/* ── Card 2 - banner, top center-left, clear of char ───── */
.hcard-banner {
  width: 10vw;
  height: 13vw;
  top: -3%;
  left: 25%;
  z-index: 2;
  transform: perspective(1000px) rotateY(6deg) rotateX(2deg) rotateZ(5deg);
}

/* ── Card 3 - portrait, mid-left, away from char ────────── */
.hcard-portrait {
  width: 10vw;
  height: 10vw;
  top: 58%;
  left: 2%;
  z-index: 3;
  transform: perspective(1000px) rotateY(9deg) rotateX(3deg) rotateZ(-5deg);
}

/* ── Card 4 - fashion, top-right, tall ──────────────────── */
.hcard-fashion {
  width: 13vw;
  height: 18vw;
  top: 3%;
  right: 0%;
  z-index: 2;
  transform: perspective(1000px) rotateY(-9deg) rotateX(2deg) rotateZ(8deg);
}

/* ── Card 5 - product, bottom-right, clear of fashion ───── */
.hcard-product {
  width: 16vw;
  height: 22vw;
  top: 46%;
  right: 3%;
  z-index: 3;
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) rotateZ(4deg);
}

/* ── Central content ─────────────────────────────────────── */

.hero-center {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: min(58vw, 860px);
  padding: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 60ms linear, transform 60ms linear;
}

.hero-title-collage {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* Label: "ДЕСЯТКИ ГОТОВЫХ AI-ШАБЛОНОВ" */
.hero-title-collage .htc-label {
  display: block;
  font-size: clamp(9px, 0.7vw, 11px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6ff3f;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* Main headline */
.hero-title-collage .htc-en {
  display: block;
  font-size: clamp(28px, 3.8vw, 60px);
  color: #ffffff;
  white-space: normal;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -0.03em;
}

/* Body text */
.hero-title-collage .htc-sub {
  display: block;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.38);
  max-width: 64ch;
  margin: 0 auto;
}

.hero-center .hero-actions {
  pointer-events: all;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ── Feature widgets - minimalist ────────────────────────── */

.hero-features {
  display: flex;
  align-items: stretch;
  margin-top: 28px;
  pointer-events: none;
  gap: 0;
}

.hfeat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  text-align: left;
}

/* Green accent line - top of each item */
.hfeat::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: #d6ff3f;
  border-radius: 2px;
}

.hfeat:first-child { padding-left: 0; }
.hfeat:first-child::before { left: 0; }
.hfeat:last-child  { padding-right: 0; }

.hfeat-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hfeat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 1px;
}

/* All icon color variants reset to monochrome */
.hfeat-icon--purple,
.hfeat-icon--yellow,
.hfeat-icon--teal {
  background: none;
  color: rgba(255, 255, 255, 0.38);
}

.hfeat-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0em;
  margin-bottom: 3px;
  line-height: 1.2;
}

.hfeat-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.26);
  line-height: 1.45;
}

/* Divider hidden - replaced by individual item border-top */
.hfeat-divider { display: none; }

/* ══════════════════════════════════════════════════════════
   HERO ENTRANCE ANIMATIONS
   ══════════════════════════════════════════════════════════ */

/* --- Keyframes ------------------------------------------ */

@keyframes hero-fade-up {
  from { opacity: 0; translate: 0 32px; }
  to   { opacity: 1; translate: 0 0;    }
}

@keyframes hero-drop-down {
  from { opacity: 0; translate: 0 -14px; }
  to   { opacity: 1; translate: 0 0;     }
}

/* Cards: blur + scale - uses individual `scale` prop so it
   composes ON TOP OF the existing `transform: perspective(...)` */
@keyframes hero-card-in {
  from { opacity: 0; scale: 0.84; filter: blur(14px); }
  to   { opacity: 1; scale: 1;    filter: blur(0px);  }
}

@keyframes hero-glow-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Gentle perpetual float - also via `translate` so no conflict */
@keyframes hcard-float {
  0%, 100% { translate: 0 0px;  }
  50%       { translate: 0 -9px; }
}

/* --- Site header ---------------------------------------- */
.site-header {
  animation: hero-drop-down 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Background layers ---------------------------------- */
.hero-ambient {
  animation: hero-glow-in 2.2s ease-out both;
}
.hero-nodegraph {
  animation: hero-glow-in 2.2s 0.55s ease-out both;
}

/* --- Cards: entrance + infinite float ------------------- */
.hcard {
  animation-name:            hero-card-in, hcard-float;
  animation-duration:        0.9s,         8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-fill-mode:       both,         none;
  animation-iteration-count: 1,            infinite;
}

/* Stagger: entrance delay , float phase offset */
.hcard-char     { animation-delay: 0.05s, 1.10s; }
.hcard-banner   { animation-delay: 0.16s, 1.50s; }
.hcard-portrait { animation-delay: 0.24s, 1.80s; }
.hcard-fashion  { animation-delay: 0.11s, 1.30s; }
.hcard-product  { animation-delay: 0.32s, 2.00s; }

/* --- Central content: staggered text / CTA / features --- */
.htc-en {
  animation: hero-fade-up 1s 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.htc-label {
  animation: hero-fade-up 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.htc-sub {
  animation: hero-fade-up 1s 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-actions {
  animation: hero-fade-up 0.9s 0.70s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Features: stagger each item */
.hfeat {
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hfeat:nth-child(1) { animation-delay: 0.84s; }
.hfeat:nth-child(2) { animation-delay: 0.96s; }
.hfeat:nth-child(3) { animation-delay: 1.08s; }

/* Social proof chip */
.hero-social-proof {
  animation: hero-fade-up 0.8s 0.84s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Respect prefers-reduced-motion --------------------- */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-ambient,
  .hero-nodegraph,
  .hcard,
  .htc-label,
  .htc-en,
  .htc-sub,
  .hero-actions,
  .hfeat,
  .hero-social-proof {
    animation: none !important;
  }
}

/* ── Social proof chip ───────────────────────────────────── */

.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.hsp-stats {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

.hsp-pos { color: #d6ff3f; }
.hsp-neg { color: rgba(255, 255, 255, 0.55); }

.hsp-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hsp-brand {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

/* Light theme: hero collage stays dark */
html[data-theme="light"] .hero.hero-collage,
:root[data-theme="light"] .hero.hero-collage {
  background: #0c0c0c;
}

/* ══════════════════════════════════════════════════════════
   CHOOSE YOUR TEMPLATE SECTION
   ══════════════════════════════════════════════════════════ */

/* Sticky pin container — limits how long choose-section stays sticky
   (choose-section sticks for the full zr-wrap duration, then releases) */
.choose-pin {
  position: relative;
}

.choose-section {
  background: #0c0c0c;
  position: sticky;      /* sticks within .choose-pin */
  top: 0;
  z-index: 2;
  /* pulls section up so it starts at viewport bottom when scrollY=0
     must equal hero-scroll-wrap extra height (170vh - 100vh = 70vh) */
  margin-top: -70vh;
}

/* Header row — inside white panel */
.choose-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0px;
  flex-wrap: wrap;
}

.choose-title {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0c0c0c;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Filter pills — dark on white */
.choose-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.choose-filter {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.14);
  background: transparent;
  color: rgba(0,0,0,0.45);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.choose-filter.is-active {
  background: #0c0c0c;
  color: #ffffff;
  border-color: #0c0c0c;
}

.choose-filter:hover:not(.is-active) {
  background: rgba(0,0,0,0.06);
  color: #0c0c0c;
  border-color: rgba(0,0,0,0.2);
}

/* White panel: header + grid */
.choose-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
}

/* ── Single wrapping row ───────────────────────────────── */
.choose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible; /* allow cc-wrap to bleed over siblings */
}

/* ── Card entrance keyframe ─────────────────────────────── */
@keyframes cc-enter {
  0%   { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Card shell ─────────────────────────────────────────── */
.choose-card {
  /* fixed width = 1/6 of row (5 gaps × 8px = 40px) */
  flex: 0 0 calc((100% - 40px) / 6);
  max-width: calc((100% - 40px) / 6);
  position: relative;
  height: 175px;
  z-index: 1;
  cursor: pointer;

  /* start invisible; JS adds .is-visible to play the animation */
  opacity: 0;
}

/* entrance — triggered when JS adds .is-visible */
.choose-card.is-visible {
  animation: cc-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.choose-card:hover { z-index: 20; }
.choose-card.is-hidden { display: none; opacity: 0; }

/* ──────────────────────────────────────────────────────────
   cc-wrap — THE SINGLE EXPANDING BLOCK
   Grows from card width to card width + 200px.
   border-radius + overflow:hidden on the OUTSIDE = seamless.
   ──────────────────────────────────────────────────────────*/
.cc-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* --w is set by JS to the card's pixel width */
  width: var(--w, 100%);
  border-radius: 14px;
  background: #d9d9d9;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  /* shadow starts subtle, deepens on hover */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: width      0.44s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.28s ease,
              box-shadow 0.35s ease;
}

.choose-card:hover .cc-wrap {
  width: calc(var(--w, 100%) + 200px);
  background: #d6ff3f;
  box-shadow: 0 10px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
}

/* CTA card has slightly lighter base */
.choose-card--cta .cc-wrap { background: #ebebeb; }
.choose-card--cta:hover .cc-wrap { background: #d6ff3f; }

/* LEFT-expanding variant: right-anchored, reversed flex order */
.cc--left .cc-wrap {
  left: auto;
  right: 0;
  /* reverse flex so cc-base-inner stays on the right (visible),
     cc-right overflows to the left (revealed when expanding left) */
  flex-direction: row-reverse;
}

/* ── Card content area (always = card natural width) ───── */
.cc-base-inner {
  flex: 0 0 var(--w, 100%);
  position: relative;
  padding: 14px 14px 0;
  overflow: hidden; /* clips image on scale-up */
}

/* ── Text panel (revealed when expanded) ────────────────── */
.cc-right {
  flex: 0 0 200px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.18s ease 0.24s;
}

.choose-card:hover .cc-right { opacity: 1; }

/* ── Title ──────────────────────────────────────────────── */
.cc-title {
  display: block;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
  transition: color 0.25s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.choose-card:hover .cc-title {
  transform: translateY(-3px);
}

.cc-title--cta { color: #555; }

/* ── Image ──────────────────────────────────────────────── */
.cc-img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 82%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  /* monochrome by default, colour on hover */
  filter: grayscale(1) brightness(0.92);
  transition: filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.choose-card:hover .cc-img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.05) translateY(-4px);
}

/* Smaller image variant — doesn't overlap title text */
.cc-img--sm {
  height: 60%;
}

/* Mirrored image pinned to left edge, fills card without empty space */
.cc-img--mirror-left {
  object-fit: cover;
  object-position: right bottom; /* right = left after mirror */
  transform: scaleX(-1);
}

.choose-card:hover .cc-img--mirror-left {
  transform: scaleX(-1) scale(1.05) translateY(-4px);
}

/* ── CTA arrow ──────────────────────────────────────────── */
.cc-arrow {
  font-size: 22px;
  color: rgba(0,0,0,0.2);
  position: absolute;
  bottom: 12px;
  right: 14px;
  transition: color 0.2s, transform 0.25s;
}

.choose-card:hover .cc-arrow {
  color: rgba(0,0,0,0.45);
  transform: translate(3px,-3px);
}

/* ── Expanded text — slides in from the side ────────────── */
@keyframes cce-slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.choose-card:hover .cce-head {
  animation: cce-slide-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.choose-card:hover .cce-desc {
  animation: cce-slide-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* ── Expanded text ──────────────────────────────────────── */
.cce-head {
  font-size: 12px;
  font-weight: 700;
  color: #0c0c0c;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.cce-desc {
  font-size: 11px;
  font-weight: 400;
  color: rgba(0,0,0,0.55);
  line-height: 1.5;
  max-width: 22ch;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .choose-panel { padding: 12px; border-radius: 16px; }
  .choose-row { flex-wrap: wrap; overflow: hidden; }
  .choose-card {
    flex: 0 0 calc((100% - 16px) / 3);
    max-width: calc((100% - 16px) / 3);
    height: 130px;
  }
  /* on mobile: no expand, just tint */
  .choose-card:hover .cc-wrap { width: var(--w, 100%); }
  .cc-right { display: none; }
  .choose-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choose-card,
  .choose-card.is-visible { animation: none; opacity: 1; }
  .cc-wrap { transition: width 0.2s, background 0.2s; }
  .choose-card:hover .cce-head,
  .choose-card:hover .cce-desc { animation: none; }
}

/* ══════════════════════════════════════════════════════════
   ZOOM-REVEAL SECTION
   ══════════════════════════════════════════════════════════ */

.zr-wrap {
  height: 280vh;         /* extra height so node graph has time to show */
  position: relative;
  z-index: 3;            /* above sticky choose-section (z-index:2) */
  background: #0c0c0c;
}

.zr-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #0c0c0c;
  isolation: isolate;   /* scope mix-blend-mode to this container */
}

/* ── Vector.svg decorative sparkles — BEHIND the text block ─ */
.zr-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;           /* below .zr-block (z-index:2) */
}

.zr-deco--tr {
  width: clamp(150px, 24vw, 360px);
  top: 2%;
  right: -6%;   /* partially off-screen → clipped by overflow:hidden */
}

.zr-deco--bl {
  width: clamp(110px, 18vw, 270px);
  bottom: 5%;
  left: -5%;    /* partially off-screen → clipped by overflow:hidden */
}

/* ── Text cluster: eyebrow + reveal rendered at natural size ─
   JS scales the whole block up at p=0 so the eyebrow fills     
   97% vw, then scales back to 1 on scroll (reveal fades in).   */
.zr-block {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  transform-origin: top center;   /* scale from the top-centre pivot */
  mix-blend-mode: difference;     /* white text inverts green sparkles → blue/violet */
  /* top and transform set by JS */
}

/* "НЕ АБСТРАКЦИЯ" — label size at scale = 1 (natural/final size)  */
.zr-eyebrow {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* Reveal block — in flow below eyebrow; opacity starts at 0 */
.zr-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;   /* JS animates 0 → 1 in sync with scale */
}

/* Left sparkle + НАСТОЯЩИЙ row */
.zr-nastoy-row {
  display: flex;
  align-items: center;
  gap: 0.15em;
}

/* Inline sparkle icons */
.zr-spark {
  display: block;
  width: clamp(22px, 2.6vw, 42px);
  height: clamp(22px, 2.6vw, 42px);
  flex-shrink: 0;
  object-fit: contain;
}

.zr-spark--lg {
  width: clamp(35px, 4.5vw, 70px);
  height: clamp(35px, 4.5vw, 70px);
}

/* Big headline lines */
.zr-hl {
  margin: 0;
  font-size: clamp(2.5rem, 13.5vw, 14.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.048em;
  text-transform: uppercase;
  line-height: 0.86;
  white-space: nowrap;
}

.zr-hl--green { color: #d6ff3f; }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .zr-block  { transform: scale(1) !important; }
  .zr-reveal { opacity: 1 !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   PIPELINE SECTION
   ══════════════════════════════════════════════════════════ */

.pipeline-section {
  padding: 80px 0 88px;
  background: #0c0c0c;
}

.pipeline-inner {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Header ─────────────────────────────────────────────── */
.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

.pipeline-badge-new {
  background: #d6ff3f;
  color: #0c0c0c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Description ────────────────────────────────────────── */
.pipeline-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}

/* ── Node pills ─────────────────────────────────────────── */
.pipeline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pipeline-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  letter-spacing: -0.01em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}

.pipeline-pill:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
}

.pipeline-pill--accent {
  border-color: rgba(214,255,63,0.5);
  color: #d6ff3f;
  background: rgba(214,255,63,0.07);
}

.pipeline-pill--accent:hover {
  border-color: #d6ff3f;
  background: rgba(214,255,63,0.12);
}

/* ── Demo area ──────────────────────────────────────────── */
.pipeline-demo {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-demo-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin: 0;
  letter-spacing: -0.01em;
}

.pipeline-demo-title strong {
  color: rgba(255,255,255,0.9);
}

/* ── Flow boxes ─────────────────────────────────────────── */
.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  min-width: 90px;
  padding: 0 18px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.02);
  letter-spacing: -0.01em;
  transition: border-color 0.25s, color 0.25s;
}

.pipeline-node--wide {
  flex: 1;
  min-width: 180px;
  justify-content: center;
  border-color: rgba(214,255,63,0.25);
  color: rgba(214,255,63,0.65);
  background: rgba(214,255,63,0.04);
}

.pipeline-node--wide:hover,
.pipeline-node:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.7);
}

.pipeline-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── ZR Node Graph Section ─────────────────────────────────── */
.zr-nodes-section {
  background: #0c0c0c;
  display: flex;
  justify-content: center;
  padding: 72px 24px 96px;
  overflow-x: auto;
}

.zr-nodes {
  width: 1100px;
  flex-shrink: 0;
}

.zr-nodes.is-visible { pointer-events: auto; }

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes zrn-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes zrn-line-draw { to { stroke-dashoffset: 0; } }
@keyframes zrn-dot-pop {
  0%   { opacity: 0; transform: scale(0);    }
  60%  { opacity: 1; transform: scale(1.4);  }
  100% { opacity: 1; transform: scale(1);    }
}

/* ── Pre-animation hidden state ────────────────────────────── */
/* nth-child of .zrn-gi: 1=svg, 2=Промт, 3=Генерация, 4=Изображение, 5=BrandKit, 6=Import */
.zr-nodes .zrn-wrap       { opacity: 0; }
.zr-nodes .zrn-svg path   { stroke-dasharray: 700; stroke-dashoffset: 700; }
.zr-nodes .zrn-svg circle {
  opacity: 0; transform: scale(0);
  transform-box: fill-box; transform-origin: center;
}

/* ── Staggered entrance ────────────────────────────────────── */
.zr-nodes.is-visible .zrn-gi > .zrn-wrap:nth-child(3) { /* Генерация — first */
  animation: zrn-card-in .6s cubic-bezier(.22,1,.36,1) .05s both;
}
.zr-nodes.is-visible .zrn-gi > .zrn-wrap:nth-child(6) { /* Import */
  animation: zrn-card-in .6s cubic-bezier(.22,1,.36,1) .18s both;
}
.zr-nodes.is-visible .zrn-gi > .zrn-wrap:nth-child(2) { /* Промт */
  animation: zrn-card-in .55s cubic-bezier(.22,1,.36,1) .30s both;
}
.zr-nodes.is-visible .zrn-gi > .zrn-wrap:nth-child(4) { /* Изображение */
  animation: zrn-card-in .55s cubic-bezier(.22,1,.36,1) .42s both;
}
.zr-nodes.is-visible .zrn-gi > .zrn-wrap:nth-child(5) { /* Brand Kit */
  animation: zrn-card-in .55s cubic-bezier(.22,1,.36,1) .54s both;
}

/* ── Lines draw in logical flow ────────────────────────────── */
.zr-nodes.is-visible .zrn-svg path:nth-child(1) { /* Промт→Генерация */
  animation: zrn-line-draw .5s ease-out .48s forwards;
}
.zr-nodes.is-visible .zrn-svg path:nth-child(4) { /* Генерация→Import */
  animation: zrn-line-draw .5s ease-out .55s forwards;
}
.zr-nodes.is-visible .zrn-svg path:nth-child(2) { /* Изображение→Генерация */
  animation: zrn-line-draw .5s ease-out .68s forwards;
}
.zr-nodes.is-visible .zrn-svg path:nth-child(3) { /* BrandKit→Генерация */
  animation: zrn-line-draw .45s ease-out .82s forwards;
}

/* ── Dots pop after lines ──────────────────────────────────── */
.zr-nodes.is-visible .zrn-svg circle:nth-child(5),
.zr-nodes.is-visible .zrn-svg circle:nth-child(6) {
  animation: zrn-dot-pop .3s cubic-bezier(.34,1.56,.64,1) .94s both;
}
.zr-nodes.is-visible .zrn-svg circle:nth-child(7),
.zr-nodes.is-visible .zrn-svg circle:nth-child(8) {
  animation: zrn-dot-pop .3s cubic-bezier(.34,1.56,.64,1) 1.06s both;
}
.zr-nodes.is-visible .zrn-svg circle:nth-child(9),
.zr-nodes.is-visible .zrn-svg circle:nth-child(10) {
  animation: zrn-dot-pop .3s cubic-bezier(.34,1.56,.64,1) 1.16s both;
}
.zr-nodes.is-visible .zrn-svg circle:nth-child(11),
.zr-nodes.is-visible .zrn-svg circle:nth-child(12) {
  animation: zrn-dot-pop .3s cubic-bezier(.34,1.56,.64,1) 1.04s both;
}

/* ── Canvas ────────────────────────────────────────────────── */
.zrn-gi {
  position: relative;
  width: 1100px;
  height: 380px;
}

.zrn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.zrn-line { stroke: #c8ff00; stroke-width: 1.8; fill: none; }
.zrn-dot  { fill: #c8ff00; }

/* ── Node wrap (positions label above node) ────────────────── */
.zrn-wrap {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.zrn-lbl {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin: 0 0 6px 4px;
  white-space: nowrap;
}

.zrn-lbl strong {
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}

/* ── Base node ─────────────────────────────────────────────── */
.zrn-node {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.55);
  transition: box-shadow 0.2s;
}

.zrn-node:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(200,255,0,0.28);
}

/* ── Prompt / Image dark boxes ─────────────────────────────── */
.zrn-prompt {
  background: rgba(22,22,22,0.96);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 13px 14px;
}

.zrn-ptext {
  font-size: 11.5px;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
  margin: 0;
}

.zrn-imgup {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
}

/* ── Генерация node (light gray) ───────────────────────────── */
.zrn-gennode {
  background: #bcbcbc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.zrn-gen-lbl {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.4);
  margin: 0;
}

/* ── Brand Kit node (light gray with swatches) ─────────────── */
.zrn-brandnode {
  background: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zrn-swatches {
  display: flex;
  gap: 8px;
}

.zrn-sw {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ── Import / output node (large light gray) ───────────────── */
.zrn-outnode {
  background: linear-gradient(150deg, #c4c4c4 0%, #d8d8d8 55%, #bcbcbc 100%);
  position: relative;
}

.zrn-expand {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: white;
  color: #2a2a2a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}

.zrn-expand:hover {
  transform: scale(1.08);
}
/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pipeline-inner { padding: 24px 20px; gap: 16px; }
  .pipeline-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pipeline-flow { flex-wrap: wrap; }
  .pipeline-node--wide { flex: 1 1 100%; min-width: 0; }
}

/* ══════════════════════════════════════════════════════════
   AI-NATIVE PLATFORM SECTION
   ══════════════════════════════════════════════════════════ */

.ainat-section {
  padding: 120px 0 140px;
  background: #0c0c0c;
  overflow: visible;
}

.ainat-grid {
  display: grid;
  grid-template-columns: 44fr 56fr;
  gap: 80px;
  align-items: center;
}

/* ── Left: Typography ───────────────────────────────────── */

.ainat-left {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ainat-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6ff3f;
  opacity: 0.78;
}

.ainat-headline {
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.ainat-desc {
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.52);
  max-width: 36ch;
}

/* ── Right: Visual composition ──────────────────────────── */

.ainat-right {
  position: relative;
  /* Extra padding so floating panels don't clip */
  padding: 28px 44px 44px 44px;
}

/* Entire composition floats gently */
.ainat-visual {
  position: relative;
  animation: ainat-float 8s ease-in-out infinite;
}

@keyframes ainat-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

/* Base image panel */
.ainat-base-panel {
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 48px 96px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  position: relative;
}

.ainat-base-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(214, 255, 63, 0.04) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

.ainat-base-panel img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Floating glass panels ──────────────────────────────── */

.ainat-float {
  position: absolute;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Panel 1 — Node pipeline, bottom-left */
.ainat-float--nodes {
  bottom: -28px;
  left: -14px;
  width: 230px;
  border-color: rgba(214, 255, 63, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(214, 255, 63, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ainat-nodes-svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes ainat-pulse {
  0%, 100% { opacity: 0.2; r: 4; }
  50%       { opacity: 1;   r: 7; }
}

.ainat-pulse {
  animation: ainat-pulse 2.4s ease-in-out infinite;
}

/* Panel 2 — Style transfer, top-right */
.ainat-float--materials {
  top: -18px;
  right: -14px;
  width: 172px;
}

.ainat-float-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.ainat-float-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6ff3f;
  box-shadow: 0 0 8px rgba(214, 255, 63, 0.7);
  flex-shrink: 0;
}

.ainat-float-dot--white {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.ainat-float-title {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.ainat-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ainat-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: block;
  transition: transform 0.2s;
}

.ainat-swatch--active {
  border-color: #d6ff3f;
  box-shadow: 0 0 8px rgba(214, 255, 63, 0.5);
  transform: scale(1.2);
}

.ainat-style-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ainat-style-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ainat-slider-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
}

.ainat-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 68%;
  background: #d6ff3f;
  border-radius: 2px;
}

.ainat-slider-thumb {
  position: absolute;
  top: 50%;
  left: 68%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d6ff3f;
  box-shadow: 0 0 6px rgba(214, 255, 63, 0.5);
}

/* Panel 3 — Speed stat, bottom-right */
.ainat-float--stat {
  bottom: 48px;
  right: -18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 16px;
  border-color: rgba(214, 255, 63, 0.18);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(214, 255, 63, 0.1),
    inset 0 1px 0 rgba(214, 255, 63, 0.08);
}

.ainat-stat-num {
  font-size: 40px;
  font-weight: 800;
  color: #d6ff3f;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ainat-stat-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ainat-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ainat-right {
    padding: 28px 32px 60px;
  }
  .ainat-base-panel img { height: 320px; }
  .ainat-desc { max-width: 100%; }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hcard,
  .hero-nodegraph,
  .hero-ambient {
    display: none;
  }

  .hero.hero-collage {
    padding: 100px 24px 72px;
  }

  .hero-center {
    max-width: 100%;
    width: 100%;
  }

  .hero-title-collage .htc-label {
    font-size: clamp(9px, 2.5vw, 12px);
  }

  .hero-title-collage .htc-en {
    font-size: clamp(24px, 7vw, 42px);
  }

  .hero-title-collage .htc-sub {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  .hero-features {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .hfeat {
    padding: 14px 0 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
  }

  .hfeat-divider { display: none; }
}

.btn-primary {
  background: var(--chip-bg);
  color: #111111;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 12px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 400;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--glass);
}


/* ── Sections ───────────────────────────────────────── */

.section {
  padding: var(--section-pad) 0;
}

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

#features .section-head {
  max-width: 800px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
  border-radius: var(--radius-sm);
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.feature-card-visual {
  width: 100%;
  height: 168px;
  overflow: hidden;
  background: #0b0b0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0 0;
  position: relative;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.feature-card-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-card:hover .feature-card-visual {
  opacity: 0.9;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(214, 255, 63, 0) 20%, rgba(214, 255, 63, 0) 80%, transparent 100%);
  transition: background 0.45s ease;
  z-index: 1;
}

.feature-card:hover::after {
  background: linear-gradient(90deg, transparent 0%, rgba(214, 255, 63, 0.45) 35%, rgba(214, 255, 63, 0.45) 65%, transparent 100%);
}

.feature-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(214, 255, 63, 0.06);
  border: 1px solid rgba(214, 255, 63, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 22px;
  transition: background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  background: rgba(214, 255, 63, 0.1);
  border-color: rgba(214, 255, 63, 0.3);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
  line-height: 1.6;
}

.feature-card-more {
  margin-top: 18px;
  align-self: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
  padding: 0;
  background: none;
  border: none;
  letter-spacing: 0.01em;
}

.feature-card-more:hover {
  color: var(--accent);
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-card.wide .feature-card-visual {
  height: 176px;
}

/* ── Pipeline preview ───────────────────────────────── */

.pipeline-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pipeline-water-section.section {
  padding: clamp(48px, 6.5vw, 88px) 0;
}

.pipeline-water-section .section-head {
  margin-bottom: 28px;
  text-align: center;
}

.pipeline-water-section .section-title {
  font-size: clamp(26px, 3.2vw, 42px);
  margin-bottom: 12px;
}

.pipeline-water-section .section-desc {
  font-size: 14px;
  line-height: 1.55;
}

.pipeline-water-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: crosshair;
  background: #0f0f10;
}

.pipeline-reveal-side,
.pipeline-reveal-window {
  cursor: grab;
}

html[data-theme="light"] .pipeline-water-section,
:root[data-theme="light"] .pipeline-water-section {
  background: #e2e2e2;
}

.pipeline-water-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  transition: opacity 0.45s ease;
  isolation: isolate;
}

.pipeline-water-section.is-active .pipeline-water-bg-wrap {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.pipeline-water-section.is-fading:not(.is-active) .pipeline-water-bg-wrap {
  opacity: 1;
}

.pipeline-water-section.is-revealed .pipeline-water-bg-wrap {
  opacity: 1;
}

.pipeline-water-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.pipeline-water-bg-corner {
  position: absolute;
  top: -8px;
  right: -8px;
  width: min(38vw, 300px);
  height: min(24vw, 190px);
  background: #0f0f10;
  filter: blur(22px);
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

html[data-theme="light"] .pipeline-water-bg-corner,
:root[data-theme="light"] .pipeline-water-bg-corner {
  background: #e2e2e2;
  filter: blur(22px);
}

.pipeline-water-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.pipeline-water-content {
  position: relative;
  z-index: 2;
}

.pipeline-water-no-reveal {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.pipeline-water-section .pipeline-node {
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.pipeline-reveal-side {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--accent) 18%, transparent);
  background: transparent;
  overflow: hidden;
}

.pipeline-water-section .pipeline-reveal-side {
  min-height: 220px;
}

.pipeline-reveal-window {
  position: absolute;
  z-index: 4;
  min-width: 108px;
  min-height: 88px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.pipeline-reveal-window.is-dragging {
  cursor: grabbing;
}

.pipeline-reveal-window.is-resizing {
  cursor: nwse-resize;
}

.pipeline-reveal-window__resize {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 8px 0 8px 0;
  background: linear-gradient(135deg,
      transparent 0%,
      transparent 42%,
      color-mix(in srgb, var(--accent) 75%, transparent) 42%,
      color-mix(in srgb, var(--accent) 75%, transparent) 100%);
  cursor: nwse-resize;
  touch-action: none;
}

.pipeline-reveal-window__resize:hover,
.pipeline-reveal-window__resize:focus-visible {
  background: linear-gradient(135deg,
      transparent 0%,
      transparent 38%,
      var(--accent) 38%,
      var(--accent) 100%);
}

.pipeline-water-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  background: rgba(15, 15, 16, 0.72);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.pipeline-water-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

.pipeline-preview {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
}

.pipeline-visual {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.pipeline-water-section .pipeline-visual {
  gap: 24px;
}

.pipeline-actions {
  margin-top: 64px;
  text-align: center;
}

.pipeline-water-section .pipeline-actions {
  margin-top: 40px;
}

.pipeline-actions .btn-primary {
  display: inline-flex;
  justify-content: center;
  min-width: 280px;
  padding: 16px 48px;
}

.pipeline-nodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-water-section .pipeline-nodes {
  gap: 10px;
}

.pipeline-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.pipeline-water-section .pipeline-node {
  gap: 12px;
  padding: 12px 16px;
}

.pipeline-node.active {
  border-color: var(--accent);
  background: var(--bg-active);
}

.pipeline-node-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: #111111;
  font-weight: 400;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pipeline-node h4 {
  font-size: 12px;
  font-weight: 500;
}

.pipeline-node p {
  font-size: 11px;
  color: var(--muted);
}

.pipeline-preview-inner {
  position: absolute;
  inset: 24px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
}

.mini-node {
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mini-node.highlight {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-active);
}

/* ── B2B block ──────────────────────────────────────── */

.b2b-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.b2b-section-head {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  margin: 0;
  padding-right: 8px;
  text-align: left;
}

.b2b-section-head .section-title {
  font-size: clamp(26px, 3.0vw, 42px);
  margin-bottom: 12px;
}

.b2b-section-head .section-desc {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

.b2b-section-head .section-label {
  justify-content: flex-start;
}

.b2b-card-main {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.b2b-main-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.b2b-main-body h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

.b2b-main-body>p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.b2b-domain {
  color: var(--accent);
  font-weight: 400;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  letter-spacing: -0.01em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(214, 255, 63, 0.08);
  border: 1px solid rgba(214, 255, 63, 0.18);
}

html[data-theme="light"] .b2b-domain,
:root[data-theme="light"] .b2b-domain {
  color: var(--accent-text);
  background: rgba(214, 255, 63, 0.22);
  border-color: rgba(154, 184, 32, 0.35);
}

.b2b-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.b2b-card h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}

.b2b-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.b2b-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.b2b-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.b2b-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.b2b-card-action {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
}

.b2b-widget-caption {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

.b2b-widget-caption code {
  color: var(--accent);
  font-weight: 400;
}

.b2b-widget {
  grid-column: 2;
  grid-row: 1 / -1;
  background: linear-gradient(145deg, var(--bg-active), var(--card-bg));
  border: 1px solid var(--border-active);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  padding: 24px;
  gap: 16px;
  align-self: stretch;
  min-height: 100%;
}

.widget-demo-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex: 1;
}

.widget-demo-preview {
  width: 100%;
}

.widget-demo-page {
  position: relative;
  min-height: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.widget-demo-product {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 42%;
}

.widget-demo-product-img {
  width: 100%;
  max-width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
}

.widget-demo-product-line {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  width: 72px;
}

.widget-demo-product-line.short {
  width: 44px;
}

.widget-demo-fab {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 28px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.widget-demo-fab:hover {
  transform: translateY(-2px);
}

.widget-demo-fab:active {
  transform: translateY(0);
}

.widget-demo-fab-pulse {
  animation: widget-fab-tap 0.32s ease;
}

@keyframes widget-fab-tap {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
}

.widget-demo-fab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: widget-icon-pulse 2.4s ease-in-out infinite;
}

.widget-demo-fab-icon svg {
  width: 22px;
  height: 22px;
}

@keyframes widget-icon-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.72;
  }
}

.widget-demo-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.widget-demo-control-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 20px 0 6px;
}

.widget-demo-control-label:first-child {
  margin-top: 14px;
}

.widget-demo-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.widget-demo-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--chips-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-size: 10px;
  font-weight: 400;
  font-family: inherit;
}

.widget-demo-swatch:hover {
  border-color: var(--border-active);
  background: var(--card-hover-bg);
}

.widget-demo-swatch.active {
  border-color: var(--accent);
  background: var(--bg-active);
  color: var(--accent);
}

.widget-demo-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.widget-demo-swatch-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.widget-demo-icons {
  display: flex;
  gap: 8px;
}

.widget-demo-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--chips-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.widget-demo-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.widget-demo-icon-btn:hover {
  border-color: var(--border-active);
  background: var(--card-hover-bg);
}

.widget-demo-icon-btn.active {
  border-color: var(--accent);
  background: var(--bg-active);
  color: var(--accent);
}

/* legacy mock (other pages) */
.widget-mock {
  width: 180px;
  height: 220px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.widget-mock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-weight: 400;
  font-size: 17px;
}

.widget-mock-label {
  font-size: 11px;
  color: var(--muted);
}

/* ── CTA ────────────────────────────────────────────── */

.cta-section {
  padding: var(--section-pad) 0 calc(var(--section-pad) + 32px);
}

.cta-box {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(214, 255, 63, 0.07) 0%, transparent 60%),
              var(--card-bg);
  border: 1px solid rgba(214, 255, 63, 0.12);
  border-radius: 24px;
  padding: clamp(64px, 10vw, 112px) clamp(32px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 63, 0.45), transparent);
  pointer-events: none;
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 80%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: var(--muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 20px 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── Reveal animation ───────────────────────────────── */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.94) translateY(20px);
}

.reveal-fade {
  transform: none;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-fade.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}


/* ── Responsive ─────────────────────────────────────── */

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

  .feature-card.wide {
    grid-column: span 2;
  }

  .pipeline-visual,
  .b2b-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .b2b-section-head,
  .b2b-card-main,
  .b2b-widget {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {

  .top-nav,
  .header-right .btn-login {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.wide {
    grid-column: span 1;
  }

  .hero-models {
    margin-top: 36px;
  }
}

/* ── Light theme ─────────────────────────────────────── */

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] body,
:root[data-theme="light"] body {
  background: var(--bg);
}

/* Header */
html[data-theme="light"] .site-header,
:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border-color);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .top-nav a:hover,
:root[data-theme="light"] .top-nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .top-nav a.active,
:root[data-theme="light"] .top-nav a.active {
  background: transparent;
  color: var(--accent-text);
  font-weight: 400;
}

/* Theme toggle */
html[data-theme="light"] .theme-slider-thumb,
:root[data-theme="light"] .theme-slider-thumb {
  left: calc(100% - 33px);
  background: #D6FF3F;
}

html[data-theme="light"] .theme-toggle-btn,
:root[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .theme-toggle-btn:hover,
:root[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .theme-slider-thumb .theme-icon-moon,
:root[data-theme="light"] .theme-slider-thumb .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

html[data-theme="light"] .theme-slider-thumb .theme-icon-sun,
:root[data-theme="light"] .theme-slider-thumb .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Hero */
html[data-theme="light"] .hero,
:root[data-theme="light"] .hero {
  background: linear-gradient(180deg, #FAFAFA 0%, var(--bg) 100%);
}

html[data-theme="light"] .hero-glow,
:root[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse at center, rgba(190, 255, 0, 0.14) 0%, rgba(180, 255, 0, 0.05) 45%, transparent 70%);
}

html[data-theme="light"] .hero-grid,
:root[data-theme="light"] .hero-grid {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(214, 255, 63, 0.18), transparent 55%),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 80%);
}

html[data-theme="light"] .hero-label,
:root[data-theme="light"] .hero-label {
  background: rgba(214, 255, 63, 0.2);
  border-color: rgba(154, 184, 32, 0.5);
  color: #3a4a00;
}

html[data-theme="light"] .hero-label::before,
:root[data-theme="light"] .hero-label::before {
  background: #3a4a00;
  box-shadow: 0 0 8px rgba(58, 74, 0, 0.4);
}

html[data-theme="light"] .hero-title .accent,
:root[data-theme="light"] .hero-title .accent {
  color: #111111;
  background: linear-gradient(180deg, transparent 60%, rgba(214, 255, 63, 0.6) 60%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

html[data-theme="light"] .hero-subtitle,
:root[data-theme="light"] .hero-subtitle {
  color: #666666;
}

html[data-theme="light"] .hero-models-label,
:root[data-theme="light"] .hero-models-label {
  color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .model-chip,
:root[data-theme="light"] .model-chip {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.025);
  color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .model-chip:hover,
:root[data-theme="light"] .model-chip:hover {
  border-color: rgba(58, 74, 0, 0.35);
  color: #3a4a00;
}

/* Buttons */
html[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 14px rgba(214, 255, 63, 0.35);
}

html[data-theme="light"] .btn-primary:hover,
:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(214, 255, 63, 0.45);
}

html[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .btn-secondary {
  background: #FFFFFF;
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .btn-secondary:hover,
:root[data-theme="light"] .btn-secondary:hover {
  border-color: #111111;
  background: #FFFFFF;
}

html[data-theme="light"] .btn-login,
:root[data-theme="light"] .btn-login {
  box-shadow: 0 4px 14px rgba(214, 255, 63, 0.35);
}

/* Sections */
html[data-theme="light"] .section-label,
:root[data-theme="light"] .section-label {
  color: var(--accent-text);
  letter-spacing: 0.12em;
}

html[data-theme="light"] .section-label::before,
html[data-theme="light"] .section-label::after,
:root[data-theme="light"] .section-label::before,
:root[data-theme="light"] .section-label::after {
  background: var(--accent-text);
}

html[data-theme="light"] .section-desc,
:root[data-theme="light"] .section-desc {
  color: #555555;
}

html[data-theme="light"] .feature-card,
:root[data-theme="light"] .feature-card {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color);
}

html[data-theme="light"] .feature-card:hover,
:root[data-theme="light"] .feature-card:hover {
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-color: rgba(154, 184, 32, 0.5);
}

html[data-theme="light"] .feature-card-visual,
:root[data-theme="light"] .feature-card-visual {
  background: #f2f2f0;
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .feature-icon,
:root[data-theme="light"] .feature-icon {
  background: rgba(214, 255, 63, 0.3);
  border-color: rgba(184, 230, 0, 0.5);
  color: #3a4a00;
}

html[data-theme="light"] .feature-card:hover .feature-icon,
:root[data-theme="light"] .feature-card:hover .feature-icon {
  background: rgba(214, 255, 63, 0.45);
  border-color: rgba(154, 184, 32, 0.7);
}

html[data-theme="light"] .feature-card p,
:root[data-theme="light"] .feature-card p {
  color: #555555;
}

html[data-theme="light"] .feature-card-more,
:root[data-theme="light"] .feature-card-more {
  color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .feature-card-more:hover,
:root[data-theme="light"] .feature-card-more:hover {
  color: var(--accent-text);
}

/* Pipeline */
html[data-theme="light"] .pipeline-section,
:root[data-theme="light"] .pipeline-section {
  background: var(--bg-surface);
  border-color: var(--border-color);
}

html[data-theme="light"] .pipeline-node,
:root[data-theme="light"] .pipeline-node {
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .pipeline-node.active,
:root[data-theme="light"] .pipeline-node.active {
  background: rgba(214, 255, 63, 0.22);
  border-color: #b8e600;
  box-shadow: 0 4px 16px rgba(214, 255, 63, 0.2);
}

html[data-theme="light"] .pipeline-preview,
:root[data-theme="light"] .pipeline-preview {
  background:
    radial-gradient(circle at 30% 20%, rgba(214, 255, 63, 0.12), transparent 45%),
    var(--bg-muted);
  box-shadow: inset 0 0 0 1px var(--border-color);
}

html[data-theme="light"] .mini-node,
:root[data-theme="light"] .mini-node {
  background: #FFFFFF;
  border-color: var(--border-color);
  color: #666666;
}

html[data-theme="light"] .mini-node.highlight,
:root[data-theme="light"] .mini-node.highlight {
  background: rgba(214, 255, 63, 0.35);
  border-color: #b8e600;
  color: #111111;
}

/* B2B */
html[data-theme="light"] .b2b-card,
:root[data-theme="light"] .b2b-card {
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .b2b-card p,
:root[data-theme="light"] .b2b-card p {
  color: #555555;
}

html[data-theme="light"] .b2b-widget,
:root[data-theme="light"] .b2b-widget {
  background: linear-gradient(145deg, rgba(214, 255, 63, 0.2), #FFFFFF);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .widget-mock,
:root[data-theme="light"] .widget-mock {
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

html[data-theme="light"] .b2b-widget code,
:root[data-theme="light"] .b2b-widget code,
html[data-theme="light"] .b2b-widget-caption,
:root[data-theme="light"] .b2b-widget-caption {
  color: #444444;
}

html[data-theme="light"] .b2b-widget-caption code,
:root[data-theme="light"] .b2b-widget-caption code {
  color: var(--accent-text);
}

html[data-theme="light"] .widget-demo-swatch,
:root[data-theme="light"] .widget-demo-swatch,
html[data-theme="light"] .widget-demo-icon-btn,
:root[data-theme="light"] .widget-demo-icon-btn {
  background: #FFFFFF;
  color: #111111;
  border-color: var(--border-color);
}

html[data-theme="light"] .widget-demo-swatch:hover,
:root[data-theme="light"] .widget-demo-swatch:hover,
html[data-theme="light"] .widget-demo-icon-btn:hover,
:root[data-theme="light"] .widget-demo-icon-btn:hover {
  background: #F5F5F5;
}

html[data-theme="light"] .widget-demo-swatch.active,
:root[data-theme="light"] .widget-demo-swatch.active,
html[data-theme="light"] .widget-demo-icon-btn.active,
:root[data-theme="light"] .widget-demo-icon-btn.active {
  background: #F0F7D8;
  color: var(--accent-text);
  border-color: #9BB52E;
}

html[data-theme="light"] .widget-demo-swatch-dot,
:root[data-theme="light"] .widget-demo-swatch-dot {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* CTA & Footer */
html[data-theme="light"] .cta-box,
:root[data-theme="light"] .cta-box {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(214, 255, 63, 0.15) 0%, transparent 60%),
              var(--bg-surface);
  box-shadow: var(--shadow);
  border-color: rgba(154, 184, 32, 0.3);
}

html[data-theme="light"] .cta-box::after,
:root[data-theme="light"] .cta-box::after {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

html[data-theme="light"] .site-footer,
:root[data-theme="light"] .site-footer {
  background: var(--bg-muted);
}

html[data-theme="light"] .footer-links a:hover,
:root[data-theme="light"] .footer-links a:hover {
  color: var(--accent-text);
}

html[data-theme="light"] .mobile-menu,
:root[data-theme="light"] .mobile-menu {
  background: var(--bg-surface);
}

/* ── Hero Entrance Animations ──────────────────────── */

.hero-anim-title .mask-line {
  display: block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero-anim-title .mask-text {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

.hero-anim-fade-up {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

/* Triggered when body gets .app-loaded */
body.app-loaded .hero-anim-title .mask-text {
  animation: heroMaskReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.app-loaded .hero-anim-title .mask-line:nth-child(1) .mask-text {
  animation-delay: 0.1s;
}

body.app-loaded .hero-anim-title .mask-line:nth-child(2) .mask-text {
  animation-delay: 0.2s;
}

body.app-loaded .hero-anim-title .mask-line:nth-child(3) .mask-text {
  animation-delay: 0.3s;
}

@keyframes heroMaskReveal {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(0);
  }
}

body.app-loaded .hero-anim-fade-up {
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.app-loaded .badge-anim {
  animation-delay: 0.7s;
}

body.app-loaded .subtitle-anim {
  animation-delay: 0.8s;
}

body.app-loaded .btns-anim {
  animation-delay: 0.9s;
}

body.app-loaded .models-anim {
  animation-delay: 1.1s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Features Scroll Animations ────────────────────── */

/* Header */
.section-head.feat-observe .section-label,
.section-head.feat-observe .section-title,
.section-head.feat-observe .section-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.section-head.feat-observe.is-visible .section-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.section-head.feat-observe.is-visible .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.section-head.feat-observe.is-visible .section-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Cards - directional fly-in from sides */
.features-grid.feat-observe .feature-card {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background 0.4s ease;
}

/* Column 1 → slides from the LEFT */
.features-grid.feat-observe .feature-card:nth-child(1),
.features-grid.feat-observe .feature-card:nth-child(4) {
  transform: translateX(-80px);
}

/* Column 2 → slides from BELOW (feels central, natural gravity) */
.features-grid.feat-observe .feature-card:nth-child(2) {
  transform: translateY(60px);
}

/* Column 3 → slides from the RIGHT */
.features-grid.feat-observe .feature-card:nth-child(3),
.features-grid.feat-observe .feature-card:nth-child(5) {
  transform: translateX(80px);
}

/* All land at natural position when visible */
.features-grid.feat-observe.is-visible .feature-card {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays */
.features-grid.feat-observe.is-visible .feature-card:nth-child(1) {
  transition-delay: 0.05s, 0.05s, 0s, 0s;
}

.features-grid.feat-observe.is-visible .feature-card:nth-child(2) {
  transition-delay: 0.18s, 0.18s, 0s, 0s;
}

.features-grid.feat-observe.is-visible .feature-card:nth-child(3) {
  transition-delay: 0.05s, 0.05s, 0s, 0s;
}

.features-grid.feat-observe.is-visible .feature-card:nth-child(4) {
  transition-delay: 0.32s, 0.32s, 0s, 0s;
}

.features-grid.feat-observe.is-visible .feature-card:nth-child(5) {
  transition-delay: 0.32s, 0.32s, 0s, 0s;
}

/* Override hover once visible - avoid conflicting with landed state */
.features-grid.feat-observe.is-visible .feature-card:hover {
  transform: translateY(-3px);
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

/* ── Pipeline Section Animations ────────────────────── */

/* Section head reuses .feat-observe pattern (already defined above) */

/* Pipeline nodes stagger */
.pipeline-nodes.feat-observe .pipeline-node {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.pipeline-nodes.feat-observe.is-visible .pipeline-node {
  opacity: 1;
  transform: translateX(0);
}

.pipeline-nodes.feat-observe.is-visible .pipeline-node:nth-child(1) {
  transition-delay: 0.1s;
}

.pipeline-nodes.feat-observe.is-visible .pipeline-node:nth-child(2) {
  transition-delay: 0.25s;
}

.pipeline-nodes.feat-observe.is-visible .pipeline-node:nth-child(3) {
  transition-delay: 0.4s;
}

/* Pipeline actions button */
.pipeline-actions.feat-observe {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.5s;
  will-change: transform, opacity;
}

.pipeline-actions.feat-observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── B2B Section Animations ─────────────────────────── */

/* B2B section head - reuses feat-observe pattern */
.b2b-section-head.feat-observe .section-label,
.b2b-section-head.feat-observe .section-title,
.b2b-section-head.feat-observe .section-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.b2b-section-head.feat-observe.is-visible .section-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.b2b-section-head.feat-observe.is-visible .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.b2b-section-head.feat-observe.is-visible .section-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* B2B card - slide from left */
.b2b-card.feat-slide-left.feat-observe {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
  will-change: transform, opacity;
}

.b2b-card.feat-slide-left.feat-observe.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* B2B widget card - slide from right */
.b2b-card.feat-slide-right.feat-observe {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.3s;
  will-change: transform, opacity;
}

.b2b-card.feat-slide-right.feat-observe.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── CTA Section Animation ───────────────────────────── */

.cta-box.feat-scale.feat-observe {
  opacity: 0;
  transform: scale(0.96) translateY(24px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.cta-box.feat-scale.feat-observe.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.spatial-card {
  position: relative;
  width: 100% !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.card-b {
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}
/* ════════════════════════════════════════════════════════════
   Portfolio + Призыв sections
   ═══════════════════════════════════════════════════════════ */

/* ── Portfolio ─────────────────────────────────────────────── */
.porto-section {
  background: #0c0c0c;
  padding: 0 0 32px;
}

.porto-card {
  background: #c8ff00;
  border-radius: 28px;
  padding: 52px 56px 56px;
  overflow: hidden;
}

.porto-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  margin: 0 0 40px;
}

.porto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 0;
  border-top: 1.5px solid rgba(0,0,0,0.14);
}

.porto-case {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 24px 32px 0;
  border-right: 1.5px solid rgba(0,0,0,0.14);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.porto-case:last-child { border-right: none; }
.porto-case:first-child { padding-left: 0; }
.porto-case:not(:first-child) { padding-left: 24px; }
.porto-case:hover { opacity: 0.75; }

.porto-name {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 800;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.porto-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.porto-stat {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  margin-top: 8px;
}

.porto-link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 12px;
}
.porto-case--featured .porto-link { color: rgba(0,0,0,0.65); }


/* ── Призыв — zoom-reveal + vertical split (left/right) ────── */
.priziv-wrap {
  position: relative;
  height: 280vh;
  z-index: 5;
}

.priziv-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: transparent; /* backdrop layer provides bg */
}

/* ── Pricing backdrop (card layout) ───────────────────────── */
.priziv-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0c0c0c;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pc-wrap {
  width: 100%;
  padding: 0 48px;
}

.pc-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Row: flexbox so cards can have individual rotations without breaking layout */
.pc-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Base card */
.pc-card {
  flex: 1;
  border-radius: 22px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* Alternating colors & rotations — matching the reference */
.pc-card--1 {
  background: #181818;
  transform: rotate(-2deg) translateY(10px);
}
.pc-card--2 {
  background: #1a1a1a;
  transform: rotate(1.5deg) translateY(-14px);
}
.pc-card--3 {
  background: #181818;
  border: 1px solid rgba(255,255,255,0.07);
  transform: rotate(-1deg) translateY(8px);
}
.pc-card--4 {
  background: #1a1a1a;
  transform: rotate(2.5deg) translateY(-10px);
}

.pc-card:hover { transform: rotate(0deg) translateY(-4px) scale(1.02); }

/* Top row: number + arrow */
.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.pc-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
}
.pc-card--2 .pc-num,
.pc-card--4 .pc-num { color: rgba(255,255,255,0.3); }

.pc-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.pc-card--2 .pc-arrow,
.pc-card--4 .pc-arrow {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

/* Plan name */
.pc-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}
.pc-card--2 .pc-name,
.pc-card--4 .pc-name { color: #fff; }

/* Price */
.pc-price {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}
.pc-card--2 .pc-price,
.pc-card--4 .pc-price { color: #fff; }

.pc-cur { font-size: 14px; font-weight: 400; opacity: 0.6; }

.pc-period {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.pc-card--2 .pc-period,
.pc-card--4 .pc-period { color: rgba(255,255,255,0.35); }

/* Feature list */
.pc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
}
.pc-card--2 .pc-list,
.pc-card--4 .pc-list { border-color: rgba(255,255,255,0.07); }

.pc-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.pc-card--2 .pc-list li,
.pc-card--4 .pc-list li { color: rgba(255,255,255,0.45); }

/* CTA */
.pc-cta {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.18s, border-color 0.18s;
}
.pc-cta:hover { color: #c8ff00; border-color: #c8ff00; }
.pc-card--2 .pc-cta,
.pc-card--4 .pc-cta {
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.15);
}
.pc-card--2 .pc-cta:hover,
.pc-card--4 .pc-cta:hover {
  color: #c8ff00;
  border-color: #c8ff00;
}

/* Left and right clipping panes */
.priziv-pane {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  will-change: transform;
  z-index: 2; /* above the backdrop */
}
.priziv-pane--l { left: 0;   width: 50%; }
.priziv-pane--r { left: 50%; width: 50%; }

/* Both blocks cover the full viewport width so text appears centered.
   Left block: starts at pane left (0), extends 200% = 100vw.
   Right block: starts at -100% pane = -50vw, extends 200% = 100vw.  */
.priziv-block {
  position: absolute;
  left: 0;
  width: 200%;       /* 200% of 50vw-pane = 100vw */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-origin: 50% 0; /* horizontal center of the 100vw block = viewport center */
}
.priziv-block--r {
  left: -100%;       /* shift left by 50vw so it aligns with viewport left */
}

.priziv-eye {
  font-size: clamp(48px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.priziv-eye--sub {
  margin-bottom: 40px;
}

.priziv-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
}

.priziv-btn {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 44px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.18s, transform 0.18s;
  margin-top: 8px;
}
.priziv-btn:hover {
  background: #c8ff00;
  color: #000;
  transform: scale(1.03);
}

/* ════════════════════════════════════════════════════════════
   Pricing Section — minimal
   ═══════════════════════════════════════════════════════════ */
.pricing-section {
  background: #0c0c0c;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.pricing-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

.pricing-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
}

.pricing-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  flex-shrink: 0;
}

.pricing-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
}

/* 4 columns, equal width, divided by 1px lines */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pricing-plan {
  padding: 36px 32px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.22s ease;
}
.pricing-plan:last-child { border-right: none; }

.pricing-plan--pro {
  background: rgba(200,255,0,0.04);
}

/* Top row: name + badge */
.pricing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.pricing-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 100px;
}
.pricing-tag--green {
  color: #c8ff00;
  background: rgba(200,255,0,0.1);
}

/* Price row */
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-price-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  margin-bottom: 2px;
}

/* Divider line between price and features */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
}
.pricing-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

/* CTA — plain text link style */
.pricing-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.18s, border-color 0.18s;
}
.pricing-cta:hover {
  color: #c8ff00;
  border-color: #c8ff00;
}
.pricing-plan--pro .pricing-cta {
  color: #c8ff00;
  border-color: rgba(200,255,0,0.35);
}
.pricing-plan--pro .pricing-cta:hover {
  border-color: #c8ff00;
}

/* ════════════════════════════════════════════════════════════
   Bonus Banner
   ═══════════════════════════════════════════════════════════ */
.bonus-section {
  background: #0c0c0c;
  padding: 12px 48px 12px;
}

.bonus-card {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.bonus-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bonus-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin: 0;
}

.bonus-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 0;
  line-height: 1.35;
  max-width: 520px;
}

.bonus-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 4px 0 0;
}

.bonus-link {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #c8ff00;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.bonus-link:hover { opacity: 0.7; }


/* ════════════════════════════════════════════════════════════
   FAQ Section — two-column layout
   ═══════════════════════════════════════════════════════════ */
.faq-section {
  background: #0c0c0c;
  padding: 72px 48px 80px;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 48px;
}

.faq-title {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.08;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }

.faq-q {
  list-style: none;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s, color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
  color: #c8ff00;
}

.faq-a {
  padding: 0 4px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin: 0;
}


/* ════════════════════════════════════════════════════════════
   Big Green Footer Card — scrolling words + diagonal tickers
   ═══════════════════════════════════════════════════════════ */
.site-footer--green {
  background: #0c0c0c;
}

.ftg-card {
  background: #c8ff00;
  border-radius: 28px 28px 0 0;
  margin: 0 24px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Scrolling background words ────────────────────────────── */
.ftg-words {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ftg-wr {
  overflow: hidden;
  line-height: 1;
  display: flex;
}

.ftg-wr-inner {
  display: inline-flex;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(80px, 13vw, 170px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.82);
  will-change: transform;
}

.ftg-wr--fwd .ftg-wr-inner  { animation: ftg-fwd 40s linear infinite; }
.ftg-wr--rev .ftg-wr-inner  { animation: ftg-rev 48s linear infinite; }

@keyframes ftg-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ftg-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ── Diagonal ticker strips ────────────────────────────────── */
.ftg-strips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Two strips converging at the RIGHT edge */
.ftg-strip {
  position: absolute;
  right: 0;
  width: 160%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 36px;
  top: 50%;
  transform-origin: right center;  /* pivot from the right edge */
}

/* fan out to the left from the right anchor */
.ftg-strip--a { transform: translateY(-50%) rotate(-24deg); }
.ftg-strip--b { transform: translateY(-50%) rotate( 24deg); }

.ftg-strip-track {
  display: inline-flex;
  width: max-content;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ftg-strip-fwd 36s linear infinite;
}
.ftg-strip--rev .ftg-strip-track {
  animation: ftg-strip-rev 36s linear infinite;
}

@keyframes ftg-strip-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ftg-strip-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.ftg-strip-track span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  padding: 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ftg-tag {
  font-weight: 400 !important;
  color: rgba(0,0,0,0.4) !important;
}

.ftg-sep {
  color: rgba(0,0,0,0.25) !important;
  padding: 0 2px !important;
  font-size: 8px !important;
}


/* ── Bottom info bar ────────────────────────────────────────── */
.ftg-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.ftg-bar-links {
  display: flex;
  gap: 24px;
}
.ftg-bar-links a {
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.18s;
}
.ftg-bar-links a:hover { color: rgba(255,255,255,0.6); }

/* Social pills in footer bar */
.ftg-socials {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ftg-soc {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
}
.ftg-soc:hover {
  color: #000;
  background: #c8ff00;
  border-color: #c8ff00;
}
