/* Landing page: same broadcast language as the app, plus motion. */
:root {
  --bg: #0A0A0A; --panel: #141414; --deep: #050505; --line: #262626;
  --text: #FFFFFF; --muted: #8A8A8A; --soft: #BDBDBD;
  --accent: #E8FF00; --live: #FF2E88; --record: #B026FF; --best: #00E676; --slow: #FFD400;
  --display: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 18px/1.4 var(--cond); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.kicker { font-weight: 800; letter-spacing: 4px; font-size: 15px; color: var(--muted); margin: 0 0 14px; text-transform: uppercase; }
.accent { color: var(--accent); }

/* ---------- bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: stretch; flex-wrap: wrap;
  background: rgba(10, 10, 10, .88); backdrop-filter: blur(8px); border-bottom: 2px solid var(--accent); }
.brand { background: var(--accent); color: var(--bg); padding: 10px 22px; display: flex; align-items: center; gap: 12px; }
.brand b { font: 32px/1 var(--display); }
.brand span { font-weight: 800; font-size: 13px; line-height: 1.05; letter-spacing: 2px; }
.bar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0 12px; }
.bar nav a { padding: 12px 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); font-size: 15px; }
.bar nav a:hover { color: var(--text); }
.live-link i { display: inline-block; width: 8px; height: 8px; background: var(--live); border-radius: 50%; margin-right: 8px; vertical-align: 2px; animation: blink 1.2s infinite; }
.cta-sm { background: var(--text); color: var(--bg) !important; }
.cta-sm:hover { background: var(--accent); }
.marquee i { font-style: normal; }
.lang { display: flex; gap: 2px; margin-left: 8px; }
.lang button { background: transparent; color: var(--muted); border: 1px solid #333; font: 700 13px var(--cond); letter-spacing: 2px; padding: 6px 8px; min-height: 36px; min-width: 40px; cursor: pointer; }
.lang button.on { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.lang button:hover:not(.on) { color: var(--text); border-color: var(--text); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 16px 24px; min-height: 48px; border: 2px solid var(--text); transition: transform .25s var(--ease), background .2s, color .2s; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary span { transition: transform .25s var(--ease); }
.btn.primary:hover span { transform: translateX(6px); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }
.btn:hover { transform: translateY(-2px); }
.btn.big { font-size: 22px; padding: 20px 34px; }

/* ---------- hero */
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 64px 48px 72px; min-height: calc(100vh - 62px); overflow: hidden; }
.hero-copy { flex: 1 1 520px; position: relative; z-index: 1; }
.hero h1 { font: clamp(48px, 7vw, 120px)/.92 var(--display); text-transform: uppercase; margin: 0 0 24px; letter-spacing: -.5px; }
.hero h1 .line { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }  /* room for accents (Á, É) */
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.lede { font-size: 22px; color: var(--soft); max-width: 640px; margin: 0 0 28px; font-weight: 500; }
.lede b { color: var(--text); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fade .8s .6s forwards; }
.dot { display: inline-block; width: 9px; height: 9px; background: var(--live); border-radius: 50%; margin-right: 6px; animation: blink 1.2s infinite; }
.hero .kicker { opacity: 0; animation: fade .8s .1s forwards; }
.hero .lede { opacity: 0; animation: fade .8s .45s forwards; }

.speed { position: absolute; inset: 0; pointer-events: none; }
.speed i { position: absolute; height: 2px; width: 40vw; left: -40vw; background: linear-gradient(90deg, transparent, rgba(232, 255, 0, .5), transparent); animation: streak 3.2s linear infinite; }
.speed i:nth-child(1) { top: 12%; animation-delay: 0s; }
.speed i:nth-child(2) { top: 31%; animation-delay: 1.1s; animation-duration: 2.6s; }
.speed i:nth-child(3) { top: 48%; animation-delay: 2.0s; }
.speed i:nth-child(4) { top: 67%; animation-delay: .6s; animation-duration: 3.8s; }
.speed i:nth-child(5) { top: 83%; animation-delay: 1.7s; animation-duration: 2.9s; background: linear-gradient(90deg, transparent, rgba(255, 46, 136, .5), transparent); }
.speed i:nth-child(6) { top: 94%; animation-delay: 2.6s; }

.hero-demo { flex: 1 1 420px; max-width: 600px; background: var(--deep); border: 2px solid var(--line); position: relative; z-index: 1;
  opacity: 0; transform: translateY(30px) rotate(1deg); animation: drop 1s .35s var(--ease) forwards; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.demo-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; letter-spacing: 2px; color: var(--soft); text-transform: uppercase; font-size: 15px; }
.pill { background: var(--live); color: #fff; padding: 2px 10px; font-weight: 800; letter-spacing: 3px; }
.demo-clock { font: clamp(64px, 7vw, 104px)/1 var(--display); padding: 16px 16px 8px; font-variant-numeric: tabular-nums; }
.demo-clock span { color: var(--accent); }
.demo-sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 16px 14px; }
.sec { border: 2px dashed #333; padding: 8px 10px; color: #5A5A5A; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.sec b { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.sec .tm { display: block; font: 600 18px var(--mono); }
.sec.now { border: 2px solid var(--live); color: var(--text); }
.sec.record { background: var(--record); border: 2px solid var(--record); color: #fff; transform: scale(1.04); }
.sec.best { background: var(--best); border: 2px solid var(--best); color: var(--bg); transform: scale(1.04); }
.sec.slow { background: var(--slow); border: 2px solid var(--slow); color: var(--bg); transform: scale(1.04); }
.demo-term { margin: 0; border-top: 1px solid var(--line); padding: 14px 16px; height: 210px; overflow: hidden; font: 13px/1.6 var(--mono); color: var(--soft); white-space: pre-wrap; word-break: break-word; }
.demo-term .p { color: var(--accent); }
.demo-term .ok { color: var(--best); }
.demo-term .door { background: var(--accent); color: var(--bg); padding: 0 6px; }
.demo-term .cur { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* ---------- marquee */
.marquee { overflow: hidden; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); background: var(--accent); color: var(--bg); }
.marquee .track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: scroll 32s linear infinite; }
.marquee span { font-weight: 800; letter-spacing: 3px; white-space: nowrap; font-size: 18px; }
.marquee b { font: 22px var(--display); letter-spacing: 1px; margin-left: 8px; }
.marquee span::after { content: "◆"; margin-left: 48px; }

/* ---------- blocks */
.block { padding: 110px 48px; max-width: 1320px; margin: 0 auto; }
.block.dark { max-width: none; background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block.dark > * { max-width: 1224px; margin-left: auto; margin-right: auto; }
.block h2 { font: clamp(42px, 5.4vw, 82px)/.95 var(--display); text-transform: uppercase; margin: 0 0 40px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* pipeline */
.pipeline { display: flex; align-items: center; gap: 0; margin: 0 0 56px; flex-wrap: wrap; }
.node { flex: 1 1 180px; border: 2px solid var(--text); padding: 18px 20px; font: 26px/1 var(--display); text-transform: uppercase; }
.node small { display: block; font: 600 15px var(--cond); color: var(--muted); letter-spacing: 1px; margin-top: 8px; text-transform: none; }
.node.accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.node.accent small { color: #333; }
.wire { flex: 1 1 110px; position: relative; height: 2px; background: #333; min-width: 80px; }
.wire span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.wire i { position: absolute; top: -3px; width: 8px; height: 8px; background: var(--accent); left: 0; animation: packet 2.4s linear infinite; }
.wire i:nth-child(2) { animation-delay: .8s; }
.wire i:nth-child(3) { animation-delay: 1.6s; background: var(--live); animation-direction: reverse; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.steps li { background: var(--panel); padding: 28px 26px; border-top: 4px solid var(--text); transition: border-color .3s, transform .3s var(--ease); }
.steps li:hover { border-color: var(--accent); transform: translateY(-4px); }
.steps .n { font: 64px/1 var(--display); color: var(--accent); }
.steps h3, .room h3 { font: 30px/1 var(--display); text-transform: uppercase; margin: 12px 0 10px; }
.steps p, .room p, .fair p { color: var(--soft); margin: 0; font-weight: 500; }

/* rooms */
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.room { position: relative; overflow: hidden; background: var(--panel); padding: 30px 28px 26px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 4px solid var(--record); transition: transform .4s var(--ease); }
.room:nth-child(2) { border-bottom-color: var(--best); }
.room:nth-child(3) { border-bottom-color: var(--slow); }
.room:hover { transform: translateY(-6px); }
.room .big { position: absolute; top: -30px; right: 10px; font: 220px/1 var(--display); color: #1E1E1E; transition: color .4s, transform .6s var(--ease); }
.room:hover .big { color: #2A2A2A; transform: translateY(10px); }
.room > * { position: relative; }
.room .tag { margin-top: 18px; align-self: flex-start; font: 13px var(--mono); border: 1px solid #444; padding: 2px 8px; color: var(--muted); }
.note { color: var(--muted); margin-top: 28px; font-size: 19px; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--line); }
.mode { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, color .25s; }
.mode b { display: block; font: 34px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.mode span { color: var(--muted); font-weight: 500; }
.mode:hover { background: var(--accent); color: var(--bg); }
.mode:hover span { color: var(--bg); }
.mode.hard b { color: var(--live); }
.mode.hard:hover { background: var(--live); color: #fff; }
.mode.hard:hover b, .mode.hard:hover span { color: #fff; }

/* board */
.board { border-top: 2px solid var(--text); }
.board .row { display: flex; align-items: center; gap: 16px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-left: 6px solid #333; }
.board .row.p1 { border-left-color: var(--record); background: #121212; }
.board .pos { font: 30px var(--display); width: 40px; text-align: center; color: var(--soft); }
.board .p1 .pos { color: var(--accent); }
.board .who { flex: 1; font-weight: 800; font-size: 24px; text-transform: uppercase; }
.board .who small { display: block; font: 13px var(--mono); color: var(--muted); text-transform: none; }
.board .t { font: 18px var(--mono); }
.board .empty { color: var(--muted); justify-content: center; padding: 30px; border-left: 0; }
.av { width: 40px; height: 40px; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; font: 16px var(--display); color: var(--soft); position: relative; overflow: hidden; flex: none; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* fair play */
.fair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.fair > div { padding: 26px 24px; border-left: 4px solid var(--accent); background: var(--panel); }
.fair b { display: block; font: 28px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }

/* faq */
.faq { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 50px 22px 4px; font-weight: 800; font-size: 24px; position: relative; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 34px var(--display); color: var(--accent); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq details > div > p { overflow: hidden; margin: 0; color: var(--soft); font-weight: 500; font-size: 20px; max-width: 900px; }
.faq details.opened > div { grid-template-rows: 1fr; }
.faq details.opened > div > p { padding: 0 4px 24px; }

/* final */
.final { text-align: center; padding: 140px 24px; background: radial-gradient(ellipse at center, #1a1f00 0%, var(--bg) 65%); }
.final h2 { font: clamp(52px, 8vw, 128px)/.95 var(--display); text-transform: uppercase; margin: 0 0 44px; }
.final h2 span { display: block; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 48px; border-top: 2px solid var(--accent); color: var(--muted); letter-spacing: 2px; font-size: 15px; }
.foot a:hover { color: var(--accent); }

/* ---------- keyframes */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes streak { to { left: 110vw; } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes packet { from { left: 0; } to { left: calc(100% - 8px); } }

@media (max-width: 760px) {
  .bar nav a:not(.cta-sm):not(.live-link) { display: none; }
  .bar nav { padding: 6px 8px; }
  .lang button { min-width: 36px; padding: 6px 4px; }
  .hero { padding: 40px 16px 56px; min-height: 0; }
  .block { padding: 72px 16px; }
  .wire { flex: none; height: 34px; width: 2px; min-width: 0; margin-left: 24px; }
  .wire i { left: -3px; animation-name: packet-v; }
  .wire span { left: 18px; top: 8px; transform: none; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .foot { padding: 20px 16px; }
  .demo-sectors { grid-template-columns: 1fr; }
  .faq summary { font-size: 20px; }
}
@keyframes packet-v { from { top: 0; } to { top: calc(100% - 8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .speed, .wire i { display: none; }
  .reveal { opacity: 1; transform: none; }
  .marquee .track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- legal page */
.legal { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; font: 500 18px/1.6 var(--cond); color: var(--soft); }
.legal section { padding-top: 24px; scroll-margin-top: 80px; }
.legal section + section { border-top: 1px solid var(--line); margin-top: 40px; }
.legal h1 { font: 56px/1 var(--display); color: var(--text); text-transform: uppercase; margin: 0 0 20px; }
.legal h2 { font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 17px; color: var(--accent); margin: 32px 0 8px; }
.legal b { color: var(--text); }
.legal a { color: var(--accent); text-decoration: underline; }
.legal li { margin-bottom: 10px; }
.legal mark { background: var(--slow); color: var(--bg); padding: 0 6px; font-weight: 700; }
.legal .muted { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .legal h1 { font-size: 40px; } .legal { padding: 32px 16px 64px; } }
