/* ========================================
   AITUM TV — Redesign
   Цвета как на оригинале: #0c0c16 / #f6d02e / #546a9a
   ======================================== */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
  --bg: #0c0c16;
  --bg-light: #12121f;
  --text: rgba(255, 255, 255, 0.87);
  --text-dim: #a5a5af;
  --text-dim2: #6b6c96;
  --yellow: #f6d02e;
  --yellow-hover: #fde047;
  --yellow-shadow: rgba(194, 120, 3, 0.5);
  --blue: #546a9a;
  --blue-hover: #6b82b4;
  --blue-shadow: rgba(63, 131, 248, 0.2);
  --cyan: #0e7490;
  --cyan-hover: #155e75;
  --green: #77dd77;
  --teal: #00f5f5;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --red: #f34277;
  --twitch: #9146ff;
  --font-heading: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --radius: 5px;
  --radius-lg: 10px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.75rem); }

/* ---------- HEADER (как на оригинале) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 0 16px;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 98vw;
  margin-top: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  padding: 4px 8px 4px 0;
  margin-right: clamp(8px, 2vw, 32px);
  flex-shrink: 0;
}
.header-logo .logo-mark { height: 32px; width: auto; display: block; }
.header-logo .logo-text { height: 44px; display: none; }
@media (min-width: 1024px) { .header-logo .logo-text { display: block; } }

/* Desktop nav */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}
.header-nav li { position: relative; }

/* Dropdown toggle buttons */
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.dropdown-toggle svg { width: 12px; height: 12px; transition: transform 0.2s; }
.dropdown-toggle:hover { background: rgba(255,255,255,0.08); }
.dropdown-toggle.active svg { transform: rotate(180deg); }

/* Simple nav link */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  border-radius: var(--radius-lg);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.08); }
.nav-link svg { width: 16px; height: 16px; }

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #1a1d2e;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 50;
}
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: all 0.15s;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.dropdown-menu a .dm-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Right side: currency + login */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Currency button */
.currency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.currency-btn:hover { background: rgba(255,255,255,0.12); }

/* Login button */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--cyan);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.login-btn:hover { background: var(--cyan-hover); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius);
  margin-left: 12px;
}
.burger:hover { background: rgba(255,255,255,0.08); border-color: var(--border); }
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.burger.active span:nth-child(4) { opacity: 0; }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(12, 12, 22, 0.98);
  backdrop-filter: blur(20px);
  padding: 16px;
  gap: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a, .mobile-menu button {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: rgba(255,255,255,0.06); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1rem 3rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; width: 100%; }
.hero-logo { width: clamp(100px, 15vw, 200px); margin: 0 auto 16px; }
.hero h1 .highlight { color: var(--teal); text-shadow: 0 0 20px rgba(0, 245, 245, 0.5); }
.hero h1 { margin-bottom: 16px; position: relative; }

/* Floating icons */
.hero-float { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: none; }
@media (min-width: 640px) { .hero-float { display: block; } }
.hero-float img {
  position: absolute;
  opacity: 0.7;
  transition: all 0.3s;
  filter: blur(2px);
}
.hero-float img:hover { opacity: 1; filter: blur(0); transform: scale(1.1); }

/* ---- DOWNLOAD BUTTON ---- */
.hero-download { position: relative; z-index: 20; margin-top: 8px; }
.download-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
  overflow: hidden;
}
.download-btn-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50px;
}
.download-btn-main:hover::after { opacity: 1; }
.download-btn-main:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 35px rgba(99, 102, 241, 0.55), 0 0 0 2px rgba(255,255,255,0.15) inset, 0 0 80px rgba(99, 102, 241, 0.25);
}
.download-btn-main:active { transform: translateY(0) scale(0.97); }
.download-btn-main span, .download-btn-main svg { position: relative; z-index: 1; }
.download-btn-main svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
}
.scroll-down .mouse {
  width: 18px; height: 34px;
  border: 2px solid #fff;
  border-radius: 50px;
  position: relative;
}
.scroll-down .mouse::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  20% { opacity: 1; }
  60% { opacity: 0; transform: translateX(-50%) translateY(15px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

/* ---------- STREAM SUITE VIDEO SECTION ---------- */
.stream-suite-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.stream-suite-bg { position: absolute; inset: 0; z-index: 0; }
.stream-suite-bg video { width: 100%; height: 100%; object-fit: cover; }
.bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); pointer-events: none; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(3rem, 8vw, 5rem) 0; position: relative; }
.section-dark { background: var(--bg); }
.section-alt { background: rgba(0, 0, 0, 0.2); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-dim); font-size: 1.1rem; margin-top: 8px; line-height: 1.6; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.btn-yellow {
  background: var(--yellow);
  color: #15191f;
  box-shadow: 0 10px 15px -3px var(--yellow-shadow), 0 4px 6px -4px var(--yellow-shadow);
}
.btn-yellow:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: var(--text); box-shadow: 0 10px 15px -3px var(--blue-shadow), 0 4px 6px -4px var(--blue-shadow); }
.btn-blue:hover { background: var(--blue-hover); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }
.btn-lg { padding: 10px 32px; font-size: 1rem; border-radius: 8px; }
.btn-download {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 50px;
  padding: 10px 28px;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.btn-download:hover {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  box-shadow: 0 8px 28px rgba(99,102,241,0.5), 0 0 50px rgba(99,102,241,0.15);
  transform: translateY(-2px) scale(1.04);
}

/* ---------- PRODUCT CARDS ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.product-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.product-card .card-img { border-radius: 8px; margin-bottom: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.product-card .card-img img { width: 100%; display: block; }
.product-card .card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background: rgba(119,221,119,0.1);
  border: 1px solid rgba(119,221,119,0.2);
  color: var(--green);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.product-card h3 { margin-bottom: 4px; }
.product-card .card-obs-ver { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 12px; }
.product-card .card-desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.product-card .card-desc strong { color: #fff; }
.product-card .card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- SUPPORT BANNER ---------- */
.support-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.03));
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  max-width: 700px;
  margin: 48px auto 0;
}
.support-banner h3 { margin-bottom: 8px; }
.support-banner p { color: var(--text-dim); margin-bottom: 20px; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.03));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

/* Чиним кликабельность кнопок в CTA */
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 3;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.testimonial-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s;
}
.testimonial-card:hover { border-color: rgba(255,255,255,0.12); }
.testimonial-card .t-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial-card .t-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.testimonial-card .t-avatar-placeholder {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7c5cbf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-card .t-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-card .t-product { font-size: 0.75rem; color: var(--blue); }
.testimonial-card .t-quote { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; font-style: italic; }

/* ---------- LOGO CAROUSEL ---------- */
.logo-carousel {
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 33%, black 67%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 33%, black 67%, transparent);
}
.logo-carousel.rotated { opacity: 0.2; margin-top: 2px; }
.logo-carousel-track {
  display: flex;
  gap: 24px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.logo-carousel.rotated .logo-carousel-track { animation-direction: reverse; }
.logo-carousel-track > * { flex-shrink: 0; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: rgba(0,0,0,0.2);
  padding: 32px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-social a { color: #fff; font-size: 22px; transition: color 0.15s; }
.footer-social a:hover { color: var(--blue); }
.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 8px auto 0;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 16px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.08);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-icon-wrap {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon-wrap svg { width: 28px; height: 28px; color: #818cf8; }
.modal h3 { margin-bottom: 8px; }
.modal-desc { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 20px; line-height: 1.55; }
.modal-progress {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-progress.active { opacity: 1; }
.modal-progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-download-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-download-modal:hover {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  box-shadow: 0 8px 30px rgba(99,102,241,0.55), 0 0 50px rgba(99,102,241,0.2);
  transform: translateY(-2px) scale(1.04);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .header-nav { display: none; }
  .header-right { display: none; }
  .burger { display: flex; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
