:root {
  --teal: #0b3d3a;
  --teal-mid: #14635e;
  --teal-deep: #072e2c;
  --teal-glow: #1a8a82;
  --amber: #d97706;
  --amber-soft: #fbbf24;
  --cream: #f7f3eb;
  --cream-deep: #efe8dc;
  --ink: #14201f;
  --mist: #e8e2d6;
  --correct: #1b7f5a;
  --panel-pad: clamp(72px, 12vh, 120px);
  --content-max: 1120px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

.bg-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-wash__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.bg-wash__blob--teal {
  width: min(72vmax, 900px);
  height: min(72vmax, 900px);
  top: -18%;
  right: -14%;
  background: radial-gradient(
    circle,
    rgba(26, 138, 130, 0.28) 0%,
    rgba(26, 138, 130, 0.08) 42%,
    transparent 68%
  );
}

.bg-wash__blob--amber {
  width: min(62vmax, 780px);
  height: min(62vmax, 780px);
  bottom: -16%;
  left: -12%;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.22) 0%,
    rgba(251, 191, 36, 0.08) 40%,
    transparent 68%
  );
}

#tq-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 58% 52% at 50% 44%,
    transparent 0%,
    transparent 42%,
    #000 88%
  );
  mask-image: radial-gradient(
    ellipse 58% 52% at 50% 44%,
    transparent 0%,
    transparent 42%,
    #000 88%
  );
}

.landing-shell {
  position: relative;
  z-index: 2;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 243, 235, 0.72);
  border-bottom: 1px solid rgba(232, 226, 214, 0.8);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.landing-nav.is-scrolled {
  background: rgba(247, 243, 235, 0.92);
  border-color: var(--mist);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 61, 58, 0.22);
}

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

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.nav-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-glow));
  box-shadow: 0 8px 22px rgba(11, 61, 58, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11, 61, 58, 0.28);
}

.panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 32px) clamp(20px, 4vw, 40px) var(--panel-pad);
}

.panel-inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  position: relative;
}

.hero {
  align-items: flex-end;
  padding-bottom: clamp(48px, 10vh, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero-copy {
  max-width: 34rem;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--teal-deep);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--teal), var(--teal-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  color: #3d4f4d;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-glow));
  box-shadow: 0 10px 26px rgba(11, 61, 58, 0.24);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--mist);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 60px rgba(20, 32, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-glow);
}

.hero-card h2 {
  margin: 8px 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-question {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--cream), #fff);
  border: 1px solid var(--mist);
}

.hero-question p {
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.4;
}

.choice-row {
  display: grid;
  gap: 8px;
}

.choice {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--mist);
  background: #fff;
  font-size: 0.92rem;
}

.choice.is-correct {
  border-color: rgba(27, 127, 90, 0.35);
  background: rgba(27, 127, 90, 0.08);
  color: var(--correct);
  font-weight: 700;
}

.hero-explain {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a5c5a;
}

.scroll-hint {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6a68;
}

.scroll-hint span {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--teal-glow), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.feature {
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-grid.is-reverse .feature-visual {
  order: -1;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(26, 138, 130, 0.1);
  color: var(--teal);
  margin-bottom: 14px;
}

.feature h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}

.feature p {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #3f524f;
  max-width: 30rem;
}

.feature-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #3f524f;
}

.feature-points li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-soft));
}

.feature-visual {
  position: relative;
  min-height: 280px;
}

.glass-card {
  position: absolute;
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 48px rgba(20, 32, 31, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card--main {
  inset: 12% 8% 12% 8%;
}

.glass-card--float {
  width: 46%;
  padding: 16px;
  font-size: 0.88rem;
}

.glass-card--float-a {
  top: 0;
  right: 0;
}

.glass-card--float-b {
  bottom: 0;
  left: 0;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--mist);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.category-chip {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.category-chip:nth-child(1) {
  background: linear-gradient(135deg, #0f6b64, #1a8a82);
}
.category-chip:nth-child(2) {
  background: linear-gradient(135deg, #b45309, #d97706);
}
.category-chip:nth-child(3) {
  background: linear-gradient(135deg, #1d4e89, #2563eb);
}
.category-chip:nth-child(4) {
  background: linear-gradient(135deg, #0e7490, #0891b2);
}

.room-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2rem;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--teal);
  text-align: center;
  margin: 8px 0 0;
}

.cta-panel {
  min-height: 72vh;
  text-align: center;
  align-items: center;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}

.cta-panel p {
  margin: 14px auto 0;
  max-width: 32rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #3f524f;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  display: block;
  width: auto;
  height: 44px;
}

.store-badge--play img {
  height: 64px;
}

.landing-footer {
  padding: 28px clamp(20px, 4vw, 40px) 40px;
  text-align: center;
  font-size: 0.88rem;
  color: #5a6a68;
  border-top: 1px solid rgba(232, 226, 214, 0.9);
  background: rgba(247, 243, 235, 0.85);
}

.landing-footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid.is-reverse .feature-visual {
    order: 0;
  }

  .hero {
    align-items: center;
  }

  .feature-visual {
    min-height: 240px;
  }
}

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

  .scroll-hint span {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
