:root {
  --bg: #121212;
  --bg-deep: #0b0b0b;
  --tile: #242424;
  --tile-hover: #2e2e2e;
  --line: #2f2f2f;
  --input: #161616;

  --yellow: #f6f01b;
  --yellow-hover: #fffa4d;
  --blue: #2f8bff;
  --cyan: #2fd6ff;

  --text: #ffffff;
  --muted: #b5b5b5;
  --dim: #7a7a7a;
  --error: #ff5a5a;

  --display: 'Archivo', 'Arial Black', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r: 12px;
  --r-lg: 18px;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-hover); }

.display {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

/* ── Notice bar ── */

.notice {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 7px 16px;
}

.notice b {
  color: #000;
  background: var(--yellow);
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  letter-spacing: 0.03em;
}

/* ── Header ── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 76px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  font-size: 2.1rem;
  line-height: 1;
  background: linear-gradient(160deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-word {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.header-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.97);
}

.menu-panel.open { display: block; }

.menu-panel ul {
  list-style: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.menu-panel a {
  display: block;
  padding: 16px 20px;
  background: var(--tile);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 1rem;
  transition: background 150ms ease, color 150ms ease;
}

.menu-panel a:hover,
.menu-panel a.active {
  background: var(--yellow);
  color: #000;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-yellow { background: var(--yellow); color: #000; }
.btn-yellow:hover { background: var(--yellow-hover); color: #000; }

.btn-dark { background: var(--tile); color: #fff; }
.btn-dark:hover { background: var(--tile-hover); color: #fff; }

.btn-sm { font-size: 0.95rem; padding: 9px 20px; border-radius: 9px; }
.btn-lg { font-size: 1.2rem; padding: 17px 36px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn[disabled] {
  background: #3a3a3a;
  color: #9a9a9a;
  cursor: not-allowed;
}

/* ── Hero carousel ── */

.hero {
  position: relative;
  height: min(78vh, 640px);
  min-height: 480px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 600ms;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 24px 110px;
}

.slide.active { opacity: 1; visibility: visible; }

.slide-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg,
      rgba(255, 255, 255, 0) 0 46px,
      rgba(255, 255, 255, 0.05) 46px 50px);
}

.slide-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(18, 18, 18, 0.75) 62%, var(--bg) 100%);
}

.art-storm   { background: radial-gradient(circle at 70% 18%, #b05cff 0, transparent 40%), radial-gradient(circle at 20% 30%, #3a7bff 0, transparent 45%), linear-gradient(160deg, #20145a, #5c1f8f 55%, #1a0c33); }
.art-sunset  { background: radial-gradient(circle at 75% 25%, #ffcf3a 0, transparent 35%), radial-gradient(circle at 25% 40%, #ff5a2a 0, transparent 50%), linear-gradient(160deg, #6b1d0c, #c2410c 50%, #3a0f06); }
.art-sky     { background: radial-gradient(circle at 30% 20%, #8de8ff 0, transparent 40%), radial-gradient(circle at 80% 35%, #2f8bff 0, transparent 45%), linear-gradient(160deg, #0b3a6b, #1673c9 55%, #0a2342); }
.art-island  { background: radial-gradient(circle at 70% 30%, #9cff5a 0, transparent 35%), radial-gradient(circle at 20% 25%, #1fc8a8 0, transparent 45%), linear-gradient(160deg, #0b3b2c, #138a5a 50%, #072018); }

.slide-content { position: relative; z-index: 1; max-width: 820px; }

.slide-kicker {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.slide h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  margin-bottom: 26px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.hero-next {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9px;
  background: rgba(235, 228, 215, 0.9);
  color: #000;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.hero-next:hover { background: #fff; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 14px;
}

.hero-dots button {
  width: 98px;
  height: 9px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.hero-dots button span {
  position: absolute;
  inset: 0;
  width: 0;
  background: #fff;
  border-radius: 9px;
}

.hero-dots button.active span { animation: fill 6s linear forwards; }

.hero.paused .hero-dots button.active span { animation-play-state: paused; }

@keyframes fill { to { width: 100%; } }

/* ── Sections ── */

.section { padding: 72px 24px; }
.section-alt { background: var(--bg-deep); }
.wrap { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.section-title p { color: var(--muted); font-size: 1rem; }

/* ── Platform tiles ── */

.platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.platform {
  background: var(--tile);
  border-radius: var(--r-lg);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  transition: background 150ms ease, transform 150ms ease;
}

.platform:hover { background: var(--tile-hover); color: #fff; transform: translateY(-3px); }

.platform-name {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 2.2rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.platform-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Info tiles ── */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  background: var(--tile);
  border-radius: var(--r-lg);
  padding: 28px;
}

.tile h3 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.tile p { color: var(--muted); font-size: 0.93rem; }

.tile-tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--yellow);
  border-radius: 5px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

/* ── CTA band ── */

.cta-band {
  background: var(--yellow);
  color: #000;
  border-radius: 22px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { font-weight: 500; margin-top: 6px; }
.cta-band .btn { background: #000; color: var(--yellow); }
.cta-band .btn:hover { background: #222; color: var(--yellow-hover); }

/* ── Downloads ── */

.page-head {
  padding: 64px 24px 24px;
  text-align: center;
}

.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.dl-card {
  background: var(--tile);
  border-radius: var(--r-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.dl-card .platform-name { font-size: 2rem; margin-bottom: 4px; }

.dl-meta {
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 16px;
}

.dl-card p.desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; flex: 1; }

.dl-foot { font-size: 0.8rem; color: var(--dim); margin-top: 12px; text-align: center; }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.spec-box {
  background: var(--tile);
  border-radius: var(--r-lg);
  padding: 28px;
}

.spec-box h3 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.spec-row span:first-child { color: var(--dim); }
.spec-row span:last-child { color: #e6e6e6; text-align: right; }

.steps-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 40px 0 16px;
}

.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }

.steps li {
  counter-increment: s;
  background: var(--tile);
  border-radius: var(--r);
  padding: 20px 22px 20px 78px;
  position: relative;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yellow);
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h4 { font-weight: 700; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.92rem; }

code {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.85em;
  background: #111;
  color: var(--yellow);
  padding: 2px 6px;
  border-radius: 5px;
}

.help-box {
  margin-top: 32px;
  background: var(--tile);
  border-left: 4px solid var(--yellow);
  border-radius: var(--r);
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.help-box strong { color: #fff; }

/* ── Auth ── */

.auth {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--tile);
  border-radius: 20px;
  padding: 38px;
}

.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 0.93rem; margin-bottom: 26px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field label small { color: var(--dim); font-weight: 400; }

.field input {
  width: 100%;
  background: var(--input);
  border: 2px solid #333;
  border-radius: 10px;
  color: #fff;
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 150ms ease;
}

.field input:focus { border-color: var(--yellow); }
.field input::placeholder { color: #666; }

.form-error {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: var(--error);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.fine { font-size: 0.8rem; color: var(--dim); margin: 4px 0 18px; }

.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Account ── */

.account { flex: 1; padding: 56px 20px; }
.account .wrap { max-width: 760px; }

.acct-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--yellow);
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acct-head h1 { font-size: 2rem; }
.acct-head p { color: var(--muted); }

.panel {
  background: var(--tile);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-bottom: 18px;
}

.panel h2 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.panel > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }

.inline-form { display: flex; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1; margin-bottom: 0; }

/* ── Legal / credits ── */

.doc { flex: 1; padding: 64px 24px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 6px; }
.doc .updated { color: var(--dim); font-size: 0.85rem; margin-bottom: 30px; }

.doc h2 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin: 34px 0 10px;
}

.doc h3 { font-size: 1rem; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--muted); font-size: 0.96rem; line-height: 1.75; margin-bottom: 10px; }
.doc ul { padding-left: 20px; margin-bottom: 14px; }
.doc li { margin-bottom: 4px; }
.doc strong { color: #fff; }

.credit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 10px 0 20px;
}

.credit-grid .tile p { margin-bottom: 0; }

/* ── Disclaimer block ── */

.disclaimer {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer h2 { font-size: 1.6rem; margin-bottom: 14px; }
.disclaimer p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.disclaimer strong { color: #fff; }
.disclaimer .made-with { margin-top: 14px; color: var(--dim); font-size: 0.85rem; }

/* ── Footer ── */

.footer {
  margin-top: auto;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 52px 24px 28px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-about p { color: var(--dim); font-size: 0.85rem; margin-top: 14px; max-width: 340px; }

.footer h4 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--muted); font-size: 0.88rem; }
.footer li a:hover { color: var(--yellow); }

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p { color: var(--dim); font-size: 0.78rem; line-height: 1.6; max-width: 760px; }

.socials { display: flex; gap: 8px; }

.socials a {
  background: var(--tile);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  height: fit-content;
}

.socials a:hover { background: var(--yellow); color: #000; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .header-inner { padding: 0 16px; height: 64px; }
  .brand-word { display: none; }
  .header-actions .btn-dark { display: none; }
  .menu-panel ul { padding: 14px 16px 20px; grid-template-columns: 1fr; }

  .hero { min-height: 460px; }
  .slide { padding-bottom: 96px; }
  .hero-dots { gap: 8px; bottom: 36px; }
  .hero-dots button { width: 54px; }

  .section { padding: 52px 16px; }
  .platforms, .tiles, .dl-grid, .specs, .credit-grid { grid-template-columns: 1fr; }
  .platform { min-height: 130px; }
  .platform-name { font-size: 1.8rem; }
  .cta-band { padding: 30px 24px; }

  .auth-card { padding: 28px 22px; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .hero-dots button.active span { animation: none; width: 100%; }
}
