/* ==========================================================================
   OBSIDIAN BOT — PREMIUM LANDING DESIGN SYSTEM (RESPONSIVE & SENIOR UI/UX)
   Theme: Deep Obsidian Void / Neon Violet / Cyan / Emerald Accents
   ========================================================================== */

:root {
  --bg-primary: #07080c;
  --bg-secondary: #0c0e15;
  --bg-card: rgba(18, 20, 31, 0.75);
  --bg-card-hover: rgba(26, 30, 46, 0.85);
  --bg-glass: rgba(14, 16, 25, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.4);
  --border-glow: rgba(168, 85, 247, 0.25);

  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px -10px rgba(139, 92, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Фоновые градиенты и эмбиентная сетка */
.bg-ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(56, 189, 248, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  pointer-events: none;
  z-index: -1;
}

/* Контейнеры */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION BAR (RESPONSIVE)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
}

.nav-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 9px;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  align-self: center;
  margin: 0;
  box-sizing: border-box;
}

.cta-text-short {
  display: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Мобильный бургер-переключатель */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  padding: 0;
  transition: background 0.2s ease;
}

.mobile-toggle .bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 150px 0 90px;
  text-align: center;
  position: relative;
}

.badge-wrapper {
  display: inline-flex;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 70%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.8vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 34px;
  font-weight: 400;
  line-height: 1.65;
}

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

.btn-large {
  padding: 13px 28px;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* ==========================================================================
   SHOWCASE SECTION & SPLIT VIEW
   ========================================================================== */
.showcase-section {
  padding: 60px 0 90px;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 44px;
}

.section-tag {
  color: var(--accent-purple-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Скролл табов на мобильных */
.scenario-tabs-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.scenario-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.scenario-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: max-content;
  margin: 0 auto;
}

.scenario-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.scenario-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.scenario-tab.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Сплит-экран */
.split-device-container {
  display: grid;
  grid-template-columns: 1fr 60px 1.35fr;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  position: relative;
}

/* Левая колонка: Telegram */
.tg-pane {
  background: #0f141c;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
}

.pane-header {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.25);
}

.pane-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pane-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.pane-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.pane-status {
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

.pane-action-dot {
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.tg-chat-body {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.chat-bubble {
  max-width: 90%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.5;
  position: relative;
  transition: opacity 0.2s ease;
}

.bubble-user {
  align-self: flex-end;
  background: #2b5278;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-bot {
  align-self: flex-start;
  background: #182533;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* Центральный соединитель / Поток ИИ */
.stream-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 17, 0.9);
  border-right: 1px solid var(--border-subtle);
  position: relative;
  min-height: 100%;
}

.connector-pulse-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent-purple), transparent);
  animation: flow-line-v 2s infinite ease-in-out;
}

@keyframes flow-line-v {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

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

.ai-chip-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-purple-glow);
  z-index: 2;
  font-size: 1.1rem;
}

/* Правая колонка: Obsidian Vault */
.obsidian-pane {
  background: #191a21;
  display: flex;
  flex-direction: column;
}

.obsidian-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #14151b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.obsidian-vault-name {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.obsidian-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 8px 16px 0;
  background: #13141a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}

.obs-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #191a21;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  white-space: nowrap;
}

.obsidian-doc-body {
  padding: 22px 24px;
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-y: auto;
  max-height: 500px;
  transition: opacity 0.2s ease;
}

.obs-frontmatter {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.obs-h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #fff;
}

.obs-badge {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: block;
}

.obs-callout {
  background: rgba(139, 92, 246, 0.08);
  border-left: 3px solid var(--accent-purple);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  font-size: 0.86rem;
}

.obs-callout-muted {
  border-left-color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.obs-callout-title {
  font-weight: 700;
  color: var(--accent-purple-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.obs-h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #e2e8f0;
}

.obs-list, .obs-tasks {
  list-style: none;
  margin-bottom: 14px;
}

.obs-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.obs-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-purple);
}

.obs-tasks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 5px;
}

.obs-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent-purple);
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.obs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.obs-tag {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple-light);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   СЕТЕВОЕ МЫШЛЕНИЕ (ИНТЕРАКТИВНЫЙ SVG ГРАФ)
   ========================================================================== */
.graph-section {
  padding: 80px 0;
  position: relative;
}

.graph-window-wrapper {
  background: #0f1118;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.15);
  display: flex;
  flex-direction: column;
}

.graph-window-header {
  padding: 12px 20px;
  background: rgba(18, 21, 31, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.graph-window-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.graph-window-badge {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.graph-viewport {
  width: 100%;
  aspect-ratio: 900 / 460;
  min-height: 320px;
  background: radial-gradient(circle at 50% 50%, #111422 0%, #090a10 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Стили линий и узлов с деликатной живой анимацией */
.graph-edge {
  stroke: rgba(139, 92, 246, 0.22);
  stroke-width: 1.5;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
  animation: graphEdgesBreathe 6s ease-in-out infinite alternate;
}

@keyframes graphEdgesBreathe {
  0% { stroke-opacity: 0.18; }
  100% { stroke-opacity: 0.32; }
}

/* Пульсирующий ореол у ключевых хабов (Obsidian & Telegram) */
.hub-halo-ring {
  fill: none;
  stroke: #a78bfa;
  stroke-width: 1.5;
  transform-origin: center;
  animation: hubBreathe 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hubBreathe {
  0% {
    r: 15;
    stroke-opacity: 0.2;
  }
  100% {
    r: 22;
    stroke-opacity: 0.6;
  }
}

/* Мягкий органический микро-дрейф узлов (эффект живого созвездия) */
.graph-node {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.graph-node.drift-1 { animation: nodeDrift1 7s ease-in-out infinite alternate; }
.graph-node.drift-2 { animation: nodeDrift2 8.5s ease-in-out infinite alternate; }
.graph-node.drift-3 { animation: nodeDrift3 9s ease-in-out infinite alternate; }
.graph-node.drift-4 { animation: nodeDrift4 6.8s ease-in-out infinite alternate; }

@keyframes nodeDrift1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(1.5px, -2px); }
}

@keyframes nodeDrift2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2px, 1.5px); }
}

@keyframes nodeDrift3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(2px, 2px); }
}

@keyframes nodeDrift4 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-1.5px, -2px); }
}

.node-circle {
  transition: fill 0.2s ease, r 0.2s ease, filter 0.2s ease;
}

.node-label {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: #94a3b8;
  user-select: none;
  pointer-events: none;
  transition: fill 0.2s ease, font-weight 0.2s ease;
}

.node-label.hub-label {
  font-weight: 700;
  fill: #f8fafc;
  font-size: 12px;
}

/* При наведении анимации фиксируются для четкого фокуса */
.graph-svg.is-hovered .graph-node {
  animation-play-state: paused;
  opacity: 0.18;
}

.graph-svg.is-hovered .graph-edge {
  animation-play-state: paused;
  opacity: 0.1;
}

.graph-svg.is-hovered .graph-edge.edge-active {
  stroke: #a78bfa;
  stroke-width: 2.5;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.8));
}

.graph-svg.is-hovered .graph-node.node-active {
  opacity: 1;
}

.graph-svg.is-hovered .graph-node.node-active .node-circle {
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.9));
}

.graph-svg.is-hovered .graph-node.node-active .node-label {
  fill: #ffffff;
  font-weight: 700;
}

.graph-window-footer {
  padding: 10px 20px;
  background: rgba(13, 15, 23, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURE GRID
   ========================================================================== */
.features-section {
  padding: 90px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   ARCHITECTURE WORKFLOW
   ========================================================================== */
.architecture-section {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent, rgba(13, 15, 23, 0.5), transparent);
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.workflow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  transition: transform 0.25s ease;
}

.workflow-step:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-purple-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.step-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   COMMANDS QUICK PALETTE (RESPONSIVE)
   ========================================================================== */
.commands-section {
  padding: 80px 0;
}

.commands-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.command-row {
  display: grid;
  grid-template-columns: 220px 1fr 100px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
  gap: 16px;
}

.command-row:last-child {
  border-bottom: none;
}

.command-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.command-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-purple-light);
  background: rgba(139, 92, 246, 0.1);
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  cursor: pointer;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.command-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-self: end;
  white-space: nowrap;
}

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

/* ==========================================================================
   PRICING & ACCESS SECTION (NEW)
   ========================================================================== */
.pricing-section {
  padding: 90px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 36px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.popular {
  background: linear-gradient(180deg, rgba(28, 23, 48, 0.8) 0%, rgba(18, 19, 31, 0.85) 100%);
  border-color: var(--accent-purple);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.25);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Карточка максимальной выгоды (Годовой Pro) */
.pricing-card.best-value {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 19, 31, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.15);
}

.pricing-card.best-value:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.25);
}

.best-value-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.best-value-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
}

.best-value-btn:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55) !important;
}

.price-subtext {
  font-size: 0.76rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  display: block;
  margin-top: 2px;
}

.pricing-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  min-height: 38px;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}

.price-val {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.plan-features li span {
  color: var(--accent-emerald);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-features li.disabled {
  color: var(--text-muted);
  opacity: 0.6;
}

.plan-features li.disabled span {
  color: var(--accent-rose);
}

.plan-cta-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.92rem;
}

.access-notice-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.notice-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.notice-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--accent-purple-light);
}

.notice-text p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 90px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 22px 18px;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */
.final-cta {
  padding: 90px 0 130px;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(30, 27, 50, 0.85), rgba(16, 17, 28, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 60px 24px;
  box-shadow: 0 20px 60px -20px rgba(139, 92, 246, 0.35);
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-desc {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 30px;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Ноутбуки и планшеты в горизонтали (max-width: 1024px) */
@media (max-width: 1024px) {
  .split-device-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .tg-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .stream-connector {
    min-height: 52px;
    height: 52px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    padding: 0 20px;
  }

  .connector-pulse-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    animation: flow-line-h 2s infinite ease-in-out;
  }

  .ai-chip-node {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

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

  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
}

/* Планшеты и большие мобильные (max-width: 860px) */
@media (max-width: 860px) {
  .navbar {
    padding: 0 14px;
  }

  .nav-wrapper {
    padding: 10px 16px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(13, 15, 23, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }

  .nav-links.active {
    display: flex;
    animation: fadeInDown 0.25s ease;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 125px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .command-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .command-desc {
    grid-column: 1 / -1;
    font-size: 0.86rem;
  }

  .copy-btn {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Все экраны меньше планшета (max-width: 768px): компактная шапка */
@media (max-width: 768px) {
  .navbar {
    padding: 0 14px;
    top: 12px;
  }

  .nav-wrapper {
    padding: 6px 14px;
    min-height: 48px;
  }

  .navbar .btn-primary,
  .nav-cta-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 0.8rem;
    gap: 6px;
    border-radius: var(--radius-sm);
    line-height: 1;
    align-self: center;
  }

  .nav-cta-btn svg {
    width: 12px;
    height: 12px;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
  }
}

/* Мобильные экраны (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 110px 0 50px;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.18;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn-large {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

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

  .workflow-steps-grid {
    grid-template-columns: 1fr;
  }

  .obsidian-doc-body {
    padding: 18px 16px;
    max-height: 380px;
  }

  .access-notice-box {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .cta-box {
    padding: 40px 18px;
  }

  .cta-title {
    font-size: 1.7rem;
  }
}

/* Смартфоны (max-width: 520px): переключение на ультра-компактный "Доступ" */
@media (max-width: 520px) {
  .cta-text-full {
    display: none;
  }

  .cta-text-short {
    display: inline;
  }

  .navbar {
    padding: 0 10px;
    top: 10px;
  }

  .nav-wrapper {
    padding: 5px 12px;
    min-height: 46px;
  }

  .nav-brand {
    gap: 8px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
    border-radius: 8px;
  }

  .nav-brand span {
    font-size: 0.94rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .navbar .btn-primary,
  .nav-cta-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
    gap: 4px;
    border-radius: var(--radius-sm);
  }

  .mobile-toggle {
    width: 32px;
    height: 32px;
  }
}

/* Экраны iPhone (max-width: 375px) */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }

  .navbar {
    padding: 0 8px;
    top: 8px;
  }

  .nav-wrapper {
    padding: 4px 10px;
    min-height: 44px;
  }

  .nav-brand span {
    font-size: 0.88rem;
  }

  .brand-icon {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  .navbar .btn-primary,
  .nav-cta-btn {
    height: 30px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .mobile-toggle {
    width: 30px;
    height: 30px;
  }
}

/* Сверхмалые экраны (320px) */
@media (max-width: 330px) {
  .navbar {
    padding: 0 6px;
  }

  .nav-wrapper {
    padding: 4px 8px;
  }

  .nav-brand span {
    font-size: 0.82rem;
  }

  .navbar .btn-primary,
  .nav-cta-btn {
    padding: 0 7px;
    font-size: 0.7rem;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
