:root {
  --ink: #090d0b;
  --forest: #142219;
  --moss: #71835b;
  --amber: #d69a43;
  --gold: #efc876;
  --bone: #ece4cf;
  --muted: #bcb7a9;
  --line: rgba(229, 187, 107, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, rgba(4,8,6,.30), rgba(7,10,8,.9) 75%, #090d0b), url("hero-nordic.png") center top / cover no-repeat;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, transparent 0, rgba(5,8,6,.16) 40%, rgba(3,5,4,.68) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.brand { color: var(--bone); text-decoration: none; display: flex; align-items: center; gap: 12px; font: 600 1rem Cinzel, serif; letter-spacing: .08em; }
.brand-mark { width: 35px; fill: rgba(10,15,12,.55); stroke: var(--gold); stroke-width: 2; }
.status { font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: #d8d4c8; }
.status i { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #86a968; box-shadow: 0 0 12px #86a968; }

.hero {
  min-height: 665px;
  padding: 135px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rune-divider { display: flex; align-items: center; gap: 11px; color: var(--gold); font-family: serif; opacity: .86; }
.rune-divider i { width: 55px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rune-divider i:nth-of-type(2) { transform: rotate(180deg); }
.eyebrow { margin: 20px 0 8px; color: var(--gold); text-transform: uppercase; font-size: .72rem; font-weight: 600; letter-spacing: .34em; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; }
h1 { margin: 0; font-size: clamp(3.7rem, 10vw, 7.8rem); line-height: .95; letter-spacing: -.045em; text-shadow: 0 4px 28px #000, 0 1px 0 #000; }
h1 span { color: var(--gold); }
.intro { max-width: 630px; margin: 28px auto; color: #dedace; font-size: clamp(.98rem, 2vw, 1.12rem); text-shadow: 0 2px 6px #000; }
.scroll-link { color: var(--bone); text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; font-weight: 600; border-bottom: 1px solid var(--amber); padding: 8px 3px; transition: color .2s, gap .2s; }
.scroll-link:hover { color: var(--gold); }
.scroll-link span { color: var(--gold); margin-left: 8px; }

.downloads {
  position: relative;
  overflow: hidden;
  padding: 95px max(24px, calc((100vw - 1180px) / 2)) 80px;
  background: linear-gradient(180deg, rgba(9,13,11,.88), #0b100d 22%, #0b100d 100%);
  border-top: 1px solid rgba(221,183,111,.18);
}
.downloads::before { content: "ᚲ ᚺ ᛁ ᚾ ᛟ ᚱ ᛏ ᚺ ᛖ ᛁ ᛗ"; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: rgba(218,174,91,.08); font-size: clamp(2rem, 5vw, 4.4rem); letter-spacing: .24em; }
.section-heading { max-width: 560px; margin: 0 auto 48px; text-align: center; }
.section-heading .eyebrow { margin-top: 0; }
.section-heading h2 { margin: 4px 0 10px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
.section-heading > p:last-child { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.download-card {
  position: relative;
  min-height: 430px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(36,45,37,.92), rgba(16,23,18,.96));
  border: 1px solid rgba(230,205,148,.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.035);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.download-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.035); pointer-events: none; }
.download-card:hover { transform: translateY(-7px); border-color: rgba(224,173,79,.6); box-shadow: 0 28px 65px rgba(0,0,0,.42), 0 0 24px rgba(196,138,53,.08); }
.featured { background: linear-gradient(145deg, rgba(52,54,35,.94), rgba(20,25,17,.98)); border-color: rgba(222,171,75,.38); }
.card-topline { display: flex; justify-content: space-between; color: var(--gold); font-size: .63rem; letter-spacing: .2em; text-transform: uppercase; }
.card-topline small { color: #85887f; font-size: .65rem; }
.icon-wrap { width: 76px; height: 76px; margin: 38px 0 24px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line); transform: rotate(45deg); background: rgba(7,11,8,.35); }
.icon-wrap svg { width: 46px; transform: rotate(-45deg); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.download-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.download-card p { margin: 0 0 28px; color: var(--muted); font-size: .89rem; }
.download-btn { position: relative; z-index: 1; margin-top: auto; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; color: var(--bone); text-decoration: none; border: 1px solid rgba(229,187,107,.42); background: rgba(8,12,9,.35); text-transform: uppercase; letter-spacing: .12em; font-size: .69rem; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
.download-btn:hover, .download-btn:focus-visible { color: #10130d; background: var(--gold); border-color: var(--gold); outline: none; }
.install-note { margin: 36px auto 0; text-align: center; color: #92968d; font-size: .78rem; }
.install-note span { color: var(--gold); margin-right: 8px; }

footer { padding: 45px 24px; background: #070a08; border-top: 1px solid rgba(255,255,255,.07); text-align: center; }
footer > span { color: rgba(222,177,91,.25); letter-spacing: .5em; font-size: .9rem; }
footer p { margin: 12px 0 0; color: #777d75; font-size: .7rem; letter-spacing: .08em; }

@media (max-width: 850px) {
  .cards { grid-template-columns: 1fr; max-width: 580px; margin: auto; }
  .download-card { min-height: 365px; }
  .hero { min-height: 610px; min-height: 82svh; }
}

@media (max-width: 520px) {
  .page-bg {
    /* Evita saltos y recortes por la barra de navegación móvil. */
    min-height: 100svh;
    background-position: 52% top;
  }
  .site-header { width: calc(100% - 30px); height: 68px; }
  .brand { gap: 9px; font-size: .86rem; letter-spacing: .05em; }
  .brand-mark { width: 30px; }
  .status { font-size: 0; }
  .status i { margin: 0; }
  .hero {
    min-height: 540px;
    min-height: calc(100svh - 68px);
    padding: clamp(76px, 15vh, 116px) 16px 64px;
    justify-content: center;
  }
  .rune-divider { gap: 8px; }
  .rune-divider i { width: 34px; }
  .eyebrow { font-size: .64rem; letter-spacing: .22em; }
  h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12.6vw, 4rem);
    line-height: 1;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }
  .intro { max-width: 34rem; margin: 22px auto 24px; font-size: .91rem; line-height: 1.65; }
  .scroll-link { font-size: .66rem; letter-spacing: .13em; }
  .downloads { padding: 72px 14px 58px; }
  .downloads::before { top: 18px; font-size: 1.7rem; letter-spacing: .16em; }
  .section-heading { margin-bottom: 32px; padding: 0 8px; }
  .section-heading h2 { font-size: clamp(1.72rem, 8vw, 2.2rem); line-height: 1.2; }
  .section-heading > p:last-child { font-size: .9rem; }
  .cards { gap: 16px; }
  .download-card { padding: 22px; min-height: 355px; }
  .icon-wrap { width: 64px; height: 64px; margin: 31px 0 21px; }
  .icon-wrap svg { width: 39px; }
  .download-card h3 { font-size: 1.18rem; }
  .download-card p { font-size: .84rem; line-height: 1.6; }
  .download-btn { min-height: 48px; padding: 12px 14px; font-size: .65rem; }
  .install-note { padding: 0 8px; line-height: 1.6; }
  footer { padding: 36px 16px; }
  footer > span { display: block; font-size: .66rem; letter-spacing: .28em; overflow-wrap: anywhere; }
}

@media (max-width: 340px) {
  .brand span { font-size: .76rem; }
  h1 { font-size: 2.35rem; }
  .download-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
