:root {
  --ink: #070b21;
  --panel: #0d1734;
  --panel-soft: #122345;
  --text: #edf7f7;
  --muted: #9db0c4;
  --cyan: #5bddd3;
  --cyan-dark: #1a8f9c;
  --gold: #e8ba68;
  --line: rgba(123, 212, 215, 0.22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 30%, rgba(15, 100, 130, 0.18), transparent 35%),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 15% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 42%, #7ddbe4 0 1px, transparent 1.5px),
    radial-gradient(circle at 35% 78%, #f3d394 0 1px, transparent 1.5px);
  background-size: 310px 270px, 430px 390px, 370px 440px;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(22px, 5vw, 82px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(4, 8, 28, 0.92), rgba(4, 8, 28, 0.48));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #fff5da;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe8a5, var(--gold));
  box-shadow: 0 0 28px rgba(232, 186, 104, 0.42);
}

nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
}

nav a {
  color: #c2d1dc;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav a:hover {
  color: #fff;
}

.nav-download {
  padding: 10px 18px;
  color: #071024;
  border-radius: 999px;
  background: var(--cyan);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(1000px, 100svh);
  align-items: center;
  overflow: hidden;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 8, 28, 0.98) 0%, rgba(4, 8, 28, 0.82) 26%, rgba(4, 8, 28, 0.18) 62%, rgba(4, 8, 28, 0.14) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 24%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 90vw);
  margin-left: clamp(24px, 8vw, 138px);
  padding-top: 74px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.22em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  color: #fff4d4;
  font-size: clamp(4.4rem, 9vw, 8.7rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.42);
}

h1 span {
  display: block;
  color: transparent;
  font-size: 0.57em;
  letter-spacing: 0.03em;
  -webkit-text-stroke: 1px rgba(255, 244, 212, 0.82);
}

.hero-lead {
  margin: 24px 0 10px;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 540;
}

.hero-text {
  max-width: 590px;
  color: #b9cad7;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: 180ms ease;
}

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

.button-primary {
  color: #10162a;
  background: linear-gradient(135deg, #f4d488, var(--gold));
  box-shadow: 0 12px 40px rgba(232, 186, 104, 0.2);
}

.button-primary:hover {
  box-shadow: 0 16px 50px rgba(232, 186, 104, 0.35);
}

.button-ghost {
  color: #d8ecec;
  border-color: rgba(116, 221, 213, 0.35);
  background: rgba(8, 22, 48, 0.5);
  backdrop-filter: blur(12px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: #8198ad;
  font-size: 0.78rem;
}

.hero-meta span {
  position: relative;
}

.hero-meta span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -16px;
  width: 3px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
}

.scroll-cue {
  position: absolute;
  right: 44px;
  bottom: 54px;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #91a6b9;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  transform: rotate(90deg);
  transform-origin: right center;
}

.scroll-cue i {
  display: block;
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(90px, 10vw, 150px) 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 62px;
}

h2 {
  margin-bottom: 24px;
  color: #f5f1e5;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child,
.world-copy > p,
.download-intro > p:last-child {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillars article {
  position: relative;
  min-height: 340px;
  padding: 38px 30px;
  border-right: 1px solid var(--line);
  transition: background 180ms ease;
}

.pillars article:last-child {
  border-right: 0;
}

.pillars article:hover {
  background: linear-gradient(180deg, rgba(91, 221, 211, 0.08), transparent);
}

.pillar-number {
  color: #536a82;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.pillar-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 54px 0 28px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(91, 221, 211, 0.35);
  border-radius: 20px;
  background: rgba(91, 221, 211, 0.05);
  font-size: 1.7rem;
}

.pillars h3,
.download-card h3 {
  margin-bottom: 10px;
  color: #edf4ee;
  font-size: 1.3rem;
}

.pillars p {
  color: #8fa5b7;
  font-size: 0.92rem;
}

.world {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(540px, 1.4fr);
  gap: 68px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 34px 0 0;
  color: #c6d5dc;
  list-style: none;
}

.feature-list span {
  margin-right: 10px;
  color: var(--cyan);
}

.game-frame {
  position: relative;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(94, 222, 212, 0.34);
  border-radius: 28px;
  background: #0a1430;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.game-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 19px;
}

.game-frame figcaption {
  position: absolute;
  right: 18px;
  bottom: -31px;
  color: #657f94;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frame-glow {
  position: absolute;
  inset: 20%;
  background: rgba(45, 194, 196, 0.4);
  filter: blur(90px);
}

.download {
  width: min(1360px, calc(100% - 44px));
}

.download-intro {
  max-width: 740px;
  margin: 0 auto 62px;
  text-align: center;
}

.download-intro .eyebrow {
  margin-bottom: 18px;
}

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

.download-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(27, 53, 88, 0.7), rgba(8, 16, 42, 0.94)),
    var(--panel);
  transition: 200ms ease;
}

.download-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  content: "";
  border-radius: 50%;
  background: rgba(81, 218, 211, 0.09);
  filter: blur(20px);
}

.download-card:hover,
.download-card.recommended {
  border-color: rgba(91, 221, 211, 0.62);
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.download-card.recommended::before {
  position: absolute;
  top: 19px;
  right: 20px;
  padding: 5px 10px;
  content: "POUR VOUS";
  color: #07212a;
  border-radius: 99px;
  background: var(--cyan);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.os-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 40px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(91, 221, 211, 0.3);
  border-radius: 19px;
  background: rgba(91, 221, 211, 0.06);
  font-size: 2rem;
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.download-card > p:not(.card-kicker) {
  color: #849bad;
  font-size: 0.9rem;
}

.download-card .button {
  z-index: 1;
  width: 100%;
  margin-top: auto;
}

.download-card small {
  z-index: 1;
  min-height: 46px;
  margin-top: 17px;
  color: #687f93;
  font-size: 0.72rem;
}

code {
  color: #b4dad7;
}

.integrity {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  color: #71889c;
  font-size: 0.78rem;
}

.integrity a {
  color: var(--cyan);
}

.requirements {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.requirements dl {
  margin: 0;
}

.requirements dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid rgba(130, 185, 196, 0.14);
}

.requirements dt {
  color: var(--cyan);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirements dd {
  margin: 0;
  color: #a8bac7;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding: 42px clamp(22px, 5vw, 82px);
  color: #657d91;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 26, 0.82);
  font-size: 0.76rem;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars article:nth-child(2) {
    border-right: 0;
  }

  .pillars article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .world,
  .requirements {
    grid-template-columns: 1fr;
  }

  .game-frame {
    transform: none;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 360px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 66px;
  }

  .site-header nav a:not(.nav-download) {
    display: none;
  }

  .brand {
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    min-height: 850px;
    align-items: end;
  }

  .hero-art {
    object-position: 65% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(4, 8, 28, 0.62) 65%, rgba(4, 8, 28, 0.2)),
      linear-gradient(90deg, rgba(4, 8, 28, 0.75), transparent);
  }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 110px 24px 80px;
  }

  h1 {
    font-size: clamp(4rem, 23vw, 6.5rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-meta span::after,
  .scroll-cue {
    display: none;
  }

  .section {
    width: min(100% - 32px, 1240px);
    padding: 84px 0;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillars article {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pillar-icon {
    margin: 34px 0 20px;
  }

  .world {
    gap: 38px;
  }

  .game-frame figcaption {
    display: none;
  }

  .download-card {
    padding: 26px;
  }

  .requirements {
    gap: 32px;
  }

  .requirements dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .integrity {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
