:root {
  --bg: #030304;
  --bg-soft: #070708;
  --panel: #0c0c0f;
  --text: #f7f7f5;
  --muted: #aaaab0;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --blue: #00b7ff;
  --gold: #ffbf1f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #030304;
  background-size: 78px 78px;
  opacity: 0.2;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(0, 183, 255, 0.09) 51%, transparent 61%),
    linear-gradient(290deg, transparent 0 44%, rgba(255, 191, 31, 0.08) 58%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(calc(100% - 32px), var(--max));
  height: 76px;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease, top 180ms ease;
}

.topbar.is-scrolled {
  top: 12px;
  height: 62px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(3, 3, 4, 0.84);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  width: 168px;
  align-items: center;
}

.brand-mark img {
  width: 168px;
  height: 44px;
  object-fit: contain;
  object-position: center;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a,
.language-switch button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(247, 247, 245, 0.74);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.language-switch button:hover,
.language-switch button:focus-visible {
  border-color: var(--line);
  color: var(--text);
  outline: none;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
  min-width: 42px;
  cursor: pointer;
}

.language-switch button.is-active {
  border-color: var(--line-strong);
  background: #f7f7f5;
  color: #050506;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 90svh;
  place-items: center;
  padding: 132px 24px 80px;
  isolation: isolate;
}

.hero-backdrop,
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-backdrop {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #030304 94%),
    url("assets/customx-games-logo.png") center / cover no-repeat;
  opacity: 0.42;
  filter: blur(28px) saturate(0.45);
  transform: scale(1.08);
}

.hero-lines {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.16) 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 255, 255, 0.045) 29px, transparent 30px);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
  opacity: 0.32;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 13vw, 164px);
  line-height: 0.86;
  text-transform: uppercase;
}

.hero-copy {
  width: min(100%, 700px);
  margin: 0 auto 34px;
  color: rgba(247, 247, 245, 0.78);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #f8f8f4;
  color: #030304;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-logo-stage {
  position: absolute;
  bottom: 9svh;
  left: 50%;
  z-index: 1;
  width: min(78vw, 920px);
  opacity: 0.16;
  transform: translateX(-50%);
}

.ticker-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #070708;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  padding: 18px 30px;
  border-right: 1px solid var(--line);
  color: rgba(247, 247, 245, 0.78);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
}

.section-heading.compact {
  grid-template-columns: minmax(0, 900px);
  margin-bottom: 30px;
}

.section-heading h2,
.soon-copy h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 7vw, 92px);
  line-height: 0.92;
}

.section-heading p:not(.eyebrow),
.soon-copy p,
.principles p {
  color: rgba(247, 247, 245, 0.68);
  font-size: 17px;
  line-height: 1.6;
}

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

.principles article,
.soon-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.principles article {
  min-height: 300px;
  padding: 28px;
}

.principles span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--blue);
  font-weight: 950;
}

.principles h3 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.soon-card {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 0.55fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(115deg, rgba(0, 183, 255, 0.14), transparent 42%),
    linear-gradient(295deg, rgba(255, 191, 31, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.soon-copy h2 {
  color: var(--gold);
  text-transform: uppercase;
}

.wordiko-logo-wrap {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.46)),
    rgba(255, 255, 255, 0.035);
}

.wordiko-logo-wrap img {
  width: min(100%, 760px);
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.7));
}

.footer {
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: rgba(247, 247, 245, 0.55);
  font-size: 13px;
  font-weight: 800;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  outline: none;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 880px) {
  .topbar {
    width: calc(100% - 24px);
    grid-template-columns: auto auto;
    height: auto;
    gap: 10px 14px;
  }

  .topbar.is-scrolled {
    top: 8px;
    height: auto;
    padding: 10px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .brand-mark,
  .brand-mark img {
    width: 142px;
  }

  .language-switch {
    justify-self: end;
  }

  .hero-section {
    min-height: 88svh;
    padding-inline: 16px;
    padding-top: 156px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-copy {
    margin-inline: 0;
  }

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

  .hero-logo-stage {
    bottom: 14svh;
    width: 112vw;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading,
  .soon-card {
    grid-template-columns: 1fr;
  }

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

  .soon-card {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  html {
    scroll-padding-top: 136px;
  }

  body::before {
    background-size: 54px 54px;
  }

  .topbar {
    width: calc(100% - 18px);
    gap: 8px 10px;
  }

  .topbar.is-scrolled {
    width: calc(100% - 18px);
    padding: 8px;
  }

  .brand-mark,
  .brand-mark img {
    width: 112px;
  }

  .brand-mark img {
    height: 34px;
  }

  .language-switch {
    padding: 3px;
  }

  .main-nav a,
  .language-switch button {
    font-size: 12px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    min-height: 32px;
    padding: 0 7px;
    white-space: nowrap;
  }

  .language-switch button {
    min-width: 34px;
    min-height: 32px;
  }

  .hero-section {
    min-height: 86svh;
    padding: 132px 18px 66px;
    place-items: end start;
  }

  h1 {
    max-width: 8ch;
    margin-bottom: 18px;
    font-size: clamp(48px, 15vw, 64px);
    line-height: 0.88;
  }

  .hero-copy {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-logo-stage {
    bottom: 18svh;
    left: 54%;
    width: 128vw;
    opacity: 0.14;
  }

  .ticker-track span {
    padding: 15px 22px;
    font-size: 13px;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 58px 0;
  }

  .section-heading {
    gap: 22px;
  }

  .section-heading h2,
  .soon-copy h2 {
    font-size: clamp(32px, 11vw, 46px);
    line-height: 0.96;
  }

  .section-heading p:not(.eyebrow),
  .soon-copy p,
  .principles p {
    font-size: 16px;
    line-height: 1.55;
  }

  .principles article {
    min-height: 230px;
    padding: 22px;
  }

  .principles span {
    margin-bottom: 28px;
  }

  .button {
    width: 100%;
  }

  .soon-card {
    gap: 22px;
    padding: 22px;
  }

  .wordiko-logo-wrap {
    min-height: 190px;
    padding: 14px;
    overflow: hidden;
  }

  .wordiko-logo-wrap img {
    width: 112%;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand-mark,
  .brand-mark img {
    width: 104px;
  }

  .language-switch button {
    min-width: 32px;
  }

  h1 {
    font-size: 45px;
  }

  .hero-copy {
    font-size: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
