/* ════════════════════════════════════════════
   features.css — Страница возможностей NexusIDE
════════════════════════════════════════════ */

/* ─── Hero ─── */
.feat-page-hero {
  padding-top: 140px;
  padding-bottom: 3rem;
}

/* ─── Alt background sections ─── */
.feat-alt-bg {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
[data-theme="light"] .feat-alt-bg {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.05);
}

/* ─── Feature Row (large two-column layout) ─── */
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feat-row--reverse { direction: rtl; }
.feat-row--reverse > * { direction: ltr; }

@media (max-width: 860px) {
  .feat-row { grid-template-columns: 1fr; gap: 2rem; }
  .feat-row--reverse { direction: ltr; }
}

.feat-row__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-purple-light);
  margin-bottom: 0.85rem;
}

.feat-row__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--c-text);
}

.feat-row__desc {
  font-size: 1rem;
  color: var(--c-text-2);
  line-height: 1.75;
  margin: 0 0 1.5rem;
  max-width: 480px;
}

.feat-row__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.feat-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--c-text-2);
  line-height: 1.5;
}
.feat-bullet svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #6366f1;
}

.feat-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feat-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: #a5b4fc;
}

/* ─── AI Modes visual ─── */
.feat-ai-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-ai-mode {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.feat-ai-mode--pro {
  background: rgba(139,92,246,0.06);
  border-color: rgba(139,92,246,0.2);
}
.feat-ai-mode--reason {
  background: rgba(99,102,241,0.04);
  border-color: rgba(99,102,241,0.15);
}

.feat-ai-mode__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
}
.feat-ai-mode__badge--pro { color: #c4b5fd; }
.feat-ai-mode__badge--reason { color: #818cf8; }

.feat-ai-mode__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
}
.feat-ai-mode__desc {
  font-size: 0.78rem;
  color: var(--c-text-3);
}
.feat-ai-mode__tag {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: var(--c-text-3);
  width: fit-content;
}
.feat-ai-mode__tag--pro {
  background: rgba(139,92,246,0.15);
  color: #c4b5fd;
}

/* ─── Terminal demo ─── */
.feat-terminal-demo {
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.feat-terminal-demo__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feat-terminal-demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.feat-terminal-demo__body {
  padding: 14px 16px;
  line-height: 1.8;
  color: #e2e8f0;
}
.feat-terminal-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: #6366f1;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── Index demo ─── */
.feat-index-demo {
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.feat-index-demo__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feat-index-demo__input {
  padding: 10px 14px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(99,102,241,0.05);
}
.feat-index-demo__results { padding: 6px 0; }

.feat-index-result {
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.feat-index-result:hover, .feat-index-result--active {
  background: rgba(99,102,241,0.1);
}
.feat-index-result__file { color: #a5b4fc; font-weight: 600; }
.feat-index-result__line { color: rgba(255,255,255,0.25); font-size: 0.74rem; margin-left: 2px; }
.feat-index-result__preview {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.feat-index-result__preview mark {
  background: rgba(99,102,241,0.3);
  color: #c7d2fe;
  border-radius: 2px;
  padding: 0 2px;
}

/* ─── File tree demo ─── */
.feat-filetree {
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  min-width: 200px;
}
.feat-filetree__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feat-filetree__branch {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
}
.feat-filetree__items { padding: 6px 0; }
.feat-filetree__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.15s;
}
.feat-filetree__item:hover { background: rgba(255,255,255,0.04); color: #e2e8f0; }
.feat-filetree__item--dir { color: #94a3b8; }
.feat-filetree__item--active {
  background: rgba(99,102,241,0.12);
  color: #c7d2fe;
}

/* ─── Offline visual ─── */
.feat-offline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1rem;
}
.feat-offline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.feat-offline-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feat-offline-item--on .feat-offline-item__dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}
.feat-offline-item--off .feat-offline-item__dot {
  background: #94a3b8;
}
.feat-offline-item__title { font-size: 0.83rem; font-weight: 600; color: var(--c-text); }
.feat-offline-item__sub { font-size: 0.72rem; color: var(--c-text-3); }

/* Offline ring animation */
.feat-offline-visual {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-offline-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.15);
  animation: ring-pulse 3s ease-in-out infinite;
}
.feat-offline-ring--1 { width: 80px; height: 80px; animation-delay: 0s; }
.feat-offline-ring--2 { width: 120px; height: 120px; animation-delay: 0.5s; border-color: rgba(99,102,241,0.08); }
.feat-offline-ring--3 { width: 160px; height: 160px; animation-delay: 1s; border-color: rgba(99,102,241,0.04); }
@keyframes ring-pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.feat-offline-core {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
}
.feat-offline-label {
  position: absolute;
  bottom: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-text-3);
  text-align: center;
  width: 100%;
}

/* ─── Platform cards ─── */
.feat-platform-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.25rem;
}
.feat-platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--c-text-2);
  font-size: 0.88rem;
  font-weight: 600;
}
.feat-platform-card small {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--c-text-3);
}

/* ─── Size badge ─── */
.feat-size-badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.feat-size-badge__num { font-size: 2.5rem; font-weight: 900; color: #a5b4fc; line-height: 1; }
.feat-size-badge__unit { font-size: 1rem; font-weight: 700; color: #818cf8; }
.feat-size-badge__label { font-size: 0.7rem; color: var(--c-text-3); margin-top: 6px; }
.feat-size-badge__sub { font-size: 0.65rem; color: rgba(255,255,255,0.2); }

/* ─── Comparison table ─── */
.feat-compare {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  max-width: 700px;
  margin: 0 auto;
}
.feat-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.feat-compare__table thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.feat-compare__table th {
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--c-text);
}
.feat-compare__table th:first-child { text-align: left; }
.feat-compare__table td {
  padding: 12px 20px;
  text-align: center;
  color: var(--c-text-2);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.feat-compare__table td:first-child { text-align: left; }
.feat-compare__table tbody tr:hover { background: rgba(255,255,255,0.02); }

.feat-compare__plan { font-size: 0.88rem; font-weight: 700; }
.feat-compare__plan--pro { color: #c4b5fd; }
.feat-compare__price { font-size: 0.75rem; color: var(--c-text-3); margin-top: 3px; }
.feat-compare__price--pro { color: #a5b4fc; }

.feat-compare__yes { color: #22c55e; font-weight: 700; font-size: 1rem; }
.feat-compare__no  { color: rgba(255,255,255,0.15); }
