:root {
  color-scheme: dark;
  --bg: #020711;
  --bg-deep: #00040b;
  --panel: rgba(13, 25, 44, 0.78);
  --panel-strong: rgba(19, 34, 58, 0.9);
  --line: rgba(122, 151, 203, 0.28);
  --line-strong: rgba(58, 126, 255, 0.85);
  --text: #f8fbff;
  --muted: #b9c3d4;
  --blue: #2469ff;
  --blue-2: #6a32ff;
  --cyan: #4aa8ff;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #020711;
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 10%, rgba(43, 106, 255, 0.16), transparent 40%),
    radial-gradient(circle at 35% 52%, rgba(27, 117, 255, 0.13), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(106, 50, 255, 0.1), transparent 40%);
  animation: backgroundMove 30s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-5%, 2%) scale(1); }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 76%, transparent);
}

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

footer {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 8px 24px;
  background: rgba(2, 7, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding 0.3s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-open #menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open #menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
  height: 60px; /* Constrain brand container height */
}

.brand:hover {
  opacity: 0.8;
}

.header-logo {
  height: 110px;
  width: auto;
  display: block;
  margin-top: -8px;
  margin-bottom: -32px; /* Pulls up while allowing visual breakout */
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 10;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 46px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 7px;
  transform-origin: center;
}

.brand-mark::before {
  inset: 3px 8px 3px 2px;
  background: linear-gradient(135deg, #4ac9ff, #3159ff 56%, #742aff);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-mark::after {
  inset: 13px 0 13px 13px;
  background: #7a39ff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.9;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  color: #f3f6fb;
  font-size: 16px;
}

nav a:hover,
footer a:hover {
  color: #72a8ff;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 42px rgba(34, 88, 255, 0.28);
  color: white;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.header-button {
  min-width: 136px;
  padding: 0 18px;
}

.hero {
  display: grid;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 28px;
  grid-template-columns: 0.88fr 1.35fr;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  padding-top: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 span {
  display: block;
  background: linear-gradient(90deg, #1685ff, #275dff 54%, #7d3dff);
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin-bottom: 8px;
  color: #eef3fb;
  font-size: clamp(16px, 1.65vw, 20px);
  line-height: 1.3;
}

.cta {
  width: 260px;
  min-height: 56px;
  margin-top: 14px;
  gap: 12px;
  font-size: 18px;
}

.button-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 5px;
  font-size: 0;
}

.button-icon::before {
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
  transform: translateY(-11px);
}

.purchase-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tv-stage {
  position: relative;
  min-height: 510px;
}

.tv-stage img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: contain;
  filter: drop-shadow(0 32px 52px rgba(0, 0, 0, 0.72));
}

.feature-strip,
.trust-strip {
  display: grid;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(12, 25, 45, 0.86), rgba(4, 12, 24, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 26px 70px rgba(0, 0, 0, 0.22);
}

.tv-stage {
  position: relative;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 510px;
}

.hero-img {
  position: absolute;
  width: 110%;
  height: auto;
  border-radius: 20px;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.8),
    0 0 120px rgba(58, 126, 255, 0.25);
  transform: rotateY(-18deg) rotateX(8deg) scale(1.05);
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), opacity 1s ease-in-out;
  filter: brightness(1.1) contrast(1.05);
  opacity: 0;
  pointer-events: none;
}

.hero-img.active {
  opacity: 1;
  pointer-events: auto;
}

.tv-stage:hover .hero-img.active {
  transform: rotateY(-8deg) rotateX(4deg) scale(1.1);
}

.marquee-section {
  position: relative;
  width: 100%;
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 80px;
  animation: scroll 40s linear infinite;
  padding: 0 40px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marquee-track span:hover {
  opacity: 1;
  color: #fff;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#features, #pricing, #devices, #faq, #account, #testimonials, #download {
  scroll-margin-top: 110px;
}

.device-section {
  width: min(1200px, calc(100% - 48px));
  margin: 60px auto;
}

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

.device-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.device-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  background: var(--panel-strong);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(36, 105, 255, 0.1), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.device-card:hover .card-glow {
  opacity: 1;
}

.device-card .line-icon {
  margin-bottom: 24px;
  width: 48px;
  height: 48px;
}

.device-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.device-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-section {
  width: min(1200px, calc(100% - 48px));
  margin: 60px auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: 20px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--panel-strong);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--blue);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.accent-blue .feature-icon { color: #2b6aff; }
.accent-purple .feature-icon { color: #8e54ff; }
.accent-teal .feature-icon { color: #00d1ff; }
.accent-indigo .feature-icon { color: #5065ff; }

.accent-blue:hover { border-color: rgba(43, 106, 255, 0.4); }
.accent-purple:hover { border-color: rgba(142, 84, 255, 0.4); }
.accent-teal:hover { border-color: rgba(0, 209, 255, 0.4); }
.accent-indigo:hover { border-color: rgba(80, 101, 255, 0.4); }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-section {
  padding: 80px 0;
  text-align: center;
}

.pricing-grid {
  display: grid;
  max-width: 900px;
  margin: 40px auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 48px 40px;
  border-radius: 32px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--blue);
  background: var(--panel-strong);
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(36, 105, 255, 0.08), transparent), var(--panel);
  border-color: rgba(36, 105, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.price-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price {
  font-size: 48px;
  font-weight: 850;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  flex-grow: 1;
}

.price-features li {
  font-size: 16px;
  color: #eef3fb;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-features li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 900;
}

.platform-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}

.support-badges {
  display: flex;
  gap: 32px;
  align-items: center;
}

.support-badge {
  width: 140px;
  height: 42px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.support-badge:hover {
  opacity: 1;
}

/* Production Ready SVGs handled inline in HTML */
.amazon { width: 120px; }
.google { width: 44px; }
.apple { width: 34px; }

.secure-note {
  font-size: 15px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.5;
}

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

.trust-strip article {
  display: grid;
  min-height: 150px;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 32px;
}

.download-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(36, 105, 255, 0.05), transparent 70%);
}

.section-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(36, 105, 255, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.download-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.download-section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 850;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.download-section p {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.6;
}

.cta-primary {
  padding: 24px 48px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 20px 40px rgba(36, 105, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.3s ease;
}

.cta-primary:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 30px 60px rgba(36, 105, 255, 0.5);
  background: var(--blue-2);
}

.download-hint {
  margin-top: 24px;
  font-size: 14px !important;
  opacity: 0.6;
}

.testimonials-section {
  width: min(1200px, calc(100% - 48px));
  margin: 40px auto;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.testimonial-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(16, 27, 45, 0.8), rgba(4, 12, 24, 0.7));
  backdrop-filter: blur(8px);
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
  border-color: var(--line-strong);
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue);
}

.user-meta strong {
  display: block;
  font-size: 16px;
}

.user-meta span {
  font-size: 14px;
  color: var(--muted);
}

.testimonial-card p {
  font-style: italic;
  font-size: 15px;
  color: #eef3fb;
}

.account-section {
  padding: 32px 0 20px;
}

.faq-section {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(36, 105, 255, 0.4);
  background: var(--panel-strong);
}

.faq-item summary {
  list-style: none;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

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

.faq-item summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
}

.faq-icon::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.faq-icon::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 32px 24px;
}

.faq-answer p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

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

.tool,
.faq-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(15, 29, 50, 0.86), rgba(5, 12, 22, 0.84));
}

.tool {
  display: grid;
  gap: 12px;
}

label {
  color: #dce6f7;
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #050a13;
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

input.is-valid {
  border-color: #4ade80;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234ade80'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

input.is-invalid {
  border-color: #f87171;
}

.form-button {
  width: 100%;
}

output {
  min-height: 24px;
  color: var(--muted);
  white-space: pre-wrap;
}

output.success {
  color: #8df3bb;
}

output.error {
  color: #ff9999;
}

.faq-section {
  padding: 22px 0 34px;
}

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

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0 28px;
  color: var(--muted);
}

footer .brand {
  color: #fff;
  font-size: 20px;
}

footer .brand-mark {
  width: 28px;
  height: 34px;
}

footer nav {
  justify-content: center;
  gap: 44px;
  font-size: 14px;
}

footer > span {
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-header nav {
    position: fixed;
    inset: 0;
    top: 76px; /* Below header */
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(2, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
  }

  .nav-open .site-header nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header nav a {
    font-size: 24px;
    font-weight: 700;
  }

  #menu-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .tv-stage,
  .tv-stage img {
    min-height: 360px;
  }

  .feature-strip,
  .trust-strip,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-strip article:nth-child(3),
  .trust-strip article:nth-child(3) {
    border-left: 0;
  }

  .feature-strip article:nth-child(n + 3),
  .trust-strip article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .site-header,
  footer,
  .hero,
  .feature-strip,
  .trust-strip,
  .pricing-section,
  .download-section,
  .account-section,
  .faq-section {
    width: min(100% - 32px, 1200px);
  }

  .brand {
    font-size: 24px;
  }

  .header-button {
    min-width: 116px;
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    gap: 14px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .cta {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .feature-strip,
  .trust-strip,
  .pricing-grid,
  .tools,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip article,
  .trust-strip article {
    border-left: 0 !important;
  }

  .feature-strip article + article,
  .trust-strip article + article {
    border-top: 1px solid var(--line);
  }

  .trust-strip article {
    grid-template-columns: 58px 1fr;
    padding: 22px;
  }

  .store-row {
    gap: 14px;
  }

  footer nav {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: min(600px, 90%);
  padding: 40px;
  background: linear-gradient(150deg, rgba(16, 27, 45, 0.98), rgba(5, 12, 24, 0.95));
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.is-open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.modal-content h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.download-group {
  margin-top: 32px;
  text-align: left;
}

.download-group h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 16px;
  font-weight: 800;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.download-grid.smaller {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.download-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.download-item:hover {
  background: rgba(36, 105, 255, 0.08);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.download-item.recommended {
  border-color: rgba(36, 105, 255, 0.4);
  background: rgba(36, 105, 255, 0.05);
}

.item-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(36, 105, 255, 0.3);
}

.platform-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.download-item:hover .platform-icon {
  transform: scale(1.1);
  background: rgba(36, 105, 255, 0.15);
  color: var(--blue);
}

.platform-meta {
  display: flex;
  flex-direction: column;
}

.platform-meta strong {
  font-size: 16px;
  font-weight: 700;
}

.platform-meta span {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .modal-content {
    padding: 24px;
    max-height: 95vh;
  }
  .download-grid,
  .download-grid.smaller,
  .selection-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .setup-hero {
    padding: 24px;
  }
}


/* Multi-step Modal Flow */
.modal-view {
  display: none;
  animation: modalFadeIn 0.3s ease;
}

.modal-view.active {
  display: block;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.selection-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.selection-card:hover {
  background: rgba(36, 105, 255, 0.08);
  border-color: var(--blue);
  transform: translateY(-4px);
}

.selection-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(36, 105, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.selection-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 800;
}

.selection-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.modal-back {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.modal-back:hover {
  color: var(--blue);
}

.tool-form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.tv-setup-flow {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.setup-hero {
  padding: 40px;
  background: radial-gradient(circle at center, rgba(36, 105, 255, 0.15), transparent);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.setup-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

.setup-code {
  font-size: clamp(28px, 6vw, 72px);
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 4px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 10px 30px rgba(36, 105, 255, 0.3);
}

.setup-steps {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.step p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.step strong {
  color: #fff;
}

.setup-footer {
  margin-top: 32px;
  padding-bottom: 8px;
}

.button-link {
  color: var(--muted);
  text-decoration: underline;
  font-size: 13px;
  transition: color 0.2s;
}

.button-link:hover {
  color: var(--blue);
}

/* Toast Notification */
.notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(36, 105, 255, 0.4);
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.notification.active {
  transform: translateX(-50%) translateY(0);
}

/* Universal Responsive Enhancements & Mobile Layout Optimizations */
pre, code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 0.9em;
}

dl {
  display: block;
  margin: 16px 0 24px;
}

dt {
  font-weight: 700;
  margin-top: 16px;
  color: #8ec5ff;
  font-size: 1.1rem;
}

dd {
  margin-left: 0;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Touch targets and clickable elements sizing on touchscreens */
button, .button, input, select {
  min-height: 44px;
  touch-action: manipulation;
}

/* Compact Smartphone & Small Screen Breakpoint (480px) */
@media (max-width: 480px) {
  .site-header {
    padding: 8px 16px;
    gap: 16px;
  }
  
  .header-logo {
    height: 85px;
    margin-top: -4px;
    margin-bottom: -16px;
  }
  
  .app-info,
  .article-container {
    padding: 100px 0 50px !important;
  }
  
  .info-card,
  .tech-box,
  .device-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }
  
  .article-lead,
  .tech-box p,
  .info-card p,
  dd {
    font-size: 0.98rem !important;
  }
  
  .setup-code {
    font-size: 32px !important;
    letter-spacing: 2px !important;
  }
  
  .step {
    gap: 12px;
  }
  
  .step p {
    font-size: 15px;
  }
  
  .footer nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

.tv-download-feedback { line-height: 1.7; text-align: left; }
.tv-download-feedback p { margin: 16px 0; }
.tv-download-address { padding: 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; overflow-wrap: anywhere; }
.download-disclosure { color: var(--muted, #aeb6c8); font-size: .9rem; }
#tv-download-title:focus { outline: none; }
.tv-download-feedback .button:focus-visible { outline: 3px solid #8ec5ff; outline-offset: 4px; }
