/* =====================================================
   OZ IPTV Player — Landing Site Stylesheet
   Color palette from oziptvplayer_project_spec.md §4.1
   ===================================================== */

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

:root {
  --bg:            #0A0A0A;
  --surface:       #1A1A2E;
  --surface-light: #16213E;
  --accent:        #E50914;
  --accent-hover:  #FF3D47;
  --text:          #FFFFFF;
  --text-sec:      #B3B3B3;
  --text-muted:    #808080;
  --divider:       #2A2A2A;
  --success:       #46D369;
  --warning:       #FFB800;

  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.25s ease;
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-sec); }

/* ---- Utility ---- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-accent { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(229,9,20,0.4); }

.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--divider);
}
.btn-outline:hover { border-color: var(--text-sec); background: var(--surface); }

.btn-disabled {
  background: var(--surface); color: var(--text-muted);
  border-color: var(--divider); cursor: not-allowed; pointer-events: none;
  opacity: 0.65;
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-soon { background: var(--surface-light); color: var(--text-muted); border: 1px solid var(--divider); }
.badge-new  { background: var(--accent); color: #fff; }

/* ======================================================
   NAV
   ====================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  transition: background var(--transition);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em;
}
.nav-logo img {
  width: 36px; height: 36px; border-radius: 8px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a {
  color: var(--text-sec); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex; align-items: center; gap: 16px;
}
.lang-switcher {
  display: flex; gap: 4px;
}
.lang-btn {
  padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--divider); background: transparent; color: var(--text-sec); cursor: pointer;
  transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--surface); color: var(--text); border-color: var(--text-muted);
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
/* Mobile menu */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: fixed; top: 65px; left: 0; right: 0; bottom: 0;
    background: var(--bg); padding: 32px 24px;
    border-top: 1px solid var(--divider);
  }
  .site-nav.open .nav-links a { font-size: 1.1rem; }
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  padding: 140px 0 100px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(229,9,20,0.12), transparent 70%),
    var(--bg);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--divider);
  color: var(--text-sec); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent-word { color: var(--accent); }
.hero p.lead {
  max-width: 640px; margin: 0 auto 40px;
  font-size: 1.1rem; color: var(--text-sec);
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.btn-download-win {
  background: var(--accent); color: #fff; font-size: 1rem;
  padding: 15px 32px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; transition: all var(--transition);
  border: none; cursor: pointer;
}
.btn-download-win:hover {
  background: var(--accent-hover); transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(229,9,20,0.45);
}
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--divider); background: var(--surface);
  color: var(--text-sec); font-size: 0.88rem; font-weight: 500;
  cursor: default; opacity: 0.65;
}
.btn-store svg { flex-shrink: 0; }
.hero-disclaimer {
  margin-top: 32px; font-size: 0.78rem; color: var(--text-muted);
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.hero-mockup {
  margin-top: 64px; max-width: 900px; margin-left: auto; margin-right: auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  border: 1px solid var(--divider);
}
.hero-mockup img { width: 100%; height: auto; }
/* Placeholder when no image */
.mockup-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.05em;
}

/* ======================================================
   FEATURES
   ====================================================== */
.section { padding: 96px 0; }
.section-label {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-heading { margin-bottom: 16px; }
.section-subtext { color: var(--text-sec); max-width: 560px; }

.features { background: var(--bg); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-subtext { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(229,9,20,0.35); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(229,9,20,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p  { font-size: 0.88rem; line-height: 1.65; }

/* ======================================================
   SCREENSHOTS
   ====================================================== */
.screenshots { background: var(--surface); }
.screenshots-header { text-align: center; margin-bottom: 56px; }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.screenshot-item {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--surface-light);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.screenshot-item:hover { transform: scale(1.03); }
.screenshot-item img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.screenshot-caption {
  padding: 10px 14px;
  font-size: 0.82rem; color: var(--text-muted);
  border-top: 1px solid var(--divider);
}
@media (max-width: 768px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   DOWNLOAD
   ====================================================== */
.download { background: var(--bg); }
.download-header { text-align: center; margin-bottom: 56px; }
.download-cards {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
}
.download-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 36px 28px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
  transition: all var(--transition);
}
.download-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(229,9,20,0.06) 100%);
}
.download-card.featured:hover {
  box-shadow: 0 0 40px rgba(229,9,20,0.2);
  transform: translateY(-4px);
}
.download-card .platform-icon {
  font-size: 2.8rem; line-height: 1;
}
.download-card h3 { font-size: 1.2rem; }
.download-card p  { font-size: 0.85rem; }
.download-meta {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 4px;
}
.download-meta span {
  background: var(--surface-light); border-radius: 6px; padding: 3px 10px;
}
@media (max-width: 768px) {
  .download-cards { grid-template-columns: 1fr; }
}

/* ======================================================
   STATS STRIP
   ====================================================== */
.stats-strip {
  background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
  padding: 40px 0;
}
.stats-grid {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px;
  text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ======================================================
   FAQ
   ====================================================== */
.faq { background: var(--bg); }
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border-bottom: 1px solid var(--divider);
}
.faq-question {
  width: 100%; background: none; border: none; color: var(--text);
  font-size: 1rem; font-weight: 600; text-align: left;
  padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0; width: 18px; height: 18px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform 0.3s;
}
.faq-item.open .faq-chevron { transform: rotate(-135deg); }
.faq-answer {
  overflow: hidden; max-height: 0; transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-sec); font-size: 0.95rem; line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--divider);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800;
}
.footer-brand-logo img { width: 32px; height: 32px; border-radius: 7px; }
.footer-brand p { font-size: 0.87rem; max-width: 300px; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-sec); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--divider); padding-top: 24px;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-disclaimer {
  text-align: center; font-size: 0.77rem; color: var(--text-muted);
  padding: 20px 0 0; line-height: 1.6;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ======================================================
   PRIVACY PAGE
   ====================================================== */
.privacy-page {
  padding-top: 100px; padding-bottom: 80px;
  max-width: 820px; margin: 0 auto;
}
.privacy-page h1 { margin-bottom: 8px; }
.privacy-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 48px; }
.privacy-section { margin-bottom: 40px; }
.privacy-section h2 {
  font-size: 1.15rem; margin-bottom: 12px; color: var(--text);
  padding-bottom: 8px; border-bottom: 1px solid var(--divider);
}
.privacy-section p { font-size: 0.95rem; line-height: 1.8; }
.privacy-section a { color: var(--accent); text-decoration: underline; }

/* ======================================================
   404 PAGE
   ====================================================== */
.page-404 {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
}
.page-404 h1 { font-size: 6rem; color: var(--accent); margin-bottom: 8px; }
.page-404 p  { margin-bottom: 32px; }

/* ======================================================
   ANIMATIONS (IntersectionObserver driven)
   ====================================================== */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* stagger children */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.07s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.14s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.21s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.28s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.35s; }
.features-grid .feature-card:nth-child(7) { transition-delay: 0.42s; }
.features-grid .feature-card:nth-child(8) { transition-delay: 0.49s; }

/* ======================================================
   RESPONSIVE OVERRIDES
   ====================================================== */
@media (max-width: 1024px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 110px 0 72px; }
  .section { padding: 72px 0; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-download-win, .btn-store { width: 100%; max-width: 320px; justify-content: center; }
  .download-cards { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 20px; }
}
