/* ============================================
   PingAI — Combined Light/Dark Editorial Style
   ============================================ */

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

:root {
  /* Light palette */
  --bg-light: #f5f3ef;
  --bg-light-card: #ffffff;
  --ink: #0d0d0d;
  --ink-mute: #6f6f6f;
  --ink-soft: #a5a5a5;
  --line-light: rgba(13,13,13,0.1);
  --accent-light: #ff4500;

  /* Dark palette */
  --bg-dark: #0a0a0a;
  --bg-dark-card: #141414;
  --text-on-dark: #ffffff;
  --text-on-dark-mute: #888888;
  --text-on-dark-soft: #4a4a52;
  --line-dark: rgba(255,255,255,0.08);
  --line-dark-strong: rgba(255,255,255,0.16);
  --accent-cyan: #00d4ff;
  --accent-cyan-soft: #7df0ff;

  --container: 1440px;
  --t: cubic-bezier(.22,.61,.36,1);
  --t-out: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-light);
  color: var(--ink);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

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

/* Subtle paper noise on light bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Section base */
.section {
  position: relative;
  padding: 140px 0;
  scroll-margin-top: 100px;
}
.section--light {
  background: var(--bg-light);
  color: var(--ink);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

/* Smooth color transitions between sections */
.section--dark + .section--light,
.section--light + .section--dark {
  position: relative;
}

/* ============================================
   SECTION HEAD (shared structure)
   ============================================ */
.section__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 80px;
  max-width: 900px;
}
.section__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-mute);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section__meta span { color: var(--text-on-dark); }
.section__meta--light { color: var(--ink-mute); }
.section__meta--light span { color: var(--ink); }

.section__head--light .section__meta { color: var(--ink-mute); }
.section__head--light .section__meta span { color: var(--ink); }

.section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}
.section__title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
}
.section--dark .section__title em { color: var(--accent-cyan); }

.section__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 24px 0 0;
  max-width: 640px;
  font-weight: 400;
}
.section--dark .section__lead { color: var(--text-on-dark-mute); }

.hero__breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.hero__breadcrumb span { color: var(--ink); }

/* ============================================
   HEADER (fixed, adapts to bg)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(245, 243, 239, 0.7);
  border-bottom: 1px solid var(--line-light);
  transition: background .4s, border-color .4s;
}
.header.is-on-dark {
  background: rgba(10, 10, 10, 0.7);
  border-bottom-color: var(--line-dark);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  height: 28px;
}
.header__logo-img {
  height: 28px;
  width: auto;
  display: block;
  /* Лого светлое по умолчанию (для тёмного фона). На светлых секциях инвертируем */
  transition: filter .4s;
  filter: invert(1) hue-rotate(180deg);
}
.header.is-on-dark .header__logo-img {
  filter: none;
}

.header__nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .4s;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .3s var(--t);
}
.header__nav a:hover::after { width: 100%; }
.header.is-on-dark .header__nav a { color: var(--text-on-dark); }

.header__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.header__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  transition: color .4s;
}
.header.is-on-dark .header__time { color: var(--text-on-dark-mute); }

.header__cta {
  font-size: 13px;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg-light);
  padding: 10px 18px;
  border-radius: 99px;
  transition: transform .25s var(--t), background .4s, color .4s;
}
.header__cta:hover { transform: translateY(-2px); }
.header.is-on-dark .header__cta {
  background: var(--text-on-dark);
  color: var(--bg-dark);
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .3s, opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Custom cursor removed — using native pointer */

/* ============================================
   1. HERO (dark)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0;
}
#neural-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(10,10,10,0.5) 70%, var(--bg-dark) 100%);
  pointer-events: none;
}
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 64px 100px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-mute);
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--t) 0.3s forwards;
}
.hero__meta-bar { width: 48px; height: 1px; background: var(--accent-cyan); }

.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(42px, 7.5vw, 125px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 48px;
  max-width: 1400px;
}
.hero__title-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0;
}
.hero__title-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: titleIn 1.2s var(--t-out) forwards;
}
.hero__title-line:nth-of-type(1) > span { animation-delay: 0.5s; }
.hero__title-line:nth-of-type(2) > span { animation-delay: 0.7s; }
.hero__title-line:nth-of-type(3) > span { animation-delay: 0.9s; }
@keyframes titleIn { to { transform: translateY(0); opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(95deg, #fff 30%, var(--accent-cyan-soft) 50%, var(--accent-cyan) 70%, #fff 90%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.1fr auto auto;
  gap: 48px;
  align-items: end;
  margin-top: auto;
  opacity: 0;
  animation: fadeUp 1s var(--t) 1.4s forwards;
  transform: translateY(20px);
}
.hero__desc {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-dark-mute);
  font-weight: 400;
  margin: 0;
}
.hero__desc strong {
  color: var(--text-on-dark);
  font-weight: 500;
}

.hero__stats {
  display: flex;
  gap: 36px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-item__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}
.stat-item__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  line-height: 1.3;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-on-dark);
  color: var(--bg-dark);
  padding: 16px 24px;
  border-radius: 0;
  font-weight: 500;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--t);
}
.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-cyan);
  transform: translateX(-101%);
  transition: transform .4s var(--t);
}
.hero__cta:hover::before { transform: translateX(0); }
.hero__cta:hover { transform: translateY(-2px); }
.hero__cta span, .hero__cta svg { position: relative; z-index: 2; }
.hero__cta svg { width: 14px; height: 14px; }

/* Corner brackets */
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 6;
}
.corner--tl { top: 80px; left: 24px; border-right: none; border-bottom: none; }
.corner--tr { top: 80px; right: 24px; border-left: none; border-bottom: none; }
.corner--bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.corner--br { bottom: 24px; right: 24px; border-left: none; border-top: none; }

/* Side annotations */
.annotation {
  position: absolute;
  z-index: 6;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s var(--t) 1.8s forwards;
}
.annotation--right {
  right: 48px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.annotation--bottom-left { left: 64px; bottom: 60px; }
.annotation__dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================
   2. MANIFEST (light)
   ============================================ */
.manifest {
  padding: 200px 0;
  position: relative;
  z-index: 2;
}
.manifest__top {
  margin-bottom: 80px;
}
.manifest__text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 1200px;
}
.manifest__text em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
}
.manifest__word {
  display: inline-block;
  color: var(--ink-soft);
  transition: color 0.4s ease;
  margin-right: 0.18em;
}
.manifest__word.is-lit {
  color: var(--ink);
}

/* ============================================
   3. DIRECTIONS (dark) — bento cards
   ============================================ */
.directions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-dark-card);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--t), border-color .35s, box-shadow .35s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(0,212,255,0.12), transparent 50%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-dark-strong);
  box-shadow: 0 20px 60px rgba(0,212,255,0.1);
}
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; }

.card__title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
.card__text {
  font-size: 15px;
  color: var(--text-on-dark-mute);
  line-height: 1.55;
  margin: 0 0 28px;
  position: relative;
  z-index: 2;
}
.card__visual { margin-top: auto; position: relative; z-index: 2; }

/* Tags scroller */
.card__visual--tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: -36px;
  margin-right: -36px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  animation: scrollX 20s linear infinite;
}
.tag-row--1 { animation-direction: normal; }
.tag-row--2 { animation-direction: reverse; }
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-on-dark-mute);
}

/* Tasks mockup */
.tasks {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 14px;
}
.tasks__tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tasks__tab {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  color: var(--text-on-dark-mute);
}
.tasks__tab--active { background: var(--accent-cyan); color: #000; }
.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 12px;
}
.task__icon { font-size: 14px; opacity: .85; }
.task__body { flex: 1; min-width: 0; }
.task__title { font-weight: 500; }
.task__meta { color: var(--text-on-dark-soft); font-size: 10px; }
.task__status { font-size: 13px; }
.task__status--ok { color: var(--accent-cyan); }
.task__status--no { color: #ef4444; }
.task__status--loading {
  color: var(--accent-cyan);
  display: inline-block;
  animation: spinY 1.4s linear infinite;
}
@keyframes spinY { to { transform: rotate(360deg); } }

/* Radar */
.card__visual--radar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.radar {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.08), transparent 70%);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  text-align: center;
}
.radar__circle, .radar__circle--2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.2);
  inset: 30%;
}
.radar__circle--2 { inset: 12%; }
.radar__sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  height: 1.5px;
  background: linear-gradient(to right, var(--accent-cyan), transparent);
  transform-origin: 0 50%;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__caption { font-size: 11px; color: var(--text-on-dark-mute); position: relative; z-index: 2; }
.radar-list { display: flex; flex-direction: column; gap: 6px; }
.radar-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 11px;
}

/* Chat mockup */
.chat-mock {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
}
.chat-mock__head { display: flex; gap: 8px; }
.chat-mock__model {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11px;
}
.chat-mock__globe {
  background: rgba(255,255,255,0.05);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.chat-mock__input {
  flex: 1;
  font-size: 15px;
  color: var(--text-on-dark-mute);
  display: flex;
  align-items: center;
}
.chat-mock__caret {
  animation: blink 1s steps(1) infinite;
  color: var(--accent-cyan);
  margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }
.chat-mock__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-pill {
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 11px;
  color: var(--text-on-dark-mute);
}
.chat-pill--send {
  margin-left: auto;
  background: var(--accent-cyan);
  color: #000;
  width: 30px; height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Voice */
.card__visual--voice { display: flex; flex-direction: column; gap: 8px; }
.voice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 14px;
}
.voice-emoji { font-size: 24px; }
.voice-body { flex: 1; }
.voice-name { font-weight: 500; font-size: 13px; }
.voice-meta { font-size: 11px; color: var(--text-on-dark-soft); display: flex; align-items: center; gap: 6px; }
.voice-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulseDot 3s ease-in-out infinite;
}
.voice-mic {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Bars (AI consulting) */
.card__visual--bars { display: flex; align-items: flex-end; justify-content: center; }
.bars {
  display: flex;
  gap: 12px;
  height: 160px;
  align-items: flex-end;
}
.bar {
  width: 56px;
  background: linear-gradient(180deg, rgba(0,212,255,0.25), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 0;
  height: 30%;
}
.bar--1 { animation: barFlex1 4.2s ease-in-out infinite; }
.bar--2 { animation: barFlex2 4.2s ease-in-out infinite; }
.bar--3 { animation: barFlex3 4.2s ease-in-out infinite; }
@keyframes barFlex1 { 0%,100%{height:25%} 25%{height:50%} 50%{height:35%} 75%{height:60%} }
@keyframes barFlex2 { 0%,100%{height:45%} 25%{height:70%} 50%{height:55%} 75%{height:80%} }
@keyframes barFlex3 { 0%,100%{height:65%} 25%{height:85%} 50%{height:75%} 75%{height:95%} }
.bar--ghost {
  background: rgba(0,212,255,0.08);
  border: 1px dashed rgba(0,212,255,0.4);
  animation: barFlex4 4.2s ease-in-out infinite;
}
@keyframes barFlex4 { 0%,100%{height:85%} 25%{height:100%} 50%{height:90%} 75%{height:95%} }
.bar__label { font-size: 11px; color: var(--text-on-dark-mute); white-space: nowrap; }

/* Integrations — floating tiles */
.card__visual--integrations { margin-top: 20px; }
.logos-arena {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}
.logo-tile {
  position: absolute;
  width: 58px;
  height: 58px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-on-dark);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  will-change: transform;
}
.lt--1 { top: 8%;  left: 4%;  animation: tileFloat1 7s ease-in-out infinite; }
.lt--2 { top: 30%; left: 22%; animation: tileFloat2 8s ease-in-out infinite; }
.lt--3 { top: 6%;  left: 42%; animation: tileFloat3 6.5s ease-in-out infinite; }
.lt--4 { top: 40%; left: 58%; animation: tileFloat4 7.5s ease-in-out infinite; }
.lt--5 { top: 14%; left: 76%; animation: tileFloat5 8.2s ease-in-out infinite; }
.lt--6 { top: 52%; left: 8%;  animation: tileFloat6 7.8s ease-in-out infinite; }
.lt--7 { top: 55%; left: 40%; animation: tileFloat7 6.8s ease-in-out infinite; }
.lt--8 { top: 52%; left: 75%; animation: tileFloat8 7.2s ease-in-out infinite; }

@keyframes tileFloat1 { 0%,100%{transform:translate(0,0) rotate(-3deg)} 33%{transform:translate(40px,20px) rotate(5deg)} 66%{transform:translate(20px,-10px) rotate(-2deg)} }
@keyframes tileFloat2 { 0%,100%{transform:translate(0,0) rotate(4deg)} 50%{transform:translate(-30px,30px) rotate(-6deg)} }
@keyframes tileFloat3 { 0%,100%{transform:translate(0,0) rotate(0deg)} 40%{transform:translate(30px,40px) rotate(8deg)} 80%{transform:translate(-20px,20px) rotate(-4deg)} }
@keyframes tileFloat4 { 0%,100%{transform:translate(0,0) rotate(-5deg)} 50%{transform:translate(35px,-30px) rotate(3deg)} }
@keyframes tileFloat5 { 0%,100%{transform:translate(0,0) rotate(2deg)} 45%{transform:translate(-40px,30px) rotate(-7deg)} }
@keyframes tileFloat6 { 0%,100%{transform:translate(0,0) rotate(-2deg)} 55%{transform:translate(30px,-25px) rotate(5deg)} }
@keyframes tileFloat7 { 0%,100%{transform:translate(0,0) rotate(3deg)} 50%{transform:translate(-35px,-20px) rotate(-5deg)} }
@keyframes tileFloat8 { 0%,100%{transform:translate(0,0) rotate(-4deg)} 50%{transform:translate(-30px,25px) rotate(6deg)} }

/* ============================================
   4. PROCESS (light)
   ============================================ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--bg-light-card);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 36px;
  transition: transform .35s var(--t), border-color .35s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(13,13,13,0.2); }
.step__num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.step__title {
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.step__title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent-light);
  font-weight: 400;
}
.step__text {
  color: var(--ink-mute);
  margin: 0 0 32px;
  line-height: 1.55;
  font-size: 15px;
}
.step__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-mute);
}
.chip em {
  font-style: normal;
  color: var(--accent-light);
  font-weight: 600;
  margin-left: 4px;
}

.step__metrics { display: flex; flex-direction: column; gap: 0; }
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
}
.metric-row:last-child { border-bottom: none; }
.metric-row__label { color: var(--ink-mute); }
.metric-row__val { font-weight: 500; }
.metric-row__num {
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}
.metric-row__val em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent-light);
  font-weight: 400;
  margin-left: 4px;
  font-size: 13px;
}

/* ============================================
   5. PROJECTS (light)
   ============================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project {
  position: relative;
  background: var(--bg-light-card);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .35s var(--t), border-color .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-6px);
  border-color: rgba(13,13,13,0.2);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}
.project__num {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.project__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}
.project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform .8s var(--t), filter .5s var(--t);
}
.project:hover .project__image img { 
  transform: scale(1.05); 
  filter: grayscale(0);
}

.project__body {
  padding: 32px 36px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project__client {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.project__title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.project__title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent-light);
  font-weight: 400;
}
.project__text {
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
  font-size: 14px;
}

.project__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 18px;
}
.pstat { padding: 0 20px 0 0; border-right: 1px solid var(--line-light); }
.pstat:last-child { padding: 0 0 0 20px; border-right: none; }
.pstat__num {
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.pstat__label {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.project__tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* ============================================
   6. INDUSTRIES (dark) — bubbles
   ============================================ */
.industries__arena {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 40px 0 0;
}
.bubble {
  position: absolute;
  background: #fff;
  color: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .35s var(--t), background .35s, color .35s;
  will-change: transform;
  text-align: center;
  padding: 0 20px;
  line-height: 1.1;
}
.bubble:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: scale(1.05) !important;
  z-index: 10;
}

/* ============================================
   7. TEAM (light)
   ============================================ */
.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.member {
  background: var(--bg-light-card);
  border-radius: 24px;
  overflow: hidden;
  color: var(--ink);
  position: relative;
  transition: transform .35s var(--t);
  border: 1px solid var(--line-light);
}
.member:hover { transform: translateY(-6px); }
.member__photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1);
  transition: transform .8s var(--t);
}
.member:hover .member__photo img { transform: scale(1.03); }
.member__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--ink);
  color: var(--bg-light);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.member__info { padding: 32px 36px 36px; }
.member__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.member__name {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.member__name em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent-light);
  font-weight: 400;
}
.member__bio { display: flex; flex-direction: column; gap: 14px; }
.member__bio li {
  position: relative;
  padding-left: 18px;
  line-height: 1.55;
  color: #1f2937;
  font-size: 14px;
}
.member__bio li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

/* ============================================
   8. FOOTER (dark)
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 140px 0 50px;
  position: relative;
}
.footer__head {
  max-width: 1100px;
  margin-bottom: 100px;
}
.footer__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 16px 0 0;
}
.footer__accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-cyan);
}
.footer__accent em { font-style: italic; }

.footer__contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 50px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 50px;
}
.contact {
  position: relative;
  padding: 0 40px;
  border-right: 1px solid var(--line-dark);
  transition: background .25s;
}
.contact:first-child { padding-left: 0; }
.contact:last-child { border-right: none; padding-right: 0; }
.contact:hover .contact__arrow { transform: translate(4px, -4px); color: var(--accent-cyan); }
.contact__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact__value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  transition: color .25s;
}
.contact:hover .contact__value { color: var(--accent-cyan); }
.contact__arrow {
  position: absolute;
  top: 0;
  right: 40px;
  width: 24px; height: 24px;
  color: var(--text-on-dark-mute);
  transition: transform .3s var(--t), color .3s;
}
.contact:last-child .contact__arrow { right: 0; }
.contact:first-child .contact__arrow { right: 40px; }

.footer__bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.footer__logo img {
  height: 24px;
  width: auto;
  display: block;
  /* Лого светлое по умолчанию, футер тёмный — без инверсии */
}
.footer__copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.04em;
}
.footer__nav { display: flex; gap: 24px; }
.footer__nav a {
  font-size: 13px;
  color: var(--text-on-dark-mute);
  transition: color .25s;
}
.footer__nav a:hover { color: var(--text-on-dark); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--t), transform 0.9s var(--t);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .directions__grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .process__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .hero__bottom { grid-template-columns: 1fr; gap: 32px; }
  .annotation--right { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header { padding: 14px 20px; grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 16px; right: 16px;
    background: rgba(245,243,239,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-light);
    border-radius: 20px;
    padding: 16px;
    gap: 8px;
    z-index: 99;
  }
  .header.is-on-dark .header__nav.is-open {
    background: rgba(10,10,10,0.97);
    border-color: var(--line-dark);
  }
  .header__time { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }

  .section { padding: 80px 0; }
  .section__title { font-size: 44px; }
  .section__head { margin-bottom: 50px; }

  .hero__content { padding: 100px 20px 60px; }
  .hero__title { font-size: clamp(40px, 11vw, 56px); }
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }
  .stat-item__num { font-size: 28px; }
  .corner { display: none; }
  .annotation { display: none; }

  .manifest { padding: 90px 0; }
  .manifest__text { font-size: 28px; }

  .directions__grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .card { padding: 24px; }
  .card__title { font-size: 22px; }

  .step { padding: 28px; }
  .step__title { font-size: 32px; }

  .projects__grid { grid-template-columns: 1fr; }
  .project__body { padding: 24px; }
  .project__title { font-size: 24px; }
  .pstat__num { font-size: 28px; }

  .team__grid { grid-template-columns: 1fr; }
  .member__info { padding: 24px; }
  .member__name { font-size: 32px; }

  .footer { padding: 80px 0 30px; }
  .footer__title { font-size: 42px; }
  .footer__contacts { grid-template-columns: 1fr; padding: 30px 0; }
  .contact {
    padding: 16px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line-dark);
  }
  .contact:last-child { border-bottom: none; }
  .contact__arrow { right: 0 !important; }
  .contact__value { font-size: 22px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 20px; text-align: left; }

  .industries__arena { height: 400px; }
}

/* === Конец основных стилей. Ниже только мобильные правки === */

/* ============================================
   MOBILE-ONLY: правки анимаций для high-refresh дисплеев
   Применяется ТОЛЬКО на экранах <= 768px (телефоны)
   На десктопе ничего не меняется
   ============================================ */
@media (max-width: 768px) {
  /* Бегущие плашки в "Автоматизация процессов" — сильно замедлить */
  .tag-row {
    animation-duration: 12s;
  }

  /* Радар — замедлить вращение */
  .radar__sweep {
    animation-duration: 8s;
  }

  /* Плитки в "Интеграции" — замедлить (на десктопе остаются как были) */
  .logo-tile {
    animation-duration: 18s;
  }
  .lt--2, .lt--5 { animation-duration: 20s; }
  .lt--6 { animation-duration: 22s; }

  /* Точки голосовых ассистентов — ещё медленнее на мобилке */
  .voice-dot {
    animation-duration: 4s;
  }

  /* Bars в AI-консалтинг — замедлить, но НЕ убирать */
  .bar--1, .bar--2, .bar--3, .bar--ghost {
    animation-duration: 6s;
  }

}