:root {
  color-scheme: dark;
  --bg: #02030a;
  --ink: #f7f9ff;
  --muted: #b2b7c9;
  --soft: #7a8199;
  --line: rgba(180, 204, 255, 0.22);
  --line-hot: rgba(116, 244, 255, 0.45);
  --glass: rgba(5, 8, 18, 0.68);
  --glass-strong: rgba(7, 11, 24, 0.88);
  --blue: #8fb6ff;
  --cyan: #74f4ff;
  --violet: #aa83ff;
  --amber: #ffd166;
  --red: #ff5c3f;
  --green: #8fffc2;
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(116, 244, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 82% 8%, rgba(255, 209, 102, 0.09), transparent 26rem),
    radial-gradient(circle at 52% 54%, rgba(170, 131, 255, 0.08), transparent 34rem),
    linear-gradient(180deg, #02030a 0%, #050714 42%, #02030a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(116, 244, 255, 0.12) 0 1px, transparent 1px);
  background-position: 0 0, 24px 40px;
  background-size: 88px 88px, 132px 132px;
  opacity: 0.34;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.48)),
    radial-gradient(circle at 50% 36%, transparent 0, rgba(0, 0, 0, 0.48) 72%);
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(1, 2, 7, 0.92), rgba(1, 2, 7, 0.28), transparent);
  backdrop-filter: blur(16px);
}

.brand-link {
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-shadow: 0 0 22px rgba(143, 182, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  color: #c8cede;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #c8cede;
}

.language-select {
  width: 132px;
  min-height: 34px;
  border: 1px solid rgba(205, 220, 255, 0.28);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(4, 8, 18, 0.82);
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.hero-premium {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 104px clamp(20px, 5vw, 74px) 64px;
}

.hero-cosmos,
.cosmos-layer {
  position: absolute;
  inset: 0;
}

.hero-cosmos {
  z-index: -2;
  overflow: hidden;
  background: #02030a;
}

.cosmos-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  filter: saturate(1.28) contrast(1.16) brightness(0.76);
  animation: heroCrossfade 24s linear infinite, heroDrift 18s ease-in-out infinite alternate;
}

.layer-sirius {
  opacity: 1;
}

.layer-carina {
  animation-delay: 8s, 0s;
}

.layer-helix {
  animation-delay: 16s, 0s;
}

.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 45%, rgba(116, 244, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 23% 68%, rgba(255, 92, 63, 0.13), transparent 28rem),
    linear-gradient(90deg, rgba(2, 3, 10, 0.96) 0%, rgba(2, 3, 10, 0.56) 42%, rgba(2, 3, 10, 0.86) 100%),
    linear-gradient(180deg, rgba(2, 3, 10, 0.16), #02030a 96%);
}

@keyframes heroCrossfade {
  0%,
  31% {
    opacity: 1;
  }

  36%,
  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes heroDrift {
  from {
    transform: translate3d(-1.6%, -1.2%, 0) scale(1.08);
  }

  to {
    transform: translate3d(1.8%, 1.4%, 0) scale(1.16);
  }
}

.hero-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.updated {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 820;
}

.eyebrow {
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(92px, 16vw, 214px);
  line-height: 0.74;
  font-weight: 260;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(247, 249, 255, 0.42),
    0 0 64px rgba(116, 244, 255, 0.28),
    0 0 110px rgba(255, 92, 63, 0.2);
}

.hero-lead {
  max-width: 710px;
  margin-top: 30px;
  color: #eef2ff;
  font-size: clamp(23px, 2.7vw, 36px);
  line-height: 1.22;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(205, 220, 255, 0.34);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(6, 10, 24, 0.7);
  text-decoration: none;
  font-weight: 820;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.button.primary {
  border-color: rgba(116, 244, 255, 0.66);
  background: linear-gradient(135deg, rgba(116, 244, 255, 0.32), rgba(143, 182, 255, 0.16), rgba(255, 209, 102, 0.11));
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 660px;
  margin-top: 44px;
  border: 1px solid rgba(180, 204, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(4, 7, 17, 0.62);
  box-shadow: 0 20px 72px rgba(0, 0, 0, 0.28);
}

.signal-row div {
  padding: 18px;
}

.signal-row div + div {
  border-left: 1px solid rgba(180, 204, 255, 0.18);
}

.signal-row dt {
  color: var(--cyan);
  font-size: 34px;
  font-weight: 280;
  line-height: 1;
}

.signal-row dd {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-showcase {
  position: relative;
  min-height: 650px;
}

.phone-frame {
  overflow: hidden;
  border: 1px solid rgba(194, 213, 255, 0.24);
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(31, 39, 66, 0.92), #05060b);
  box-shadow:
    0 50px 130px rgba(0, 0, 0, 0.7),
    0 0 70px rgba(116, 244, 255, 0.11);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  padding: 12px;
}

.hero-phone {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  top: 22px;
  width: min(340px, 72vw);
  height: 640px;
  transform: rotate(2.4deg);
}

.theme-orbit {
  position: absolute;
  display: grid;
  gap: 10px;
  padding: 10px;
  width: 185px;
  border: 1px solid rgba(205, 220, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(2, 4, 12, 0.74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  animation: floatPanel 5s ease-in-out infinite alternate;
}

.theme-orbit img {
  width: 100%;
  aspect-ratio: 1.22;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(1.3) contrast(1.08) brightness(1.04);
}

.theme-orbit span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit-one {
  left: 0;
  top: 46px;
}

.orbit-two {
  right: 0;
  bottom: 40px;
  animation-delay: 1.2s;
}

.orbit-three {
  left: 28px;
  bottom: 150px;
  animation-delay: 2.1s;
}

@keyframes floatPanel {
  from {
    transform: translate3d(0, -8px, 0);
  }

  to {
    transform: translate3d(0, 10px, 0);
  }
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 136px) clamp(20px, 5vw, 74px);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: end;
  margin-top: 18px;
  margin-bottom: clamp(34px, 5vw, 62px);
}

h2 {
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.92;
  font-weight: 330;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  color: var(--ink);
}

.split-head p,
.stage-copy,
.finish-layout p {
  color: #cdd3e6;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.58;
}

.play-section {
  background:
    linear-gradient(180deg, #02030a 0%, rgba(5, 8, 20, 0.96) 100%),
    radial-gradient(circle at 20% 20%, rgba(116, 244, 255, 0.16), transparent 28rem);
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.play-card,
.mode-shot,
.legal-grid .tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18, 26, 50, 0.8), rgba(6, 9, 22, 0.9)),
    radial-gradient(circle at 16% 0%, rgba(116, 244, 255, 0.12), transparent 16rem);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.play-card {
  min-height: 250px;
  padding: 24px;
}

.play-number {
  display: block;
  margin-bottom: 52px;
  color: var(--soft);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.play-card h3 {
  margin-bottom: 12px;
  font-size: 30px;
}

.play-card p,
.mode-shot p,
.legal-body p,
.legal-body li {
  color: var(--muted);
  line-height: 1.65;
}

.star-stage {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 3, 10, 0.94), rgba(3, 5, 13, 0.86)),
    url("./themes/void.jpg") center / cover fixed;
}

.star-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 42%, rgba(116, 244, 255, 0.1), transparent 25rem),
    radial-gradient(circle at 78% 54%, rgba(138, 76, 255, 0.12), transparent 25rem);
}

.star-stage-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: clamp(38px, 7vw, 104px);
  align-items: center;
}

.star-stage h2 {
  margin-top: 18px;
}

.stage-copy {
  max-width: 560px;
  margin-top: 26px;
}

.star-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.star-map::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  border: 1px solid rgba(116, 244, 255, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(116, 244, 255, 0.08);
}

.star-node {
  position: relative;
  min-height: 136px;
  padding: 64px 18px 18px;
  border: 1px solid rgba(180, 204, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(2, 4, 12, 0.74);
}

.star-node::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: 0 0 18px var(--star), 0 0 54px var(--star);
}

.star-node b {
  display: block;
  font-size: 21px;
}

.star-node span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.theme-atlas {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 209, 102, 0.1), transparent 24rem),
    radial-gradient(circle at 78% 44%, rgba(116, 244, 255, 0.11), transparent 30rem),
    linear-gradient(180deg, #02030a 0%, #060815 100%);
}

.theme-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 16px;
}

.theme-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(205, 220, 255, 0.24);
  border-radius: var(--radius);
  background: #04050b;
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.34);
}

.theme-panel.wide {
  grid-column: span 2;
}

.theme-panel.tall {
  grid-row: span 2;
}

.theme-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.34) contrast(1.12) brightness(1.02);
  animation: imageBreath 8s ease-in-out infinite alternate;
}

.theme-panel:nth-child(2n) img {
  animation-delay: 1.4s;
}

.theme-panel:nth-child(3n) img {
  animation-delay: 2.3s;
}

.theme-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 50%);
}

.theme-panel figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
}

.theme-panel strong {
  display: block;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
}

.theme-panel span {
  display: block;
  margin-top: 8px;
  color: #d5d9e8;
  font-size: 15px;
}

@keyframes imageBreath {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1.06);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.13);
  }
}

.modes-section {
  background:
    linear-gradient(180deg, #060815 0%, #02030a 100%),
    radial-gradient(circle at 20% 20%, rgba(170, 131, 255, 0.13), transparent 26rem);
}

.mode-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mode-shot {
  overflow: hidden;
}

.mode-shot img {
  width: 100%;
  aspect-ratio: 0.64;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.08) contrast(1.08) brightness(0.86);
  border-bottom: 1px solid var(--line);
}

.mode-shot div {
  padding: 22px;
}

.mode-shot h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.finish-section {
  background:
    radial-gradient(circle at 18% 60%, rgba(116, 244, 255, 0.1), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(255, 92, 63, 0.1), transparent 24rem),
    #02030a;
}

.finish-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.finish-phone {
  width: min(360px, 80vw);
  justify-self: center;
}

.finish-layout h2 {
  margin-top: 18px;
  margin-bottom: 24px;
}

.site-footer {
  padding: 42px clamp(20px, 5vw, 74px);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.52);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .hero-layout,
html[dir="rtl"] .split-head,
html[dir="rtl"] .star-stage-inner,
html[dir="rtl"] .finish-layout,
html[dir="rtl"] .footer-inner {
  direction: rtl;
}

html[dir="rtl"] .hero-showcase,
html[dir="rtl"] .phone-frame,
html[dir="rtl"] .theme-mosaic,
html[dir="rtl"] .mode-gallery {
  direction: ltr;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .signal-row div + div {
  border-left: 0;
  border-right: 1px solid rgba(180, 204, 255, 0.18);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="zh"] h1,
html[lang="zh"] h2 {
  line-height: 1.02;
}

html[lang="de"] h2,
html[lang="fr"] h2,
html[lang="pt"] h2,
html[lang="ar"] h2 {
  font-size: clamp(38px, 5.2vw, 78px);
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .section-kicker,
html[lang="ja"] .eyebrow,
html[lang="ja"] .section-kicker,
html[lang="ko"] .eyebrow,
html[lang="ko"] .section-kicker,
html[lang="zh"] .eyebrow,
html[lang="zh"] .section-kicker {
  letter-spacing: 0.06em;
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.legal-body {
  width: min(900px, calc(100% - 44px));
  margin: 0 auto;
  padding: 128px 0 84px;
}

.legal-body h1 {
  margin-bottom: 28px;
  font-size: clamp(50px, 9vw, 112px);
  line-height: 0.86;
  font-weight: 300;
}

.legal-body h2 {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

.legal-body p,
.legal-body li {
  font-size: 17px;
}

.legal-body p + p,
.legal-body ul {
  margin-top: 14px;
}

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

.legal-body code {
  color: var(--ink);
  background: rgba(143, 182, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 38px 0 18px;
}

.legal-grid .tile {
  min-height: 260px;
  padding: 22px;
}

.legal-grid .tile h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 24px;
  line-height: 1.12;
}

@media (max-width: 1060px) {
  .hero-layout,
  .split-head,
  .star-stage-inner,
  .finish-layout {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 620px;
  }

  .hero-phone {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(1.6deg);
  }

  .orbit-one {
    left: 3%;
  }

  .orbit-two {
    right: 3%;
  }

  .play-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .site-header {
    position: absolute;
    padding: 14px;
  }

  .brand-link {
    font-size: 13px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: calc(100% - 54px);
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .language-control span {
    display: none;
  }

  .language-select {
    width: 72px;
    min-height: 28px;
    font-size: 9px;
  }

  .hero-premium {
    min-height: auto;
    padding-top: 88px;
  }

  h1 {
    font-size: clamp(78px, 26vw, 118px);
  }

  .hero-lead {
    font-size: 22px;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .signal-row div + div {
    border-left: 0;
    border-top: 1px solid rgba(180, 204, 255, 0.18);
  }

  .hero-showcase {
    min-height: 560px;
  }

  .hero-phone {
    width: min(285px, 78vw);
    height: 520px;
    top: 20px;
  }

  .theme-orbit {
    width: 128px;
  }

  .orbit-one {
    left: 0;
    top: 36px;
  }

  .orbit-two {
    right: 0;
    bottom: 44px;
  }

  .orbit-three {
    left: 5%;
    bottom: 142px;
  }

  .section {
    padding: 72px 18px;
  }

  h2 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .split-head {
    gap: 24px;
  }

  .star-map,
  .theme-mosaic {
    grid-template-columns: 1fr;
  }

  .theme-mosaic {
    grid-auto-rows: auto;
    gap: 18px;
  }

  .theme-panel,
  .theme-panel.wide,
  .theme-panel.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .theme-panel img {
    min-height: 360px;
  }

  .mode-shot img {
    aspect-ratio: 0.78;
  }

  .mode-gallery {
    grid-template-columns: 1fr;
  }

  .finish-phone {
    width: min(300px, 86vw);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
