:root {
  --bg-base: #06080d;
  --bg-surface: #0a0d14;
  --bg-card: #111520;
  --accent-cyan: #4dcfcf;
  --accent-blue: #02569b;
  --text-primary: #e8edf8;
  --text-muted: #8892a8;
  --grid-line: rgba(77, 207, 207, 0.05);
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Cyber Grid Background ── */
.cyber-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

/* ── NAV & LOGO ── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* EL LOGO: Tipografía Orbitron (Idéntica a la Flutter App) */
.logo-box {
  display: flex;
  align-items: baseline;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1.8rem;
  position: relative;
  padding-left: 10px;
}

/* Barra lateral inspirada en el UI de un GRID (recta, precisa) */
.logo-tv-frame {
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.logo-text {
  color: #ffffff;
  text-transform: uppercase;
}

.logo-plus {
  color: var(--accent-cyan);
  margin-left: 2px;
  font-family: 'Orbitron', sans-serif;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── HERO ── */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 70vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent-cyan);
  position: relative;
}

/* Subrayado láser */
.hero-title span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-blue);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* ── BOTONES ── */
.cta-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px; /* Straight corners */
  transition: all 0.2s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #000;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(77, 207, 207, 0.2);
}

.btn-primary:hover {
  background: #5eefef;
  box-shadow: 0 0 25px rgba(77, 207, 207, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ── MOCKUP VISUAL DEL GRID (Rectos, limpios) ── */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.mockup-window {
  width: 100%;
  max-width: 550px;
  background: var(--bg-surface);
  border: 1px solid #1e2538;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.mockup-header {
  background: #0a0e1a;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #1e2538;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  margin-right: 6px;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.mockup-title {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mockup-body {
  padding: 0;
}

.epg-row {
  display: flex;
  border-bottom: 1px solid #1e2538;
}

.epg-channel {
  width: 120px;
  padding: 1rem;
  border-right: 1px solid #1e2538;
  background: #080b12;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.epg-program {
  flex: 1;
  padding: 1rem;
  border-right: 1px solid #1e2538;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-program.active {
  background: rgba(77, 207, 207, 0.1);
  color: var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}

/* ── FEATURES ── */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid #1e2538;
  border-radius: 4px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #fff;
}

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

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid #1e2538;
  background: var(--bg-surface);
  padding: 4rem 5% 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col.brand-col p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 300px;
}

.disclaimer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #4a5368;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #fff;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.support-email {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.beta-notice {
  margin-top: 1rem;
  font-size: 0.8rem !important;
  padding-top: 1rem;
  border-top: 1px solid #1e2538;
}

.btn-kofi {
  background: #ff5e5b;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin-bottom: 3rem;
  }
  .cta-group {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
