* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #111827;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.hero {
  background: #ffffff;
  color: #111827;
  padding: 110px 20px 90px;
  text-align: center;
}

.hero-inner {
  text-align: center;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 24px;
  border: 3px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  font-size: 0.9rem;
  color: #1e3a8a;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  color: #0f172a;
}

.hero-text {
  max-width: 700px;
  font-size: 1.15rem;
  color: #475569;
  margin: 0 auto 32px;
}

.button {
  display: inline-block;
  background: #6d8cff;
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: #5d7df7;
  transform: translateY(-1px);
}

.section {
  padding: 72px 20px;
}

.alt {
  background: #eef2ff;
}

.intro {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-align: center;
}

.section p {
  color: #4b5563;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #111827;
}

.mountain-progress {
  width: 100%;
  max-width: 720px;
  height: 14px;
  margin: 24px auto 0;
  background: #d1d5db;
  border-radius: 999px;
  overflow: hidden;
}

.mountain-progress-fill {
  width: 37%;
  height: 100%;
  background: linear-gradient(90deg, #6d8cff, #4f46e5);
  border-radius: 999px;
}

.mini-photo-mountains {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.photo-triangle {
  width: 70px;
  height: 70px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.photo-triangle.large {
  width: 90px;
  height: 90px;
}

.memory-game-wrap {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
}

.memory-status {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 18px;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 20px;
}

.memory-card {
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
  padding: 0;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  transition: transform 0.45s ease;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.memory-card-front {
  background: linear-gradient(135deg, #6d8cff 0%, #4f46e5 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

.memory-card-back {
  background: white;
  color: #0f172a;
  transform: rotateY(180deg);
  padding: 4px;
  flex-direction: column;
  gap: 4px;
}

.memory-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.memory-value {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.memory-eye-image {
  width: 96%;
  max-width: none;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.memory-card.matched .memory-card-back {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.memory-restart {
  display: inline-block;
  background: #6d8cff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.memory-restart:hover {
  background: #5d7df7;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .memory-board {
    gap: 10px;
  }

  .memory-card-front {
    font-size: 1.1rem;
  }

  .memory-value {
    font-size: 0.88rem;
  }

  .memory-eye-image {
    width: 68%;
  }
}

.footer {
  padding: 30px 20px 50px;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
}
