:root {
  --ink: #101820;
  --muted: #52606a;
  --paper: #f7faf8;
  --foam: #e5f7f0;
  --reef: #f36b5b;
  --gold: #f0b84f;
  --kelp: #0f8c86;
  --deep: #063a46;
  --line: rgba(16, 24, 32, 0.12);
  --shadow: 0 18px 46px rgba(6, 58, 70, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(6, 28, 34, 0.78), rgba(6, 28, 34, 0));
}

.brand,
.nav-links,
.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, #ffffff 0 9%, transparent 10%),
    radial-gradient(circle at 45% 58%, var(--gold) 0 14%, transparent 15%),
    linear-gradient(135deg, var(--kelp), #42c8b4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 700;
}

.header-actions {
  gap: clamp(16px, 3vw, 32px);
  justify-content: flex-end;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.language-switcher {
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 4px;
  background: rgba(6, 28, 34, 0.26);
  backdrop-filter: blur(12px);
}

.language-button {
  min-width: 34px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  color: #0b2830;
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

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

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 21, 27, 0.86) 0%, rgba(4, 21, 27, 0.52) 43%, rgba(4, 21, 27, 0.16) 72%),
    linear-gradient(0deg, rgba(4, 21, 27, 0.88) 0%, rgba(4, 21, 27, 0.18) 40%, rgba(4, 21, 27, 0.22) 100%);
}

.hero-content {
  width: min(760px, 100%);
  padding: 0 clamp(20px, 6vw, 78px) clamp(56px, 12vh, 112px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  line-height: 0.9;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

p {
  color: var(--muted);
  line-height: 1.76;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
}

.button.primary {
  color: #0b2830;
  background: var(--gold);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.band {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 6vw, 78px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  background: linear-gradient(180deg, #f8fcfa, var(--foam));
}

.section-copy {
  max-width: 650px;
}

.section-copy.compact {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-copy p {
  font-size: 1.05rem;
}

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

.feature-card,
.platform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 250px;
  padding: 28px;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.97rem;
}

.feature-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 16px;
}

.feature-icon.water {
  background:
    radial-gradient(circle at 68% 34%, #ffffff 0 8%, transparent 9%),
    linear-gradient(135deg, #1cbbb1, #066d84);
}

.feature-icon.coral {
  background:
    radial-gradient(circle at 34% 64%, #fff2d4 0 8%, transparent 9%),
    linear-gradient(135deg, var(--reef), #f4a46e);
}

.feature-icon.coin {
  background:
    radial-gradient(circle at 50% 50%, #fff4c4 0 18%, transparent 19%),
    linear-gradient(135deg, var(--gold), #0f8c86);
}

.gallery {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(420px, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  background: #f7faf8;
}

.gallery-copy {
  max-width: 560px;
}

.gallery-copy p {
  font-size: 1.05rem;
}

.scene-carousel {
  width: 100%;
}

.scene-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 8px;
  background: #071d25;
  box-shadow: 0 24px 70px rgba(6, 58, 70, 0.24);
}

.scene-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 620ms ease, transform 900ms ease, visibility 620ms ease;
}

.scene-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scene-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3, 18, 22, 0.82), rgba(3, 18, 22, 0.08) 46%),
    linear-gradient(90deg, rgba(3, 18, 22, 0.38), transparent 55%);
}

.scene-slide figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 4vw, 36px);
  right: clamp(18px, 4vw, 36px);
  bottom: clamp(18px, 4vw, 34px);
  display: grid;
  gap: 8px;
  color: #ffffff;
}

.scene-slide figcaption strong {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.04;
}

.scene-slide figcaption span {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.56;
  font-weight: 650;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.carousel-arrow,
.carousel-dot {
  border: 0;
  cursor: pointer;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--deep);
  font-size: 1.6rem;
  line-height: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--kelp);
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(6, 58, 70, 0.2);
}

.carousel-dot.is-active {
  background: var(--reef);
  box-shadow: 0 0 0 5px rgba(243, 107, 91, 0.18);
}

.studio {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(74px, 10vw, 132px) clamp(20px, 6vw, 78px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 58, 70, 0.95), rgba(9, 82, 78, 0.9)),
    radial-gradient(circle at 82% 20%, rgba(240, 184, 79, 0.38), transparent 30%);
}

.studio h2,
.studio p {
  color: #ffffff;
}

.studio p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.stats {
  display: grid;
  gap: 14px;
}

.stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.stats strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.stats span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.platforms {
  background: #fffaf0;
}

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

.platform-card {
  min-height: 116px;
  display: flex;
  align-items: center;
  width: 100%;
  color: inherit;
  text-align: left;
  gap: 18px;
  padding: 24px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.platform-card:hover,
.platform-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(6, 58, 70, 0.22);
}

.platform-card strong,
.platform-card small {
  display: block;
}

.platform-card strong {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.platform-card small {
  color: var(--muted);
  font-weight: 700;
}

.platform-logo {
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.platform-logo-badge {
  width: min(132px, 38%);
  height: auto;
  max-height: 48px;
}

.platform-logo-square {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 78px);
  color: #ffffff;
  background: #101820;
  font-weight: 700;
}

.site-footer a {
  color: var(--gold);
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  width: min(520px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(6, 28, 34, 0.82);
  box-shadow: 0 18px 46px rgba(6, 58, 70, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(14px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 920px) {
  .intro,
  .gallery,
  .studio,
  .feature-grid,
  .platform-list {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 86vh;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .brand {
    max-width: 150px;
    line-height: 1.12;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .language-switcher {
    align-self: flex-end;
  }

  .hero {
    min-height: 840px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 21, 27, 0.9) 0%, rgba(4, 21, 27, 0.62) 62%, rgba(4, 21, 27, 0.28) 100%),
      linear-gradient(0deg, rgba(4, 21, 27, 0.92) 0%, rgba(4, 21, 27, 0.2) 48%, rgba(4, 21, 27, 0.36) 100%);
  }

  .hero-content {
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

  .scene-stage {
    aspect-ratio: 4 / 5;
  }

  .scene-slide figcaption {
    bottom: 18px;
  }

  .scene-slide figcaption span {
    font-size: 0.95rem;
  }

  .platform-card {
    min-height: 104px;
  }

  .stats div,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
