/* ==========================================================================
   IPTV ANTIGUA — PRO THEME STYLESHEET
   Architecture: Sleek Tech Hardware Lab · Subtle Tonal Borders · 12-Col Grid
   Native Palette: Antigua & Barbuda Night, Flag Red, Rising Sun, Sea Blue
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Tokens & Reset
   -------------------------------------------------------------------------- */
:root {
  --night: #0e0d12;
  --night-2: #18161e;
  --night-3: #24212c;
  --night-border: rgba(255, 255, 255, 0.11);
  --red: #ce1126;
  --red-d: #a20c1e;
  --sun: #fcd116;
  --sun-d: #d9ad00;
  --blue: #0072c6;
  --blue-d: #00579a;
  --sky: #e7f1fb;
  --paper: #fbf8f3;
  --stone: #f2ebdf;
  --surface: #ffffff;
  --ink: #16141a;
  --muted: #5d5866;
  --line: #e6ddcf;
  --line-strong: #d4c8b5;
  --wa: #25d366;
  --wa-d: #149b48;
  --ok: #26b86f;
  --ok-bright: #37e08a;
  --danger: #ff4d5e;
  --r: 18px;
  --r-sm: 12px;
  --r-xs: 8px;
  --shadow-card: 0 18px 40px -30px rgba(14, 13, 18, 0.45);
  --shadow-lift: 0 28px 54px -30px rgba(14, 13, 18, 0.62);
  --font-display: "Bricolage Grotesque", Manrope, system-ui, sans-serif;
  --font-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-d);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--surface);
  color: var(--night);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.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;
}

/* --------------------------------------------------------------------------
   02. Typography, Containers & 12-Column Grid System
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-weight: 800;
}

.wrap {
  width: min(1220px, 100% - 40px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.text-right { text-align: right; }

.note-muted {
  margin-top: 16px;
  font-size: 14px;
  color: #9b96a6;
}

.hero-lead-narrow {
  max-width: 720px;
  font-size: 18px;
}

/* Spec Chips — Hardware Lab Metadata Tags */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

a.spec-chip:hover {
  transform: translateY(-1px);
  border-color: var(--sun);
}

a.spec-chip--dark:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

a.spec-chip--sun:hover {
  background: var(--sun);
  color: var(--night);
}

.spec-chip--blue {
  background: var(--sky);
  border-color: rgba(0, 114, 198, 0.24);
  color: var(--blue-d);
}

.spec-chip--red {
  background: rgba(206, 17, 38, 0.09);
  border-color: rgba(206, 17, 38, 0.28);
  color: var(--red-d);
}

.spec-chip--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e6e2ee;
}

.spec-chip--sun {
  background: rgba(252, 209, 22, 0.16);
  border-color: rgba(252, 209, 22, 0.35);
  color: var(--sun);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 14.5px;
  padding: 11px 18px;
}

.btn-sun {
  background: var(--sun);
  color: var(--night);
  box-shadow: 0 5px 0 var(--sun-d), 0 18px 30px -16px rgba(252, 209, 22, 0.85);
}

.btn-sun:hover {
  background: #ffdc3d;
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 5px 0 var(--red-d), 0 18px 30px -16px rgba(206, 17, 38, 0.85);
}

.btn-red:hover {
  background: #e1182f;
}

.btn-night {
  background: var(--night);
  color: #fff;
  box-shadow: 0 5px 0 #000;
}

.btn-night:hover {
  background: var(--night-3);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 0 var(--blue-d);
}

.btn-outline {
  background: transparent;
  color: var(--night);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--night);
  background: var(--stone);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-wa,
a.btn-wa {
  background: var(--wa);
  color: #03270e;
  box-shadow: 0 5px 0 var(--wa-d), 0 18px 30px -16px rgba(37, 211, 102, 0.82);
}

.btn-wa:hover,
a.btn-wa:hover {
  background: #33df78;
}

.btn-wa svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.btn .arr {
  display: inline-block;
  transition: transform 0.2s ease;
  font-style: normal;
}

.btn:hover .arr {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   03. Header & Navigation
   -------------------------------------------------------------------------- */
.flagline {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--red) 0 22%,
    var(--night) 22% 44%,
    var(--sun) 44% 56%,
    var(--blue) 56% 78%,
    var(--red) 78%
  );
}

.top {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(251, 248, 243, 0.93);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--night);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1;
  flex: none;
}

.brand .logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
  transition: transform 0.4s ease;
}

.brand:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand b {
  color: var(--red);
  font-weight: 800;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--blue-d);
  margin-top: 5px;
}

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

.nav a {
  color: var(--night);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  padding: 8px 11px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--stone);
  color: var(--red-d);
}

.nav .nav-cta {
  background: var(--night);
  color: #fff;
  margin-left: 8px;
  padding: 10px 18px 15px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  border-radius: 6px 6px 0 0;
}

.nav .nav-cta:hover {
  background: var(--red);
  color: #fff;
}

.burger {
  display: none;
  background: var(--stone);
  border: 1px solid var(--line-strong);
  color: var(--night);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger svg {
  width: 24px;
  height: 24px;
  margin: auto;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 13, 18, 0.45);
  z-index: 65;
}

.nav-backdrop.open {
  display: block;
}

/* --------------------------------------------------------------------------
   04. Hero, Alternating Bands & Lab Interior Hero
   -------------------------------------------------------------------------- */
section {
  padding: 92px 0;
  position: relative;
}

.band-paper { background: var(--paper); }
.band-stone { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-d);
}

.kicker i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  background: var(--night);
  color: var(--sun);
  font-size: 11px;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  padding-bottom: 5px;
}

.sec-head {
  max-width: 800px;
  margin-bottom: 48px;
}

.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 14px 0 14px;
}

.sec-head h2 em {
  font-style: normal;
  color: var(--red);
  background: linear-gradient(transparent 68%, rgba(252, 209, 22, 0.55) 68% 92%, transparent 92%);
}

.sec-head p {
  color: var(--muted);
  font-size: 18px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.center .kicker {
  justify-content: center;
}

.dark {
  background: var(--night);
  color: #b9b4c2;
}

.dark .sec-head h2 {
  color: #fff;
}

.dark .sec-head h2 em {
  color: var(--sun);
  background: none;
}

.dark .sec-head p {
  color: #a19cab;
}

.dark .kicker {
  color: var(--sun);
}

.dark .kicker i {
  background: var(--red);
  color: #fff;
}

.dark a:not(.btn):not(.spec-chip),
.a-hero a:not(.btn):not(.spec-chip),
.lab-hero a:not(.btn):not(.spec-chip) {
  color: var(--sun);
  font-weight: 700;
}

.dark a:not(.btn):not(.spec-chip):hover,
.a-hero a:not(.btn):not(.spec-chip):hover,
.lab-hero a:not(.btn):not(.spec-chip):hover {
  color: #fff;
}

.dark .pillar a:not(.btn),
.dark .bento-card:not(.bento-card--dark) a:not(.btn),
.lab-hero .author-profile a:not(.btn) {
  color: var(--blue-d);
}

.dark .pillar a:not(.btn):hover,
.dark .bento-card:not(.bento-card--dark) a:not(.btn):hover,
.lab-hero .author-profile a:not(.btn):hover {
  color: var(--red-d);
}

.chev {
  position: absolute;
  left: 0;
  width: 100%;
  height: 56px;
  pointer-events: none;
}

/* Homepage Hero */
.hero {
  background: radial-gradient(760px 420px at 50% 112%, rgba(252, 209, 22, 0.3), transparent 65%),
    linear-gradient(180deg, #0b0a0f 0%, var(--night) 50%, #1a1622 100%);
  color: #bdb8c6;
  padding: 68px 0 164px;
  overflow: hidden;
  isolation: isolate;
}

.hero .rays {
  position: absolute;
  left: 50%;
  bottom: -430px;
  width: 1100px;
  height: 1100px;
  margin-left: -550px;
  z-index: -1;
  opacity: 0.13;
  animation: spin 140s linear infinite;
}

.hero .wedge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  background: var(--red);
  z-index: -1;
  opacity: 0.9;
}

.hero .wedge.l {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hero .wedge.r {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.hero .horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: -1;
}

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

.hero .kicker {
  color: var(--sun);
}

.hero .kicker i {
  background: var(--red);
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  margin: 18px 0 20px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--sun);
}

.hero h1 span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.31em;
  letter-spacing: 0;
  font-weight: 600;
  color: #b3aec0;
  margin-top: 16px;
  line-height: 1.5;
}

.hero .lead {
  font-size: 18px;
  max-width: 600px;
}

.hero .lead b {
  color: #fff;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  max-width: 560px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
}

.trust li span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
}

.trust li:nth-child(1) span { background: var(--sun); }
.trust li:nth-child(2) span { background: #fff; }
.trust li:nth-child(3) span { background: #5fb0f0; }
.trust li:nth-child(4) span { background: #ff6d7c; }

.trust svg {
  width: 18px;
  height: 18px;
}

/* Live Stream Hardware Board */
.board {
  position: relative;
  background: linear-gradient(170deg, #211e29, #141218);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.board::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--sun), var(--blue));
  border-radius: 0 0 4px 4px;
}

.b-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.b-top b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-top b::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok-bright);
  box-shadow: 0 0 0 4px rgba(55, 224, 138, 0.2);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(55, 224, 138, 0); }
}

.b-top span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--night);
  background: var(--sun);
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 500;
}

.b-mid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  margin: 18px 0;
}

.dawn {
  position: relative;
  width: 210px;
  height: 140px;
  background: linear-gradient(180deg, #0b0a0f 0 62%, var(--blue) 62% 76%, #fff 76%);
  border-radius: 14px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}

.dawn svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dawn .r {
  opacity: 0.25;
  animation: ray 3.2s ease-in-out infinite;
}

.dawn .r-1 { animation-delay: 0s; }
.dawn .r-2 { animation-delay: 0.18s; }
.dawn .r-3 { animation-delay: 0.36s; }
.dawn .r-4 { animation-delay: 0.54s; }
.dawn .r-5 { animation-delay: 0.72s; }
.dawn .r-6 { animation-delay: 0.9s; }
.dawn .r-7 { animation-delay: 1.08s; }
.dawn .r-8 { animation-delay: 1.26s; }
.dawn .r-9 { animation-delay: 1.44s; }

@keyframes ray {
  40%, 60% { opacity: 1; }
}

.dawn b {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.08em;
}

.feeds {
  list-style: none;
  display: grid;
  gap: 9px;
}

.feeds li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 9px 12px;
}

.feeds li b {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.feeds li em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sun);
}

.feeds .lvl {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.feeds .lvl i {
  display: block;
  height: 100%;
  width: var(--w, 85%);
  border-radius: 9px;
  background: linear-gradient(90deg, var(--red), var(--sun));
  animation: breathe 3s ease-in-out infinite;
}

.feeds .lvl-92 { --w: 92%; }
.feeds .lvl-85 { --w: 85%; animation-delay: 0.6s; }
.feeds .lvl-77 { --w: 77%; animation-delay: 1.2s; }
.feeds .lvl-68 { --w: 68%; animation-delay: 1.8s; }

@keyframes breathe {
  50% { width: calc(var(--w) - 12%); }
}

.chart {
  position: relative;
  background: #0f1a2b;
  border-radius: 14px;
  padding: 8px 10px 4px;
  border: 1px solid rgba(95, 176, 240, 0.2);
}

.chart svg {
  width: 100%;
  height: auto;
}

.chart .pin {
  animation: bob 3s ease-in-out infinite;
}

.chart .pin:nth-of-type(2) { animation-delay: 0.7s; }
.chart .pin:nth-of-type(3) { animation-delay: 1.4s; }
.chart .pin:nth-of-type(4) { animation-delay: 2.1s; }

@keyframes bob {
  50% { transform: translateY(-3px); }
}

.b-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.b-stats div {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.b-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: #fff;
}

.b-stats div:nth-child(1) b { color: var(--sun); }
.b-stats div:nth-child(2) b { color: #5fb0f0; }
.b-stats div:nth-child(3) b { color: #ff6d7c; }

.b-stats span {
  font-size: 12px;
  color: #a19cab;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Minimalist Left-Aligned Lab Hero (Stage 1 Pillars & Local Pages) */
.lab-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(640px 360px at 95% 0%, rgba(252, 209, 22, 0.16), transparent 65%),
    linear-gradient(170deg, var(--night) 0%, var(--night-2) 60%, var(--night-3) 100%);
  color: #c2bdd0;
  padding: 56px 0 94px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-hero .chev {
  bottom: -1px;
  height: 44px;
}

.lab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: end;
}

.lab-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 54px);
  margin: 14px 0 16px;
  line-height: 1.05;
  letter-spacing: -0.028em;
}

.lab-hero h1 em {
  font-style: normal;
  color: var(--sun);
}

.lab-hero .lead {
  font-size: 18px;
  color: #cfcadd;
  max-width: 640px;
}

.lab-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-tile {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-tile-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9e98ac;
}

.spec-tile-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.spec-tile-val--sun { color: var(--sun); }
.spec-tile-val--blue { color: #67b8f5; }
.spec-tile-val--ok { color: var(--ok-bright); }

.spec-tile-sub {
  font-size: 13px;
  color: #aba5b8;
}

.crumbs {
  font-size: 13.5px;
  color: #a19cab;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.crumbs a {
  color: #fff;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--sun);
}

/* Cinema Showcase & Poster Carousel */
.cine {
  background: var(--paper);
}

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

.reel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.reel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--red);
}

.reel.wide { grid-column: span 2; }
.reel.full { grid-column: 1 / -1; flex-direction: row; }

.r-art {
  position: relative;
  height: 220px;
  background: var(--g, linear-gradient(150deg, #18161e, #0e0d12));
  isolation: isolate;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
}

.reel--action .r-art { --g: linear-gradient(150deg, #ff5a5f, #ce1126 45%, #3a0610); }
.reel--thriller .r-art { --g: linear-gradient(160deg, #2a2733, #18161e 60%, #050407); }
.reel--scifi .r-art { --g: linear-gradient(150deg, #3a7be0, #0d2f5c 50%, #06101f); }
.reel--family .r-art { --g: linear-gradient(150deg, #fff1a6, #fcd116 45%, #ff8a7a); }
.reel--nature .r-art { --g: linear-gradient(180deg, #0e0d12, #1d3f66 55%, #2f9bea); }
.reel--drama .r-art { --g: linear-gradient(120deg, #ffd84d, #ce1126 50%, #1b0a12); }

.r-art > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.reel.wide .r-art { height: 256px; }

.reel.full .r-art {
  height: auto;
  min-height: 256px;
  flex: 1.25;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
}

.r-art .res {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 62px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
  padding-bottom: 8px;
}

.r-art .badges {
  position: absolute;
  left: 18px;
  top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 70%;
}

.r-art .badges span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(14, 13, 18, 0.78);
  color: #fff;
  backdrop-filter: blur(4px);
}

.r-art .badges span.hi {
  background: var(--red);
  color: #fff;
}

.r-info {
  padding: 14px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.reel.full .r-info {
  justify-content: center;
  padding: 30px 36px;
}

.r-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue-d);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.r-no b {
  color: var(--red);
  font-weight: 500;
}

.r-info h3 { font-size: 23px; }
.reel.wide .r-info h3, .reel.full .r-info h3 { font-size: 28px; }
.r-info p { color: var(--muted); font-size: 15.5px; }

.cine-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 44px;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 600;
}

.cine-note svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.poster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 -10px;
}

.poster-head h3 { font-size: 26px; }

.poster-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue-d);
  text-transform: uppercase;
}

.poster-carousel {
  list-style: none;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 28px 0 32px;
  padding: 14px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--sun) rgba(14, 13, 18, 0.12);
}

.poster-carousel::-webkit-scrollbar { height: 6px; }
.poster-carousel::-webkit-scrollbar-thumb { background: var(--sun); border-radius: 6px; }

.poster-carousel li {
  flex: 0 0 clamp(200px, 26vw, 290px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1c14;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.poster-carousel figure { position: relative; margin: 0; }

.poster-carousel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.poster-carousel li:hover,
.poster-carousel li:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 50px -16px rgba(0, 0, 0, 0.92), 0 0 0 2px var(--sun);
}

.poster-carousel li:hover img { transform: scale(1.06); }

.poster-carousel figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
}

/* Performance Dials & Pillars */
.perf {
  overflow: hidden;
  padding-top: 132px;
}

.perf > .chev:first-child {
  top: -1px;
  height: 64px;
}

.dials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}

.dial {
  position: relative;
  text-align: center;
  padding: 26px 16px 24px;
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.dial--sun { --c: #fcd116; --off: 45; }
.dial--blue { --c: #5fb0f0; --off: 25; }
.dial--green { --c: #37e08a; --off: 0; }
.dial--red { --c: #ff6d7c; --off: 0; }

.dial:hover {
  transform: translateY(-4px);
  border-color: var(--c);
}

.dial .arc {
  position: relative;
  width: 170px;
  height: 92px;
  margin: 0 auto 12px;
}

.dial .arc svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial .arc .sweep {
  stroke-dasharray: 252;
  stroke-dashoffset: 252;
  animation: sweep 1.6s 0.3s ease-out forwards;
}

@keyframes sweep {
  to { stroke-dashoffset: var(--off); }
}

.dial b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.5vw, 34px);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: -30px;
  position: relative;
}

.dial b span { color: var(--c); }

.dial small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d9d4e2;
  margin-top: 12px;
}

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

.pillar {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: 0 28px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar--blue { --c: #0072c6; }
.pillar--red { --c: #ce1126; }
.pillar--sun { --c: #d9ad00; }

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.pillar .band {
  position: relative;
  height: 86px;
  margin: 0 -28px;
  background: var(--c);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

.pillar .ico {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--night);
  margin: -40px auto 18px;
  box-shadow: 0 0 0 6px #fff;
  transform: rotate(45deg);
}

.pillar .ico svg {
  width: 30px;
  height: 30px;
  transform: rotate(-45deg);
}

.pillar .num {
  position: absolute;
  left: 24px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.12em;
}

.pillar h3 {
  font-size: 22px;
  margin-bottom: 10px;
  text-align: center;
}

.pillar p {
  font-size: 15.5px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 14px;
}

.chips span {
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--sky);
  color: var(--blue-d);
}

.pillar ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
  color: #3a3542;
}

.pillar li {
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.pillar li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* --------------------------------------------------------------------------
   05. Pricing Plans & Cards
   -------------------------------------------------------------------------- */
.pricing {
  background: var(--paper);
  padding-top: 132px;
}

.pricing--flat {
  padding-top: 72px;
}

.pricing > .chev:first-child {
  top: -1px;
  height: 64px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan--blue { --c: #0072c6; }
.plan--night { --c: #0e0d12; }
.plan--sun { --c: #fcd116; }
.plan--hot { --c: #ce1126; }

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -32px rgba(14, 13, 18, 0.6);
}

.plan .stripe {
  height: 10px;
  margin: 0 -24px 22px;
  background: var(--c, var(--blue));
}

.plan .save {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sky);
  color: var(--blue-d);
  padding: 5px 10px;
  border-radius: 6px;
}

.plan h3 {
  font-size: 23px;
  margin: 14px 0 12px;
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 54px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
}

.price small {
  font-size: 19px;
  margin-top: 7px;
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
}

.price em {
  font-style: normal;
  font-size: 13.5px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--muted);
  align-self: flex-end;
  margin: 0 0 7px 6px;
  letter-spacing: 0;
}

.eq {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  margin-top: 10px;
}

.usd {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 24px;
  flex: 1;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}

.plan li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.plan li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 5px;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.plan .btn {
  width: 100%;
  font-size: 15.5px;
}

.plan.hot,
.plan.plan--featured {
  background: linear-gradient(175deg, var(--night-3), var(--night));
  color: #c9c4d2;
  border-color: var(--night);
  box-shadow: 0 30px 60px -28px rgba(14, 13, 18, 0.85), 0 0 0 3px var(--red);
  isolation: isolate;
}

.plan.hot .wm,
.plan.plan--featured .wm {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 260px;
  margin-left: -130px;
  opacity: 0.14;
  z-index: -1;
}

.plan.hot h3,
.plan.plan--featured h3 { color: #fff; }

.plan.hot .price,
.plan.hot .eq,
.plan.plan--featured .price,
.plan.plan--featured .eq { color: #fff; }

.plan.hot .price small,
.plan.plan--featured .price small { color: var(--sun); }

.plan.hot .price em,
.plan.hot .usd,
.plan.plan--featured .price em,
.plan.plan--featured .usd { color: #a19cab; }

.plan.hot .save,
.plan.plan--featured .save { background: var(--red); color: #fff; }

.plan.hot ul,
.plan.plan--featured ul { border-top-color: rgba(255, 255, 255, 0.18); }

.plan.hot li::before,
.plan.plan--featured li::before {
  background-color: var(--sun);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230e0d12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.badge-best {
  position: absolute;
  top: 0;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sun);
  color: var(--night);
  padding: 18px 8px 15px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  text-align: center;
  line-height: 1.25;
  width: 78px;
  font-weight: 700;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin-top: 36px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
}

.pay-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pay-row svg {
  width: 19px;
  height: 19px;
}

.card-logos i {
  font-style: normal;
  font-weight: 800;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

/* Compact 4-plan strip (Local Geography pages) */
.compact-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.compact-plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-plan--hot {
  background: var(--night);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}

.compact-plan--hot h3,
.compact-plan--hot .compact-price { color: #fff; }
.compact-plan--hot .compact-sub { color: #b9b4c2; }

.compact-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
}

.compact-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Trust / Guarantee Banner */
.guarantee-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--blue);
  border-radius: 16px;
  padding: 26px 30px;
  margin-top: 32px;
  box-shadow: var(--shadow-card);
}

.guarantee-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue-d);
  display: grid;
  place-items: center;
  flex: none;
}

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

.guarantee-bar h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.guarantee-bar p {
  color: var(--muted);
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   06. Bento / Device / App / Scorecard / Glossary / Author Grids
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card--wide { grid-column: span 6; }

.bento-card--dark {
  background: linear-gradient(160deg, var(--night-2), var(--night));
  border-color: rgba(255, 255, 255, 0.12);
  color: #c2bdd0;
}

.bento-card--dark h3,
.bento-card--dark h3 a { color: #fff; }
.bento-card--dark p { color: #aba5b8; }

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-card);
}

.bento-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue-d);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.bento-ico--blue { background: var(--sky); color: var(--blue-d); }
.bento-ico--red { background: rgba(206, 17, 38, 0.1); color: var(--red); }
.bento-ico--sun { background: rgba(252, 209, 22, 0.22); color: var(--night); }
.bento-ico--dark { background: var(--night); color: var(--sun); }

.bento-ico svg {
  width: 24px;
  height: 24px;
}

.bento-card h3 {
  font-size: 20px;
  line-height: 1.2;
}

.bento-card h3 a {
  color: inherit;
  text-decoration: none;
}

.bento-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.bento-card p {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.bento-card p a {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

.bento-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red-d);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-card--dark .bento-link {
  color: var(--sun);
}

/* Filter Pills & Jump Pills */
.filter-bar,
.jump-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-pill,
.jump-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-pill:hover,
.jump-pill:hover {
  border-color: var(--night);
  background: var(--stone);
}

.filter-pill[aria-pressed="true"],
.jump-pill.is-active {
  background: var(--night);
  color: var(--sun);
  border-color: var(--night);
}

.filter-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Device Hub Cards */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.device-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.device-card[hidden] {
  display: none;
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-card);
}

.device-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--night);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-icon svg {
  width: 32px;
  height: 32px;
}

.device-card h3 {
  font-size: 19px;
}

.device-card p {
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}

.device-rec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-d);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.device-rec a {
  color: var(--red-d);
  font-weight: 700;
}

/* App Hub Cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--shadow-card);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-tile {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex: none;
  overflow: hidden;
  box-shadow: 0 10px 22px -12px rgba(14, 13, 18, 0.6);
}

.app-tile svg {
  width: 100%;
  height: 100%;
}

.app-head h3 { font-size: 20px; }

.app-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-d);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-card p {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.rec-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rec-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
}

.rec-item small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  display: block;
  margin-bottom: 6px;
}

.rec-item h3 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 6px;
}

.rec-item p {
  font-size: 14.5px;
  color: #b5afc4;
}

.rec-item code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sun);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Local Network Scorecard */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.scorecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scorecard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.scorecard-top h3 { font-size: 20px; }

.score-grade {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--night);
  color: var(--sun);
}

.score-rows {
  display: grid;
  gap: 10px;
}

.score-row {
  display: grid;
  gap: 4px;
}

.score-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
}

.score-row-head span:last-child {
  font-family: var(--font-mono);
  color: var(--blue-d);
}

.score-meter {
  height: 7px;
  background: var(--stone);
  border-radius: 99px;
  overflow: hidden;
}

.score-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.fill-94 { width: 94%; }
.fill-92 { width: 92%; }
.fill-90 { width: 90%; }
.fill-88 { width: 88%; }
.fill-85 { width: 85%; }
.fill-82 { width: 82%; }
.fill-78 { width: 78%; }
.fill-74 { width: 74%; }
.fill-70 { width: 70%; }
.fill-65 { width: 65%; }

/* Technical Glossary 2-Col Cards */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.term-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  padding: 24px;
  scroll-margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.term-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.term-head h2 {
  font-size: 22px;
}

.term-anchor {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--stone);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  flex: none;
}

.term-anchor:hover {
  background: var(--night);
  color: var(--sun);
}

.term-tip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
}

/* Categorized FAQ Cards */
.faq-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.faq-cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  scroll-margin-top: 96px;
}

.faq-cat-card--full {
  grid-column: 1 / -1;
}

.faq-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.faq-cat-head h2 {
  font-size: 22px;
}

/* Author Profile & Lab Rig */
.author-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.lab-hero .author-profile h1 {
  color: var(--ink);
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 10px 0 0;
}

.lab-hero .author-profile p {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 720px;
}

.author-avatar {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 18px 34px -18px rgba(14, 13, 18, 0.7);
}

.author-avatar svg {
  width: 100%;
  height: 100%;
}

.rig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rig-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.rig-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.rig-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   07. Interactive Calculator, Speed Estimator & Network Topology
   -------------------------------------------------------------------------- */
/* Homepage Sunrise Speed Estimator */
.speed {
  background: var(--stone);
}

.desk {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(14, 13, 18, 0.6);
  border: 1px solid var(--line);
}

.desk-form {
  padding: 34px 34px 30px;
}

.field {
  margin-bottom: 22px;
}

.field label,
.field .lbl {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 9px;
}

.field .val {
  font-family: var(--font-mono);
  color: var(--red-d);
}

.isp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.isp-tabs button {
  text-align: left;
  font: inherit;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  line-height: 1.3;
}

.isp-tabs button small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.isp-tabs button[aria-pressed="true"] {
  border-color: var(--night);
  background: var(--night);
  color: #fff;
}

.isp-tabs button[aria-pressed="true"] small {
  color: var(--sun);
}

.field select {
  width: 100%;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
  height: 28px;
}

.range-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.desk-out {
  background: linear-gradient(175deg, var(--night-3), var(--night));
  color: #bdb8c6;
  padding: 30px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.gauge {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
}

.gauge svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge .needle {
  transform-origin: 150px 150px;
  transition: transform 0.8s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.g-read {
  text-align: center;
  margin-top: -6px;
}

.g-read b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  color: #fff;
  line-height: 1;
}

.g-read small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #a19cab;
  letter-spacing: 0.14em;
  margin-top: 6px;
}

.verdict {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.verdict::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--vc, var(--ok-bright));
  flex: none;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.verdict.ok { --vc: #37e08a; }
.verdict.mid { --vc: #fcd116; }
.verdict.bad { --vc: #ff4d5e; }

.est-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.est-rows div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
}

.est-rows span {
  display: block;
  font-size: 12.5px;
  color: #a19cab;
  font-weight: 600;
}

.est-rows b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16.5px;
  color: #fff;
}

.tip {
  font-size: 14.5px;
  color: #ddd8e5;
  border-left: 3px solid var(--sun);
  padding-left: 14px;
}

/* Dedicated 4K Speed & Buffer Calculator (/speed-calculator/) */
.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.calc-controls {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.seg-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.seg-btn {
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.seg-btn small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.seg-btn[aria-pressed="true"] {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}

.seg-btn[aria-pressed="true"] small {
  color: var(--sun);
}

.calc-results {
  background: linear-gradient(170deg, var(--night-2), var(--night));
  color: #c5c0d3;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calc-kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
}

.calc-kpi span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a6a0b6;
  margin-bottom: 6px;
}

.calc-kpi strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  display: block;
}

.calc-kpi--sun strong { color: var(--sun); }
.calc-kpi--blue strong { color: #67b8f5; }
.calc-kpi--ok strong { color: var(--ok-bright); }

.calc-meter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.calc-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5c0d3;
  margin-bottom: 8px;
}

.calc-meter-head b {
  color: var(--sun);
  font-weight: 700;
}

.calc-meter-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.calc-meter-fill {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ok-bright), var(--sun));
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.calc-meter-fill.is-mid {
  background: linear-gradient(90deg, var(--sun), #ff9233);
}

.calc-meter-fill.is-high {
  background: linear-gradient(90deg, #ff9233, var(--danger));
}

.calc-meter-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8f89a0;
  margin-top: 6px;
}

.calc-tier-card {
  background: rgba(252, 209, 22, 0.09);
  border: 1px solid rgba(252, 209, 22, 0.3);
  border-radius: 14px;
  padding: 18px 20px;
}

.calc-tier-card small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  display: block;
  margin-bottom: 6px;
}

.calc-tier-card h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 6px;
}

.calc-tier-card p {
  font-size: 14.5px;
  color: #ddd8e8;
}

/* Setup Halyard & Console */
.setup {
  background: var(--surface);
}

.hoist {
  list-style: none;
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  margin-bottom: 44px;
}

.hoist::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--night) 0 10px, transparent 10px 16px);
}

.hoist li {
  counter-increment: s;
  position: relative;
  padding-top: 104px;
}

.hoist li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 6px;
  width: 76px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-bottom: 18px;
  background: var(--fc, var(--night));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

.hoist li:nth-child(1) { --fc: var(--red); }
.hoist li:nth-child(2) { --fc: var(--night); }
.hoist li:nth-child(3) { --fc: var(--blue); }
.hoist li:nth-child(4) { --fc: var(--night); }
.hoist li:nth-child(5)::before { background: var(--sun); color: var(--night); }

.hoist li::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 0;
  width: 4px;
  height: 10px;
  background: var(--night);
  border-radius: 2px;
}

.hoist h3 { font-size: 19px; margin-bottom: 6px; }
.hoist p { color: var(--muted); font-size: 15px; }

.hoist code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--sky);
  padding: 1px 6px;
  border-radius: 5px;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.console {
  background: #0b0a0f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14, 13, 18, 0.8);
  border: 1px solid #2b2733;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--night-2);
  border-bottom: 1px solid #2b2733;
}

.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.console-bar i:nth-child(2) { background: var(--sun); }
.console-bar i:nth-child(3) { background: var(--blue); }

.console-bar span {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9b96a6;
}

.console pre {
  padding: 22px 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: #e3dfe9;
  overflow-x: auto;
}

.console .c { color: #6d6878; }
.console .k { color: var(--sun); }
.console .v { color: #7cc2f7; }

.devices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.devices span {
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--stone);
  color: var(--night);
}

.setup-side h3 { font-size: 26px; margin-bottom: 12px; }
.setup-side p { color: var(--muted); margin-bottom: 18px; }

/* Network Topology */
#network {
  padding-top: 132px;
}

#network > .chev:first-child {
  top: -1px;
  height: 64px;
}

.net-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.topo {
  background: #0b0a0f;
  border: 1px solid #2b2733;
  border-radius: 20px;
  padding: 16px;
}

.topo .flow {
  animation: dash 2.6s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -44; }
}

.rtt {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.rtt th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  padding: 0 0 12px;
}

.rtt td {
  padding: 11px 0;
  border-top: 1px solid #2b2733;
  color: #e3dfe9;
  vertical-align: middle;
}

.rtt td:last-child {
  white-space: nowrap;
  text-align: right;
}

.rtt .bar {
  display: inline-block;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sun));
  margin-right: 10px;
  vertical-align: middle;
}

.bar--25 { width: 25px; }
.bar--26 { width: 26px; }
.bar--27 { width: 27px; }
.bar--28 { width: 28px; }
.bar--38 { width: 38px; }
.bar--45 { width: 45px; }
.bar--54 { width: 54px; }

.rtt b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #fff;
}

.net-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.net-points div {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.net-points div::before {
  content: "";
  display: block;
  width: 26px;
  height: 18px;
  background: var(--red);
  margin-bottom: 14px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.net-points div:nth-child(2)::before { background: var(--sun); }
.net-points div:nth-child(3)::before { background: var(--blue); }
.net-points h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.net-points p { font-size: 15.5px; }

/* FAQ Accordions */
.faq {
  background: var(--paper);
  padding-top: 132px;
}

.faq > .chev:first-child {
  top: -1px;
  height: 64px;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
}

.faq-wrap .sec-head {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 12px;
  padding: 0 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details:last-child {
  margin-bottom: 0;
}

.faq-list details[open] {
  border-left-color: var(--red);
  box-shadow: 0 18px 40px -30px rgba(14, 13, 18, 0.55);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16.5px;
  padding: 18px 42px 18px 0;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 7px;
  background: var(--stone);
  color: var(--night);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--sun);
}

.faq-list .ans {
  padding-bottom: 18px;
  color: #3d3846;
  font-size: 16px;
}

/* Flag Order CTA Banner */
.order {
  padding: 36px 0 96px;
  background: var(--paper);
}

.order .inner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--red);
  padding: 72px 40px 66px;
  color: #fff;
  isolation: isolate;
  text-align: center;
}

.order .v {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--night) 0 46%, var(--blue) 46% 62%, #fff 62%);
  clip-path: polygon(9% 0, 91% 0, 50% 100%);
}

.order .osun {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(420px, 60%);
  transform: translate(-50%, -100%);
  z-index: -1;
  opacity: 0.95;
}

.order h2 {
  color: #fff;
  font-size: clamp(28px, 3.8vw, 50px);
  max-width: 760px;
  margin: 0 auto 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.order h2 em {
  font-style: normal;
  color: var(--sun);
}

.order p {
  max-width: 620px;
  font-size: 17.5px;
  margin: 0 auto;
  background: rgba(14, 13, 18, 0.84);
  padding: 12px 18px;
  border-radius: 12px;
}

.order .hero-ctas {
  margin: 26px 0 0;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   08. Editorial Articles, Cards, Tables & Legal Pages
   -------------------------------------------------------------------------- */
.guides {
  background: var(--paper);
}

.all {
  margin-top: 34px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: g;
}

.acard {
  counter-increment: g;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.acard::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--sun), var(--red));
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.acard:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px -30px rgba(14, 13, 18, 0.6);
  border-color: var(--blue);
}

.acard:hover::after {
  transform: scaleX(1);
}

.acard::before {
  content: counter(g, decimal-leading-zero);
  position: absolute;
  right: 22px;
  bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  color: #efe7da;
}

.ameta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cat {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--night);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
}

.rt {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rt::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.acard h3,
.acard h2 {
  font-size: 20px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
  margin-top: 6px;
}

.acard h3 a,
.acard h2 a {
  color: var(--ink);
  text-decoration: none;
}

.acard h3 a::after,
.acard h2 a::after {
  content: "";
  position: absolute;
  inset: -200px -30px -200px -40px;
  z-index: 2;
}

.acard p {
  color: var(--muted);
  font-size: 15.5px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.more {
  font-weight: 700;
  font-size: 15px;
  color: var(--red-d);
  position: relative;
  z-index: 1;
}

/* Article Hero & Layout */
.a-hero {
  background: radial-gradient(800px 440px at 100% -10%, rgba(252, 209, 22, 0.22), transparent 60%),
    linear-gradient(170deg, var(--night), var(--night-2) 60%, var(--night-3));
  color: #bdb8c6;
  padding: 56px 0 104px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.a-hero .chev {
  bottom: -1px;
  height: 52px;
}

.a-hero .ring-bg {
  position: absolute;
  right: -40px;
  bottom: 20px;
  width: 420px;
  opacity: 0.12;
  z-index: -1;
}

.a-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 50px);
  max-width: 960px;
  margin: 16px 0 16px;
  letter-spacing: -0.02em;
}

.a-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 14.5px;
}

.a-meta .cat {
  background: var(--red);
  color: #fff;
}

.a-meta strong,
.a-meta a {
  color: #fff;
}

.a-meta a:hover {
  color: var(--sun);
}

.a-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 52px;
  padding: 40px 0 80px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 98px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
  font-size: 14.5px;
  box-shadow: var(--shadow-card);
}

.toc b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-d);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.toc b::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.toc ol {
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--red-d);
}

.toc .btn {
  width: 100%;
  margin-top: 16px;
  font-size: 14.5px;
  padding: 12px 14px;
}

article.post {
  max-width: 780px;
  font-size: 17.5px;
}

article.post .lede {
  font-size: 19.5px;
  color: #2a2632;
  margin-bottom: 26px;
  padding: 20px 24px;
  background: var(--sky);
  border-left: 6px solid var(--blue);
  border-radius: 4px 16px 16px 4px;
}

article.post .lede p { margin: 0; }

article.post h2 {
  font-size: clamp(23px, 2.6vw, 31px);
  margin: 48px 0 14px;
  scroll-margin-top: 100px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

article.post h2::before {
  content: "";
  flex: none;
  width: 16px;
  height: 13px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(-3px);
}

article.post h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

article.post p { margin-bottom: 16px; }

article.post ul,
article.post ol {
  margin: 0 0 18px 22px;
  display: grid;
  gap: 7px;
}

article.post a {
  color: var(--blue-d);
  font-weight: 700;
}

article.post code,
article.post kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-word;
}

.table-wrap {
  overflow-x: auto;
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 540px;
}

.table-wrap th {
  background: var(--night);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  padding: 13px 15px;
  border-bottom: 3px solid var(--blue);
}

.table-wrap td {
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap tr:nth-child(even) td {
  background: #faf6ef;
}

.callout {
  background: var(--sky);
  border-left: 6px solid var(--blue);
  border-radius: 0 16px 16px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 16px;
}

.callout.warn {
  background: rgba(252, 209, 22, 0.22);
  border-left-color: var(--red);
}

.callout p:last-child { margin-bottom: 0; }

article.post a.btn-wa,
article.post .btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #03270e;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15.5px;
  box-shadow: 0 10px 24px -12px rgba(37, 211, 102, 0.9);
}

.a-faq {
  margin-top: 48px;
  padding: 0;
}

.a-faq h2 { margin-bottom: 18px; }

.a-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  margin-bottom: 10px;
}

.a-faq details[open] { border-color: var(--blue); }

.a-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  padding: 16px 0;
  list-style: none;
}

.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::before { content: "+ "; color: var(--red); font-weight: 800; }
.a-faq details[open] summary::before { content: "– "; color: var(--blue-d); }
.a-faq .ans { padding-bottom: 16px; font-size: 16px; }

.a-cta {
  margin: 44px 0 0;
  background: linear-gradient(135deg, var(--night), var(--night-3));
  border-top: 5px solid var(--red);
  color: #fff;
  border-radius: 18px;
  padding: 30px 30px 30px 118px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.a-cta .mini-ring {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 74px;
  transform: translateY(-50%);
}

.a-cta h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.a-cta p { margin: 0; font-size: 15.5px; color: #cbc6d8; }
.a-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
article.post .a-cta a.btn { color: var(--night); }
article.post .a-cta a.btn-wa { color: #03270e; }

.author {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 2px dotted var(--line-strong);
  font-size: 15px;
  color: var(--muted);
}

.related {
  background: var(--stone);
  padding: 68px 0;
}

.related h2 {
  font-size: 30px;
  margin-bottom: 26px;
}

.hub-grid {
  padding: 36px 0 90px;
}

.legal {
  max-width: 840px;
  padding: 48px 0 90px;
  font-size: 17px;
}

.legal h2 {
  font-size: 24px;
  margin: 34px 0 10px;
}

.legal p,
.legal ul {
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
}

/* --------------------------------------------------------------------------
   09. Footer, Sticky CTA & Floating WhatsApp
   -------------------------------------------------------------------------- */
.foot {
  background: var(--night);
  color: #9b96a6;
  padding: 96px 0 132px;
  font-size: 14.5px;
  position: relative;
  overflow: hidden;
}

.foot .chev {
  top: -1px;
  height: 48px;
}

.foot .sun-bg {
  position: absolute;
  right: -60px;
  bottom: -30px;
  width: 420px;
  opacity: 0.07;
  pointer-events: none;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  position: relative;
}

.foot h4,
.foot .foot-title {
  color: var(--sun);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.foot ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.foot a {
  color: #e3dfe9;
  text-decoration: none;
}

.foot a:hover {
  color: var(--sun);
}

.foot .brand {
  margin-bottom: 14px;
  color: #fff;
}

.foot .brand small {
  color: var(--sun);
}

.foot-pay {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.paychip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--night);
  font-weight: 800;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 7px;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  position: relative;
}

/* Floating Sticky CTA (non-homepage pages) */
#cta-sticky {
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 13, 18, 0.96);
  color: #fff;
  border: 1px solid rgba(252, 209, 22, 0.35);
  border-radius: 14px;
  padding: 10px 14px 10px 18px;
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

#cta-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cta-sticky-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cta-sticky-copy strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
}

.cta-sticky-copy small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sun);
}

#cta-sticky .btn {
  padding: 9px 16px;
  font-size: 13.5px;
  box-shadow: none;
}

/* Floating WhatsApp Widget */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  filter: drop-shadow(0 14px 26px rgba(14, 13, 18, 0.42));
  transition: transform 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-3px);
}

.wa-float .wa-pill {
  position: relative;
  display: block;
  background: var(--wa);
  color: #03270e;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  border: 2px solid #0f8a40;
}

.wa-float .wa-pill small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  opacity: 0.82;
}

.wa-float .wa-pill::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 9px 0 9px 13px;
  border-color: transparent transparent transparent #0f8a40;
}

.wa-float .wa-pill::before {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent var(--wa);
  z-index: 1;
}

.wa-float .wa-circ {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #5ae894, #25d366 55%, #13a14a);
  display: grid;
  place-items: center;
  border: 2px solid #0f8a40;
}

.wa-float .wa-circ::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waping 2.2s infinite;
  pointer-events: none;
}

.wa-float .wa-circ svg {
  width: 31px;
  height: 31px;
  fill: #fff;
}

.wa-float:hover .wa-pill { background: #35e07c; }
.wa-float:hover .wa-pill::before { border-left-color: #35e07c; }

@keyframes waping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints (<=1024px, <=760px, <=600px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .burger {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 12px 20px 22px;
    gap: 2px;
    display: none;
    border-bottom: 4px solid var(--red);
    box-shadow: 0 24px 36px -20px rgba(14, 13, 18, 0.45);
    z-index: 75;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav .nav-cta {
    margin: 10px 0 0;
    text-align: center;
    clip-path: none;
    padding: 12px 16px;
    border-radius: 10px;
  }

  .hero-grid,
  .lab-hero-grid,
  .desk,
  .calc-shell,
  .setup-grid,
  .net-grid,
  .faq-wrap,
  .a-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero {
    padding: 52px 0 144px;
  }

  .hero .wedge {
    width: 8%;
  }

  .plans,
  .compact-plans,
  .device-grid,
  .dials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid,
  .rec-band,
  .scorecard-grid,
  .rig-grid,
  .pillars,
  .net-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card {
    grid-column: span 6;
  }

  .bento-card--wide {
    grid-column: span 12;
  }

  .reels {
    grid-template-columns: 1fr 1fr;
  }

  .reel.wide { grid-column: 1 / -1; }
  .reel.full { flex-direction: column; }

  .reel.full .r-art {
    min-height: 220px;
    flex: none;
    clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
  }

  .hoist {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hoist::before {
    left: 37px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--night) 0 10px, transparent 10px 16px);
  }

  .hoist li {
    padding: 6px 0 16px 100px;
    min-height: 92px;
  }

  .hoist li::after { display: none; }
  .hoist li::before { top: 0; }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .faq-wrap .sec-head,
  .toc {
    position: static;
  }

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

  .guarantee-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  section {
    padding: 72px 0;
  }

  .glossary-grid,
  .faq-cat-grid,
  .app-grid,
  .rec-band,
  .scorecard-grid,
  .rig-grid,
  .pillars,
  .net-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-card,
  .bento-card--wide {
    grid-column: span 12;
  }

  .author-profile {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .order .inner {
    padding: 54px 20px 46px;
  }

  .order .v {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }

  #cta-sticky {
    left: 12px;
    right: 12px;
    bottom: 92px;
    justify-content: space-between;
  }

  .filter-meta {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(1220px, 100% - 28px);
  }

  .plans,
  .compact-plans,
  .device-grid,
  .dials,
  .reels,
  .cards,
  .lab-tiles,
  .calc-kpi-grid,
  .trust,
  .isp-tabs,
  .est-rows,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .b-mid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .feeds { width: 100%; }
  .board { padding: 16px; }
  .b-stats b { font-size: 18px; }
  .hero .wedge { display: none; }
  .reel.wide .r-art { height: 220px; }
  .desk-form, .desk-out, .calc-controls, .calc-results { padding: 22px 18px; }
  .g-read b { font-size: 38px; }

  .a-cta {
    padding: 104px 20px 24px;
  }

  .a-cta .mini-ring {
    top: 18px;
    left: 20px;
    transform: none;
  }

  #cta-sticky {
    bottom: 76px;
    padding: 9px 12px;
    gap: 10px;
  }

  .cta-sticky-copy strong {
    font-size: 13.5px;
  }

  .cta-sticky-copy small {
    font-size: 10px;
  }

  #cta-sticky .btn {
    padding: 8px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .brand {
    font-size: 19px;
    gap: 10px;
  }

  .brand .logo-mark {
    width: 38px;
    height: 38px;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .wa-float {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .wa-float .wa-pill {
    font-size: 13.5px;
    padding: 9px 14px;
  }

  .wa-float .wa-pill small {
    display: none;
  }

  .wa-float .wa-circ {
    width: 52px;
    height: 52px;
  }

  .wa-float .wa-circ svg {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 340px) {
  .wa-float .wa-pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
