/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #faf9f6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo span {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: #1a1a2e; }
.nav-links .cta-btn {
  background: #c46d2a;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0;
}
.nav-links .cta-btn:hover {
  background: #b36020;
  color: #fff;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a2e;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== SECTIONS ===== */
section { padding: 120px 32px; }
.container { max-width: 900px; margin: 0 auto; }
.container--narrow { max-width: 700px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 109, 42, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 26, 46, 0.03) 0%, transparent 50%),
    #faf9f6;
}
.hero-emojis {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-emoji {
  position: absolute;
  font-size: 32px;
  opacity: 0.50;
  will-change: transform;
}
@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-20px) translateX(15px) rotate(-8deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(15deg); }
}
@keyframes float-4 {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-25px) translateX(10px); }
  66% { transform: translateY(-10px) translateX(-10px); }
}
.hero .hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1a1a2e;
  margin-bottom: 24px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em {
  font-style: italic;
  color: #c46d2a;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: #555;
  max-width: 580px;
  margin: 0 auto 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.hero-price {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.hero-price span { color: #c46d2a; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #c46d2a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 109, 42, 0.25);
}
.btn-primary:hover {
  background: #b36020;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 109, 42, 0.3);
}
.btn-secondary {
  background: transparent;
  color: #1a1a2e;
  border: 1.5px solid #1a1a2e;
}
.btn-secondary:hover {
  background: #1a1a2e;
  color: #faf9f6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION HEADINGS ===== */
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c46d2a;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #1a1a2e;
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 17px;
  color: #666;
  max-width: 560px;
  line-height: 1.6;
}

/* ===== PROBLEMS ===== */
.problems {
  background: #fff;
  border-top: 1px solid rgba(26, 26, 46, 0.06);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  padding: 28px;
  background: #faf9f6;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 46, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.problem-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}
.problem-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ===== HOW IT WORKS ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.how-card {
  padding: 32px;
  border-left: 3px solid #c46d2a;
  background: #fff;
  border-radius: 0 12px 12px 0;
  border-top: 1px solid rgba(26,26,46,0.06);
  border-right: 1px solid rgba(26,26,46,0.06);
  border-bottom: 1px solid rgba(26,26,46,0.06);
}
.how-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}
.how-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* ===== ABOUT ===== */
.about { background: #1a1a2e; color: #faf9f6; }
.about .section-label { color: #e8a862; }
.about .section-title { color: #faf9f6; }
.about .section-subtitle { color: rgba(250, 249, 246, 0.6); }
.about-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.about-photo {
  width: 280px;
}
.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(250, 249, 246, 0.75);
  margin-bottom: 16px;
}
.about-text .highlight {
  color: #e8a862;
  font-weight: 600;
}
.about-uces {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 168, 98, 0.12);
  border: 1px solid rgba(232, 168, 98, 0.25);
  padding: 12px 20px;
  border-radius: 10px;
  margin: 20px 0 24px;
  font-size: 15px;
  color: #e8a862;
  font-weight: 500;
}
.about-uces strong { font-weight: 700; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.testimonial {
  padding: 28px;
  background: #faf9f6;
  border-radius: 12px;
  border: 1px solid rgba(26,26,46,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial blockquote {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  font-style: italic;
}
.testimonial cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

/* ===== GAME DEMO ===== */
.game-section { background: #faf9f6; }
.game-embed {
  margin-top: 48px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1 / 1;
  background: #1a1a2e;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26,26,46,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.game-placeholder {
  text-align: center;
  color: rgba(250,249,246,0.5);
}
.game-placeholder p {
  font-size: 16px;
  margin-bottom: 8px;
}
.game-placeholder small {
  font-size: 13px;
  color: rgba(250,249,246,0.3);
}
.game-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(196, 109, 42, 0.08) 0%, transparent 60%),
    #fff;
}
.cta-section .section-title { margin-bottom: 16px; }
.cta-section .section-subtitle {
  margin: 0 auto 36px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 32px;
  text-align: center;
  background: #1a1a2e;
  color: rgba(250,249,246,0.4);
  font-size: 13px;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-social a {
  color: rgba(250,249,246,0.5);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-social a:hover { color: #e8a862; }
footer p { line-height: 1.6; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 80px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(26,26,46,0.08);
  }
  .nav-toggle { display: block; }
  .problems-grid,
  .how-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo {
    margin: 0 auto;
    width: 200px;
  }
  .hero-buttons { flex-direction: column; align-items: center; }
}
