/* Apollo IPTV — Premium Landing Page */

:root {
  --bg-primary: #050508;
  --bg-section: #0A0A0F;
  --surface: #12121A;
  --surface-hover: #1A1A24;

  --accent: #FF4757;
  --accent-hover: #FF6B81;
  --accent-glow: rgba(255, 71, 87, 0.3);

  --gold: #FFD700;
  --gold-subtle: rgba(255, 215, 0, 0.15);

  --text-primary: #FFFFFF;
  --text-secondary: #8B8B9E;
  --text-tertiary: #5A5A6E;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 71, 87, 0.2);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-card: 16px;
  --radius-button: 12px;
  --radius-badge: 20px;

  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.4);
  --shadow-cta: 0 4px 24px rgba(255, 71, 87, 0.4);
  --shadow-cta-hover: 0 8px 32px rgba(255, 71, 87, 0.6);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-card: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.text-accent {
  color: var(--accent);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
  gap: 2px;
}

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

.logo__accent {
  color: var(--accent);
}

.nav__list {
  display: none;
  list-style: none;
  gap: 32px;
}

.nav__link {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-button);
  transition: var(--transition);
}

.btn--nav {
  padding: 12px 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: var(--text-primary);
  box-shadow: var(--shadow-cta);
}

.btn--nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.btn--primary {
  padding: 15px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: var(--text-primary);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
  filter: brightness(1.05);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(255, 71, 87, 0.3);
}

.btn--secondary {
  padding: 18px 40px;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 71, 87, 0.1);
  color: var(--accent);
}

.btn--full {
  width: 100%;
}

.btn--pulse {
  animation: cta-pulse 3s infinite ease-in-out;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(255, 71, 87, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(255, 71, 87, 0.6); }
}

.btn--final {
  padding: 20px 48px;
  font-size: 20px;
  background: var(--text-primary);
  color: var(--accent);
}

.btn--final:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #050508 0%, #0F0F1A 40%, #1A0A1A 70%, #0A0F1A 100%);
  overflow: hidden;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 64px;
  align-items: center;
}

.hero__content {
  text-align: center;
}

.hero__tagline {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--gold-subtle);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__title span {
  color: var(--accent);
}

.hero__lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.trust-bar__icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-card);
  box-shadow: 0 0 60px rgba(255, 71, 87, 0.2);
  animation: float 4s infinite ease-in-out;
}

.hero__visual img,
.hero__visual picture {
  border-radius: var(--radius-card);
}

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

/* Social proof marquee */
.social-proof {
  background: var(--bg-section);
  padding: 40px 0;
  overflow: hidden;
}

.social-proof__track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.social-proof__content {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.social-proof__content .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Networks */
.networks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.network-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: var(--transition-card);
}

.network-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.network-card img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s;
}

.network-card:hover img {
  filter: grayscale(0);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-section);
}

.section--dark {
  background: var(--bg-primary);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 32px;
}

.grid--3,
.grid--4 {
  grid-template-columns: 1fr;
}

/* Feature cards */
.feature-card {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: transparent;
  transition: var(--transition-card);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-card__icon {
  display: inline-flex;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 71, 87, 0.1);
  margin-bottom: 24px;
}

.feature-card__icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing */
.pricing {
  background: var(--bg-section);
}

.pricing__grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-card);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.pricing-card--popular {
  border-color: rgba(255, 71, 87, 0.3);
}

.pricing-card--best {
  border: 2px solid var(--gold);
  background: var(--gold-subtle);
  box-shadow: 0 24px 48px rgba(255, 215, 0, 0.15);
}

.pricing-card--best:hover {
  border-color: var(--gold);
  box-shadow: 0 32px 64px rgba(255, 215, 0, 0.2);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: var(--radius-badge);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pricing-card__badge--popular {
  background: var(--accent);
  color: var(--text-primary);
}

.pricing-card__badge--best {
  background: var(--gold);
  color: var(--bg-primary);
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.pricing-card__duration {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-card__price .currency {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-secondary);
  vertical-align: super;
  margin-right: 4px;
}

.pricing-card__old {
  margin-bottom: 24px;
}

.pricing-card__old del {
  font-size: 20px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pricing-card__save {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-left: 8px;
}

.pricing-card__list {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-card__list li:last-child {
  border-bottom: none;
}

.pricing-card__list .check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.pricing__note {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Steps */
.steps__timeline {
  position: relative;
  display: grid;
  gap: 48px;
}

.steps__line {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 2px;
  height: calc(100% - 48px);
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.step {
  position: relative;
  padding-left: 80px;
}

.step__circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.step__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.step__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Testimonials */
.testimonial {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: var(--transition-card);
}

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.testimonial__quote {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 32px;
  height: 32px;
  color: var(--accent);
  opacity: 0.2;
}

.testimonial__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.testimonial__stars {
  font-size: 16px;
  color: var(--gold);
}

.testimonial__score {
  font-size: 14px;
  color: var(--text-secondary);
}

.testimonial__text {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 71, 87, 0.3);
}

.testimonial__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial__role {
  font-size: 14px;
  color: var(--text-secondary);
}

/* FAQ */
.faq__list {
  max-width: 800px;
  margin-inline: auto;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  overflow: hidden;
  transition: background 0.3s;
}

.faq__item[open] {
  background: rgba(255, 71, 87, 0.03);
}

.faq__question {
  padding: 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq__item[open] .faq__question::after {
  transform: rotate(-135deg);
}

.faq__item[open] .faq__question {
  border-bottom-color: var(--border);
}

.faq__question h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq__answer {
  padding: 0 24px 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Final */
.cta-final {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  text-align: center;
  padding: 120px 0;
}

.cta-final__content {
  max-width: 800px;
  margin-inline: auto;
}

.cta-final__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-final__subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.countdown {
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 32px;
  border-radius: var(--radius-button);
  margin-bottom: 40px;
}

.countdown__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.countdown__time {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
}

.countdown__time .sep {
  animation: blink 1s infinite ease-in-out;
}

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

.cta-final__note {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}

.footer__logo {
  justify-content: center;
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Tablet */
@media (min-width: 768px) {
  .hero__title {
    font-size: 52px;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .section {
    padding: 120px 0;
  }

  .section__title {
    font-size: 40px;
  }

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

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

  .networks__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-final__title {
    font-size: 44px;
  }

  .countdown__time {
    font-size: 48px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav__list {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero__content {
    text-align: left;
  }

  .hero__title {
    font-size: 64px;
  }

  .hero__lead {
    margin-left: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .trust-bar {
    justify-content: flex-start;
  }

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

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

  .pricing__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .networks__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .pricing-card--best {
    transform: scale(1.05);
  }

  .pricing-card--best:hover {
    transform: scale(1.05) translateY(-8px);
  }

  .steps__timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .steps__line {
    top: 24px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
  }

  .step {
    padding-left: 0;
    padding-top: 80px;
    text-align: center;
  }

  .step__circle {
    left: 50%;
    transform: translateX(-50%);
  }

  .cta-final__title {
    font-size: 48px;
  }
}
