/* Buz TV — buztv.app — Official site */
:root {
  --primary: #5d308f;
  --primary-dark: #4a2672;
  --primary-light: #7b4db3;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.35);
  --bg-dark: #1a0f2e;
  --bg-card: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --font: 'Tajawal', sans-serif;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(93, 48, 143, 0.5), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(123, 77, 179, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(93, 48, 143, 0.2), transparent);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(26, 15, 46, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 15, 46, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-link img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  color: var(--text-muted);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  display: none;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--accent), #ff8f65);
  color: #fff !important;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  color: #fff !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  background: rgba(26, 15, 46, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  margin-bottom: 0.25rem;
}

.nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Main offset */
main {
  padding-top: var(--header-h);
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffb899;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-logo {
  width: clamp(120px, 28vw, 180px);
  margin: 0 auto 2rem;
  border-radius: 28px;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8f65);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px var(--accent-glow);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-store {
  background: #fff;
  color: var(--primary-dark);
  min-width: 200px;
}

.btn-store:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--primary-dark);
}

.btn-store svg {
  width: 24px;
  height: 24px;
}

/* Activation code box */
.code-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, rgba(93, 48, 143, 0.6), rgba(74, 38, 114, 0.8));
  border: 2px dashed rgba(255, 107, 53, 0.6);
  border-radius: var(--radius-lg);
  margin: 1rem auto;
}

.code-box span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.code-box strong {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.35);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ff8f65);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Platform tabs */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.platform-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.platform-card h3 {
  font-size: 1.35rem;
  margin: 1rem 0 0.5rem;
}

.platform-card .app-name {
  color: var(--accent);
  font-weight: 700;
}

/* FAQ */
.faq-intro {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.faq-intro strong {
  color: #fff;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow: 0 8px 32px rgba(93, 48, 143, 0.25);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 1.12rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.5rem 1.35rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.95;
}

.faq-answer-inner a {
  color: #ffb899;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer-inner a:hover {
  color: var(--accent);
}

.faq-answer-inner ul {
  list-style: disc;
  padding-right: 1.35rem;
  margin: 0.75rem 0;
}

.faq-answer-inner li {
  margin-bottom: 0.5rem;
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.cta-banner h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
}

/* Page header (inner pages) */
.page-hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-hero .breadcrumb a {
  color: var(--accent);
}

/* Content prose */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: #fff;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.prose ul {
  list-style: disc;
  padding-right: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.keywords-footer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Animations on scroll — not on FAQ items (breaks accordion) */
.reveal:not(.faq-item) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal:not(.faq-item).visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
