/*
 * DeadSouls website — overrides поверх style.css (homepage slate theme).
 * Spec: docs/HOMEPAGE_THEME.md · tokens: design-tokens.css
 */
@import url('./design-tokens.css');

html, body {
  background: var(--ds-void);
  color: var(--ds-white);
  font-family: var(--ds-font-body);
  font-feature-settings: var(--ds-font-features);
}

/* === Фоновые «орбы»: subtle slate/sky atmosphere === */
.bg-animation {
  background: var(--ds-gradient-green-atmo);
}
.gradient-orb.orb-1 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 65%);
}
.gradient-orb.orb-2 {
  background: radial-gradient(circle, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.2) 70%);
}
.gradient-orb.orb-3 {
  background: radial-gradient(circle, rgba(186, 230, 253, 0.1), transparent 65%);
}

/*
 * Логотип, hero-brand, stat-numbers, section-titles — все наследуют
 * --gradient-primary (neon → white) через .gradient-text / .logo-text / .stat-value
 * из style.css. Здесь только тюнинг: жирность, межбуквенное, лёгкий glow вокруг
 * цифр, чтобы не «съедались» на тёмном фоне.
 */
.logo .logo-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-title .gradient-text,
.logo .logo-text {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.2));
}

.stat-value,
.stat-number {
  font-weight: 800;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.18));
}

.section-title .gradient-text {
  filter: brightness(1.05);
}

/* Price-labels — тот же neon-to-white gradient. */
.price-now-large,
.price-now-plan {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 700 !important;
}

/* === Header: transparent → forest on scroll (DESIGN.md §4 Navigation) === */
.header {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}
.header.scrolled {
  background: var(--ds-forest);
  border-bottom: 1px solid var(--ds-card-border);
  box-shadow: var(--ds-shadow-subtle);
}

.nav-link {
  color: var(--ds-white);
  font-weight: 500;
  letter-spacing: 0.72px;
  font-size: 18px;
}
.nav-link::after { background: var(--ds-accent); }
.nav-link:hover { color: var(--ds-text-muted); }

/* === Buttons: homepage accent primary, bordered secondary === */
.btn {
  border-radius: var(--ds-radius-sm);
  padding: 10px 18px;
  font-weight: 600;
  min-height: 40px;
  font-size: 16px;
  border: 1px solid transparent;
  font-family: var(--ds-font-body);
  letter-spacing: var(--ds-letter-spacing);
}
.btn:focus-visible { outline: none; box-shadow: var(--ds-focus-ring); }
.btn-primary {
  background: var(--ds-accent);
  color: var(--ds-theme-950);
  border-color: var(--ds-accent);
}
.btn-primary:hover { background: #7dd3fc; border-color: #7dd3fc; }
.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--ds-white);
  border-color: var(--ds-card-border);
}
.btn-secondary:hover,
.btn-outline:hover {
  background: var(--ds-forest);
  color: var(--ds-white);
  border-color: var(--ds-divider);
}
.btn-contact {
  background: var(--ds-accent);
  color: var(--ds-theme-950) !important;
  border-radius: var(--ds-radius-sm);
  padding: 10px 18px;
  font-weight: 600;
}

/* === Placeholders вместо скриншотов — тёмно-бирюзовая глубина === */
.ds-media {
  position: relative;
  min-height: 220px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-gradient-dark-teal-wash);
  border: 1px solid var(--ds-card-border);
  box-shadow: var(--ds-shadow-resting);
  overflow: hidden;
}
.ds-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(186, 230, 253, 0.06), transparent 50%);
  pointer-events: none;
}
.ds-app-window {
  border-radius: var(--ds-radius-md);
  overflow: hidden;
  border: 1px solid var(--ds-card-border);
  background: var(--ds-deep-teal);
}
.ds-app-window .window-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ds-dark-forest);
  border-bottom: 1px solid var(--ds-card-border);
}
.ds-app-window .window-controls { display: flex; gap: 6px; }
.ds-app-window .window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ds-divider);
}
.ds-app-window .window-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--ds-text-muted);
}
.ds-app-window .window-body {
  min-height: 200px;
  background: linear-gradient(180deg, var(--ds-forest) 0%, var(--ds-deep-teal) 100%);
}

/* === Карточки / фичи / цены === */
.product-image.product-image-module {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 24px;
  border-radius: var(--ds-radius-md);
  overflow: hidden;
  background: var(--ds-deep-teal);
  border: 1px solid var(--ds-card-border);
  box-shadow: var(--ds-shadow-resting);
}
.product-image.product-image-module img.module-logo-large {
  width: 88px;
  height: 88px;
  max-width: none;
  object-fit: contain;
}

.module-price-whatsapp {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 14px;
}
.module-price-whatsapp .price-was {
  font-size: 36px;
  font-weight: 600;
  color: var(--ds-text-muted);
  text-decoration: line-through;
  -webkit-text-fill-color: var(--ds-text-muted);
  background: none;
  background-clip: unset;
}
.module-price-whatsapp .price-period {
  flex-basis: 100%;
  text-align: center;
  margin-top: 2px;
}

.price-soon {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ds-text-muted);
  -webkit-text-fill-color: var(--ds-text-muted);
  background: none;
  background-clip: unset;
}

/* Карточки модулей (software.html#modules): иконка/название/цена строго по центру.
   Высокая специфичность (#modules) — перекрывает любые конфликтующие правила. */
#modules .module-card { text-align: center; }
#modules .module-card .module-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
#modules .module-card .module-icon img { margin: 0 auto; display: block; }
/* Подстрока цены: «далее 150$/мес …» */
.module-price .price-sub { font-size: 13px; color: var(--ds-text-muted); margin-top: 2px; }
.price-soon-large {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ds-text-muted);
}

.whatsapp-price-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.price-was-large {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ds-text-muted);
  text-decoration: line-through;
  opacity: 0.85;
}
.price-now-large {
  font-size: 56px;
  line-height: 1.1;
  /* Цвет — bright gradient (см. блок наверху файла). */
}

.trial-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--ds-card-border);
  text-align: left;
}
.trial-offer-card {
  background: var(--ds-deep-teal);
  border: 1px solid var(--ds-card-border);
  border-radius: var(--ds-radius-md);
  padding: 24px;
  box-shadow: var(--ds-shadow-resting);
}
.trial-offer-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin-bottom: 10px;
}
.trial-offer-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ds-white);
}
.trial-offer-text {
  font-size: 15px;
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.trial-offer-text--solo { margin-bottom: 0; }
.trial-offer-btn { display: inline-flex; }

.trial-offers--single {
  grid-template-columns: 1fr;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.whatsapp-plans {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .whatsapp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .whatsapp-plans { grid-template-columns: 1fr; }
}
.trial-offer-plan-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ds-white);
  line-height: 1.25;
}
.trial-offer-price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.price-was-plan {
  font-size: 22px;
  font-weight: 500;
  color: var(--ds-text-muted);
  text-decoration: line-through;
  opacity: 0.85;
}
.price-now-plan {
  font-size: 30px;
  line-height: 1.15;
  /* Цвет — bright gradient (см. блок наверху файла). */
}
.trial-offer-meta {
  font-size: 15px;
  color: var(--ds-text-muted);
  line-height: 1.55;
  margin: 0;
}

.platform-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-visual .ds-media { width: 100%; border-radius: var(--ds-radius-md); }
.feature-visual img { max-height: 280px; object-fit: cover; }

.software-features .feature-info > p + p { margin-top: 14px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (min-width: 769px) {
  .header .nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(10px, 2.5vw, 28px);
  }
  .header .nav-menu {
    justify-content: center;
    gap: clamp(18px, 2.5vw, 40px);
  }
}
@media (max-width: 768px) {
  .header .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.ds-media .ds-media-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
}
.ds-media:has(.ds-media-shot)::after { opacity: 0.22; }
.feature-visual .ds-media .ds-media-shot { max-height: none; }

/* === Lang switcher: pill под акцент === */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-card-border);
  background: transparent;
  color: var(--ds-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lang-btn:hover {
  color: var(--ds-white);
  border-color: var(--ds-divider);
}
.lang-btn.active {
  background: var(--ds-accent);
  color: var(--ds-theme-950);
  border-color: var(--ds-accent);
}
.lang-btn:focus-visible { outline: none; box-shadow: var(--ds-focus-ring); }

html[lang="zh-Hans"] body {
  font-family: "Noto Sans SC", var(--ds-font-body);
}

/* === Module cards: homepage service-item pattern === */
.module-card {
  background: var(--ds-dark-forest);
  border: 1px solid var(--ds-card-border);
  border-radius: var(--ds-radius-md);
  padding: 24px;
  text-align: left;
  transition: background var(--ds-transition-base), border-color var(--ds-transition-base), transform var(--ds-transition-base);
}
.module-card::before { display: none; }
.module-card:hover {
  background: var(--ds-forest);
  border-color: var(--ds-divider);
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-resting);
}
.module-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}
.module-icon img {
  width: 32px;
  height: 32px;
}
.module-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.module-card-desc {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.5;
  margin: 6px 0 0;
}
/* On the homepage module grid, reveal the arrow link permanently (cards are links). */
.products .module-card .module-link { opacity: 0.85; margin-top: 14px; }
.products .module-card:hover .module-link { opacity: 1; }

/* === Дополнительно: общие касания (обновить выбор/focus везде) === */
*:focus-visible { outline: none; box-shadow: var(--ds-focus-ring); }

/* Новая модель цен «первая покупка + продление»: старая «было»-цена скрыта (i18n ставит пустую строку). */
.price-was-plan:empty,
.price-was-large:empty { display: none; }

/* Hero модуля: заголовок выровнять влево, как цену. Карточка .module-price-card по умолчанию text-align:center, из‑за чего h2 уезжал вправо при длинной подписи цены. */
.module-price-header h2 { text-align: left; }
@media (max-width: 768px) {
  .module-price-header h2 { text-align: center; }
}

/* ============================================================
   CRAFT LAYER — bespoke, non-template treatment applied site-wide
   via shared classes (heroes, eyebrows, feature/spec cards, CTA).
   ============================================================ */

/* Reusable engineered grid texture */
.craft-grid-tex,
.page-hero::before,
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    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: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 5%, transparent 72%);
}
.page-hero, .cta-section { position: relative; }
.page-hero .container, .cta-section .container { position: relative; z-index: 1; }

/* Eyebrows: turn the pill badge into a technical mono kicker with flanking rules */
.section-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--ds-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ds-accent);
  margin-bottom: 22px;
}
.section-badge::before,
.section-badge::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ds-accent);
  opacity: 0.5;
}

/* Page hero: a touch tighter, layered over the texture */
.page-hero { padding: 168px 0 84px; }
.page-hero .hero-title { letter-spacing: -0.02em; }

/* Feature cards: flat spec-sheet look with ghost index + hover accent bar */
.features-grid { counter-reset: fc; }
.feature-card {
  counter-increment: fc;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--ds-card-border) !important;
  border-radius: 14px;
  padding: 30px 26px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.feature-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--ds-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card::before {
  content: counter(fc, decimal-leading-zero);
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--ds-font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ds-text-tertiary);
  opacity: 0.55;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: var(--ds-divider) !important;
  transform: translateY(-3px);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card .feature-icon { margin-bottom: 18px; }
.feature-card h3 { letter-spacing: -0.01em; }

/* Module feature list: spec rows with accent tick + hover rail */
.feature-detail-item {
  position: relative;
  border: 1px solid var(--ds-card-border) !important;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-detail-item::before {
  content: "";
  position: absolute;
  left: -1px; top: 14px; bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--ds-accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-detail-item:hover { border-color: var(--ds-divider) !important; }
.feature-detail-item:hover::before { opacity: 1; }
.feature-detail-icon {
  background: rgba(56, 189, 248, 0.12) !important;
  color: var(--ds-accent) !important;
  border: none !important;
}

/* Module tiles: matching hover accent bar */
.module-card { position: relative; overflow: hidden; }
.module-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--ds-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.module-card:hover::after { transform: scaleX(1); }

/* CTA: contained, engineered panel instead of a flat band */
.cta-section { background: var(--ds-void); }
.cta-content {
  position: relative;
  z-index: 1;
  border: 1px solid var(--ds-card-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  padding: 56px 40px;
  box-shadow: var(--ds-shadow-resting);
}
@media (max-width: 640px) {
  .cta-content { padding: 40px 22px; }
}

/* ============================================================
   HEADER & NAV — frosted glass, refined hover, Apple-grade
   language dropdown (globe + native names).
   ============================================================ */
.header {
  background: rgba(8, 8, 8, 0.55) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
  background: rgba(8, 8, 8, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}
.header.header-hidden { transform: translateY(-102%); }

.logo .logo-img { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.06); }

/* Nav links: pill hover instead of underline */
.nav-menu .nav-link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ds-text-muted);
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu .nav-link::after { display: none !important; }
.nav-menu .nav-link:hover { color: var(--ds-white); background: rgba(255, 255, 255, 0.06); }
.nav-menu .nav-link.active { color: var(--ds-white); background: rgba(255, 255, 255, 0.06); }
.nav-menu .btn-contact,
.nav-menu .nav-link.btn-contact {
  color: var(--ds-theme-950) !important;
  background: var(--ds-accent) !important;
  padding: 9px 18px !important;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-menu .btn-contact:hover {
  background: #7dd3fc !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.32);
}

/* Language dropdown */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ds-card-border);
  color: var(--ds-text-muted);
  font-family: var(--ds-font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-trigger:hover,
.lang-switcher.open .lang-trigger {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ds-white);
  border-color: var(--ds-divider);
}
.lang-trigger .lang-globe { opacity: 0.85; flex: none; }
.lang-trigger .lang-current { font-family: var(--ds-font-mono); font-weight: 600; letter-spacing: 0.04em; }
.lang-trigger .lang-chev { opacity: 0.7; flex: none; transition: transform 0.25s ease; }
.lang-switcher.open .lang-chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 7px;
  background: rgba(16, 16, 16, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 60;
}
.lang-switcher.open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: none;
  background: none;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font-family: var(--ds-font-body);
  transition: background 0.15s ease;
}
.lang-opt::before {
  content: none !important;
  display: none !important;
  width: 13px;
  flex: none;
  color: var(--ds-accent);
  font-size: 12px;
  line-height: 1;
}
.lang-opt.active::before { content: none; }
.lang-opt .lang-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--ds-white); }
.lang-opt .lang-code { display: none !important; }
.lang-opt:hover { background: rgba(255, 255, 255, 0.07); }
.lang-opt.active { background: rgba(56, 189, 248, 0.12); }
.lang-opt.active .lang-name,
.lang-opt.active .lang-code { color: var(--ds-accent); }

/* Narrow-laptop band: tighten nav so the full menu + dropdown never overflow
   (mobile drawer only kicks in at <=768px). */
@media (min-width: 769px) and (max-width: 1100px) {
  .header .nav-menu { gap: 2px !important; }
  .nav-menu .nav-link { font-size: 14px; padding: 7px 10px; letter-spacing: 0; }
  .nav-menu .btn-contact,
  .nav-menu .nav-link.btn-contact { padding: 8px 14px !important; }
  .nav-right { gap: 12px !important; }
  .lang-trigger { padding: 7px 10px; }
}


/* === Heroicons check bullets (feature lists) === */
.example-features li, .check-list li, .beta-features-list li{ position:relative; padding-left:30px; }
.example-features li::before, .check-list li::before, .beta-features-list li::before{ content:""; position:absolute; left:0; top:0.2em; width:18px; height:18px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E") center/contain no-repeat; }


/* === SHARED device-grid animations (used on home + software) === */
.device-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; padding: 14px; background: radial-gradient(120% 120% at 50% 0%, #131313 0%, #000 75%); }
.dev { aspect-ratio: 9 / 18; border-radius: 7px; background: linear-gradient(165deg, #161616, #0a0a0a); border: 1px solid #232323; position: relative; overflow: hidden; padding: 7px 6px 0; display: flex; flex-direction: column; gap: 4px; }
.dev::before { content: ""; height: 3px; width: 58%; border-radius: 2px; background: rgba(255,255,255,.12); }
.dev .ln { height: 3px; border-radius: 2px; background: rgba(255,255,255,.06); }
.dev .ln.s { width: 82%; } .dev .ln.m { width: 64%; } .dev .ln.l { width: 92%; }
.dev .st { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-text-tertiary); }
.dev--on .st { background: var(--ds-success); box-shadow: 0 0 0 2px rgba(74,222,128,.18); }
.ex-wall { width: 100%; border-radius: var(--ds-radius-md); overflow: hidden; border: 1px solid var(--ds-card-border); box-shadow: var(--ds-shadow-resting); contain: paint; }
.ex-wall .window-title { font-family: var(--ds-font-mono); font-size: 12px; }
.ex-hud { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--ds-font-mono); font-size: 11px; color: var(--ds-success); }
.ex-hud .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ds-success); box-shadow: 0 0 0 3px rgba(74,222,128,.16); }
.ex-grid { grid-template-columns: repeat(9, 1fr); gap: 7px; min-height: 0; align-content: start; }
.device-grid--adding .dev { animation: exAdd 5.6s calc(var(--i) * 0.14s) infinite both; }
@keyframes exAdd { 0% { opacity: 0; transform: scale(.5); } 5% { opacity: 1; transform: scale(1.08); } 9% { transform: scale(1); } 88% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(.5); } }
.device-grid--mirror .dev { animation: exMirror 3s infinite; }
@keyframes exMirror { 0%, 30% { border-color: #232323; box-shadow: none; } 42% { border-color: var(--ds-accent); box-shadow: 0 0 14px rgba(56,189,248,.45); } 58%, 100% { border-color: #232323; box-shadow: none; } }
.device-grid--mirror .dev--leader { animation: exLead 3s infinite; border-color: var(--ds-accent); }
@keyframes exLead { 0%, 100% { box-shadow: 0 0 0 1px var(--ds-accent), 0 0 8px rgba(56,189,248,.2); } 16% { box-shadow: 0 0 0 1px var(--ds-accent), 0 0 22px rgba(56,189,248,.55); } }
.device-grid--mirror .dev--leader::after { content: ""; position: absolute; left: 50%; top: 52%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ds-accent); opacity: 0; animation: exTap 3s infinite; }
@keyframes exTap { 0%, 100% { opacity: 0; transform: scale(.4); } 10% { opacity: .75; transform: scale(.5); } 26% { opacity: 0; transform: scale(1.8); } }
.device-grid--proxy .dev { display: flex; align-items: center; justify-content: center; padding: 0; }
.device-grid--proxy .dev::before { display: none; }
.device-grid--proxy .dev-flag { font-size: clamp(16px, 1.9vw, 26px); line-height: 1; transition: opacity .35s ease, transform .35s ease; }
.device-grid--proxy .dev-flag.swap { opacity: 0; transform: scale(.6); }
@media (max-width: 560px) { .ex-grid { grid-template-columns: repeat(6, 1fr); } }
@media (prefers-reduced-motion: reduce) { .device-grid--adding .dev, .device-grid--mirror .dev, .device-grid--mirror .dev--leader, .device-grid--mirror .dev--leader::after { animation: none; opacity: 1; } .device-grid--proxy .dev-flag { transition: none; } }
/* Пауза бесконечных анимаций «на практике», когда секция вне экрана (JS-гейт ставит .anim-paused) — нулевой CPU/GPU, пока не видно. */
.work-examples.anim-paused .dev, .work-examples.anim-paused .dev--leader, .work-examples.anim-paused .dev--leader::after { animation-play-state: paused; }


/* === De-boxed icons (flat, no background square) === */
.feature-detail-icon{ background:none !important; box-shadow:none !important; border-radius:0 !important; min-width:28px; }
.feature-detail-icon svg path{ stroke: var(--ds-accent); }


/* feature-icon stacked hierarchy (icon on its own line, clear gap) */
.feature-card .feature-icon{ display:block; margin-bottom:20px; line-height:0; }
.feature-card .feature-icon svg{ display:block; width:42px; height:42px; }

/* Tighten the CTA band: less internal top space + rise into preceding empty padding */
.cta-section{ padding:64px 0; margin-top:-40px; }
.faq-list .faq-category:last-child{ margin-bottom:0; }

/* All feature cards with an icon: icon inline with the heading, description below */
.feature-card:has(.feature-icon){ display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-items:center; }
.feature-card .feature-icon{ grid-column:1; grid-row:1; margin:0; }
.feature-card .feature-icon svg{ width:34px; height:34px; }
.feature-card:has(.feature-icon) h3{ grid-column:2; grid-row:1; margin:0; }
.feature-card:has(.feature-icon) p{ grid-column:1 / -1; grid-row:2; margin-top:14px; }


/* feature-number spacing from the animation block */
.feature-visual .feature-number{ top:-30px; left:-30px; }
