:root {
  --primary: #00d9ff;
  --secondary: #ff2f7d;
  --background: #070913;
  --surface: #111827;
  --text: #f8fafc;
  --muted: #a7b0c0;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark,
.floating-whatsapp {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #041015;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
}

.brand-logo {
  display: none;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand.has-logo .brand-mark { display: none; }
.brand.has-logo .brand-logo { display: block; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.primary,
.header-cta {
  color: #031118;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary), white 18%));
  box-shadow: 0 14px 40px color-mix(in srgb, var(--primary) 32%, transparent);
}

.secondary {
  color: var(--text);
  background: color-mix(in srgb, var(--secondary) 26%, var(--surface));
  border-color: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 72px) 72px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/hero-streaming.png");
  background-size: cover;
  background-position: center right;
  opacity: 0.92;
}

.hero-overlay {
  background:
    linear-gradient(90deg, var(--background) 0%, color-mix(in srgb, var(--background) 90%, transparent) 38%, transparent 76%),
    linear-gradient(0deg, var(--background) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.value-line {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.stat-strip span {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 138px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.stat-strip strong {
  color: var(--primary);
  font-size: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 78px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.device-grid,
.plans-grid,
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.device,
.plan-card,
.app-card,
.faq-item,
.admin-card,
.login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
}

.device {
  display: grid;
  gap: 14px;
  min-height: 142px;
  padding: 22px;
}

.device span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #031118;
  background: var(--primary);
  font-weight: 900;
}

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
}

.plan-card.popular {
  border-color: color-mix(in srgb, var(--primary) 70%, white 10%);
  box-shadow: 0 20px 90px color-mix(in srgb, var(--primary) 22%, transparent);
}

.badge {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #031118;
  background: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price strong {
  font-size: 2.6rem;
}

.feature-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: color-mix(in srgb, var(--text) 86%, transparent);
}

.feature-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--primary);
  font-weight: 900;
}

.plan-card .button {
  margin-top: auto;
}

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

.app-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  align-content: start;
}

.app-card p,
.muted {
  color: var(--muted);
}

.app-card .button {
  margin-top: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--primary);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  width: 56px;
  height: 56px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.admin-body {
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 34%),
    radial-gradient(circle at 85% 18%, color-mix(in srgb, var(--secondary) 20%, transparent), transparent 30%),
    var(--background);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 96px;
}

.login-panel {
  display: grid;
  gap: 24px;
  width: min(520px, 100%);
  margin: 12vh auto 0;
  padding: 30px;
}

.admin-topbar,
.card-title-row,
.admin-actions,
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.admin-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.admin-card h2,
.login-panel h1,
.admin-topbar h1 {
  margin: 0;
}

.wide,
.save-bar {
  grid-column: 1 / -1;
}

.stack,
label {
  display: grid;
  gap: 8px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

input[type="color"] {
  min-height: 48px;
  padding: 4px;
}

textarea {
  resize: vertical;
}

.editor-list {
  display: grid;
  gap: 14px;
}

.editor-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.editor-item .full {
  grid-column: 1 / -1;
}

.editor-item .remove {
  align-self: end;
}

.compact .editor-item {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.save-bar {
  position: sticky;
  bottom: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(14px);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--primary);
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.4rem;
}

.instruction-copy {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: color-mix(in srgb, var(--text) 86%, transparent);
  line-height: 1.65;
}

.instruction-copy p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

body.light-mode {
  --muted: #4b5563;
  --line: rgba(15, 23, 42, 0.13);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

body.light-mode .hero-overlay {
  background:
    linear-gradient(90deg, var(--background) 0%, color-mix(in srgb, var(--background) 86%, transparent) 44%, transparent 80%),
    linear-gradient(0deg, var(--background) 0%, transparent 48%);
}

body.light-mode input,
body.light-mode textarea,
body.light-mode select {
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 960px) {
  .top-nav { display: none; }
  .device-grid,
  .plans-grid,
  .apps-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 860px;
  }
  .hero-overlay {
    background:
      linear-gradient(90deg, var(--background) 0%, color-mix(in srgb, var(--background) 88%, transparent) 56%, transparent),
      linear-gradient(0deg, var(--background) 0%, transparent 55%);
  }
  .editor-item,
  .compact .editor-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }
  .header-cta {
    min-height: 40px;
    padding: 0 12px;
  }
  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero {
    min-height: 820px;
    padding: 98px 18px 56px;
  }
  h1 {
    font-size: 2.45rem;
  }
  .device-grid,
  .plans-grid,
  .apps-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip span {
    min-width: calc(50% - 6px);
  }
  .footer,
  .admin-topbar,
  .card-title-row,
  .admin-actions,
  .save-bar {
    align-items: stretch;
    flex-direction: column;
  }
}
