/* ==========================================================================
   Dream TV — Premium 4K IPTV USA
   Design system (recolored blue theme)
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #DBEAFE;
  --heading: #111827;
  --text: #1F2937;
  --muted: #6B7280;
  --card: #F8FAFC;
  --border: #E5E7EB;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .05);
  --shadow: 0 10px 25px -5px rgba(37, 99, 235, .12), 0 8px 10px -6px rgba(17, 24, 39, .06);
  --shadow-lg: 0 25px 50px -12px rgba(30, 64, 175, .25);
  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--card); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-light); padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem; padding: .85rem 1.6rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: #fff; color: var(--primary-dark); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--heading); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.brand b { color: var(--primary); }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a { color: var(--text); font-weight: 600; font-size: .98rem; }
.nav__menu a:hover { color: var(--primary); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 5px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 900px) {
  .nav__menu, .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav[data-open="true"] .nav__menu { display: flex; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .5rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
  .nav[data-open="true"] .nav__menu li { width: 100%; }
  .nav[data-open="true"] .nav__menu a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--border); width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 0%, var(--primary-light) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero h1 { margin-bottom: .5rem; }
.hero .lead { font-size: 1.2rem; color: var(--text); margin-bottom: 1.6rem; max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; text-align: left; } }

/* Image placeholder */
.imgph { position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-light), #eef4ff); color: var(--primary-dark); font-weight: 700; aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px dashed #bcd2f7; text-align: center; padding: 1rem; }
.imgph small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: .3rem; }

/* Grid + cards */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.3rem; }

/* Device chips */
.devices { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .6rem 1.1rem; font-weight: 600; font-size: .95rem; color: var(--text); box-shadow: var(--shadow-sm); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.8rem; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-sm); }
.plan--featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; }
.plan__name { font-weight: 700; color: var(--primary-dark); font-size: 1.05rem; }
.plan__price { font-size: 2.6rem; font-weight: 800; color: var(--heading); margin: .4rem 0 .1rem; }
.plan__price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan__note { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .65rem; }
.plan li { padding-left: 1.7rem; position: relative; font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.plan .btn { margin-top: auto; justify-content: center; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--card); color: var(--heading); font-weight: 700; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare tr:last-child td { border-bottom: 0; }

/* Steps */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.step__num { counter-increment: step; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* FAQ accordion */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 1.15rem 1.3rem; font-weight: 700; font-size: 1.05rem; color: var(--heading); cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: inherit; }
.faq__q::after { content: "+"; color: var(--primary); font-size: 1.4rem; font-weight: 600; transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* Breadcrumbs */
.crumbs { font-size: .88rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--border); }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--primary); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 46ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .btn--light { box-shadow: var(--shadow-lg); }

/* Trust / stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { display: block; font-size: 2.2rem; color: var(--primary); font-weight: 800; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article p, .article li { font-size: 1.075rem; }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.8rem; }
.article img, .article .imgph { margin: 1.6rem 0; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; }
.post-meta { color: var(--muted); font-size: .9rem; font-weight: 600; display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.toc strong { display: block; margin-bottom: .6rem; color: var(--heading); }
.toc ol { margin: 0; padding-left: 1.2rem; color: var(--primary); }
.toc li { margin-bottom: .3rem; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .imgph { aspect-ratio: 16 / 9; border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin: 0; }
.post-card h3 a { color: var(--heading); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { color: var(--muted); font-size: .96rem; margin: 0; flex: 1; }
.post-card__more { font-weight: 700; font-size: .92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--heading); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; color: var(--text); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.contact-info { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.contact-info li { list-style: none; margin-bottom: 1rem; padding-left: 0; }

/* Lists with checks (generic) */
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #cbd5e1; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.footer-about { color: #94a3b8; font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #94a3b8; font-size: .85rem; }
.footer-disclaimer { color: #64748b; font-size: .8rem; margin-top: 1rem; line-height: 1.6; }

/* Utilities */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead-muted { color: var(--muted); font-size: 1.125rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
