:root {
  --ink: #0f1014;
  --coal: #1b1f2a;
  --mist: #e9ecef;
  --mint: #72f0d1;
  --tide: #3fd4ff;
  --sun: #ffc86b;
  --rose: #ff8da3;
  --glow: rgba(114, 240, 209, 0.35);
  --shadow: 0 30px 80px rgba(11, 18, 32, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

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

body {
  margin: 0;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #f6fbff;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

#tile-map {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

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

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

ul {
  padding-left: 1.2rem;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 340px;
  height: 340px;
  filter: blur(0px);
  opacity: 0.45;
  border-radius: 38% 62% 60% 40%;
  animation: float 16s ease-in-out infinite;
}

.blob-1 {
  top: -80px;
  left: -60px;
  background: linear-gradient(120deg, var(--mint), transparent);
}

.blob-2 {
  right: -40px;
  top: 320px;
  background: linear-gradient(130deg, var(--tide), transparent);
  animation-delay: -6s;
}

.blob-3 {
  bottom: -120px;
  left: 30%;
  background: linear-gradient(140deg, var(--rose), transparent);
  animation-delay: -10s;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 40px 6vw 80px;
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo {
  width: 630px;
  height: auto;
  max-height: 630px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-link {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 16, 20, 0.08);
  font-size: 0.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-copy h1 {
  font-family: "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  margin: 12px 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
  color: #12141a;
  line-height: 1.05;
}

.text-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 16, 20, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.08);
  backdrop-filter: blur(6px);
}

.highlight {
  color: #0f1014;
}

.highlight.mint {
  color: #1ea88b;
}

.highlight.sun {
  color: #c56a10;
}

.lead {
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #48566b;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: transparent;
}

.cta.primary {
  background: linear-gradient(120deg, var(--mint), var(--tide));
  box-shadow: 0 18px 35px rgba(47, 157, 193, 0.2);
}

.cta.ghost {
  border-color: rgba(15, 16, 20, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.cta:hover {
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 16, 20, 0.1);
  font-size: 0.85rem;
}

.hero-art {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.screenshot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 16, 20, 0.1);
  animation: fadeUp 0.9s ease;
}

.hero-art .screenshot {
  margin-top: -120px;
}

.panel {
  position: absolute;
  width: min(240px, 45%);
  opacity: 0.85;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.panel-top {
  right: -10px;
  top: -150px;
  animation: float 18s ease-in-out infinite;
}

.panel-bottom {
  left: -30px;
  bottom: -30px;
  animation: float 20s ease-in-out infinite;
  animation-delay: -8s;
}

.section {
  padding: 80px 6vw;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.section h2 {
  font-family: "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 12px 0 0;
}

.loop-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.loop-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 16, 20, 0.08);
  box-shadow: 0 12px 20px rgba(11, 18, 32, 0.08);
}

.story-banner {
  margin: 40px auto 0;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(114, 240, 209, 0.25), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(15, 16, 20, 0.08);
}

.modes {
  background: rgba(255, 255, 255, 0.5);
}

.mode-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.mode-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(15, 16, 20, 0.08);
  box-shadow: 0 18px 35px rgba(11, 18, 32, 0.1);
}

.mode-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--mint), var(--sun));
  padding: 6px;
}

.mode-sub {
  font-size: 0.9rem;
  color: #4c596b;
  margin-top: -6px;
}

.value-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.value-copy ul {
  margin-top: 16px;
}

.value-art {
  position: relative;
  display: grid;
  gap: 12px;
}

.value-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.value-art .badge {
  width: 72%;
  justify-self: end;
  margin-top: -40px;
  border: 1px solid rgba(15, 16, 20, 0.1);
  background: #fff;
}

.download {
  padding-bottom: 120px;
}

.download-card {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 228, 0.8));
  border: 1px solid rgba(15, 16, 20, 0.1);
  box-shadow: var(--shadow);
  justify-items: center;
}

.download-badge {
  width: min(680px, 90%);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 35px rgba(11, 18, 32, 0.15);
  border: 1px solid rgba(15, 16, 20, 0.1);
}

.footer {
  text-align: center;
  padding: 30px 16px 50px;
  color: #4c596b;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 24px;
  }

  .panel {
    display: none;
  }

  .download-card {
    padding: 24px;
  }
}
