/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --accent: #00d4ff;
  --accent2: #ff6b00;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --accent2-glow: rgba(255, 107, 0, 0.4);
  --text-primary: #e8e8f0;
  --text-secondary: #9090b0;
  --text-muted: #5a5a7a;
  --border: rgba(0, 212, 255, 0.15);
  --border-hot: rgba(255, 107, 0, 0.5);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== LOADER ===== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
  animation: logoPulse 1.5s ease-in-out infinite;
  object-fit: cover;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow), 0 0 120px var(--accent-glow); }
}

.loader-bar-wrap {
  width: 220px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  animation: loadBar 2s ease forwards;
  box-shadow: 0 0 10px var(--accent);
}

@keyframes loadBar {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-login {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  padding: 7px 18px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-login:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-register {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--bg-primary);
  text-decoration: none;
  padding: 7px 18px;
  background: linear-gradient(135deg, var(--accent), #0099cc);
  border-radius: 4px;
  border: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-register:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: rgba(10,10,15,0.98);
  border-top: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mob-link {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 1px;
  transition: color 0.2s;
}

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

.mob-auth {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: var(--nav-h);
}

/* ===== TUTORIAL BANNER ===== */
.tutorial-banner {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.banner-link {
  display: block;
  text-decoration: none;
}

.banner-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.banner-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 50px rgba(0, 212, 255, 0.2);
}

.banner-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.banner-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 212, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: transform 0.2s, background 0.2s;
}

.banner-img-wrap:hover .banner-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
}

.banner-play svg { width: 28px; height: 28px; margin-left: 4px; }

.banner-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-tag {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
}

.banner-sub {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title .accent {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  animation: fadeInUp 0.5s ease both;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15), 0 0 0 1px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.4);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.40s; }

.hot-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff4500, #ff6b00);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 0 12px var(--accent2-glow);
  animation: hotPulse 2s ease-in-out infinite;
}

@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent2-glow); }
  50% { box-shadow: 0 0 20px var(--accent2-glow), 0 0 30px rgba(255,107,0,0.3); }
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0d0d1a;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-features li {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-purchase {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent), #0099cc);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: auto;
  transition: box-shadow 0.2s, transform 0.2s;
  text-transform: uppercase;
}

.btn-purchase:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 0 24px 80px;
}

.about-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.about-container::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-container .section-header {
  text-align: left;
  margin-bottom: 24px;
}

.about-container .title-line {
  margin: 0;
}

.about-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 20px;
}

.about-sub {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.about-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: italic;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #0088cc, #006699);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-telegram:hover {
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

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

/* ===== BACKGROUND GRID EFFECT ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-auth { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-container { padding: 28px 20px; }
  .banner-img { max-height: 200px; }
  .banner-sub { font-size: 14px; }
  .nav-title { font-size: 11px; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}