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

:root {
  --bg: #020617;
  --bg-elevated: #020918;
  --bg-soft: #020b1f;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --accent-strong: #06b6d4;
  --accent-secondary: #a855f7;
  --text-main: #e5f4ff;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --danger: #f97373;
  --success: #4ade80;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.7);
  --radius-lg: 24px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

body.theme-dark {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 20%, #f9fafb, #22d3ee 45%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: #020617;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.7),
    0 18px 45px rgba(8, 47, 73, 0.9);
}
.logo-mark.small {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.main-nav a.active {
  color: #0f172a;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.5);
}

main {
  padding: 32px 6vw 64px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-home {
  margin-top: 16px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

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

.hero-visual {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 60%),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.orb-large {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 20%, #f9fafb, #22d3ee 40%, #0f172a 100%);
  top: -40px;
  right: -40px;
  opacity: 0.9;
}

.orb-small {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 10% 10%, #f9fafb, #a855f7 35%, #020617 100%);
  bottom: 24px;
  left: 26px;
  opacity: 0.9;
}

.fiber-lines {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.25), transparent 55%),
    radial-gradient(circle at 60% 60%, rgba(15, 23, 42, 0.85), transparent 55%);
  mask-image: linear-gradient(115deg, transparent 0, rgba(15, 23, 42, 0.8) 22%, #0b1120 50%, transparent 100%);
  opacity: 0.9;
}

.fiber-lines::before,
.fiber-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(34, 211, 238, 0.1), transparent 60%),
    linear-gradient(300deg, rgba(129, 140, 248, 0.38), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.card {
  position: absolute;
  left: 22px;
  top: 22px;
  right: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card .small-text {
  margin-top: 8px;
}

/* Sections */

.section {
  margin-bottom: 40px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.section-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.section-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.section-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.section-highlight {
  margin-bottom: 40px;
}

.section-inner {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.2), transparent 60%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

/* Text helpers */

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.85rem;
  color: var(--accent);
}

.numbered-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.numbered-list li {
  margin-bottom: 6px;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pills & price */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.8);
}

.pill-highlight {
  border-color: rgba(34, 211, 238, 0.9);
  color: var(--accent);
  background: rgba(8, 47, 73, 0.8);
}

.price-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 4px 0 10px;
}

.price-main {
  font-size: 2rem;
  font-weight: 700;
}

.price-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease-out;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #020617;
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 20px 55px rgba(34, 211, 238, 0.7);
}

.btn-secondary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #f9fafb;
  box-shadow: 0 14px 40px rgba(129, 140, 248, 0.7);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(129, 140, 248, 0.85);
}

.btn-accent {
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  color: #020617;
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.7);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(34, 197, 94, 0.85);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Forms */

.form-card {
  margin-top: 8px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
}

.form-grid label,
.form-card label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-grid label.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.7);
}

textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

.service-options {
  margin-top: 8px;
  margin-bottom: 8px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
}

/* TV cards */

.tv-packages {
  align-items: stretch;
}

.tv-card {
  position: relative;
}

.tv-card-featured {
  border-color: var(--accent-secondary);
  box-shadow: 0 24px 70px rgba(129, 140, 248, 0.8);
}

.tv-card .badge {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.16);
  color: var(--success);
  font-size: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.6);
}

/* Battle page */

.battle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1.5fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 32px;
}

.battle-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.battle-card.cable {
  background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.1), #020617);
}

.battle-card.fiber {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), #020617);
}

.battle-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.battle-list li {
  margin-bottom: 6px;
}

.battle-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.score-column {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.score-column h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.score-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Timeline */

.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.timeline li {
  margin-bottom: 8px;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 8px;
  color: var(--accent);
}

/* Contact */

.contact-block {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
  margin-bottom: 6px;
}

.contact-block h3 {
  margin: 0;
}

.contact-block p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Confirmation box */

.confirm-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.06), rgba(15, 23, 42, 0.98));
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 18px 6vw 26px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.footer-brand {
  margin-left: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-fine {
  margin: 0;
}

/* Misc */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .section-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  main {
    padding: 24px 4vw 40px;
  }
  .section-card,
  .section-inner {
    padding: 16px 16px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .site-header {
    padding-inline: 4vw;
  }
}

/* Game page */

.hero-game {
  margin-bottom: 20px;
}

.game-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

#bandwidth-game {
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.16), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  display: block;
  margin: 0 auto;
}

.game-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* TV lineups and channel tiles */
.tv-lineups {
  gap: 1.5rem;
}

.tv-package-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tv-channel-category {
  margin-top: 0.5rem;
}

.tv-channel-category h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.tv-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.tv-channel-tile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.24), rgba(15,23,42,0.95));
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: var(--shadow-soft);
}

.tv-channel-logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f172a;
  background: #e0f2fe;
  text-transform: uppercase;
}

.tv-channel-name {
  font-size: 0.8rem;
}

/* Hero imagery */
.hero-with-media .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 1.75rem;
  align-items: center;
}

.hero-media img {
  width: 100%;
  border-radius: 1.5rem;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
  .hero-with-media .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }
}
