/* TiviSmart marketing page: deep navy, white type, signal blue for actions, on-air red for live and down. */
:root {
  --night: #070b16;
  --night-2: #0c1222;
  --panel: #111a2e;
  --panel-2: #172340;
  --line: #22304f;
  --text: #f4f7ff;
  --muted: #9aa8c7;
  --blue: #2f6bff;
  --blue-2: #5b8cff;
  --red: #e5262a;
  --red-2: #ff4245;
  --green: #22c55e;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
svg { display: block; }
a { color: var(--blue-2); }
h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--text); }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; margin-inline: auto; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.lede { font-size: 19px; color: var(--muted); max-width: 54ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent; font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: #33426a; color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-white { background: var(--text); color: var(--night); }
.btn-white:hover { background: #fff; }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover { color: var(--text); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(7,11,22,.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-row { display: flex; align-items: center; gap: 30px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 18px; fill: #fff; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px); overflow: hidden; text-align: center; }
.glow { position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 40%, rgba(47,107,255,.28), transparent 70%), radial-gradient(28% 30% at 78% 18%, rgba(229,38,42,.14), transparent 70%); }
.hero-copy { position: relative; }
.on-air { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 26px; background: rgba(17,26,46,.6); }
.on-air .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229,38,42,.2); }
.hero .lede { margin: 24px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .hero-actions { justify-content: center; }

/* The app, drawn */
.app { position: relative; margin: clamp(48px, 6vw, 72px) 0 0; padding: 10px; border-radius: 22px; background: linear-gradient(180deg, #1a2440, #0d1424); box-shadow: 0 40px 120px -30px rgba(47,107,255,.45), 0 0 0 1px rgba(255,255,255,.07); text-align: left; }
.app-ui { display: grid; grid-template-columns: 58px 210px 1fr; border-radius: 14px; overflow: hidden; background: #0a0f1c; height: clamp(520px, 52vw, 640px); font-size: 13px; color: #dfe6f7; }
.rail { background: #0e1527; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; }
.rail svg { width: 21px; height: 21px; fill: none; stroke: #7f8db0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail svg.on { stroke: #fff; background: #1d2b4f; box-sizing: content-box; padding: 9px; border-radius: 10px; margin: -9px; }
.rail svg.last { margin-top: auto; }
.rail .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; margin-bottom: 8px; }
.rail .logo svg { width: 16px; height: 16px; fill: #fff; stroke: none; }
.cats { padding: 16px 12px; border-right: 1px solid #141d33; overflow: hidden; }
.cats .search { display: flex; align-items: center; gap: 8px; background: #141d33; border-radius: 10px; padding: 9px 11px; color: #6f7ea3; margin-bottom: 12px; }
.cats .search svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cats li { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 9px; color: #c9d3ea; }
.cats li span { display: inline-flex; align-items: center; gap: 7px; }
.cats li em { font-style: normal; color: #6f7ea3; font-size: 12px; }
.cats li.on { background: #18264a; outline: 1.5px solid var(--blue); color: #fff; }
.cats .star { width: 13px; height: 13px; fill: #fbbf24; }
.stage { padding: 16px; display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.now { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; background: #0e1527; border-radius: 12px; padding: 8px; }

/* The picture: a broadcast frame */
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #08130c; }
.pitch { position: absolute; inset: 0; }
.lights { position: absolute; inset: 0 0 52% 0; background:
  radial-gradient(18% 40% at 14% 10%, rgba(255,255,230,.55), transparent 70%),
  radial-gradient(18% 40% at 86% 8%, rgba(255,255,230,.5), transparent 70%),
  linear-gradient(180deg, #0b1220 0%, #1b2a2a 100%); }
.crowd { position: absolute; left: 0; right: 0; top: 22%; height: 26%; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 3px, transparent 3px 7px),
  linear-gradient(180deg, #2a2f3a, #1a2026); filter: blur(.4px); }
.grass { position: absolute; left: -20%; right: -20%; bottom: 0; height: 56%; transform: perspective(380px) rotateX(38deg); transform-origin: bottom;
  background: repeating-linear-gradient(90deg, #1f7a3a 0 8%, #1a6d33 8% 16%); box-shadow: inset 0 40px 60px rgba(0,0,0,.35); }
.grass i { position: absolute; border: 2px solid rgba(255,255,255,.7); }
.grass i:nth-child(1) { left: 50%; top: 0; bottom: 0; width: 0; border-width: 0 0 0 2px; }
.grass i:nth-child(2) { left: 50%; top: 50%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.grass i:nth-child(3) { left: 8%; right: 8%; top: 6%; bottom: -4%; }
.grass u { position: absolute; width: 1.4%; aspect-ratio: 1 / 2.4; border-radius: 40% 40% 30% 30%; background: #e8eefc; box-shadow: 0 4px 0 -1px rgba(0,0,0,.35); }
.grass u.away { background: var(--red); }
.grass u.ball { width: .9%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.bug-score { position: absolute; left: 10px; top: 10px; display: flex; align-items: stretch; font: 700 11px/1 var(--body); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.bug-score b { background: #0d1a3a; color: #fff; padding: 5px 7px; letter-spacing: .04em; }
.bug-score .sc { background: #fff; color: #0d1a3a; padding: 5px 8px; }
.bug-score .clock { background: var(--red); color: #fff; padding: 5px 7px; font-variant-numeric: tabular-nums; }
.bug-ch { position: absolute; right: 10px; top: 10px; font: 800 10px/1 var(--display); color: rgba(255,255,255,.85); letter-spacing: .08em; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(5,10,24,.88); font-size: 11px; padding: 6px 10px; color: #dfe6f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker span { background: var(--red); color: #fff; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-right: 6px; }
.notice { position: absolute; right: 10px; bottom: 38px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(8,12,24,.92); border: 1px solid rgba(255,255,255,.08); font: 600 12px/1.2 var(--body); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.notice .n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.notice.show { opacity: 1; transform: none; }
.notice.ok .n-dot { background: var(--green); }
.notice.find .n-dot { background: transparent; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; width: 11px; height: 11px; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.screen.dim .pitch { filter: grayscale(1) brightness(.3); transition: filter .4s; }
.screen .pitch { transition: filter .4s; }

.info { padding: 8px 6px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.info .row { display: flex; gap: 6px; }
.live { background: var(--red); color: #fff; font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.hd { border: 1px solid #33426a; color: #aab6d3; font-weight: 700; font-size: 11px; padding: 2px 7px; border-radius: 5px; }
.info .ch { color: #8e9bbd; font-size: 13px; }
.info h3 { font-size: clamp(16px, 1.7vw, 22px); line-height: 1.15; }
.times { display: flex; align-items: center; gap: 10px; color: #8e9bbd; font-size: 12px; font-variant-numeric: tabular-nums; }
.track { flex: 1; height: 4px; border-radius: 4px; background: #22304f; overflow: hidden; }
.track span { display: block; height: 100%; width: 62%; background: var(--blue); }
.next { color: #8e9bbd; font-size: 12px; }
.next b { color: #c9d3ea; margin-right: 4px; }
.acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.acts span { border: 1px solid #263357; border-radius: 8px; padding: 6px 9px; font-size: 12px; color: #c9d3ea; }

.guide { background: #0e1527; border-radius: 12px; padding: 10px 12px; display: grid; align-content: start; gap: 6px; min-height: 0; overflow: hidden; }
.g-head, .g-row { display: grid; grid-template-columns: 130px repeat(4, 1fr); gap: 6px; align-items: center; }
.g-head span { color: #6f7ea3; font-size: 11px; font-variant-numeric: tabular-nums; }
.g-row { position: relative; min-height: 38px; }
.g-ch { color: #c9d3ea; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.g-ch b { color: #6f7ea3; font-weight: 500; font-size: 11px; width: 26px; }
.g-row .p { grid-row: 1; grid-column: calc(var(--s) + 2) / span var(--w); background: #152039; border-radius: 7px; padding: 10px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9d3ea; }
.g-row .p.now { background: var(--blue); color: #fff; font-weight: 600; }
.g-row.on .g-ch { color: #fff; }

/* Features */
.features { padding: clamp(72px, 9vw, 130px) 0; }
.feature-grid { margin-top: 48px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; column-gap: 34px; }
.feature { padding: 26px 0 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature p { color: var(--muted); max-width: 40ch; }
.feature.lead { grid-row: span 3; border: 0; border-radius: 22px; padding: 36px 34px; gap: 14px;
  background: linear-gradient(160deg, #13224a, #0c1430); box-shadow: inset 0 0 0 1px rgba(91,140,255,.25); }
.feature.lead h3 { font-size: clamp(24px, 2.4vw, 30px); }
.feature.lead p { color: #b8c4e2; }
.mini-log { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; font-size: 15px; }
.mini-log li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05); padding: 11px 13px; border-radius: 10px; }
.mini-log span { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mini-log .r { background: var(--red); }
.mini-log .b { background: var(--blue-2); }
.mini-log .g { background: var(--green); }

/* Download */
.download { padding: clamp(72px, 9vw, 130px) 0; background: var(--night-2); border-block: 1px solid rgba(255,255,255,.05); text-align: center; }
.download .lede { margin: 18px auto 0; }
.platforms { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.platforms li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.platforms svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platforms b { color: var(--text); font-weight: 600; font-size: 15px; }
.platforms small { font-size: 12px; }
.platforms li.ready { border-color: rgba(91,140,255,.55); color: var(--blue-2); background: linear-gradient(180deg, #14234a, var(--panel)); }
.platforms li.ready small { color: var(--blue-2); font-weight: 600; }
.dl-cards { margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; text-align: left; }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.dl-card h3 { font-size: 26px; }
.dl-card p { color: var(--muted); }
.code-box { background: var(--night); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; display: grid; gap: 6px; }
.code-box small { color: var(--muted); font-size: 14px; }
.code { font: 800 44px/1 var(--display); letter-spacing: .08em; color: var(--red-2); font-variant-numeric: tabular-nums; }
.code.small { font-size: 20px; letter-spacing: 0; color: var(--text); padding: 8px 0; }
.hint { font-size: 14px; }

/* Questions */
.faq { padding: clamp(72px, 9vw, 130px) 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 62ch; }

/* Final call */
.final { padding: clamp(64px, 8vw, 110px) 0; background: radial-gradient(60% 120% at 50% 100%, rgba(47,107,255,.35), transparent 70%), var(--night-2); border-top: 1px solid rgba(255,255,255,.05); }
.final-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.final h2 { max-width: 15ch; }
.final .hero-actions { margin-top: 0; }
.foot { padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot-row nav { margin-left: auto; display: flex; gap: 20px; }
.foot a { color: var(--muted); }

/* Smaller screens */
@media (max-width: 1080px) {
  .app-ui { grid-template-columns: 52px 1fr; }
  .cats { display: none; }
  .platforms { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .app-ui { height: auto; }
  .now { grid-template-columns: 1fr; }
  .guide { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature.lead { grid-column: 1 / -1; grid-row: auto; margin-bottom: 12px; }
  .dl-cards, .faq-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-actions .btn-quiet { display: none; }
  .app { padding: 6px; }
  .app-ui { grid-template-columns: 1fr; }
  .rail { display: none; }
  .acts { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .dl-card { padding: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .foot-row nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .notice, .screen .pitch { transition: none; }
  .notice.find .n-dot { animation: none; }
}
