:root {
  color-scheme: light;
  --ink: #211c2d;
  --muted: #696275;
  --line: #e6e0f0;
  --bg: #faf8ff;
  --tint: #f0ecfb;
  --violet: #6847e8;
  --violet-deep: #4e35b7;
  --coral: #e16f72;
  --sun: #efbd58;
  --mint: #78aa91;
  --sky: #6f9fb7;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(27, 26, 46, 0.06), 0 12px 32px rgba(27, 26, 46, 0.08);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-wordmark {
  display: block;
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--ink); }

.site-nav .nav-cta {
  color: #fff;
  background: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.site-nav .nav-cta:hover { color: #fff; background: var(--violet-deep); }

/* Type */

.eyebrow {
  margin: 0 0 1rem;
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h1 em { font-style: italic; color: var(--violet); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.5rem; }

.lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

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

.button-primary {
  color: #fff;
  background: var(--violet);
  box-shadow: 0 8px 20px rgba(104, 71, 232, 0.28);
}

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

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

.button-light {
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(104, 71, 232, 0.13), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.tile {
  border-radius: 14px;
  animation: float 6s ease-in-out infinite;
}

.t1 { grid-area: 1 / 1 / 3 / 3; background: var(--violet); }
.t2 { grid-area: 1 / 3 / 2 / 5; background: var(--sun); animation-delay: -1s; }
.t3 { grid-area: 2 / 3 / 5 / 4; background: var(--coral); animation-delay: -2s; }
.t4 { grid-area: 2 / 4 / 5 / 5; background: var(--mint); animation-delay: -3s; }
.t5 { grid-area: 3 / 1 / 5 / 2; background: var(--sky); animation-delay: -4s; }
.t6 { grid-area: 3 / 2 / 5 / 3; background: var(--ink); animation-delay: -5s; }

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

/* Sections */

.section { padding: 6rem 0; }

.section-tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: 3rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.split-body p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Games */

.game-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.game-art {
  display: grid;
  place-items: center;
  padding: 3rem;
  background: linear-gradient(145deg, #3a2923, #211c2d);
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: min(100%, 300px);
  aspect-ratio: 1;
  animation: sway 5s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.shape { display: block; }

.s-sphere {
  width: 54px;
  height: 54px;
  margin-left: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe4a3, var(--sun) 60%);
}

.s-triangle {
  width: 0;
  height: 0;
  margin-left: -24px;
  border-left: 44px solid transparent;
  border-right: 44px solid transparent;
  border-bottom: 64px solid var(--coral);
}

.s-cube {
  width: 76px;
  height: 76px;
  margin-left: 18px;
  border-radius: 10px;
  background: var(--sky);
}

.s-plank {
  width: 210px;
  height: 22px;
  margin-left: -14px;
  border-radius: 8px;
  background: #b9a8ef;
  transform: rotate(-3deg);
}

.s-cylinder {
  width: 64px;
  height: 70px;
  border-radius: 32px / 12px;
  background: linear-gradient(90deg, #2fae82, var(--mint) 45%, #7ee6bf);
}

.s-base {
  width: 150px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
}

.stack-floor {
  width: 100%;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

@keyframes sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

.game-info { padding: 3rem; }

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--violet-deep);
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-soft {
  background: #f8ead8;
  color: #9d5b20;
}

.game-info h3 { font-size: 2.2rem; }

.game-info p {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--violet);
}

.next-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed #d5cdec;
  border-radius: var(--radius);
  color: var(--muted);
}

.next-card p { margin: 0; }
.next-card strong { color: var(--ink); }

.next-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(121, 169, 135, 0.18);
}

/* Approach */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar-num {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--violet);
  font: 700 0.85rem/1 var(--sans);
  letter-spacing: 0.08em;
}

.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { margin: 0; color: var(--muted); }

/* Contact */

#contact { padding-top: 0; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 122, 89, 0.45), transparent 40%),
    linear-gradient(135deg, var(--violet), var(--violet-deep));
}

.contact-card h2 { max-width: 30rem; }
.contact-card p { margin: 0.75rem 0 0; opacity: 0.85; }
.eyebrow-light { color: rgba(255, 255, 255, 0.75); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p { margin: 0; }

.footer-inner nav {
  display: flex;
  gap: 1.5rem;
}

.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* Legal pages */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.4rem;
}

.legal p, .legal li { color: #494257; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

.updated {
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 880px) {
  .hero { padding: 4rem 0 5rem; }
  .hero-inner, .split, .game-card, .pillars { grid-template-columns: 1fr; }
  .hero-inner, .split { gap: 2.5rem; }
  .hero-art { max-width: 360px; transform: rotate(2deg); }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 2.5rem; }
  .game-info { padding: 2rem; }
}

@media (max-width: 600px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .section { padding: 4.5rem 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
