/* =========================================================
   FlixoriaFin IPTV — static rebuild
   Dark premium streaming theme. Purple accent, gold gradient
   CTAs, aurora-green success. One stylesheet for all pages.
   ========================================================= */

:root {
  /* Colour */
  --bg:            #0b0e14;   /* page background (night sky) */
  --bg-alt:        #0f131c;   /* alternating section */
  --surface:       #151a25;   /* cards */
  --surface-2:     #1b2230;   /* raised / hover */
  --border:        #232c3b;
  --text:          #f4f6fb;
  --text-muted:    #9aa4b6;
  --accent:        #a855f7;   /* purple — links, focus, primary */
  --accent-strong: #9333ea;
  --gold:          #e0a23f;   /* logo gold */
  --green:         #34d399;   /* aurora green — success ticks */
  --danger:        #f87171;

  /* Gradient (logo) */
  --grad: linear-gradient(135deg, #a855f7 0%, #c084fc 40%, #e0a23f 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,.18), rgba(224,162,63,.12));

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
li { margin: .3rem 0; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
strong { color: #fff; font-weight: 700; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section__head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
}
.lead { color: var(--text-muted); font-size: 1.08rem; }
.text-grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1; text-align: center;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 48px; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #1a1030; box-shadow: 0 10px 24px -8px rgba(168,85,247,.6); }
.btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(168,85,247,.75); color: #1a1030; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(168,85,247,.08); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .65rem 1.1rem; min-height: 40px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,20,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  color: var(--text); font-weight: 600; font-size: .93rem; padding: .55rem .7rem; border-radius: 8px;
  white-space: nowrap;
}
.primary-nav a:hover { color: #fff; background: var(--surface-2); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--gold); }
.header-cta { margin-left: .4rem; }
.nav-toggle {
  margin-left: auto; display: none; width: 46px; height: 46px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 10px; cursor: pointer; padding: 0; color: var(--text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto;
  position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .primary-nav.open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem var(--gutter) 1.4rem;
  }
  .primary-nav.open ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav.open a { display: block; padding: .8rem .6rem; border-bottom: 1px solid var(--border); }
  .primary-nav.open .header-cta { margin: .8rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(52,211,153,.12), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero p { color: var(--text-muted); font-size: 1.12rem; max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; color: var(--text-muted); font-size: .92rem; }
.hero__badges span { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.5); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 1rem; color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }

/* ---------- Prose (long-form body) ---------- */
.prose { max-width: 760px; }
.prose.wide { max-width: 860px; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.4rem; padding-top: .4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: #d7dce6; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); margin-block: 1.5rem; }
.prose ul li::marker { color: var(--accent); }

/* Tick list */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin: .55rem 0; color: #d7dce6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 18px; height: 18px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; text-align: center; position: relative;
}
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #1a1030; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1.05rem; font-weight: 700; color: #fff; }
.plan__dur { color: var(--text-muted); font-size: .9rem; margin-top: .15rem; }
.plan__price { font-size: 2.4rem; font-weight: 800; margin: .8rem 0 .2rem; }
.plan__price small { font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.plan__best { color: var(--gold); font-size: .85rem; font-weight: 600; min-height: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0; text-align: left; }
.plan ul li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: #cdd3df; }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800;
}
.plan .btn { margin-top: auto; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--border); font-size: .93rem; }
table.compare thead th { background: var(--surface-2); color: #fff; font-weight: 700; position: sticky; top: 0; }
table.compare tbody th { text-align: left; color: var(--text-muted); font-weight: 600; }
table.compare tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
table.compare .yes { color: var(--green); font-weight: 800; }
table.compare .price-row td, table.compare .price-row th { color: #fff; font-weight: 800; font-size: 1.05rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li {
  position: relative; padding: 1.2rem 1.3rem 1.2rem 3.6rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: #d7dce6;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1rem; top: 1.1rem; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #1a1030; font-weight: 800; display: grid; place-items: center; font-size: .95rem;
}
.steps li strong { display: block; color: #fff; margin-bottom: .15rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
}
.quote p { color: #d7dce6; font-style: italic; }
.quote footer { margin-top: .9rem; color: var(--gold); font-weight: 700; font-size: .9rem; font-style: normal; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin-bottom: 2rem;
}
.toc h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { color: #cdd3df; }
.toc a:hover { color: var(--accent); }

/* ---------- FAQ accordion ---------- */
.faq-cat { margin-top: 2.4rem; }
.faq-cat > h2 { margin-bottom: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .7rem; background: var(--surface); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem; font-weight: 700; color: #fff;
  position: relative; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: #cdd3df; }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem); text-align: center;
}
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { color: var(--text-muted); max-width: 56ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

.support-points { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: center; margin-top: 1.2rem; color: #d7dce6; }
.support-points span { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.support-points span::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); padding-block: 1rem 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 30px; margin-bottom: 1rem; }
.site-footer p { color: var(--text-muted); font-size: .92rem; max-width: 36ch; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin: .35rem 0; }
.site-footer ul a { color: var(--text-muted); font-size: .92rem; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer__bottom {
  border-top: 1px solid var(--border); margin-top: 2.2rem; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  color: var(--text-muted); font-size: .85rem;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 48px; height: 48px;
  border-radius: 50%; background: var(--grad); color: #1a1030; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--text-muted); }
.flag { font-size: .85rem; color: var(--text-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.note { font-size: .9rem; color: var(--text-muted); }
