/* ===== Lune IPTV — one-pager premium ===== */

:root {
  --bg: #05060f;
  --bg-alt: #0b0e1d;
  --card: #11142600;
  --card-solid: #12152a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --text-dim: #a5a8c0;
  --text-faint: #6c6f8c;
  --accent: #8b7bff;
  --accent-2: #d9b8ff;
  --gold: #f4c869;
  --success: #4ade80;
  --gradient-primary: linear-gradient(135deg, #8b7bff 0%, #5c6bff 50%, #4a4de0 100%);
  --gradient-radial: radial-gradient(circle at 50% 0%, rgba(139, 123, 255, 0.25), transparent 60%);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(139, 123, 255, 0.12), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(217, 184, 255, 0.08), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(139, 123, 255, 0.1), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

h1, h2, h3, h4 { font-family: inherit; font-weight: 700; letter-spacing: -0.02em; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.section-head p { color: var(--text-dim); font-size: 1.05rem; margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(92, 107, 255, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(92, 107, 255, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 6, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }

.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(139, 123, 255, 0.4);
}

.logo-mark svg { width: 18px; height: 18px; }

nav.main-nav { display: flex; align-items: center; gap: 36px; }

nav.main-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero h1 span { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero p.lead { color: var(--text-dim); font-size: 1.12rem; max-width: 480px; margin-bottom: 34px; }

.hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-note { font-size: 0.85rem; color: var(--text-faint); }

.trust-strip { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 28px; border-top: 1px solid var(--border); }

.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-dim); }

.trust-item svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 15, 0.75) 100%);
}

.floating-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 2;
  background: rgba(11, 14, 29, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.floating-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

/* ---------- Logos / social proof strip ---------- */

.proof-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.proof-grid .stat-num { font-size: 1.9rem; font-weight: 700; }

.proof-grid .stat-label { font-size: 0.82rem; color: var(--text-faint); margin-top: 4px; }

/* ---------- Features ---------- */

.features { padding: 120px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(139, 123, 255, 0.4); }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(139, 123, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1.08rem; margin-bottom: 10px; }

.feature-card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Editorial ---------- */

.editorial { padding: 40px 0 100px; }

.editorial-body { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.editorial-body p { color: var(--text-dim); font-size: 1rem; line-height: 1.8; }

/* ---------- Interface showcase ---------- */

.showcase {
  padding: 100px 0;
  background: var(--bg-alt);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.showcase-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.showcase-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }

.showcase-list li { display: flex; gap: 14px; align-items: flex-start; }

.showcase-list .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(139, 123, 255, 0.15);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
}

.showcase-list h4 { font-size: 1rem; margin-bottom: 4px; }

.showcase-list p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- How it works ---------- */

.steps { padding: 120px 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card { text-align: center; padding: 0 12px; }

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(92, 107, 255, 0.35);
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.step-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Devices ---------- */

.devices { padding: 100px 0; background: var(--bg-alt); }

.device-chip-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 28px;
}

.devices-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.device-icon-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.device-icon-card:hover { transform: translateY(-4px); border-color: rgba(139, 123, 255, 0.4); }

.device-icon-card svg { width: 40px; height: 40px; color: var(--accent-2); }

.device-icon-card span { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }

@media (max-width: 720px) {
  .devices-icon-grid { grid-template-columns: repeat(3, 1fr); }
}

.device-chip {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* ---------- Pricing ---------- */

.pricing { padding: 120px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.1), rgba(18, 21, 42, 1) 40%);
  transform: scale(1.03);
  box-shadow: 0 25px 60px rgba(92, 107, 255, 0.25);
}

.plan-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(92, 107, 255, 0.4);
}

.plan-name { font-size: 1rem; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; }

.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }

.plan-price .amount { font-size: 2.6rem; font-weight: 800; }

.plan-price .period { color: var(--text-faint); font-size: 0.95rem; }

.plan-sub { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 26px; }

.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex: 1; }

.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-dim); }

.plan-features svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

.pricing-foot {
  text-align: center;
  margin-top: 36px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

/* ---------- Testimonial / guarantee band ---------- */

.guarantee-band {
  padding: 60px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.guarantee-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.guarantee-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(244, 200, 105, 0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}

.guarantee-icon svg { width: 28px; height: 28px; }

.guarantee-inner h3 { font-size: 1.2rem; margin-bottom: 8px; }

.guarantee-inner p { color: var(--text-dim); max-width: 520px; font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { padding: 120px 0; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  background: none; border: none;
  color: var(--text);
  font-size: 0.98rem; font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question .chev { transition: transform 0.25s ease; flex-shrink: 0; color: var(--text-faint); }

.faq-item.open .faq-question .chev { transform: rotate(45deg); color: var(--accent-2); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer div { padding: 0 26px 22px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Final CTA ---------- */

.final-cta {
  padding: 100px 0;
  text-align: center;
}

.final-cta-box {
  background: var(--gradient-radial), var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
}

.final-cta-box h2 { margin-bottom: 16px; }

.final-cta-box p { color: var(--text-dim); max-width: 480px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p { color: var(--text-faint); font-size: 0.88rem; margin-top: 14px; max-width: 280px; }

.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }

.footer-col a, .footer-col span {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.legal-disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 36px;
  text-align: center;
  padding: 0 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  nav.main-nav {
    position: fixed;
    top: 68px; left: 16px; right: 16px;
    background: rgba(11, 14, 29, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow-soft);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; padding: 12px 10px; border-radius: 8px; }
  nav.main-nav a:hover { background: rgba(255, 255, 255, 0.05); }
  .menu-toggle { display: flex; }
  .hero-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 140px; }
}

@media (max-width: 560px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Checkout modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

.modal-card h3 { font-size: 1.3rem; margin-bottom: 6px; padding-right: 46px; }

.modal-plan { color: var(--accent-2); font-size: 0.92rem; font-weight: 600; margin-bottom: 26px; }

.form-field {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 18px;
  border: none;
  padding: 0;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a8c0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field legend { padding: 0; margin-bottom: 10px; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.radio-option:hover { border-color: rgba(139, 123, 255, 0.4); }

.radio-option input { accent-color: var(--accent); width: 16px; height: 16px; }

.modal-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 14px;
}

@media (max-width: 520px) {
  .modal-card { padding: 28px 22px; }
}

/* ---------- Contact page ---------- */

.contact-page { padding: 160px 0 100px; }

.contact-page .section-head { text-align: left; margin: 0 0 48px; max-width: 640px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
}

.contact-form {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.contact-side { display: flex; flex-direction: column; gap: 20px; }

.contact-side .feature-card p a { color: var(--accent-2); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page { padding-top: 140px; }
}
