/* Kosmos · landing. Identity: Astrion presskit (black + gold, Orbitron + Outfit). */
@font-face { font-family: "Orbitron"; src: url("../fonts/Orbitron.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --void: #000; --bg: #050504; --surface: #0d0c0a; --surface-2: #16140f;
  --line: rgba(210, 180, 140, .2); --line-strong: rgba(210, 180, 140, .45);
  --gold: #d2b48c; --gold-hi: #e6cfa8; --text: #f0f0f0; --muted: #a9a39a; --faint: #77736d;
  --violet: #b17eff; --orange: #ff8918; --blue: #378bff;
  --font-display: "Orbitron", "Eurostile", "Arial Black", sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; font-size: clamp(16px, 1.05vw + 12px, 19px); line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 62ch; }
.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow { font-family: var(--font-display); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.gold { color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .75; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 4, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); font-family: var(--font-display); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .95rem; }
.brand img { width: 34px; height: 34px; animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a:not(.btn) { font-family: var(--font-display); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text); text-decoration: none; padding: 10px 2px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out-expo); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 28px; border-radius: 3px; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid var(--gold); transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out-expo), background .25s; position: relative; overflow: hidden; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--gold); color: #000; box-shadow: 0 0 0 rgba(210, 180, 140, 0); }
.btn.primary:hover { color: #000; background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 10px 50px rgba(210, 180, 140, .38); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: sweep 4.5s var(--ease-out-expo) infinite; }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.ghost { background: transparent; color: var(--gold-hi); }
.btn.ghost:hover { background: rgba(210, 180, 140, .1); transform: translateY(-2px); }
.btn.small { min-height: 40px; padding: 9px 18px; font-size: .66rem; }
.dl-actions .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.dl-actions .btn[aria-disabled="true"]::after { display: none; }
.app:not([href]) { cursor: default; }
.app:not([href]):hover { transform: none; border-color: var(--line); box-shadow: none; }

/* hero */
.hero { overflow-x: clip; position: relative; padding-block: clamp(48px, 9vw, 110px) clamp(40px, 6vw, 80px); text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; left: 50%; top: 44%; width: min(1500px, 160vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; opacity: .3;
  background: repeating-radial-gradient(circle at center, transparent 0 62px, rgba(210, 180, 140, .18) 62px 63px); mask-image: radial-gradient(circle, #000 0 28%, transparent 68%); -webkit-mask-image: radial-gradient(circle, #000 0 28%, transparent 68%); animation: slow-turn 120s linear infinite; }
@keyframes slow-turn { to { rotate: 360deg; } }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 5rem); line-height: 1.08; letter-spacing: .1em; color: var(--gold); }
.hero h1 em { font-style: normal; color: var(--gold-hi); display: block; }
.hero .lede { margin: 26px auto 0; font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--muted); }
.hero .lede strong { color: var(--text); font-weight: 400; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.micro { margin-top: 16px; font-size: .86rem; color: var(--faint); max-width: none; }
.reel { margin: clamp(36px, 6vw, 64px) auto 0; width: min(1120px, 100%); position: relative; }
.reel::before { content: ""; position: absolute; inset: 6% -4% -6%; background: radial-gradient(ellipse at center, rgba(210, 180, 140, .22), transparent 65%); filter: blur(40px); z-index: -1; }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line-strong); overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, .8); }
.player-frame hyperframes-player { display: block; width: 100%; height: 100%; }
.player-frame .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.player-frame.is-live .poster { opacity: 0; pointer-events: none; }
.player-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 3; }
.pbtn { appearance: none; background: rgba(5, 5, 4, .75); color: var(--gold-hi); border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; border-radius: 3px; cursor: pointer; min-height: 36px; }
.pbtn:hover { background: rgba(210, 180, 140, .18); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: clamp(32px, 5vw, 56px) auto 0; width: min(900px, 100%); background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stat { background: var(--surface); padding: 20px 16px 16px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.stat span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }

/* sections */
section.block { padding-block: clamp(64px, 9vw, 130px) 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head .num { grid-row: span 2; font-family: "Orbitron", monospace; color: var(--gold); font-size: .85rem; border: 1px solid var(--line-strong); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; }
.sec-head .eyebrow { align-self: end; }
.sec-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.5rem); letter-spacing: .12em; color: var(--gold); }
.rings { display: flex; justify-content: center; padding-top: clamp(48px, 7vw, 90px); }
.rings svg { width: 64px; height: 64px; color: var(--line-strong); animation: spin 1.8s linear infinite; }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 56px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .f-copy { order: 2; }
.f-copy { display: flex; flex-direction: column; gap: 18px; }
.f-copy h3 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); letter-spacing: .14em; color: var(--gold-hi); line-height: 1.25; }
.f-copy p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-display); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: 2px; }
.shot { position: relative; border-radius: 10px; border: 1px solid var(--line-strong); overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 80px rgba(210, 180, 140, .08); transition: transform .6s var(--ease-out-expo), box-shadow .6s; transform-style: preserve-3d; }
.shot img { display: block; width: 100%; height: auto; }
.shot:hover { box-shadow: 0 40px 110px rgba(0, 0, 0, .8), 0 0 100px rgba(210, 180, 140, .2); }
@media (max-width: 860px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .f-copy { order: 0; } }

/* presets */
.presets { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 8px; }
.cat { border: 1px solid var(--line); background: var(--surface); padding: 14px; border-radius: 6px; font-family: var(--font-display); letter-spacing: .14em; font-size: .72rem; text-transform: uppercase; color: var(--gold-hi); transition: border-color .3s, transform .35s var(--ease-spring); }
.cat:hover { border-color: var(--gold); transform: translateY(-3px); }
@media (max-width: 860px) { .presets { grid-template-columns: 1fr; } }

/* download */
.dl { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(160deg, rgba(210, 180, 140, .09), rgba(13, 12, 10, .9) 45%); position: relative; overflow: hidden; }
.dl::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: url("../img/isotipo-oro.webp") center / contain no-repeat; opacity: .08; animation: spin 1.8s linear infinite; pointer-events: none; }
.dl h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); letter-spacing: .12em; color: var(--gold); line-height: 1.12; }
.dl-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; max-width: 420px; }
.dl-actions .btn { justify-content: space-between; }
.dl-actions .soon { font-size: .86rem; color: var(--faint); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; position: relative; z-index: 1; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--font-display); color: var(--gold); border: 1px solid var(--line-strong); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font-size: .8rem; }
.steps b { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: var(--gold-hi); margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .95rem; }
.steps code { font-family: ui-monospace, Consolas, monospace; font-size: .82em; color: var(--gold-hi); background: rgba(210, 180, 140, .1); padding: 1px 6px; border-radius: 3px; }
.req { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .82rem; color: var(--faint); }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }

/* universe */
.universe-video { margin-bottom: clamp(28px, 4vw, 48px); }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.app { --accent: var(--gold); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(22, 20, 15, .9), rgba(8, 8, 7, .95)); transition: transform .5s var(--ease-out-expo), border-color .3s, box-shadow .5s; text-decoration: none; color: inherit; }
.app:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 70px color-mix(in srgb, var(--accent) 28%, transparent); }
.app img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 0 44px color-mix(in srgb, var(--accent) 45%, transparent); }
.app .kind { font-family: var(--font-display); font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.app h3 { font-size: 1.15rem; letter-spacing: .12em; color: var(--gold-hi); }
.app p { color: var(--muted); font-size: .95rem; }
.app .go { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.badge { position: absolute; top: 16px; right: 16px; font-family: var(--font-display); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; background: var(--gold); color: #000; padding: 4px 8px; border-radius: 2px; }

/* about + footer */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-strong); justify-self: center; }
.about .stack { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.final { text-align: center; padding-block: clamp(80px, 12vw, 160px) 0; }
.final h2 { font-size: clamp(1.7rem, 5vw, 3.6rem); letter-spacing: .1em; color: var(--gold); line-height: 1.12; }
.final .cta-row { margin-top: 30px; }
footer { margin-top: clamp(64px, 9vw, 120px); padding-block: 28px 40px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--faint); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand img, .rings svg, .dl::after, .hero::before, .btn.primary::after { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  #stars { display: none; }
}
