@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #08142B;
  --bg-surface: #10274A;
  --bg-panel: #0D1F3C;
  --accent: #FF3B45;
  --accent-dim: rgba(255, 59, 69, 0.15);
  --accent-glow: rgba(255, 59, 69, 0.4);
  --text-primary: #F2F2F0;
  --text-muted: #8A9BB5;
  --border: rgba(242, 242, 240, 0.08);
  --border-accent: rgba(255, 59, 69, 0.3);
  --font-head: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

body.fixed { overflow: hidden; }

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader img { width: 60px; height: 60px; }

html.hide #preloader { display: none; }

/* GRID PATTERN */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,59,69,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,59,69,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-bottom 0.3s;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(8, 20, 43, 0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { height: 32px; width: auto; }

.logo span { display: none; }

.logo-bracket {
  color: var(--accent);
}

nav { display: flex; align-items: center; gap: 32px; }

.nav-link {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

.burger-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.act span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU */
#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(8, 20, 43, 0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.3s;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu .nav-link {
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* SECTIONS */
section { position: relative; overflow: hidden; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* HERO */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--bg-deep);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--accent); }

.hero-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent), #c4181f);
  padding: 14px 32px;
  border: 1px solid var(--accent);
  position: relative;
  animation: btnPulse 2.5s ease-in-out infinite;
  transition: box-shadow 0.3s, transform 0.2s, animation 0s;
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  animation: none;
  transform: scale(1.06);
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.btn-primary svg { width: 16px; height: 16px; }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,59,69,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

/* ABOUT */
#rules {
  padding: 120px 0;
  background: var(--bg-panel);
}

.section-tag {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag::before {
  content: '//';
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border: 1px solid var(--border);
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--border-accent);
  pointer-events: none;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--text-primary); }

.warning-box {
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  padding: 16px 20px;
  margin-top: 28px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.warning-box::before { content: '⚠ '; }

/* HOW IT WORKS */
#how-it-works {
  padding: 120px 0;
  background: var(--bg-deep);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-tag { justify-content: center; }

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.step-card {
  background: var(--bg-panel);
  padding: 36px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s;
}

.step-card:hover { border-color: var(--border-accent); }

.step-number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* DIGITAL WORLD */
#world {
  padding: 120px 0;
  background: var(--bg-panel);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.screenshot-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.screenshot-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.screenshot-item:hover img { transform: scale(1.04); }

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,20,43,0.6) 0%, transparent 60%);
}

.world-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.world-text p:last-child { margin-bottom: 0; }

.world-text--wide {
  max-width: 800px;
  margin-bottom: 56px;
}

.world-screenshots--row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.world-screenshots--row .screenshot-item {
  aspect-ratio: 9/16;
  overflow: hidden;
}

.world-screenshots--row .screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ */
#faq {
  padding: 120px 0;
  background: var(--bg-deep);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.faq-q {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.faq-num {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-width: 28px;
}

.faq-question {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex: 1;
}

.faq-arrow {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(-135deg) translateY(-3px);
}

.faq-a {
  display: none;
  padding: 20px 28px 24px 76px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

/* CONTACTS */
#contacts {
  padding: 120px 0;
  background: var(--bg-panel);
}

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

.contacts-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border-accent);
  padding: 14px 20px;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.contact-email:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}

.contact-email::before { content: '> '; opacity: 0.5; }

.contacts-info {
  border: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 36px;
}

.contacts-info-title {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contacts-info-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contacts-info-row:last-child { border-bottom: none; }

.info-label {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-value {
  font-size: 14px;
  color: var(--text-primary);
}

/* FOOTER */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

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

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* LEGAL PAGES */
.legal-page {
  padding: 140px 0 100px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
}

.legal-content h1 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.legal-content h2 {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 40px 0 16px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content strong { color: var(--text-primary); }


/* RESPONSIVE */
@media (max-width: 1024px) {
  header { padding: 0 24px; }

  .hero-inner { gap: 40px; }

  .two-col, .contacts-inner { gap: 48px; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .world-screenshots--row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { display: none; }

  .burger-btn { display: flex; }

  
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 60px;
  }

  .hero-label { justify-content: center; }

  .hero-image { order: 1; }

  .hero-image::before { width: 280px; height: 280px; }

  .two-col { grid-template-columns: 1fr; }

  .contacts-inner { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; }


  .container { padding: 0 20px; }

  footer { padding: 24px 20px; }


}

@media (max-width: 640px) {
  header { padding: 0 20px; }

  #home { padding-top: 72px; }

  .hero-title { font-size: 28px; }

  .section-title { font-size: 22px; }

  .faq-a { padding-left: 28px; }
}
