/* === LANDING_V2.CSS === */
/* assets/css/landing_v2.css */
/* НАЗНАЧЕНИЕ: Стили SaaS лендинга CommandOS v2 */

:root {
  --cream: #F2EDE3;
  --cream-deep: #E8E0D0;
  --ink: #0A0908;
  --ink-soft: #1F1D1A;
  --signal: #FF3B1F;
  --ultra: #2D2BFA;
  --lime: #D4FF3D;
  --paper: #FBF8F2;
  --line: rgba(10,9,8,0.12);
  --line-strong: rgba(10,9,8,0.6);
  --shadow-1: 0 1px 0 rgba(10,9,8,0.06), 0 8px 24px -10px rgba(10,9,8,0.18);
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: var(--paper); }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.035 0 0 0 0 0.03 0 0 0 0.32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* TYPE */
.display { font-family: var(--display); font-weight: 500; line-height: 0.92; letter-spacing: -0.03em; }
.display em { font-style: italic; color: var(--signal); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.mono-pill {
  font-family: var(--mono); font-size: 11px;
  background: var(--lime); color: var(--ink);
  padding: 1px 6px; border-radius: 4px;
}
.mono-pill-lime {
  font-family: var(--mono); font-size: 11px;
  background: var(--lime); color: var(--ink);
  padding: 1px 6px; border-radius: 4px;
}

/* NAV */
nav.top {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--ink); color: var(--signal);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  transform: rotate(-4deg);
}
.logo em { font-style: italic; color: var(--signal); }
nav .menu { display: flex; gap: 28px; align-items: center; }
nav .menu a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
nav .menu a:hover { color: var(--signal); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}
.btn:hover { background: var(--signal); border-color: var(--signal); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--signal); }
@media (max-width: 880px) { nav .menu a:not(.btn) { display: none; } }

/* HERO */
.hero { padding: 60px 0 90px; position: relative; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:0.4; transform:scale(0.7);} }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 36px;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--signal); }

.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  align-items: end; margin-top: 24px;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; max-width: 44ch; color: var(--ink-soft); }
.hero-lede strong { font-weight: 600; color: var(--ink); background: var(--lime); padding: 0 4px; }

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-stage {
  margin-top: 80px; position: relative;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.marquee {
  display: flex; gap: 48px; align-items: center;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
}
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee span { font-family: var(--display); font-style: normal; font-size: 28px; color: var(--ink-soft); }
.marquee span em { font-style: italic; }
.marquee .dotsep { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; flex-shrink: 0; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTION */
section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.section-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 80px; max-width: 920px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-head h2 em { color: var(--signal); font-style: italic; }
.section-head p { font-size: 18px; color: var(--ink-soft); max-width: 60ch; line-height: 1.5; }
.section-num {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.section-num .bar { display: inline-block; width: 36px; height: 1px; background: var(--ink); }

/* PROBLEM */
.problem-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-left: 1px solid var(--line);
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 32px;
  background: var(--paper);
  transition: background 0.3s ease;
}
.problem-card:hover { background: var(--cream-deep); }
.problem-card .num { font-family: var(--display); font-size: 56px; font-style: italic; color: var(--signal); line-height: 1; margin-bottom: 24px; }
.problem-card h3 { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.01em; }
.problem-card p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* TIER */
.tier-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 60px;
  padding: 56px 0; border-top: 1px solid var(--line); align-items: start;
}
.tier-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .tier-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; } }
.tier-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); position: sticky; top: 100px; }
.tier-tag .pill { display: inline-block; background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; font-size: 11px; }
.tier-tag.t1 .pill { background: var(--signal); }
.tier-tag.t2 .pill { background: var(--ultra); }
.tier-tag.t3 .pill { background: var(--ink); }
.tier-tag.t4 .pill { background: var(--ink); color: var(--lime); }
.tier-tag h4 { font-family: var(--display); font-size: 22px; font-weight: 500; font-style: italic; color: var(--ink); line-height: 1.1; margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--ink); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--cream-deep); display: grid; place-items: center;
  margin-bottom: 16px; font-family: var(--mono); font-size: 14px; font-weight: 700;
}
.feature h5 { font-family: var(--display); font-size: 22px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* AI SECTION */
.ai-section { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.ai-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,59,31,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45,43,250,0.22), transparent 45%);
  pointer-events: none;
}
.ai-section .section-head h2 { color: var(--paper); }
.ai-section .section-head h2 em { color: var(--lime); }
.ai-section .section-head p { color: rgba(251,248,242,0.7); }
.ai-section .section-num { color: rgba(251,248,242,0.6); }
.ai-section .section-num .bar { background: var(--paper); }

.ai-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.ai-card {
  background: rgba(251,248,242,0.04); border: 1px solid rgba(251,248,242,0.14);
  border-radius: 16px; padding: 32px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ai-card:hover { background: rgba(251,248,242,0.08); border-color: rgba(251,248,242,0.3); }
.ai-card .num { font-family: var(--display); font-style: italic; font-size: 14px; color: var(--lime); margin-bottom: 16px; }
.ai-card h4 { font-family: var(--display); font-size: 26px; font-weight: 500; line-height: 1.05; margin-bottom: 10px; letter-spacing: -0.02em; }
.ai-card h4 em { font-style: italic; color: var(--lime); }
.ai-card p { font-size: 14px; line-height: 1.55; color: rgba(251,248,242,0.7); }
.ai-card.tall { grid-column: span 6; grid-row: span 2; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; }
.ai-card.wide { grid-column: span 6; }
.ai-card.normal { grid-column: span 4; }

@media (max-width: 980px) {
  .ai-card.tall, .ai-card.wide, .ai-card.normal { grid-column: span 12; }
  .ai-card.tall { min-height: 0; }
}

.ai-card.featured { background: var(--signal); border-color: var(--signal); }
.ai-card.featured .num { color: var(--ink); }
.ai-card.featured h4 em { color: var(--ink); }
.ai-card.featured p { color: rgba(251,248,242,0.92); }

.timeline-strip { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.time-pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  background: var(--ink); color: var(--lime);
  border: 1px solid var(--lime);
  padding: 6px 10px; border-radius: 999px;
}

/* ROLES */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); }
@media (max-width: 980px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .roles { grid-template-columns: 1fr; } }

.role { padding: 36px 28px; border-right: 1px solid var(--line); background: var(--paper); transition: background 0.3s; }
.role:last-child { border-right: none; }
.role:hover { background: var(--cream-deep); }
@media (max-width: 980px) {
  .role:nth-child(2n) { border-right: none; }
  .role:nth-child(1), .role:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .role { border-right: none; border-bottom: 1px solid var(--line); }
  .role:last-child { border-bottom: none; }
}
.role .hat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.role h3 { font-family: var(--display); font-size: 32px; font-weight: 500; line-height: 1; margin-bottom: 4px; letter-spacing: -0.02em; }
.role h3 em { font-style: italic; color: var(--signal); }
.role .role-num { font-family: var(--display); font-style: italic; color: var(--signal); font-size: 14px; margin-bottom: 32px; }
.role ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.role li { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); padding-left: 22px; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 1.5px; background: var(--signal); }

/* PULLQUOTE */
.pullquote { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pullquote h2 {
  font-family: var(--display); font-size: clamp(36px, 5.5vw, 76px);
  line-height: 0.98; font-weight: 400; letter-spacing: -0.03em; max-width: 18ch;
}
.pullquote h2 em { font-style: italic; color: var(--signal); }
.pullquote h2 .underline { background: linear-gradient(transparent 70%, var(--lime) 70%); padding: 0 2px; }

.insights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 80px; margin-top: 80px; }
@media (max-width: 720px) { .insights { grid-template-columns: 1fr; gap: 48px; } }
.insight { display: flex; flex-direction: column; gap: 14px; }
.insight .ix { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--signal); }
.insight h4 { font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.insight p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* SCALE */
.scale-section { background: var(--paper); }
.scale-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
@media (max-width: 880px) { .scale-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .scale-grid { grid-template-columns: 1fr; } }
.scale-cell { padding: 40px 24px; border-right: 1px solid var(--line); }
.scale-cell:last-child { border-right: none; }
@media (max-width: 880px) { .scale-cell:nth-child(2n) { border-right: none; } }
.scale-cell .big {
  font-family: var(--display); font-size: clamp(56px, 8vw, 108px);
  font-weight: 500; line-height: 0.9; letter-spacing: -0.04em;
}
.scale-cell .big em { font-style: italic; color: var(--signal); }
.scale-cell .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 16px; line-height: 1.5; }

.stack-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; flex-wrap: wrap; }
.stack-row .lhs { font-family: var(--display); font-style: italic; font-size: 28px; color: var(--ink-soft); }
.stack-list { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; background: var(--cream); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; text-transform: uppercase; }
.chip.hot { background: var(--signal); color: var(--paper); border-color: var(--signal); }
.chip.cool { background: var(--ultra); color: var(--paper); border-color: var(--ultra); }
.chip.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* CTA */
.cta-section { background: var(--ink); color: var(--paper); padding: 120px 0; position: relative; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,59,31,0.35), transparent 50%);
  pointer-events: none;
}
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; position: relative; }
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; gap: 40px; } }
.cta-section h2 {
  font-family: var(--display); font-size: clamp(48px, 8vw, 128px);
  line-height: 0.86; font-weight: 400; letter-spacing: -0.04em; color: var(--paper);
}
.cta-section h2 em { font-style: italic; color: var(--signal); }
.cta-section p { font-size: 18px; line-height: 1.5; color: rgba(251,248,242,0.72); margin-top: 28px; max-width: 38ch; }
.cta-row { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(251,248,242,0.5); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--signal); }

.cta-side { background: rgba(251,248,242,0.06); border: 1px solid rgba(251,248,242,0.18); border-radius: 18px; padding: 32px; }
.cta-side h5 { font-family: var(--display); font-style: italic; font-size: 22px; margin-bottom: 16px; color: var(--lime); }
.cta-side ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cta-side li { font-size: 14px; line-height: 1.5; color: rgba(251,248,242,0.85); padding-left: 24px; position: relative; }
.cta-side li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-weight: 700; }

/* FOOTER */
footer { padding: 60px 0 40px; background: var(--cream); border-top: 1px solid var(--line); }
footer .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer .row p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
footer .glyph { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--signal); }

/* COMPARE LINE */
.compare-line {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.4vw, 32px); color: var(--ink-soft);
}
.compare-line .vendor { font-style: normal; font-family: var(--sans); font-weight: 600; background: var(--paper); border: 1px solid var(--line-strong); padding: 4px 14px; border-radius: 999px; font-size: 0.7em; }
.compare-line .plus { color: var(--signal); font-style: normal; font-weight: 700; }
.compare-line .arrow { color: var(--signal); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* HERO WORD ANIMATION */
.hero h1 .word {
  display: inline-block; opacity: 0; transform: translateY(60px);
  animation: heroIn 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: 0.05s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.15s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.25s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.35s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.45s; }
.hero h1 .word:nth-child(6) { animation-delay: 0.55s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* VIDEO SECTION */
.video-section { padding: 80px 0 100px; background: var(--paper); border-top: 1px solid var(--line); }
.video-head { max-width: 760px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.video-head h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 68px); line-height: 0.96; letter-spacing: -0.03em; font-weight: 500; }
.video-head h2 em { font-style: italic; color: var(--signal); }
.video-head p { font-size: 18px; color: var(--ink-soft); line-height: 1.5; max-width: 52ch; }

.video-wrap { display: flex; flex-direction: column; gap: 16px; }

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 0 rgba(10,9,8,0.06), 0 40px 80px -30px rgba(10,9,8,0.28);
  background: var(--ink);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 720px) {
  .video-section { padding: 60px 0 80px; }
  .video-frame { border-radius: 12px; }
}

/* =====================================================
   MOBILE OPTIMIZATIONS — max-width: 480px
   ===================================================== */

@media (max-width: 480px) {

  /* NAV */
  nav.top .row { padding: 14px 0; }
  .logo { font-size: 19px; gap: 8px; }
  .logo-mark { width: 24px; height: 24px; font-size: 11px; }
  nav .menu { gap: 0; }
  nav .menu .btn { padding: 9px 16px; font-size: 13px; gap: 6px; }

  /* HERO */
  .hero { padding: 36px 0 48px; }
  .hero-eyebrow { margin-bottom: 20px; gap: 10px; }
  .hero-eyebrow .mono { font-size: 10px; }

  .hero h1 {
    font-size: 44px;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: none;
  }

  .hero-grid { gap: 24px; margin-top: 16px; }
  .hero-lede { font-size: 16px; line-height: 1.5; max-width: none; }

  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Hero-meta (compare-line) — скрыть на мобилке */
  .hero-meta { display: none; }

  /* Hero-stage marquee */
  .hero-stage { margin-top: 40px; padding-top: 20px; }
  .hero-stage > div { flex-direction: column; gap: 4px; margin-bottom: 16px !important; }
  .hero-stage .mono { font-size: 9px; }
  .marquee span { font-size: 20px; }
  .marquee { gap: 32px; }

  /* SECTIONS общий padding */
  section { padding: 56px 0; }
  .section-head { gap: 16px; margin-bottom: 40px; }
  .section-head h2 { font-size: 34px; line-height: 1.0; }
  .section-head p { font-size: 15px; }

  /* VIDEO */
  .video-section { padding: 48px 0 56px; }
  .video-head { gap: 12px; margin-bottom: 28px; }
  .video-head h2 { font-size: 28px; line-height: 1.0; }
  .video-head p { font-size: 15px; }
  .video-frame { border-radius: 10px; }

  /* PROBLEM */
  .problem-card { padding: 28px 20px; }
  .problem-card .num { font-size: 40px; margin-bottom: 16px; }
  .problem-card h3 { font-size: 20px; }
  .problem-card p { font-size: 14px; }

  /* TIERS */
  .tier-row { gap: 20px; padding: 32px 0; }
  .tier-tag { position: static; }
  .tier-tag h4 { font-size: 18px; }
  .features { gap: 12px; }
  .feature { padding: 20px; border-radius: 10px; }
  .feature h5 { font-size: 18px; }
  .feature p { font-size: 13px; }
  .feature .ico { width: 36px; height: 36px; font-size: 13px; margin-bottom: 12px; }

  /* AI SECTION */
  .ai-card { padding: 24px; border-radius: 12px; }
  .ai-card h4 { font-size: 22px; }
  .ai-card p { font-size: 13px; }
  .ai-card.tall { min-height: 0; }
  .timeline-strip { gap: 8px; }
  .time-pill { font-size: 10px; padding: 5px 8px; }

  /* ROLES */
  .role { padding: 28px 20px; }
  .role h3 { font-size: 26px; }
  .role li { font-size: 14px; }
  .role .role-num { margin-bottom: 20px; }

  /* PULLQUOTE */
  .pullquote { padding: 56px 0; }
  .pullquote h2 { font-size: 30px; line-height: 1.05; }
  .insights { margin-top: 48px; }
  .insight h4 { font-size: 22px; }
  .insight p { font-size: 15px; }

  /* SCALE */
  .scale-cell { padding: 28px 16px; }
  .scale-cell .big { font-size: 52px; }
  .scale-cell .lbl { font-size: 10px; margin-top: 10px; }
  .stack-row { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
  .stack-row .lhs { font-size: 22px; }
  .chip { font-size: 11px; padding: 6px 12px; }

  /* CTA */
  .cta-section { padding: 64px 0; }
  .cta-section h2 { font-size: 40px; line-height: 0.92; }
  .cta-section p { font-size: 16px; margin-top: 20px; max-width: none; }
  .cta-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }
  .cta-row .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  .cta-side { padding: 24px 20px; border-radius: 12px; }
  .cta-side h5 { font-size: 18px; }
  .cta-side li { font-size: 13px; }

  /* FOOTER */
  footer { padding: 40px 0 28px; }
  footer .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer .glyph { font-size: 18px; }

  /* Убрать hover-эффекты на touch-устройствах */
  .btn:hover { transform: none; box-shadow: none; }
  .feature:hover { transform: none; box-shadow: none; }
  .problem-card:hover { background: var(--paper); }
  .role:hover { background: var(--paper); }
}

/* === PRICING SECTION === */
.lv2-pricing { padding: 120px 0; background: var(--paper); border-top: 1px solid var(--line); }
@media (max-width: 720px) { .lv2-pricing { padding: 80px 0; } }

.lv2-pricing-calc { margin-bottom: 48px; }
.lv2-calc-label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 16px; color: var(--ink-soft); }
.lv2-calc-label strong { font-size: 28px; font-weight: 700; color: var(--ink); font-family: var(--display); }
.lv2-slider {
  width: 100%; max-width: 480px; height: 6px; border-radius: 3px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--signal) 0%, var(--signal) 5%, var(--line-strong) 5%);
  outline: none; cursor: pointer;
}
.lv2-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--signal);
  cursor: pointer;
}

.lv2-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px;
}
@media (max-width: 880px) { .lv2-pricing-grid { grid-template-columns: 1fr; } }

.lv2-plan {
  background: var(--cream); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.lv2-plan--featured {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 8px 32px -8px rgba(10,9,8,0.4);
}
.lv2-plan--lifetime { background: var(--cream-deep); }

.lv2-plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--signal); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px;
}
.lv2-plan-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.lv2-plan--featured .lv2-plan-name { color: rgba(251,248,242,0.6); }
.lv2-plan-price {
  font-family: var(--display); font-size: 52px; font-weight: 500;
  line-height: 1; letter-spacing: -0.03em; color: var(--ink);
}
.lv2-plan--featured .lv2-plan-price { color: var(--paper); }
.lv2-period { font-size: 16px; font-family: var(--sans); font-weight: 400; color: var(--ink-soft); }
.lv2-plan--featured .lv2-period { color: rgba(251,248,242,0.6); }
.lv2-plan-sub { font-size: 14px; color: var(--ink-soft); }
.lv2-plan--featured .lv2-plan-sub { color: rgba(251,248,242,0.7); }
.lv2-plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lv2-plan-features li { font-size: 14px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.lv2-plan-features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 1.5px; background: var(--signal); }
.lv2-plan--featured .lv2-plan-features li { color: rgba(251,248,242,0.8); }
.lv2-plan-btn {
  display: block; text-align: center; padding: 14px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1.5px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: auto;
}
.lv2-plan-btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--signal); }
.lv2-plan--featured .lv2-plan-btn { background: var(--signal); border-color: var(--signal); }
.lv2-plan--featured .lv2-plan-btn:hover { box-shadow: 4px 4px 0 var(--paper); }
.lv2-plan-btn--ghost { background: transparent; color: var(--ink); }
.lv2-plan-btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Token packages */
.lv2-token-section { margin-top: 20px; }
.lv2-token-header { margin-bottom: 24px; }
.lv2-token-header p { font-size: 16px; color: var(--ink-soft); margin-top: 8px; }
.lv2-token-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 720px) { .lv2-token-grid { grid-template-columns: repeat(2, 1fr); } }
.lv2-token-pkg {
  background: var(--cream); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 20px 16px; text-align: center;
  position: relative; transition: transform 0.2s ease;
}
.lv2-token-pkg:hover { transform: translateY(-3px); border-color: var(--ink); }
.lv2-token-pkg--popular { border-color: var(--signal); background: var(--cream-deep); }
.lv2-token-popular-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--signal); color: var(--paper);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 10px; border-radius: 999px;
}
.lv2-token-price { font-family: var(--display); font-size: 32px; font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.lv2-token-credits { font-size: 13px; color: var(--ink-soft); }
.lv2-token-note { font-size: 13px; color: var(--ink-soft); text-align: center; padding-top: 4px; }


/* ============================================================
   MOBILE FIXES (последний слой — не трогает остальное)
   ============================================================ */

/* Кнопка .btn в шапке: гарантия видимости текста */
.btn {
    /* font-family должен наследоваться от body чтобы кириллица отрисовалась */
    font-family: var(--body, 'Bricolage Grotesque', system-ui, sans-serif);
    text-align: center;
    white-space: nowrap;
    /* Жёстко фиксируем contrast на любой теме */
    color: var(--paper) !important;
    background-color: var(--ink) !important;
}
.btn-light { color: var(--ink) !important; background-color: var(--paper) !important; }
.btn-outline-light { color: var(--paper) !important; background-color: transparent !important; }
/* Иконка → внутри кнопки не должна растягивать высоту */
.btn span[aria-hidden] { display: inline-block; line-height: 1; }

@media (max-width: 880px) {
    /* tier-tag — гарантированно НЕ sticky на мобиле (раньше работало
       только на ≤720px, в диапазоне 720-880px налезало на контент) */
    .tier-tag { position: static !important; top: auto !important; }

    /* Убираем длинные горизонтальные разделители tier-row на мобиле —
       визуально читались как "бегущая строка через лендинг" */
    .tier-row { border-top: none !important; }
    .tier-row + .tier-row {
        /* Лёгкий разрыв между tier-блоками вместо длинной линии */
        margin-top: 8px;
        padding-top: 24px;
    }
    .tier-row:last-child { border-bottom: none !important; }

    /* Минимальный размер touch-кнопки */
    .btn { min-height: 44px; padding: 12px 22px; }
}

/* Совсем мелкие экраны */
@media (max-width: 480px) {
    nav.top .container { padding: 0 14px; }
    nav.top .btn { padding: 10px 16px; font-size: 13px; }
    .logo { font-size: 18px; }
}
