/* Any TV Remote Control — anytv.app */

:root {
  --bg: #050c10;
  --bg-soft: #0a141b;
  --surface: #0d1922;
  --surface-2: #12222d;
  --border: rgba(148, 210, 255, 0.10);
  --text: #eef4f8;
  --muted: #93a7b4;
  --accent: #35c1f5;
  --accent-2: #2f7cf6;
  --gradient: linear-gradient(135deg, #2f7cf6 0%, #35d5f5 100%);
  --radius: 18px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

/* keep anchor targets clear of the sticky header */
section[id] { scroll-margin-top: 76px; }
#download { scroll-margin-top: 110px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

.btn, .site-nav a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #04121a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 18px rgba(53, 193, 245, 0.28);
}
.btn:hover, .site-nav a.btn:hover {
  color: #04121a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(53, 193, 245, 0.4);
}

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(47, 124, 246, 0.22), transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.store-badges img { height: 54px; width: auto; }
.store-badges a:hover { text-decoration: none; }
@media (max-width: 400px) {
  .store-badges { gap: 10px; }
  .store-badges img { height: 46px; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-meta .stars { color: #ffcf40; letter-spacing: 2px; }
.hero-meta strong { color: var(--text); }

.hero-shot {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 8% 18%;
  background: radial-gradient(closest-side, rgba(53, 213, 245, 0.30), transparent 72%);
  filter: blur(30px);
}
.hero-shot img {
  position: relative;
  width: min(320px, 78vw);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { order: 2; }
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Brands */

.brands { padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.brands h2 { text-align: center; font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 22px; text-transform: uppercase; letter-spacing: 0.12em; }
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}
.brand-chips li {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .feature:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature:last-child { grid-column: auto; }
}
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pro-tag {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  color: #04121a;
  background: var(--gradient);
  padding: 5px 10px;
  border-radius: 999px;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(53, 193, 245, 0.35); }
.feature .icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(53, 193, 245, 0.12);
}
.feature .icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.feature h3 { font-size: 1.02rem; font-weight: 700; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Screenshots carousel */

.shots-carousel {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 8px;
}
.shots-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 20px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shots-scroller::-webkit-scrollbar { display: none; }
.shots-scroller { cursor: grab; }
.shots-scroller.dragging { cursor: grabbing; user-select: none; }
.shots-scroller img {
  flex: 0 0 auto;
  width: 236px;
  border-radius: 20px;
  border: 1px solid var(--border);
  scroll-snap-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.shots-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13, 25, 34, 0.85);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.shots-arrow:hover { border-color: var(--accent); background: var(--surface-2); }
.shots-arrow.prev { left: -8px; }
.shots-arrow.next { right: -8px; }

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}
.shots-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.shots-dots button.active { background: var(--accent); width: 24px; }

@media (max-width: 720px) {
  .shots-scroller { padding: 10px calc(50% - 37vw) 18px; }
  .shots-scroller img { width: 74vw; max-width: 320px; }
  .shots-arrow { display: none; }
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #04121a;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Pro */

.pro {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pro-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(47, 124, 246, 0.14), rgba(53, 213, 245, 0.05));
  border: 1px solid rgba(53, 193, 245, 0.25);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
}
.pro-card h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.pro-card p { color: var(--muted); margin-bottom: 20px; }
.pro-card .fine { font-size: 0.85rem; color: var(--muted); margin-top: 16px; margin-bottom: 0; }

/* FAQ */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); font-size: 0.97rem; }

/* CTA */

.cta { text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 28px; }
.cta .store-badges { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-soft);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text); font-size: 0.93rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.legal h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 40px 0 14px; }
.legal h3 { font-size: 1.08rem; font-weight: 700; margin: 26px 0 10px; }
.legal p, .legal li { color: #c3d2dc; font-size: 0.98rem; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px 24px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 0.93rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: #c3d2dc;
  vertical-align: top;
}
.legal th { color: var(--text); background: var(--surface); }
