/* ThunderScreen landing — same layout as the Thundy download page (Thunderland family). */
:root {
  --bg: #0c0817;
  --text: #ffffff;
  --text-2: #b9b3cc;
  --text-3: #8a84a0;
  --yellow: #ffc61a;
  --yellow-2: #ffd84d;
  --violet: #5e1aeb;
  --card-border: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 45% at 50% -8%, rgba(94, 26, 235, 0.42), transparent 70%),
    radial-gradient(45% 50% at -5% 105%, rgba(94, 26, 235, 0.28), transparent 70%),
    radial-gradient(35% 40% at 100% 60%, rgba(61, 43, 224, 0.12), transparent 70%),
    var(--bg);
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.page {
  min-height: 100vh;
  max-width: 1032px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.maker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); }
.thunderland { height: 18px; width: auto; }
.thunderland-link { display: inline-flex; transition: opacity 0.2s ease; }
.thunderland-link:hover { opacity: 0.85; }

/* ===== Hero ===== */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 448px;
  gap: 56px;
  align-items: center;
  padding: 72px 0 96px;
}
h1 {
  font-size: clamp(44px, 6.4vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  word-spacing: 0.08em;
  max-width: 480px;
}
.hl { color: var(--yellow); }

.points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; max-width: 500px; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points__icon { flex: none; width: 22px; font-size: 18px; line-height: 1.3; text-align: center; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.points p { color: var(--text-2); font-size: 16.5px; line-height: 1.45; }
.points strong { color: #fff; font-weight: 600; }

/* ===== Download card ===== */
.card {
  position: relative;
  text-align: center;
  padding: 32px 32px 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(58, 48, 82, 0.62), rgba(34, 28, 50, 0.6));
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.card__icon { margin: 0 auto 14px; filter: drop-shadow(0 10px 28px rgba(94, 26, 235, 0.65)); border-radius: 26px; }
.card h2 { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; }
.card__sub { color: var(--text-2); margin: 6px 0 22px; font-size: 16px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary {
  color: #1a1426;
  border: 0;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  box-shadow: 0 10px 34px -10px rgba(255, 198, 26, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 40px -8px rgba(255, 198, 26, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn--primary:active { transform: translateY(0) scale(0.99); }
.btn--ghost {
  min-height: 50px;
  margin-top: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn--ghost svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.card__meta { margin-top: 12px; font-size: 13.5px; color: var(--text-3); }
.req { margin-top: 14px; display: grid; gap: 8px; text-align: left; font-size: 13.5px; color: var(--text-2); }
.req[hidden] { display: none; }
.req strong { color: #fff; font-weight: 600; }
.card__divider { height: 1px; background: var(--line); margin: 22px 0 16px; }
.card__version { font-size: 14.5px; font-weight: 600; color: var(--text-2); }

/* ===== Footer ===== */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}
.bottom strong, .bottom .author { color: #fff; font-weight: 500; }
.bottom .author:hover { text-decoration: underline; text-underline-offset: 3px; }
.bottom nav { display: flex; gap: 18px; }
.bottom nav a { color: var(--text-2); }
.bottom nav a:hover { color: #fff; }

/* ===== Text pages (privacidad, términos, 404) ===== */
.doc { flex: 1; max-width: 720px; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); max-width: none; margin-bottom: 24px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--text-2); }
.doc a { color: var(--yellow); }
.doc .btn { width: auto; display: inline-flex; padding: 0 26px; margin-top: 28px; color: #1a1426; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; }
  h1 { max-width: 560px; }
  .card { max-width: 480px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .maker > span:first-child { display: none; }
  .card { padding: 28px 20px 22px; }
  .bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===== Download page (/descarga) ===== */
[hidden] { display: none !important; }
.dl-page { display: grid; place-items: center; min-height: 100vh; padding: 32px 16px; }
.dl { width: 100%; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; }

.dl__orb { position: relative; width: 196px; height: 196px; display: grid; place-items: center; margin-bottom: 26px; }
.dl__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(139, 92, 255, 0.15) 65%, #8b5cff 85%, var(--yellow) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: dl-spin 1.6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(139, 92, 255, 0.8));
}
.dl__ring--2 { inset: 18px; animation-duration: 2.6s; animation-direction: reverse; opacity: 0.5; }
.dl__icon { position: relative; border-radius: 30px; filter: drop-shadow(0 12px 34px rgba(94, 26, 235, 0.75)); animation: dl-float 3.2s ease-in-out infinite; }
.dl__badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a1426;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  box-shadow: 0 8px 26px -6px rgba(255, 198, 26, 0.9), 0 0 0 5px var(--bg);
}
.dl__badge svg { position: absolute; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dl__arrow { animation: dl-drop 1.2s ease-in-out infinite; }
.dl__check { opacity: 0; transform: scale(0.4); stroke-dasharray: 24; stroke-dashoffset: 24; }

.dl__title { font-size: clamp(32px, 6vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.dl__lead { color: var(--text-2); font-size: 17px; margin-top: 12px; max-width: 440px; }

.dl__bar { width: 100%; max-width: 360px; height: 6px; border-radius: 3px; margin: 26px 0 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dl__bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #5e1aeb, #a27bff, var(--yellow)); box-shadow: 0 0 12px rgba(139, 92, 255, 0.8); animation: dl-bar 1.3s ease-in-out infinite; }

.dl__steps { list-style: none; margin: 22px 0 0; padding: 18px 20px; display: grid; gap: 12px; width: 100%; text-align: left; border-radius: 20px; background: linear-gradient(180deg, rgba(58, 48, 82, 0.5), rgba(34, 28, 50, 0.5)); border: 1px solid var(--card-border); }
.dl__steps li { display: flex; gap: 12px; align-items: flex-start; }
.dl__steps li > span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--violet); box-shadow: 0 0 12px rgba(94, 26, 235, 0.8); }
.dl__steps p { color: var(--text-2); font-size: 15px; }
.dl__steps strong { color: #fff; font-weight: 600; }

.dl__actions { display: grid; gap: 12px; width: 100%; margin-top: 22px; }
.dl__actions .btn--ghost { margin-top: 0; font-size: 15px; min-height: 46px; }
.dl__meta { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.dl__maker { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 12px; color: var(--text-3); opacity: 0.85; transition: opacity 0.2s ease; }
.dl__maker:hover { opacity: 1; }
.dl__maker img { height: 16px; width: auto; }

/* states */
.dl__when-started, .dl__when-error { display: none; }
.dl[data-state="started"] .dl__when-starting, .dl[data-state="error"] .dl__when-starting { display: none; }
.dl[data-state="started"] .dl__when-started { display: inline; }
.dl[data-state="error"] .dl__when-error { display: inline; }
.dl[data-state="started"] .dl__ring { animation-duration: 6s; opacity: 0.6; }
.dl[data-state="started"] .dl__arrow { animation: none; opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease; }
.dl[data-state="started"] .dl__check { opacity: 1; transform: scale(1); stroke-dashoffset: 0; transition: opacity 0.2s ease 0.1s, transform 0.35s cubic-bezier(.2, 1.4, .4, 1) 0.1s, stroke-dashoffset 0.45s ease 0.2s; }
.dl[data-state="started"] .dl__bar span { width: 100%; animation: none; transition: width 0.5s ease; }
.dl[data-state="error"] .dl__ring { animation: none; opacity: 0.3; }
.dl[data-state="error"] .dl__badge { background: #3a2f52; color: #fff; box-shadow: 0 0 0 5px var(--bg); }
.dl[data-state="error"] .dl__arrow { animation: none; }
.dl[data-state="error"] .dl__bar span { width: 100%; animation: none; background: rgba(255, 90, 95, 0.7); box-shadow: none; }
.dl[data-state="error"] .dl__close { display: none; }

@keyframes dl-spin { to { transform: rotate(360deg); } }
@keyframes dl-float { 50% { transform: translateY(-6px); } }
@keyframes dl-drop { 0% { transform: translateY(-5px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(3px); opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
@keyframes dl-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .dl__ring, .dl__icon, .dl__arrow, .dl__bar span { animation: none !important; }
}
