/* ============================================================================
   DarthDroider — тёмно-серая тема с глассморфизмом.
   Управление и акценты: градиент «тёмно-фиолетовый → тёмно-розовый».
   Никаких сборщиков: чистый CSS, чтобы серверу не нужен был node.
   ============================================================================ */

:root {
  /* Фон: тёмно-серый, чуть холодный. */
  --bg: #17171b;
  --bg-deep: #121215;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-soft: rgba(255, 255, 255, 0.06);

  /* Градиент управления. */
  --violet: #4b1f7a;
  --violet-bright: #6d2fa8;
  --pink: #a51f5c;
  --pink-bright: #d1266f;
  --grad: linear-gradient(120deg, var(--violet) 0%, var(--pink) 100%);
  --grad-hover: linear-gradient(120deg, var(--violet-bright) 0%, var(--pink-bright) 100%);

  --text: #eceaf2;
  --muted: #a8a3b6;
  --dim: #7d7889;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --wrap: 1040px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Мягкие световые пятна на фоне — они и создают ощущение стекла. */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(109, 47, 168, 0.55), transparent 70%);
}
.glow-b {
  width: 560px; height: 560px;
  bottom: -220px; right: -140px;
  background: radial-gradient(circle, rgba(209, 38, 111, 0.45), transparent 70%);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* === ШАПКА ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--stroke-soft);
}

.glass {
  background: rgba(23, 23, 27, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Круг под логотип: пока это заглушка с инициалами, картинку подставим позже. */
.logo-circle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(165, 31, 92, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 650; letter-spacing: -0.01em; }
.brand-role { font-size: 12px; color: var(--dim); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--stroke-soft);
}
.nav-link.is-active {
  color: #fff;
  background: var(--grad);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(126, 32, 100, 0.35);
}

/* === ОСНОВА =============================================================== */

.site-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding: 56px 0 72px;
  text-align: center; /* центрируем контент, как просили */
}

.site-main .wrap > * { margin-left: auto; margin-right: auto; }

/* === ТИПОГРАФИКА ========================================================== */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

h1, h2, h3 { margin: 0 0 14px; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-size: 14px; }

.gradient-text {
  background: var(--grad-hover);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === KPI / ГЕРОЙ ========================================================== */

.hero { padding: 8px 0 28px; }

.hero-logo {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 48px rgba(140, 30, 100, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* === КНОПКИ =============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
              border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-strong); border-color: var(--stroke); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(150, 32, 105, 0.35);
}
.btn-primary:hover {
  background: var(--grad-hover);
  box-shadow: 0 18px 38px rgba(180, 40, 125, 0.45);
}

.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* === СТЕКЛЯННЫЕ КАРТОЧКИ ================================================== */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow);
  text-align: left;
  overflow: hidden;
}
.card::before {
  /* тонкая световая кромка сверху — «стекло» */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}
.card-hover { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 38, 111, 0.35);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.section { margin-top: 64px; }
.section-head { margin-bottom: 8px; }

/* === КАРТОЧКА БОТА ======================================================== */

.bot-card { display: flex; flex-direction: column; gap: 10px; }

.bot-head { display: flex; align-items: center; gap: 12px; }

.bot-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 14px;
  color: #fff;
  background: var(--grad);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.bot-title { font-weight: 600; }
.bot-user { font-size: 13px; color: var(--dim); }

.bot-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }

/* === БЕЙДЖИ =============================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--stroke-soft);
  color: var(--muted);
  white-space: nowrap;
}
.badge-live { color: #8ee6a8; border-color: rgba(142, 230, 168, 0.28); background: rgba(142, 230, 168, 0.08); }
.badge-beta { color: #ffd479; border-color: rgba(255, 212, 121, 0.28); background: rgba(255, 212, 121, 0.08); }
.badge-paused { color: var(--dim); background: rgba(255, 255, 255, 0.05); }

.chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--stroke-soft);
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* === ТАБЛИЦА БОТОВ ======================================================== */

.table-card { padding: 8px; overflow-x: auto; }

.bots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.bots-table caption {
  text-align: left;
  padding: 14px 16px 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.bots-table th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid var(--stroke-soft);
  white-space: nowrap;
}
.bots-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--stroke-soft);
  vertical-align: middle;
}
.bots-table tr:last-child td { border-bottom: none; }
.bots-table tbody tr { transition: background 0.15s ease; }
.bots-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.bots-table .cell-name { font-weight: 600; color: var(--text); }
.bots-table .cell-name a:hover { color: #ff8fc0; }
.bots-table .cell-desc { color: var(--muted); font-size: 14px; }
.bots-table .cell-links { white-space: nowrap; text-align: right; }
.bots-table .cell-status { white-space: nowrap; }

/* === СПИСОК «ЧТО УМЕЕТ» ================================================== */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(209, 38, 111, 0.6);
}

/* === УСЛУГИ =============================================================== */

.service-list { display: grid; gap: 16px; margin-top: 28px; text-align: left; }
.service-item { display: flex; gap: 16px; align-items: flex-start; }
.service-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  font-size: 18px;
}

.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 24px; text-align: left; }
.step { position: relative; padding-left: 48px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 650; color: #fff;
  background: var(--grad);
}

/* === РЕТРО-РАЗДЕЛЫ ======================================================== */

.retro-hero { padding: 12px 0 8px; }
.retro-slots {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.slot {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: var(--dim);
  font-size: 14px;
  padding: 20px;
}
.slot:hover { border-color: rgba(209, 38, 111, 0.35); color: var(--muted); }

.notice {
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14.5px;
  display: inline-block;
  text-align: left;
}

/* === ПОДВАЛ =============================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--stroke-soft);
  padding: 26px 0;
  background: rgba(18, 18, 21, 0.6);
  backdrop-filter: blur(12px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.copyright { margin: 0; font-size: 14px; color: var(--muted); }
.footer-links { margin: 0; font-size: 14px; color: var(--dim); display: flex; gap: 10px; align-items: center; }
.soft-link { color: var(--muted); border-bottom: 1px solid transparent; }
.soft-link:hover { color: #ff9ecd; border-color: rgba(255, 158, 205, 0.4); }
.dot { color: var(--dim); }

/* === АДАПТИВ ============================================================== */

@media (max-width: 720px) {
  :root { --nav-h: auto; }
  .site-header { height: auto; padding: 10px 0; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { justify-content: flex-start; gap: 4px; }
  .nav-link { padding: 7px 12px; font-size: 13.5px; }
  .site-main { padding: 34px 0 52px; }
  .section { margin-top: 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .bots-table .cell-desc { display: none; } /* на телефоне таблица остаётся читаемой */
  .bots-table th:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Только для скринридеров: подписи, которые не нужны визуально. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
