:root {
  color-scheme: light;
  --ink: #121327;
  --night: #eef3ff;
  --plum: #f4efff;
  --violet: #7c3aed;
  --mint: #20d986;
  --cyan: #48dbe8;
  --gold: #facc15;
  --coral: #fb7185;
  --text: #121327;
  --muted: rgba(18, 19, 39, 0.62);
  --soft: rgba(86, 105, 180, 0.08);
  --line: rgba(28, 31, 72, 0.11);
  --radius: 28px;
  --shadow: 0 28px 80px rgba(76, 68, 138, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", ui-rounded, "Avenir Next", "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 2%, rgba(134, 239, 172, 0.45), transparent 22rem),
    radial-gradient(circle at 86% 5%, rgba(167, 139, 250, 0.34), transparent 24rem),
    linear-gradient(180deg, #eef2ff 0%, #f8fbff 42%, #ffffff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(87, 94, 151, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 94, 151, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

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

.site-shell {
  width: min(1510px, calc(100% - 56px));
  margin: 34px auto 64px;
  padding: 18px 24px 58px;
  border: 1px solid rgba(28, 31, 72, 0.08);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 90px rgba(86, 76, 140, 0.18);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 34px;
  padding: 10px 14px;
  border: 1px solid rgba(28, 31, 72, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(86, 76, 140, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar.is-raised {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 12px 36px rgba(86, 76, 140, 0.09);
  transform: translateY(-2px) scale(0.995);
}

.brand,
.nav-links,
.hero-actions,
.hero-metrics,
.phone-status,
.download {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #101226;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 6px 14px rgba(32, 217, 134, 0.22);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(32, 217, 134, 0.32);
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(18, 19, 39, 0.65);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--violet);
  background: rgba(124, 58, 237, 0.06);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--violet);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scale(1);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--violet);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.04);
}

.nav-cta:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.nav-cta::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 6px var(--mint);
  animation: pulseIndicator 1.8s infinite;
}

@keyframes pulseIndicator {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 4px rgba(32, 217, 134, 0.6);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(32, 217, 134, 1);
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.1);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
  outline: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.04);
}

.menu-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background-color: var(--violet);
  border-radius: 99px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 22px;
}

.topbar.is-open .menu-toggle {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.topbar.is-open .menu-toggle span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.topbar.is-open .menu-toggle span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}


.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: 680px;
  overflow: visible;
  padding: clamp(44px, 5.6vw, 78px) clamp(42px, 5.4vw, 82px) 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 18%, rgba(86, 227, 159, 0.2), transparent 18rem),
    radial-gradient(circle at 55% 0%, rgba(124, 58, 237, 0.12), transparent 20rem),
    linear-gradient(135deg, #fbfcff 0%, #f3f6ff 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 132px;
  content: "";
  border-radius: 0 0 32px 32px;
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(28, 31, 72, 0.09);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  color: #17b66e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
.brand,
.eyebrow,
.primary-button,
.secondary-button,
.nav-links a,
.nav-cta,
.hero-metrics strong,
.support-aside h2,
.gate,
.answer-bubble,
.combo-card span,
.combo-card strong,
.topic-code,
.word {
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
}

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 5.6vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

.hero-lead,
.game-copy p,
.download p,
.feature-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-lead {
  max-width: 620px;
  margin-right: 0;
  margin-left: 0;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(17, 24, 39, 0.18);
}

.app-store-button img {
  display: block;
  width: clamp(156px, 12vw, 190px);
  height: auto;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.primary-button {
  color: #101226;
  background: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 100%);
  border: none;
  box-shadow: 
    0 4px 12px rgba(32, 217, 134, 0.2),
    0 12px 28px -4px rgba(32, 217, 134, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.primary-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

.primary-button:hover::after {
  left: 125%;
  opacity: 1;
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 
    0 6px 16px rgba(32, 217, 134, 0.25),
    0 16px 36px -2px rgba(32, 217, 134, 0.45);
}

.primary-button:active {
  transform: translateY(1px);
  box-shadow: 
    0 2px 8px rgba(32, 217, 134, 0.15),
    0 6px 14px -4px rgba(32, 217, 134, 0.25);
}

.secondary-button {
  border: 1px solid rgba(28, 31, 72, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(86, 76, 140, 0.05);
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(28, 31, 72, 0.2);
  box-shadow: 
    0 8px 24px rgba(86, 76, 140, 0.1),
    0 4px 10px rgba(86, 76, 140, 0.05);
}

.secondary-button:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(86, 76, 140, 0.05);
}

.hero-metrics {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) repeat(3, 1fr);
  gap: 22px;
  align-items: center;
  margin: 18px -82px 0;
  padding: 34px 82px;
  border-top: 0;
  background: transparent;
}

.hero-metrics span {
  padding: 0 0 0 22px;
  border-left: 1px solid rgba(28, 31, 72, 0.1);
  color: var(--muted);
  background: transparent;
}

.hero-metrics strong {
  display: block;
  color: #111226;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.hero-metrics .metrics-label {
  padding: 0;
  border-left: 0;
  color: #111226;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.16;
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 740px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  right: 2%;
  bottom: 42px;
  width: 78%;
  height: 74%;
  z-index: 0;
  content: "";
  border-radius: 42% 58% 36% 64% / 56% 42% 58% 44%;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.28), transparent 16rem),
    linear-gradient(135deg, rgba(32, 217, 134, 0.28), rgba(72, 219, 232, 0.22));
  filter: blur(0.2px);
  transform: rotate(-4deg);
  mask-image: none;
}

.hero-visual::after {
  position: absolute;
  right: 12%;
  bottom: 58px;
  left: 22%;
  z-index: 0;
  height: 12%;
  content: "";
  border-radius: 999px;
  background: rgba(62, 67, 113, 0.12);
  filter: blur(34px);
}

.showcase-bar {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(12, 9, 31, 0.64);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.showcase-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.showcase-bar span:nth-child(2) {
  background: var(--gold);
}

.showcase-bar span:nth-child(3) {
  background: var(--mint);
}

.showcase-bar div {
  justify-self: center;
  width: min(320px, 74%);
  overflow: hidden;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 247, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-shot {
  margin: 0;
}

.hero-shot {
  position: absolute;
  inset: 42px 24px 86px 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-shot img {
  width: min(440px, 58%);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 34px 46px rgba(52, 48, 92, 0.28));
  animation: floatShot 5.8s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  width: min(390px, 100%);
  min-height: 690px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(12, 73, 106, 0.92), rgba(12, 179, 197, 0.84)),
    #0b7fa1;
  box-shadow: var(--shadow);
  transform: rotateX(2deg) rotateY(-8deg);
}

.phone-frame::after {
  position: absolute;
  right: 26px;
  bottom: 82px;
  width: 116px;
  height: 62px;
  border-radius: 999px;
  content: "";
  background: rgba(12, 72, 92, 0.35);
  filter: blur(8px);
}

.phone-status {
  justify-content: space-between;
  color: white;
  font-weight: 800;
}

.status-dot {
  width: 54px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
}

.app-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 9, 43, 0.84);
  backdrop-filter: blur(16px);
}

.mini-progress {
  width: 160px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
}

.mini-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.game-window {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.11), transparent 1.4rem),
    linear-gradient(180deg, rgba(3, 105, 161, 0.28), rgba(8, 47, 73, 0.38));
}

.sea-lane {
  position: absolute;
  left: 42px;
  top: 96px;
  width: 178px;
  height: 360px;
  border: 10px solid #0f172a;
  border-radius: 26px;
  background: rgba(3, 38, 58, 0.62);
}

.sea-lane::before {
  position: absolute;
  left: -10px;
  right: -10px;
  top: 50%;
  height: 7px;
  content: "";
  background: var(--gold);
}

.gate {
  position: absolute;
  left: 14px;
  right: 14px;
  display: grid;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: rgba(4, 18, 36, 0.86);
  font-size: 1.35rem;
  font-weight: 800;
}

.gate-top {
  top: 80px;
}

.gate-bottom {
  bottom: 84px;
}

.octopus {
  position: absolute;
  left: 98px;
  bottom: 84px;
  width: 132px;
  animation: swim 3.6s ease-in-out infinite;
}

.answer-bubble {
  position: absolute;
  right: 24px;
  top: 210px;
  padding: 18px 28px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.32);
}

.features,
.game-section,
.topic-section,
.download {
  margin: 58px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(420px, 0.66fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 26px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

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

.features,
.topic-section {
  padding: clamp(34px, 4vw, 48px);
  border: 1px solid rgba(28, 31, 72, 0.08);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 64px rgba(86, 76, 140, 0.09);
}

.feature-card {
  min-height: 235px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.88), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 44px rgba(86, 76, 140, 0.075);
}

.feature-card.tall {
  grid-row: auto;
  background:
    radial-gradient(circle at 80% 10%, rgba(72, 219, 232, 0.32), transparent 11rem),
    linear-gradient(180deg, rgba(86, 227, 159, 0.22), rgba(255, 255, 255, 0.92));
}

.feature-card.wide {
  grid-column: span 2;
  min-height: 235px;
}

.feature-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 15px;
  color: #120923;
  background: var(--gold);
  font-weight: 800;
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.topic-strip span {
  padding: 10px 12px;
  border-radius: 999px;
  color: #120923;
  background: rgba(103, 232, 249, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
}

.game-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  gap: 26px;
  align-items: stretch;
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid rgba(28, 31, 72, 0.08);
  border-radius: 38px;
  background:
    radial-gradient(circle at 86% 14%, rgba(32, 217, 134, 0.2), transparent 18rem),
    linear-gradient(135deg, #f7fbff, #f4f0ff);
  box-shadow: 0 24px 64px rgba(86, 76, 140, 0.1);
}

.game-copy,
.game-demo,
.download {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
}

.game-copy {
  padding: clamp(18px, 3vw, 32px);
  background: transparent;
  border: 0;
}

.game-demo {
  position: relative;
  min-height: 455px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(86, 227, 159, 0.24), transparent 16rem),
    linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(237, 233, 254, 0.92));
}

.real-app-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 455px;
}

.real-app-shot img {
  position: absolute;
  left: 50%;
  bottom: -168px;
  width: min(820px, 112%);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.42));
}

.water-column {
  position: absolute;
  inset: 46px 34px;
  border: 10px solid #050816;
  border-radius: 32px;
  background: rgba(8, 47, 73, 0.64);
}

.word {
  position: absolute;
  left: 30px;
  right: 30px;
  display: grid;
  height: 76px;
  place-items: center;
  border-radius: 22px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}

.word.good {
  top: 62px;
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.82);
  box-shadow: inset 0 0 0 2px rgba(134, 239, 172, 0.42);
}

.word.bad {
  bottom: 62px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.78);
}

.divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  background: var(--gold);
}

.combo-card {
  position: absolute;
  right: 30px;
  top: 30px;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 28px;
  background: var(--coral);
  color: white;
  transform: rotate(6deg);
  box-shadow: 0 18px 36px rgba(251, 113, 133, 0.32);
}

.combo-card strong {
  margin-bottom: -28px;
  font-size: 2.2rem;
}

.combo-card span {
  font-weight: 800;
}

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

.topic-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(86, 76, 140, 0.08);
}

.topic-code {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 22px;
  color: #120923;
  background: var(--cyan);
  font-size: 1.35rem;
  font-weight: 800;
}

.topic-code.mint {
  background: var(--mint);
}

.topic-code.gold {
  background: var(--gold);
}

.topic-code.coral {
  background: var(--coral);
  color: white;
}

.topic-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.download {
  justify-content: space-between;
  gap: 22px;
  padding: clamp(30px, 4vw, 44px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 20% 50%, rgba(72, 219, 232, 0.24), transparent 18rem),
    linear-gradient(135deg, rgba(86, 227, 159, 0.28), rgba(250, 204, 21, 0.16));
  box-shadow: 0 24px 64px rgba(86, 76, 140, 0.1);
}

.download-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.download h2 {
  margin-bottom: 10px;
}

.primary-button.light {
  flex: 0 0 auto;
}

.legal-page,
.support-page {
  padding: 48px 0 84px;
}

.legal-hero,
.support-hero {
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(86, 227, 159, 0.18), rgba(124, 58, 237, 0.11)),
    rgba(255, 255, 255, 0.86);
}

.legal-hero h1,
.support-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.legal-hero p,
.support-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-card,
.contact-card,
.support-aside article {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 52px rgba(86, 76, 140, 0.1);
}

.legal-card {
  padding: clamp(24px, 4vw, 46px);
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-card a {
  color: var(--mint);
  font-weight: 900;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 31, 72, 0.08);
}

.contact-card label {
  display: grid;
  gap: 8px;
  color: rgba(18, 19, 39, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  border: 1px solid rgba(28, 31, 72, 0.1);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.6);
  color: #111226;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(28, 31, 72, 0.02);
}

.contact-card textarea {
  resize: vertical;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: rgba(18, 19, 39, 0.38);
  font-weight: 400;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 0 4px rgba(124, 58, 237, 0.12),
    inset 0 2px 4px rgba(28, 31, 72, 0.01);
}

.contact-card .primary-button {
  border: 0;
  cursor: pointer;
  margin-top: 10px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.support-aside {
  display: grid;
  gap: 14px;
}

.support-aside article {
  padding: 22px;
}

.support-aside span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  color: #120923;
  background: var(--gold);
  font-weight: 800;
}

.support-aside h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.support-aside p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@keyframes swim {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}

@keyframes floatShot {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

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

  .topbar {
    width: 100%;
    margin-bottom: 18px;
    padding: 10px 18px;
    top: 8px;
    flex-wrap: wrap;
    border-radius: 24px;
    gap: 0;
  }

  .topbar.is-open {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(86, 76, 140, 0.15);
    border-color: rgba(124, 58, 237, 0.16);
  }

  .brand {
    order: 1;
  }

  .topbar-actions {
    order: 2;
  }

  .nav-links {
    order: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .topbar.is-open .nav-links {
    max-height: 380px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(28, 31, 72, 0.08);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    color: rgba(18, 19, 39, 0.7);
    background: transparent;
    text-align: left;
  }

  .nav-links a:hover {
    color: var(--violet);
    background: rgba(124, 58, 237, 0.05);
    padding-left: 18px;
  }

  .nav-links a::after {
    display: none;
  }


  .site-shell {
    width: min(100% - 28px, 1220px);
    margin-top: 18px;
    padding: 14px;
    border-radius: 28px;
  }


  .hero,
  .section-heading,
  .game-section,
  .download,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    overflow: hidden;
    padding: 34px 24px 0;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    display: flex;
    min-height: auto;
    overflow: hidden;
    justify-content: center;
    padding: 14px 0 10px;
  }

  .hero-shot {
    position: relative;
    inset: auto;
    justify-content: center;
  }

  .hero-shot img {
    width: min(320px, 62vw);
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    margin: 0 -24px;
    padding: 24px;
  }

  .hero-metrics .metrics-label {
    grid-column: 1 / -1;
  }

  .feature-grid,
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card.tall,
  .feature-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .features,
  .topic-section,
  .game-section {
    padding: 26px;
    border-radius: 30px;
  }

  .game-demo,
  .real-app-shot {
    min-height: 410px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 12px, 1180px);
    margin-top: 8px;
    padding: 8px;
    border-radius: 24px;
  }

  .nav-cta {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .topbar {
    border-radius: 16px;
    top: 6px;
    width: 100%;
    padding: 8px 12px;
  }

  .brand span:last-child {
    display: inline;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  h1 {
    max-width: 390px;
    font-size: clamp(2.65rem, 11.2vw, 3.5rem);
    line-height: 0.94;
  }

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

  .hero-lead {
    margin-left: 0;
  }

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

  .hero {
    padding: 28px 18px 0;
    border-radius: 24px;
  }

  .hero::after {
    height: 236px;
    border-radius: 0 0 24px 24px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 -18px;
    padding: 22px 18px;
  }

  .hero-metrics span {
    padding-left: 0;
    border-left: 0;
  }

  .feature-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .hero-shot {
    inset: auto;
  }

  .hero-shot img {
    width: min(250px, 68vw);
  }

  .features,
  .topic-section,
  .game-section {
    margin: 34px 0;
    padding: 18px;
    border-radius: 24px;
  }

  .feature-card,
  .topic-grid article {
    min-height: auto;
    padding: 18px;
  }

  .game-demo,
  .real-app-shot {
    min-height: 300px;
  }

  .sea-lane {
    left: 20px;
    width: 166px;
  }

  .octopus {
    left: 74px;
    width: 118px;
  }

  .answer-bubble {
    right: 12px;
    font-size: 1.15rem;
  }

  .real-app-shot {
    min-height: 320px;
  }

  .real-app-shot img {
    width: 118%;
    bottom: -56px;
  }
}

/* --- FOOTER STYLING --- */
.site-footer {
  margin-top: 72px;
  padding: 48px 32px 18px;
  border-top: 1px solid rgba(28, 31, 72, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.footer-brand .brand {
  align-self: flex-start;
}

.footer-desc {
  color: rgba(18, 19, 39, 0.55);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  color: #101226;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.footer-col a {
  color: rgba(18, 19, 39, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
}

.footer-col a:hover {
  color: var(--violet);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(28, 31, 72, 0.04);
  color: rgba(18, 19, 39, 0.4);
  font-size: 0.82rem;
  font-weight: 500;
}

.footer-bottom p {
  margin: 0;
}

.footer-creators {
  text-align: right;
}

/* Footer Mobile Responsiveness */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
  }

  .site-footer {
    padding: 36px 16px 12px;
    margin-top: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
  }

  .footer-creators {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

