:root {
  --bg: #FFFBF5;
  --bg-alt: #FFF9E6;
  --fg: #1A1A2E;
  --fg-muted: #6B7280;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --green: #1B4332;
  --green-light: #2D6A4F;
  --border: #E8D5B7;
  --card-bg: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.nav-tag {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ── Section label ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Hero ── */
.hero {
  padding: 80px 32px 96px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 20px;
}
.hero-accent {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
}
.proof-item {
  display: flex;
  flex-direction: column;
}
.proof-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.proof-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 2px;
}
.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Transformation stack (hero right) ── */
.transformation-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-item { position: relative; }
.stack-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.stack-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.drawing-card { border-left: 4px solid var(--accent); }
.book-card { border-left: 4px solid var(--green); }
.stack-caption {
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding: 8px 16px 12px;
  text-align: center;
}
.stack-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.stack-arrow span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.book-cover {
  display: flex;
  height: 140px;
}
.book-spine {
  width: 16px;
  background: linear-gradient(to right, var(--green), var(--green-light));
  flex-shrink: 0;
}
.book-face {
  flex: 1;
  background: #E8F5E9;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}
.book-author {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 2px;
}
.book-scene { flex: 1; }

/* ── Transformation section ── */
.transformation {
  padding: 96px 32px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.trans-inner { max-width: 1100px; margin: 0 auto; }
.trans-header { text-align: center; margin-bottom: 56px; }
.trans-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}
.trans-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
}
.trans-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trans-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trans-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.trans-card--accent { border-top: 4px solid var(--accent); }
.trans-icon { margin-bottom: 20px; }
.trans-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.trans-card p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.65; }

/* ── Features ── */
.features {
  padding: 96px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 56px; }
.features-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.feature-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }

/* ── Worlds / Pipeline ── */
.worlds {
  padding: 96px 32px;
  background: var(--green);
  border-bottom: 1px solid var(--green-light);
}
.worlds-inner { max-width: 1100px; margin: 0 auto; }
.worlds-header { text-align: center; margin-bottom: 56px; }
.worlds-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.worlds-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
}
.worlds-header .section-label { color: var(--accent); }
.worlds-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
}
.pipeline-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  margin-top: 16px;
}
.pipeline-text p { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.pipeline-connector {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: 0 16px;
  margin-bottom: 40px;
}

/* ── Showcase / Quote ── */
.showcase {
  padding: 96px 32px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.showcase-inner { max-width: 1100px; margin: 0 auto; }
.showcase-quote {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: -20px;
}
.showcase-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--green);
  line-height: 1.5;
  margin-bottom: 20px;
}
.quote-context {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: normal;
}
.showcase-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}
.stat-block { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 6px;
}

/* ── Closing ── */
.closing {
  padding: 96px 32px;
  background: var(--bg);
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  padding: 40px 32px;
  background: var(--green);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── Demo Gallery ── */
.demo-gallery {
  padding: 80px 32px 96px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.demo-gallery-inner { max-width: 1100px; margin: 0 auto; }
.gallery-header { text-align: center; margin-bottom: 48px; }
.gallery-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.gallery-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* 4-up on desktop, 2x2 on tablet, stacked on mobile */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Card base */
.gallery-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.gallery-card--game {
  cursor: default;
  opacity: 0.85;
}
.gallery-card--game:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

/* Card image area */
.gallery-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8F5E9;
}
.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-card-image img {
  transform: scale(1.03);
}
.gallery-card-image--game {
  background: #FEF3C7;
}

/* "Read now" badge */
.gallery-card-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-card:hover .gallery-card-badge {
  opacity: 1;
  transform: translateY(0);
}
.gallery-card-badge--game {
  background: var(--accent);
  opacity: 1;
  transform: none;
}

/* Card body */
.gallery-card-body {
  padding: 16px;
  flex: 1;
}
.gallery-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1.3;
}
.gallery-card-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* Skeleton loading state */
.gallery-card--skeleton { pointer-events: none; }
.gallery-skeleton-img {
  background: linear-gradient(90deg, #E8D5B7 25%, #F5E9D3 50%, #E8D5B7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.gallery-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #E8D5B7 25%, #F5E9D3 50%, #E8D5B7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}
.gallery-skeleton-line--title { width: 80%; }
.gallery-skeleton-line--meta { width: 55%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Placeholder icon for missing cover */
.gallery-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Gallery CTA */
.gallery-cta {
  text-align: center;
}
.gallery-cta-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.25);
}
.gallery-cta-btn:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}
.gallery-cta-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 2rem; }
  .hero-right { order: -1; }
  .hero-proof { flex-wrap: wrap; gap: 16px; }
  .trans-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .worlds-pipeline { flex-direction: column; gap: 32px; }
  .pipeline-connector { transform: rotate(90deg); max-width: 40px; margin: 0; }
  .showcase-stats { gap: 32px; flex-wrap: wrap; }
  .nav-tag { display: none; }
  .closing-title { font-size: 1.6rem; }
  .showcase-quote blockquote { font-size: 1.2rem; }
  .demo-gallery { padding: 60px 20px 72px; }
  .gallery-title { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 64px; }
  .transformation, .features, .worlds, .showcase, .closing { padding: 64px 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
}