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

:root {
  color-scheme: dark;
  --bg: #0f1722;
  --bg-2: #162131;
  --text: #eef3fb;
  --text-soft: rgba(238, 243, 251, 0.72);
  --text-faint: rgba(238, 243, 251, 0.52);
  --line: rgba(142, 172, 209, 0.18);
  --line-strong: rgba(155, 185, 221, 0.34);
  --panel: rgba(22, 33, 49, 0.72);
  --blue: #5576a4;
  --blue-light: #9bb9dd;
  --cyan: #31d7f5;
  --green: #6ee7a8;
  --amber: #f4c46c;
  --pink: #ff6fae;
  --dark: #08111c;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(110deg, rgba(18, 45, 72, 0.72) 0%, transparent 28%),
    linear-gradient(250deg, rgba(38, 62, 92, 0.56) 0%, transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #0c1320 54%, #070d15 100%);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 185, 221, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 185, 221, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
}

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

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 1rem;
  padding: 0.7rem 1rem;
  z-index: 20;
  background: var(--text);
  color: var(--dark);
  border-radius: 6px;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100vw - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 34, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Newsreader", Georgia, serif;
}

.brand strong {
  font-size: 1.18rem;
  line-height: 1;
}

.brand small {
  color: var(--text-soft);
  font-size: 0.84rem;
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-panel nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav-panel a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--blue-light);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid var(--line);
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(8, 17, 28, 0.6);
}

.language-switcher button {
  appearance: none;
  border: 0;
  min-width: 2.25rem;
  min-height: 2rem;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  font: 700 0.78rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
}

.language-switcher button.is-active {
  background: rgba(155, 185, 221, 0.16);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 17, 28, 0.68);
  align-items: center;
  justify-content: center;
}

.menu-toggle-lines {
  display: grid;
  gap: 0.28rem;
}

.menu-toggle-lines span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(22rem, 1.16fr);
  align-items: center;
  gap: 3rem;
  padding: 4.4rem 0 3rem;
}

.hero-copy {
  max-width: 35rem;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: 5.3rem;
  line-height: 0.92;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
  line-height: 1.12;
}

.hero-lead {
  margin-bottom: 1.65rem;
  color: var(--text-soft);
  font-size: 1.2rem;
  max-width: 34rem;
}

.hero-actions,
.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #f4c46c, #ff6fae);
  color: #161017;
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(8, 17, 28, 0.66);
}

.hero-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #050a12;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.34);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(4, 10, 17, 0.26));
  z-index: 1;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 2.16 / 1;
  min-height: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 260ms ease, transform 520ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(238, 243, 251, 0.28);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 17, 28, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-control:hover,
.carousel-control:focus-visible {
  border-color: rgba(238, 243, 251, 0.56);
  background: rgba(15, 23, 34, 0.88);
}

.carousel-control svg {
  width: 1.25rem;
  height: 1.25rem;
}

.carousel-control-prev {
  left: 0.75rem;
}

.carousel-control-next {
  right: 0.75rem;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 2rem 4.5rem 0.8rem;
  color: rgba(238, 243, 251, 0.82);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.74));
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.62rem;
  z-index: 4;
  display: inline-flex;
  gap: 0.42rem;
  transform: translateX(-50%);
}

.carousel-dots button {
  appearance: none;
  width: 0.48rem;
  height: 0.48rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 243, 251, 0.42);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 1.25rem;
  background: var(--amber);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 5.5rem;
}

.facts div {
  display: grid;
  gap: 0.28rem;
  padding: 1.05rem 1.2rem;
  min-width: 0;
}

.facts div + div {
  border-left: 1px solid var(--line);
}

.facts strong {
  color: var(--blue-light);
  font-size: 1.04rem;
}

.facts span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.intro-section,
.modes-section,
.mastery-section,
.unlock-section,
.faq-section,
.launch-section {
  margin: 0 0 6.5rem;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 3rem;
  align-items: start;
}

.section-copy p,
.ship-panel p,
.unlock-copy p,
.launch-section p {
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 42rem;
}

.section-copy.compact {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.open-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.open-list article {
  padding: 1.25rem 1.35rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.open-list article:nth-child(odd) {
  padding-right: 1.35rem;
}

.open-list article:nth-child(even) {
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
}

.open-list span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.86rem;
}

.open-list p,
.mode-list p,
.mode-list li,
.mastery-list span,
.unlock-points span,
.faq-list p {
  color: var(--text-soft);
}

.modes-section {
  padding-top: 0.6rem;
}

.mode-list {
  border-top: 1px solid var(--line);
}

.mode-list article {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.72fr);
  gap: 2rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.mode-list article:nth-child(1) h3 {
  color: var(--cyan);
}

.mode-list article:nth-child(2) h3 {
  color: var(--pink);
}

.mode-list article:nth-child(3) h3 {
  color: var(--green);
}

.mode-list p {
  max-width: 43rem;
  margin-bottom: 0;
}

.mode-list ul {
  margin: 0;
  padding-left: 1.1rem;
}

.mode-list li + li {
  margin-top: 0.45rem;
}

.mastery-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: 3rem;
  align-items: start;
}

.ship-panel {
  padding-top: 0.35rem;
}

.ship-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.ship-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 17, 28, 0.42);
  font-weight: 700;
}

.mastery-list {
  border-top: 1px solid var(--line);
}

.mastery-list div {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.mastery-list strong {
  color: var(--blue-light);
}

.unlock-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(20rem, 0.72fr);
  gap: 3rem;
  padding: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 196, 108, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(49, 215, 245, 0.1), transparent 40%),
    rgba(8, 17, 28, 0.58);
}

.unlock-section h2 {
  max-width: 12ch;
}

.unlock-copy p {
  margin-bottom: 0;
}

.unlock-points {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.unlock-points p {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.unlock-points p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.unlock-points strong {
  color: var(--amber);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-list article {
  padding: 1.25rem 1.4rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-list article:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.launch-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.launch-section h2 {
  font-size: 2.55rem;
}

.launch-actions {
  justify-content: flex-end;
}

.site-footer {
  position: relative;
  padding: 2rem 0 3rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue-light);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.gi-studio-shell {
  margin-bottom: 4rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(24rem, calc(100vw - 2rem));
    display: none;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 18, 29, 0.96);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.36);
  }

  .site-header.is-open .nav-panel {
    display: grid;
  }

  .nav-panel nav {
    display: grid;
    gap: 0.75rem;
  }

  .language-switcher {
    width: max-content;
  }

  .hero,
  .intro-section,
  .mastery-section,
  .unlock-section,
  .launch-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .launch-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 1.2rem, var(--max));
  }

  .brand small {
    white-space: normal;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2,
  .launch-section h2 {
    font-size: 2.05rem;
  }

  .hero-lead {
    font-size: 1.06rem;
  }

  .facts,
  .open-list,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .facts div + div,
  .facts div:nth-child(3),
  .facts div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .open-list article,
  .open-list article:nth-child(odd),
  .open-list article:nth-child(even),
  .faq-list article,
  .faq-list article:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .mode-list article {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .unlock-section {
    padding: 1.35rem;
  }

  .button {
    width: 100%;
  }
}

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

  .button {
    transition: none;
  }
}
