/* landing/landing.css */

/* ── Тема сайта: те же переменные, что в game/style.css, чтобы главная
   страница выглядела частью одного продукта, а не отдельным сайтом.
   Переключается через data-theme="night" на <html> (landing.js). */
:root {
  --body-bg:        linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  --panel-bg:        rgba(44, 62, 80, 0.97);
  --panel-bg-solid:  #1a1a2e;
  --card-bg:         rgba(0, 0, 0, 0.2);
  --border-color:    rgba(255, 255, 255, 0.1);
  --text-primary:    #ecf0f1;
  --text-secondary:  #aaaaaa;
  --text-muted:      #888888;
  --accent-blue:     #3498db;
  --accent-gold:     #f1c40f;
}

html[data-theme="night"] {
  --body-bg:        linear-gradient(135deg, #05070a 0%, #0d1117 100%);
  --panel-bg:        rgba(10, 12, 16, 0.97);
  --panel-bg-solid:  #0d0d14;
  --card-bg:         rgba(0, 0, 0, 0.45);
  --border-color:    rgba(255, 255, 255, 0.06);
  --text-primary:    #e6e6e6;
  --text-secondary:  #888888;
  --text-muted:      #666666;
  --accent-blue:     #2f6f9e;
  --accent-gold:     #d4ac0d;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  line-height: 1.5;
}

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

/* ── Шапка ────────────────────────────────────────────────────────── */
.site-header {
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-row {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-row:hover { background: rgba(255, 255, 255, 0.08); }

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn-primary {
  background: var(--accent-gold);
  color: #1a1a2e;
}
.btn-primary:hover { background: #ffd43b; }

.btn-large { padding: 14px 28px; font-size: 16px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 20px 70px;
  text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Секции ───────────────────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-alt {
  background: var(--card-bg);
  max-width: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ── Карточки режимов ─────────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.mode-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
}

.mode-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.mode-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Фичи ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-top: 10px;
}

.feature { text-align: center; }

.feature-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── CTA финальный ────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 70px 20px;
}

.cta h2 { font-size: 26px; margin-bottom: 10px; }
.cta p { color: var(--text-secondary); margin-bottom: 26px; }

/* ── Подвал ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover { color: var(--text-secondary); }

/* ── Адаптив ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .header-nav .btn-ghost { display: none; } /* на мобиле оставляем только "Регистрация", чтобы не тесно */
}

/* --- Страницы режимов (/modes/*) --- */
.article { max-width: 780px; margin: 0 auto; padding: 32px 20px 56px; line-height: 1.65; }
.article h1 { font-size: 32px; line-height: 1.25; margin: 8px 0 14px; }
.article h2 { font-size: 22px; margin: 32px 0 10px; }
.article p { margin: 0 0 12px; }
.article-lead { font-size: 18px; opacity: 0.9; }
.breadcrumbs { font-size: 13px; opacity: 0.75; }
.breadcrumbs a { color: inherit; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 20px 0; }
.facts div { padding: 12px 14px; border-radius: 10px; background: rgba(127, 127, 127, 0.12); }
.facts dt { font-size: 12px; opacity: 0.7; margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; }
.article-actions { justify-content: flex-start; margin: 18px 0 8px; }
.mode-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mode-card h3 a { color: inherit; text-decoration: none; }
.mode-card h3 a:hover { text-decoration: underline; }
