/* ========= /features-only стили ========= */

/* Hero на /features — компактнее главного hero */
.features-hero {
  padding: 80px 0 40px;
  position: relative;
}
.features-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.features-hero .accent {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 720px;
  margin-top: 20px;
}
.features-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
}
.features-hero-meta .dot {
  color: var(--cyan);
  margin-right: 6px;
}

/* Активная ссылка в навигации */
.nav a.active {
  color: var(--cyan);
}

/* Секции */
.features-section {
  padding: 60px 0;
  position: relative;
}
.features-section-alt {
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02), transparent);
}
.features-section-head {
  margin-bottom: 36px;
  max-width: 720px;
}
.features-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.features-section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-top: 12px;
}

/* Сетка карточек */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 12px 40px -12px rgba(0, 229, 255, 0.2);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: var(--ink);
}
.feature-card .feature-what,
.feature-card .feature-why {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.feature-card .feature-what b,
.feature-card .feature-why b {
  color: var(--ink);
  font-weight: 600;
}

.feature-screenshot {
  margin-top: 14px;
  border-radius: 14px;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-screenshot.placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  padding: 24px 12px;
  height: 200px;
}
.feature-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
.feature-screenshot video {
  width: 100%;
  height: auto;
  display: block;
}
.feature-screenshot.contain {
  background: #0a0e14;
  padding: 0;
  min-height: 240px;
}
.feature-screenshot.contain video {
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tier-badge {
  z-index: 3;
}

/* Tier badges */
.tier-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.tier-badge.tier-free {
  color: var(--lime);
}
.tier-badge.tier-paid {
  color: var(--cyan);
}
.tier-badge.tier-premium {
  color: var(--gold);
  background: rgba(255, 196, 60, 0.08);
}

/* Сравнительная таблица */
.comparison-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  font-family: var(--font-body);
}
.comparison-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
}
.comparison-row > div {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px;
  display: flex;
  align-items: center;
}
.comparison-row > div:last-child {
  border-right: none;
}
.comparison-row:last-child > div {
  border-bottom: none;
}
.comparison-head {
  background: var(--panel);
}
.comparison-head > div {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-weight: 600;
}
.cell-good {
  color: var(--lime);
  font-weight: 600;
}
.cell-bad {
  color: var(--red);
}
.cell-meh {
  color: var(--gold);
}

/* Mobile */
@media (max-width: 720px) {
  .features-hero { padding: 60px 0 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px; }
  .feature-screenshot.placeholder { height: 160px; }
  .comparison-row {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
  }
  .comparison-row > div {
    padding: 12px;
    font-size: 13px;
  }
}
