/* =========================================================
   DEVFAIL™ — Enterprise IT Satire Design System
   Aesthetic: Linear / Vercel / Stripe Dark Enterprise
   ========================================================= */

:root {
  --bg-base: #06070c;
  --bg-surface: #0d1018;
  --bg-surface-2: #121622;
  --bg-glass: rgba(16, 20, 31, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f4f6fb;
  --text-secondary: #9aa3b8;
  --text-muted: #667085;

  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-danger: #ff4757;
  --accent-danger-soft: rgba(255, 71, 87, 0.14);
  --accent-warn: #f59e0b;
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.22);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255, 71, 87, 0.11), transparent 60%),
    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: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: top center, top right, top left, top left;
}

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

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 7, 12, 0.78);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-danger));
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.35);
  flex-shrink: 0;
}

.brand-tag {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-danger-soft);
  color: #ff7b86;
  border: 1px solid rgba(255, 71, 87, 0.28);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-disabled-gag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-disabled-gag:hover {
  border-color: rgba(255, 71, 87, 0.45);
  color: #ff8c95;
}

.btn-danger-ghost {
  background: var(--accent-danger-soft);
  border-color: rgba(255, 71, 87, 0.32);
  color: #ff808b;
  font-size: 0.84rem;
  padding: 8px 14px;
}

.btn-danger-ghost:hover {
  background: rgba(255, 71, 87, 0.24);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.96rem;
  border-radius: 12px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.32);
  color: #ff98a0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-danger);
  box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.75); }
  70% { box-shadow: 0 0 0 9px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  max-width: 960px;
  margin: 0 auto 24px;
}

.gradient-text {
  background: linear-gradient(120deg, #ffffff 15%, #a5b4fc 55%, #ff6b7a 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 52px;
}

/* Interactive Zero-Days Incident Counter */
.incident-banner {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.92), rgba(11, 13, 22, 0.92));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.incident-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.incident-counter {
  min-width: 74px;
  height: 74px;
  border-radius: 14px;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.incident-counter .num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #ff6b7a;
}

.incident-counter .lbl {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 3px;
}

.incident-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.incident-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Metrics Row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.metric-card {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.metric-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.metric-val.red { color: #ff6b7a; }
.metric-val.indigo { color: #a5b4fc; }
.metric-val.cyan { color: #67e8f9; }
.metric-val.warn { color: #fbbf24; }

.metric-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* =========================================================
   MARQUEE TICKER (Hall of Fame / Mentioned Brands)
   ========================================================= */
.ticker-section {
  padding: 26px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 16, 24, 0.65);
  overflow: hidden;
}

.ticker-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee 38s linear infinite;
}

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

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.ticker-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-danger);
}

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

/* =========================================================
   SHARED SECTION HEADERS
   ========================================================= */
section.block {
  padding: 96px 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a5b4fc;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.04rem;
  color: var(--text-secondary);
}

/* =========================================================
   BENTO GRID — 10 SYSTEMIC REASONS
   ========================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  grid-column: span 4;
  padding: 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(17, 21, 33, 0.92), rgba(10, 12, 20, 0.94));
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-8 { grid-column: span 8; }

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(165, 180, 252, 0.34);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.bento-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.severity-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.sev-p0 {
  background: rgba(255, 71, 87, 0.14);
  color: #ff7b86;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.sev-p1 {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sev-ux {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.32);
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.quote-box {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-indigo);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.quote-box.danger {
  border-left-color: var(--accent-danger);
}

/* =========================================================
   INTERACTIVE SANDBOX — "ПЕСОЧНИЦА UX-БОЛИ"
   ========================================================= */
.sandbox-wrap {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.sandbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.sandbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sandbox-tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sandbox-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.sandbox-tab.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.55);
  color: #fff;
}

.sandbox-stage {
  padding: 36px;
  min-height: 410px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: contents;
}

.demo-brief h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-brief p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.demo-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.demo-widget {
  padding: 26px;
  border-radius: var(--radius-md);
  background: #0a0c14;
  border: 1px solid var(--border-strong);
}

/* Demo 1: Phone Validator */
.mock-input-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.mock-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  background: #141927;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s ease;
}

.mock-input:focus {
  border-color: var(--accent-indigo);
}

.mock-input.err {
  border-color: var(--accent-danger);
  background: rgba(255, 71, 87, 0.06);
}

.mock-input.ok {
  border-color: var(--accent-emerald);
}

.validation-msg {
  margin-top: 10px;
  font-size: 0.88rem;
  min-height: 24px;
  font-weight: 500;
}

.validation-msg.err { color: #ff6b7a; }
.validation-msg.ok { color: #34d399; }

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-btn {
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.chip-btn:hover {
  border-color: var(--accent-indigo);
  color: #fff;
}

/* Demo 2: Sideways Video Player */
.mock-player {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #111420;
}

.mock-video-screen {
  height: 210px;
  background: linear-gradient(135deg, #1b2236, #0d111c);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sideways-content {
  transform: rotate(-90deg);
  max-width: 185px;
  text-align: center;
  padding: 10px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.mock-menu {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item-disabled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #6b7280;
  font-size: 0.85rem;
  cursor: not-allowed;
}

.jira-reply {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  font-size: 0.84rem;
  color: #ffb3ba;
  display: none;
}

.jira-reply.show { display: block; }

/* Demo 3: 8-Click Cancel Quest */
.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quest-box {
  padding: 18px;
  border-radius: 12px;
  background: #121726;
  border: 1px solid var(--border-subtle);
}

.quest-box h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.quest-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.quest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-tiny-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #7c8599;
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-tiny-cancel:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Demo 4: WB Choice + Offline Ad */
.demo4-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wb-dropdown {
  background: #151a2a;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
}

.wb-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.wb-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 600;
}

.wb-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid #a855f7;
  background: #fff;
}

.offline-sim {
  background: #111420;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.offline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.skeleton-block {
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(90deg, #1a1f30 25%, #232a40 50%, #1a1f30 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.offline-sim.is-offline .skeleton-block {
  color: transparent;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ad-banner-mock {
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.ad-banner-mock small {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  opacity: 0.85;
}

/* =========================================================
   EVIDENCE GALLERY (REAL SCREENSHOTS)
   ========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #fff;
}

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

.evidence-card {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.evidence-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 180, 252, 0.4);
  box-shadow: var(--shadow-card);
}

.evidence-card.hidden {
  display: none;
}

.evidence-thumb {
  position: relative;
  height: 220px;
  background: #080a10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.evidence-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.evidence-card:hover .evidence-thumb img {
  transform: scale(1.04);
}

.evidence-code {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(6, 7, 12, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e2e8f0;
}

.evidence-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(6, 7, 12, 0.84);
  font-size: 0.74rem;
  color: #cbd5e1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.evidence-card:hover .evidence-zoom {
  opacity: 1;
}

.evidence-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.evidence-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.evidence-body h3 {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
}

.evidence-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* =========================================================
   COMPARISON — ФИКСИКИ VS ПРОГРАММИСТЫ
   ========================================================= */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.compare-card.good {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(13, 16, 24, 0.95) 45%);
}

.compare-card.bad {
  border-color: rgba(255, 71, 87, 0.35);
  background: linear-gradient(180deg, rgba(255, 71, 87, 0.08), rgba(13, 16, 24, 0.95) 45%);
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.compare-card.good .compare-badge {
  background: var(--accent-emerald-soft);
  color: #34d399;
}

.compare-card.bad .compare-badge {
  background: var(--accent-danger-soft);
  color: #ff7b86;
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.compare-card .lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: #dbe2f0;
}

.compare-list .ico {
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.compare-card.good .ico { color: #34d399; }
.compare-card.bad .ico { color: #ff6b7a; }

/* =========================================================
   TIMELINE — CHANGELOG 2026
   ========================================================= */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 28px;
  border-left: 2px solid var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-indigo);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.timeline-item.peak::before {
  background: var(--accent-danger);
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.28);
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tl-ver {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
}

.timeline-item.peak .tl-ver {
  background: var(--accent-danger-soft);
  color: #ff7b86;
}

.tl-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-item p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* =========================================================
   SATIRICAL PRICING
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.price-card.featured {
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.13), var(--bg-surface) 45%);
  box-shadow: var(--shadow-glow);
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.price-features li::before {
  content: "→ ";
  color: var(--accent-indigo);
  font-family: var(--font-mono);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 56px 0 42px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 10, 16, 0.9);
}

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

.footer-note {
  max-width: 560px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* =========================================================
   LIGHTBOX MODAL & TOAST
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 5, 10, 0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.lightbox-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.lightbox-head-title {
  font-weight: 700;
  font-size: 1rem;
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-media {
  background: #05060a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  max-height: 62vh;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 58vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-foot {
  padding: 18px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lightbox-caption {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #141928;
  border: 1px solid rgba(255, 71, 87, 0.45);
  color: #f8fafc;
  font-size: 0.88rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast strong {
  display: block;
  color: #ff7b86;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

/* =========================================================
   MEME UPGRADES: 1-LINE FIX DIFF, EXCUSE GENERATOR, TEAM
   ========================================================= */

/* 1-Line Fix vs Reality Hero Widget */
.oneline-card {
  max-width: 960px;
  margin: 0 auto 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.96), rgba(9, 11, 18, 0.96));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.oneline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.oneline-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.oneline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oneline-tab {
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.oneline-tab:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.oneline-tab.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.6);
  color: #fff;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.diff-pane {
  padding: 22px 24px;
}

.diff-pane.fix {
  border-right: 1px solid var(--border-subtle);
  background: rgba(16, 185, 129, 0.04);
}

.diff-pane.prod {
  background: rgba(255, 71, 87, 0.045);
}

.diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.diff-pane.fix .diff-badge {
  background: var(--accent-emerald-soft);
  color: #34d399;
}

.diff-pane.prod .diff-badge {
  background: var(--accent-danger-soft);
  color: #ff7b86;
}

.code-snippet {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 13px 15px;
  border-radius: 10px;
  background: #07090f;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  overflow-x: auto;
  margin-bottom: 10px;
}

.diff-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.prod-quote {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffe4e6;
  margin-bottom: 8px;
}

/* Fix-time strip inside Bento cards */
.fix-time-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.fix-time-strip .fast { color: #34d399; font-weight: 700; }
.fix-time-strip .fail { color: #ff7b86; font-weight: 700; }

/* Meme Studio: Excuse Generator + Senior Time Estimator */
.meme-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.studio-card {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 21, 33, 0.94), rgba(10, 12, 20, 0.96));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.studio-card h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.studio-card .studio-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.excuse-screen {
  padding: 22px 20px;
  border-radius: 14px;
  background: #07090f;
  border: 1px solid rgba(99, 102, 241, 0.35);
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.excuse-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #a5b4fc;
}

.excuse-text {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Estimator */
.slider-wrap {
  padding: 18px 20px;
  border-radius: 14px;
  background: #07090f;
  border: 1px solid var(--border-subtle);
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.slider-head label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.slider-head .minutes-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #34d399;
}

.est-range {
  width: 100%;
  accent-color: var(--accent-indigo);
  cursor: pointer;
}

.estimator-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.est-stat {
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.est-stat .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.est-stat .v {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

.est-stat .v.red { color: #ff7b86; }
.est-stat .v.indigo { color: #a5b4fc; }

/* Parody Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.team-card {
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.team-card.fixik-card {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--bg-surface) 55%);
}

.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
}

.team-card.fixik-card .team-avatar {
  background: var(--accent-emerald-soft);
  border-color: rgba(16, 185, 129, 0.45);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a5b4fc;
}

.team-card.fixik-card .team-role {
  color: #34d399;
}

.team-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
}

.team-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.team-salary {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Sneaky Clipped Banner Gag (photo_7 tribute) */
.clipped-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 950;
  max-width: 340px;
  padding: 16px 42px 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d97706, #ea580c);
  color: #fff;
  font-size: 0.83rem;
  line-height: 1.4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.clipped-banner.dismissed {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.clipped-banner strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.clipped-x-btn {
  position: absolute;
  top: -11px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

@media (max-width: 1024px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-pane.fix { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .meme-studio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
  .estimator-results { grid-template-columns: 1fr; }
  .clipped-banner { left: 12px; right: 12px; max-width: none; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.span-6, .bento-card.span-8 { grid-column: span 6; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .sandbox-stage { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 44px; }
  .incident-banner { flex-direction: column; align-items: flex-start; }
  .metrics-grid { grid-template-columns: 1fr; }
  .bento-card, .bento-card.span-6, .bento-card.span-8 { grid-column: span 12; }
  .evidence-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .sandbox-stage { padding: 22px; }
  section.block { padding: 68px 0; }
}
