/* ============================================================
   Старшина+ Landing Page — style.css
   Design system: Army+ inspired
   Primary: #FD890A | BG: #0E0D0B | Surface: #1A1917
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --primary:       #FD890A;
  --primary-hover: #E67A00;
  --primary-glow:  rgba(253, 137, 10, 0.25);
  --bg:            #0E0D0B;
  --surface:       #1A1917;
  --surface-2:     #222120;
  --border:        rgba(255, 255, 255, 0.08);
  --text:          #EFEFEF;
  --muted:         #A1A09E;
  --success:       #10B981;
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   999px;
  --shadow-glow:   0 0 40px rgba(253, 137, 10, 0.15);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(253, 137, 10, 0.4);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(253, 137, 10, 0.5);
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.btn-donate:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(253, 137, 10, 0.3);
}
.btn-donate--large {
  padding: 18px 48px;
  font-size: 1.125rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(14, 13, 11, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
}
.brand-icon { font-size: 1.5rem; }
.brand-accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-donate { padding: 10px 22px !important; font-size: 0.9rem !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253,137,10,0.18) 0%, transparent 70%);
  top: -150px;
  left: -100px;
}
.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253,137,10,0.1) 0%, transparent 70%);
  bottom: 0;
  right: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(253, 137, 10, 0.12);
  border: 1px solid rgba(253, 137, 10, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeDown 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 24px;
  animation: fadeDown 0.6s 0.1s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, #FD890A 0%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.75;
  animation: fadeDown 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  animation: fadeDown 0.6s 0.3s ease both;
}

.hero-screenshot {
  width: 100%;
  max-width: 920px;
  animation: fadeUp 0.8s 0.4s ease both;
}

/* ---------- Screenshot Frame ---------- */
.screenshot-frame {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 40px 80px rgba(0,0,0,0.6);
}
.screenshot-dots {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.screenshot-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.screenshot-dots span:nth-child(1) { background: #FF5F57; }
.screenshot-dots span:nth-child(2) { background: #FEBC2E; }
.screenshot-dots span:nth-child(3) { background: #28C840; }
/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  /* height driven by aspect ratio of first slide */
}
.slideshow .slide {
  display: block;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slideshow .slide.active {
  opacity: 1;
  position: relative; /* keeps the frame height correct */
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 48px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.stat-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}
.mode-offline {
  background: rgba(253, 137, 10, 0.15);
  color: var(--primary);
  border: 1px solid rgba(253, 137, 10, 0.3);
}
.mode-online {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.mode-sep {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ---------- Section Helpers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(253, 137, 10, 0.1);
  border: 1px solid rgba(253, 137, 10, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Features ---------- */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.feature-card--big {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  border-color: rgba(253, 137, 10, 0.3);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.feature-img {
  margin-top: auto;
  padding-top: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: 100%;
  object-fit: cover;
  max-height: 220px;
}
.feature-card--big .feature-img {
  max-height: 320px;
}

/* ---------- Screenshots Gallery ---------- */
.screenshots {
  padding: 80px 0 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item--wide {
  grid-column: 1 / 3;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface-2);
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.02);
  border-color: rgba(253, 137, 10, 0.4);
  box-shadow: var(--shadow-glow);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top left;
  transition: var(--transition);
}
.gallery-item--wide img {
  height: 260px;
}
.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(14,13,11,0.9) 0%, transparent 100%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Why Section ---------- */
.why {
  padding: 100px 0;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content .section-tag { margin-bottom: 16px; }
.why-content .section-title { text-align: left; margin-bottom: 32px; max-width: 480px; }

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(253, 137, 10, 0.1);
  border: 1px solid rgba(253, 137, 10, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-list li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.why-list li p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.why-visual { display: flex; justify-content: flex-end; }
.why-frame { max-width: 480px; width: 100%; }

/* ---------- Donate CTA ---------- */
.donate-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.donate-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(253,137,10,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.donate-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.donate-emoji { font-size: 3rem; }

.donate-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.donate-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
}
.footer-credits {
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-credits a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}
.footer-credits a:hover { color: var(--primary-hover); }
.footer-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card--big {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item--wide { grid-column: 1 / 3; }

  .why-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .why-visual { justify-content: center; }
  .why-frame { max-width: 100%; }

  .stat-item { padding: 12px 28px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; z-index: 101; }

  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-donate { text-align: center; justify-content: center; }

  .stats-inner { flex-direction: column; gap: 0; }
  .stat-divider { width: 48px; height: 1px; }
  .stat-item { padding: 16px 0; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--big { grid-column: auto; grid-row: auto; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: auto; }
  .gallery-item img, .gallery-item--wide img { height: 200px; }

  .why-content .section-title { font-size: 1.7rem; }
}
