/* TYTV redesign — premium dark navy + neon */
:root {
  --bg: #070f22;
  --bg-elev: #0f1c3a;
  --bg-card: #132448;
  --line: rgba(125, 185, 255, 0.16);
  --line-strong: rgba(125, 185, 255, 0.32);
  --text: #F4F7FF;
  --muted: #9EB0D0;
  --accent: #3DB4FF;
  --accent-2: #7AE0FF;
  --accent-hot: #00D4FF;
  --focus: #FFE566;
  --ok: #5CFFB0;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(0,0,0,.35);
  padding: .12em .4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(61,180,255,.22), transparent 55%),
    radial-gradient(700px 420px at -10% 15%, rgba(0,212,255,.10), transparent 50%),
    radial-gradient(600px 400px at 50% 110%, rgba(30,80,180,.12), transparent 55%),
    var(--bg);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--focus); color: #111; padding: .75rem 1rem; font-weight: 700;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-width: 0;
}
.wrap.narrow { width: min(100% - 2rem, 720px); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(7, 15, 34, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h); min-width: 0;
}
.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .04em;
}
.logo-img {
  width: 2.5rem; height: 2.5rem; border-radius: 11px; flex-shrink: 0;
  box-shadow: 0 0 24px rgba(61,180,255,.4);
}
.logo-text { font-size: 1.15rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem .95rem; align-items: center; justify-content: flex-end; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 650; font-size: .95rem;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav-cta {
  padding: .45rem .95rem !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #041018 !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 22px rgba(0,212,255,.28);
}
.nav-cta:hover { filter: brightness(1.05); color: #041018 !important; }

.hero { padding: 3.5rem 0 2.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 2.75rem;
  align-items: center;
  min-width: 0;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1rem; padding: .4rem .85rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--accent-2); font-size: .84rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: rgba(61,180,255,.06);
}
.eyebrow .dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 12px var(--ok);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  line-height: 1.05; letter-spacing: -.03em; font-weight: 850;
  overflow-wrap: break-word;
}
.accent {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #8a7dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  margin: 0 0 .85rem; color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 36rem;
}
.trust {
  margin: 0 0 1.5rem; color: var(--text); font-weight: 650; font-size: 1rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.35rem; min-width: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.45rem; padding: .9rem 1.55rem; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; max-width: 100%; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-icon { font-size: 1.15rem; line-height: 1; }
.btn:focus-visible, .tab:focus-visible, summary:focus-visible, .nav a:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #041018;
  box-shadow: 0 12px 36px rgba(0,212,255,.38);
}
.btn-primary:hover {
  transform: translateY(-2px); color: #041018;
  box-shadow: 0 16px 40px rgba(0,212,255,.48);
}
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent); background: rgba(61,180,255,.08); color: #fff;
}

.release-meta {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  gap: .85rem 1rem; margin: 0 0 1rem; padding: 1rem 1.1rem;
  background: rgba(0,0,0,.32); border: 1px solid var(--line);
  border-radius: var(--radius); min-width: 0; width: 100%;
  backdrop-filter: blur(8px);
}
.release-meta > div { min-width: 0; }
.release-meta dt {
  margin: 0; color: var(--muted); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
}
.release-meta dd { margin: .2rem 0 0; font-weight: 700; font-size: .98rem; }
#rel-sha {
  display: block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  background: transparent; padding: 0; font-size: .76rem; color: var(--ok);
}
.fineprint { color: var(--muted); font-size: .9rem; margin: 0; overflow-wrap: break-word; }

.hero-visual { min-width: 0; }
.tv-stage { position: relative; }
.tv-glow {
  position: absolute; inset: 8% 5% 12%;
  background: radial-gradient(circle, rgba(0,212,255,.35), transparent 65%);
  filter: blur(28px); z-index: 0;
  animation: glowDrift 8s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { opacity: .55; transform: scale(.96); }
  to { opacity: .95; transform: scale(1.04); }
}
.tv-frame {
  position: relative; z-index: 1; margin: 0;
  padding: .7rem; border-radius: 22px;
  background: linear-gradient(155deg, #1c335f, #0a1428 60%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.tv-frame:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0deg); }
.tv-shot {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top center;
  border-radius: 12px; background: #050b18;
}
.tv-caption {
  position: relative; z-index: 1; margin: .7rem 0 0;
  text-align: center; font-size: .82rem; color: var(--muted); letter-spacing: .04em;
}

.logos-strip { padding: 1rem 0 2rem; }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: center;
  padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.02); color: var(--muted); font-size: .92rem;
}
.strip-inner strong { color: var(--text); font-weight: 750; }

.section { padding: 3.5rem 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(10,20,42,.85), rgba(7,15,34,.2));
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-kicker {
  margin: 0 0 .45rem; color: var(--accent-2); font-size: .8rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.section h2 {
  margin: 0 0 .55rem; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.02em;
}
.section-lede { margin: 0; color: var(--muted); font-size: 1.05rem; }

.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem;
}
.feature-grid li {
  min-width: 0; padding: 1.25rem;
  background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature-grid li:hover {
  border-color: var(--line-strong); transform: translateY(-2px);
  background: linear-gradient(165deg, rgba(61,180,255,.08), rgba(255,255,255,.02));
}
.feature-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  margin-bottom: .75rem; border-radius: 12px;
  background: rgba(61,180,255,.12); color: var(--accent-2);
}
.feature-grid h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.shot-gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem;
}
.shot-gallery li:nth-child(n+4) { /* wraps on wide */ }
.shot-gallery figure {
  margin: 0; min-width: 0; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot-gallery figure:hover {
  transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.shot-gallery img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top center;
}
.shot-gallery figcaption {
  padding: .7rem .9rem .85rem; font-size: .9rem; font-weight: 700; color: var(--muted);
}

.tabs {
  display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem;
  background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 1.25rem; max-width: 100%;
}
.tab {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-weight: 750; padding: .7rem 1.15rem; border-radius: 999px;
  cursor: pointer; min-height: 2.75rem;
}
.tab.is-active {
  background: var(--bg-card); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.panel[hidden] { display: none !important; }
.steps {
  margin: 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: .9rem;
}
.steps-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.steps > li {
  counter-increment: step; position: relative; min-width: 0;
  padding: 1.25rem 1.2rem 1.25rem 1.2rem;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; margin-bottom: .75rem; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #1a6cff);
  color: #041018; font-weight: 900;
}
.steps h3 { margin: 0 0 .4rem; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); }

.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev);
  padding: .9rem 1.05rem; margin-bottom: .65rem;
}
.faq summary {
  cursor: pointer; font-weight: 750; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-2); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .65rem 0 .1rem; color: var(--muted); }

.cta { text-align: center; padding-bottom: 4.25rem; }
.cta-inner {
  padding: 2.5rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(0,212,255,.18), transparent 60%),
    linear-gradient(165deg, rgba(61,180,255,.1), rgba(7,15,34,.5));
  box-shadow: var(--shadow);
}
.cta-lede { margin: .35rem auto 1.25rem !important; max-width: 28rem; }
.cta .btn { margin-bottom: .9rem; }

.site-footer {
  border-top: 1px solid var(--line); padding: 2.25rem 0 2.75rem; background: #050b18;
}
.footer-grid { display: grid; gap: 1.25rem; }
.footer-logo { margin-bottom: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 650; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-top: .25rem; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; max-width: 560px; margin-inline: auto; }
  .tv-frame { transform: none; }
  .tv-frame:hover { transform: none; }
  .shot-gallery { grid-template-columns: 1fr; }
  .release-meta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero { padding-top: 1.75rem; }
}
@media (min-width: 1500px) {
  :root { --max: 1280px; }
  h1 { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature-grid li, .shot-gallery figure, .tv-frame { transition: none; }
  .eyebrow .dot, .tv-glow { animation: none; }
}
