:root {
  --ink: #1c1630;
  --ink-soft: #5b5470;
  --cream: #fff6ea;
  --paper: #ffffff;
  --sun: #ffd23f;
  --berry: #ff5d73;
  --mint: #3ddc97;
  --sky: #6ec8ff;
  --violet: #6b5bff;
  --line: rgba(28, 22, 48, 0.08);
  --shadow: 0 24px 60px rgba(62, 36, 90, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, #ffe7a8 0, transparent 32%),
    radial-gradient(circle at 90% 8%, #ffd0dc 0, transparent 28%),
    var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.blob {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.45;
}

.blob-a {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 40%;
  background: #ffd0e0;
  border-radius: 46% 54% 62% 38% / 42% 38% 62% 58%;
}

.blob-b {
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: 10%;
  background: #c9f5dd;
  border-radius: 62% 38% 46% 54% / 48% 62% 38% 52%;
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 7vw;
  background: rgba(255, 246, 234, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 20;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", "Noto Sans SC", sans-serif;
}

.logo-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 28px;
  height: 28px;
}

.logo-mark span {
  display: block;
  border-radius: 7px;
}

.logo-mark span:nth-child(1) { background: var(--berry); }
.logo-mark span:nth-child(2) { background: var(--sun); }
.logo-mark span:nth-child(3) { background: var(--mint); grid-column: 1 / -1; height: 10px; }

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-text span {
  color: var(--violet);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--violet);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--violet);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(28, 22, 48, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

section[id] {
  scroll-margin-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 48px 7vw 80px;
  min-height: clamp(640px, calc(100vh - 80px), 860px);
}

.eyebrow {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 900;
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--berry), #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 22, 48, 0.18);
}

.btn-primary:hover {
  background: var(--violet);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
}

.hero-stats {
  display: flex;
  gap: 28px;
  list-style: none;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-family: "Fredoka", sans-serif;
}

.hero-stats span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.phone {
  width: 280px;
  background: #1c1630;
  border-radius: 36px;
  padding: 18px 14px 16px;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
  animation: float 5.5s ease-in-out infinite;
}

.phone-notch {
  width: 88px;
  height: 12px;
  background: #0d0a18;
  border-radius: 999px;
  margin: 0 auto 14px;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #2a2344;
  padding: 10px;
  border-radius: 22px;
}

.tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.35rem;
}

.t-berry { background: #ffd5dc; }
.t-sun { background: #ffe9a8; }
.t-mint { background: #c9f5dd; }
.t-sky { background: #cfe9ff; }

.phone-bar {
  display: flex;
  justify-content: space-between;
  color: #fff;
  padding: 12px 8px 2px;
  font-size: 0.92rem;
}

.phone-bar b {
  color: var(--sun);
  font-family: "Fredoka", sans-serif;
}

.float-card {
  position: absolute;
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.float-a { top: 48px; left: 8%; animation: bob 4s ease-in-out infinite; }
.float-b { right: 4%; top: 38%; animation: bob 5s ease-in-out infinite reverse; }
.float-c { bottom: 56px; left: 16%; animation: bob 4.6s ease-in-out infinite 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(-6deg); }
}

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

section {
  padding: 72px 7vw;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 10px;
}

.section-head p:last-child,
.about-copy > p,
.contact-card p {
  color: var(--ink-soft);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.game-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.game-card:hover {
  transform: translateY(-8px);
}

.game-cover {
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.cover-emoji {
  font-size: 4rem;
  position: relative;
  z-index: 1;
}

.cover-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(8px);
}

.cover-berry { background: linear-gradient(160deg, #ff8aa0, #ff5d73); }
.cover-sun { background: linear-gradient(160deg, #ffe27a, #ffb347); }
.cover-mint { background: linear-gradient(160deg, #7cf0c0, #2ecf8e); }
.cover-violet { background: linear-gradient(160deg, #9b90ff, #6b5bff); }

.game-meta {
  padding: 20px;
}

.game-meta h3 {
  margin-bottom: 8px;
}

.game-meta p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  background: #fff1d6;
  color: #8a5a00;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.craft {
  background: #fff;
  border-block: 1px solid var(--line);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.craft-grid article {
  background: var(--cream);
  border-radius: 24px;
  padding: 24px;
}

.craft-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.ic-1 { background: #ffd5dc; color: #c22744; }
.ic-2 { background: #ffe9a8; color: #9a6b00; }
.ic-3 { background: #cfe9ff; color: #1d6fa5; }
.ic-4 { background: #c9f5dd; color: #0f7a4b; }

.craft-grid h3 {
  margin-bottom: 8px;
}

.craft-grid p {
  color: var(--ink-soft);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 340px;
}

.stack-card {
  position: absolute;
  width: min(280px, 80%);
  padding: 28px 24px;
  border-radius: 24px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.c1 { background: var(--berry); top: 20px; left: 10px; transform: rotate(-8deg); }
.c2 { background: var(--violet); top: 110px; left: 70px; transform: rotate(4deg); }
.c3 { background: var(--ink); top: 210px; left: 30px; transform: rotate(-2deg); }

.about-copy p {
  margin-bottom: 16px;
}

.about-list {
  margin-top: 8px;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 500;
}

.about-list li + li {
  margin-top: 6px;
}

.contact {
  padding-bottom: 96px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--ink);
  color: #fff;
  border-radius: 36px;
  padding: 48px;
}

.contact-card .eyebrow {
  color: var(--sun);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
}

.mail {
  display: inline-block;
  margin-top: 20px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
  color: var(--sun);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #2a2344;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form .btn {
  justify-self: start;
  background: var(--sun);
  color: var(--ink);
  margin-top: 6px;
}

.contact-form .btn:hover {
  background: #ffe27a;
}

.form-note {
  color: var(--mint);
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 7vw 40px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero,
  .about,
  .contact-card,
  .game-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 24px;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 7vw;
    left: 7vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 18px;
  }

  .nav-cta {
    border-radius: 0;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 28px 22px;
  }

  .hero-stats {
    flex-wrap: wrap;
  }
}
