/* RocoFlex — landing de descarga.
   Paleta y tipografía salen de la app: violeta/cian sobre negro azulado. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #07060d;
  --panel: #12101e;
  --panel-2: #1a1730;
  --ink: #f5f3ff;
  --quiet: #a9a5c0;
  --faint: #726d8f;
  --line: rgba(255, 255, 255, 0.09);
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --rose: #fb7185;
  --radius: 14px;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(900px 480px at 6% 8%, rgba(34, 211, 238, 0.10), transparent 55%),
    var(--base);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  scroll-margin-top: 80px;
  border-block: 1px solid var(--line);
}
.access p { color: var(--quiet); }
.access a { color: var(--cyan); }
.access-controls { min-width: 0; }
.access form { display: grid; gap: 10px; margin-bottom: 16px; }
.access input, .access button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--quiet);
  font: inherit;
}
.access input { min-width: 0; background: var(--panel); color: var(--ink); }
.access button { background: var(--ink); color: var(--base); cursor: pointer; font-weight: 600; }
.access button.secondary { background: var(--panel); color: var(--ink); }
.access button:disabled { opacity: .65; cursor: wait; }
.access [hidden] { display: none; }
#accounts { list-style: none; padding: 0; }
#accounts li { padding-block: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#accounts button { margin: 4px 6px 4px 0; }
@media (max-width: 720px) {
  .access { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7, 6, 13, 0.92), rgba(7, 6, 13, 0.55));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #0b0916;
  font-size: 17px;
  font-weight: 800;
}

.brand-name span { color: var(--cyan); }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  color: var(--quiet);
}

.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

.version-pill {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--quiet);
  text-decoration: none;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lede {
  margin: 0 0 30px;
  max-width: 46ch;
  color: var(--quiet);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: #fff;
  color: #0b0916;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.24); }

.btn-size {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(11, 9, 22, 0.18);
  font-size: 13px;
  font-weight: 600;
  opacity: 0.65;
}

.btn-big { padding: 17px 28px; font-size: 17px; }

.facts {
  display: flex;
  gap: 34px;
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.facts div { margin: 0; }
.facts dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.facts dd { margin: 0; font-size: 15px; font-weight: 600; }

/* marco de TV */
.hero-art { position: relative; }

.hero-art::before {
  content: "";
  position: absolute;
  inset: -12% -8% -4%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.35), transparent 72%);
  filter: blur(24px);
  z-index: -1;
}

.tv {
  padding: 9px;
  border-radius: 20px;
  background: linear-gradient(160deg, #2a2545, #0d0b17 45%, #1b1730);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.tv img {
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.art-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--faint);
  text-align: right;
}

/* ---------- secciones ---------- */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--quiet);
  font-size: 17px;
}

/* features: grilla sin tarjetas, con regla superior */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.features svg {
  width: 26px;
  height: 26px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.features h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.features p {
  margin: 0;
  color: var(--quiet);
  font-size: 15.5px;
}

/* capturas */
.shots {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.shots figure { margin: 0; grid-column: span 6; }
.shots figure:first-child { grid-column: span 12; }

.shots img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.shots figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--faint);
}

/* ---------- descarga ---------- */

.download {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  max-width: var(--shell);
  margin: 40px auto;
  padding: 44px 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(140deg, rgba(124, 58, 237, 0.16), transparent 45%),
    var(--panel);
}

.download h2 { margin-bottom: 10px; }
.download .lede { margin-bottom: 26px; font-size: 16.5px; }

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 26px 0 12px;
}

.file-meta dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.file-meta dd { margin: 0; font-weight: 600; font-size: 16px; }

.hash {
  margin: 0;
  font-size: 12.5px;
  color: var(--faint);
  word-break: break-all;
}
.hash code { color: var(--quiet); }

.install {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.install h3 { margin: 0 0 16px; font-size: 18px; }

.install ol {
  margin: 0;
  padding-left: 22px;
  color: var(--quiet);
  font-size: 15.5px;
}

.install li { margin-bottom: 12px; }
.install li::marker { color: var(--cyan); font-weight: 700; }
.install em { color: var(--ink); font-style: normal; }

.install-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}

/* ---------- faq ---------- */

.faq { max-width: 860px; }

.faq h2 { margin-bottom: 20px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--violet);
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq p {
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 15.5px;
  max-width: 68ch;
}

/* ---------- footer ---------- */

.footer {
  max-width: var(--shell);
  margin: 40px auto 0;
  padding: 34px 24px 46px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer .legal { margin: 6px 0 0; color: var(--quiet); font-size: 14px; }
.footer .fine { margin: 0; color: var(--faint); font-size: 13px; }

/* ---------- entrada ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 600ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 60ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 120ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 180ms; }
  .hero-copy > *:nth-child(5) { animation-delay: 240ms; }
  .hero-art { animation: fade 900ms ease both; animation-delay: 120ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-art { order: -1; }
  .art-note { text-align: left; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download { grid-template-columns: 1fr; gap: 32px; padding: 32px 26px; }
  .shots figure { grid-column: span 12; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .top { gap: 14px; padding: 14px 18px; }
  .nav { display: none; }
  .version-pill { margin-left: auto; }
  .hero, .section { padding-left: 18px; padding-right: 18px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .facts { gap: 20px; flex-wrap: wrap; }
  .shots { gap: 16px; }
  .download { margin: 24px 12px; border-radius: 16px; }
  .footer { padding-left: 18px; padding-right: 18px; }
}
