:root {
  --primary: #5a4ff3;
  --primary-dark: #3429c7;
  --cyan: #00cec9;
  --green: #00b894;
  --yellow: #fdcb6e;
  --pink: #fd79a8;
  --ink: #172033;
  --muted: #6c7482;
  --soft: #f4f2ff;
  --surface: #fff;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav-glass {
  background: rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
}

.navbar-brand {
  color: #fff !important;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.btn {
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -0.025em;
  padding-inline: 1.15rem;
}

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 820px;
  padding: 8.2rem 0 4rem;
  color: #fff;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.27), transparent 18rem),
    radial-gradient(circle at 82% 12%, rgba(0,206,201,.55), transparent 28rem),
    radial-gradient(circle at 80% 78%, rgba(253,203,110,.34), transparent 28rem),
    radial-gradient(circle at 25% 82%, rgba(253,121,168,.26), transparent 22rem),
    linear-gradient(135deg, #24135f 0%, #4934d4 36%, #5a4ff3 58%, #00a6d6 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 86%);
}

.hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: .72;
  animation: drift 8s ease-in-out infinite;
}
.blob-one { width: 180px; height: 180px; left: 8%; bottom: 18%; background: rgba(253,121,168,.36); }
.blob-two { width: 240px; height: 240px; right: 9%; top: 14%; background: rgba(0,206,201,.32); animation-delay: -2s; }
.blob-three { width: 140px; height: 140px; right: 30%; bottom: 14%; background: rgba(253,203,110,.3); animation-delay: -4s; }

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .42rem .82rem;
  background: rgba(255,255,255,.17);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  backdrop-filter: blur(12px);
}
.eyebrow.dark { background: var(--soft); color: var(--primary-dark); }

.hero-title {
  margin: 1.05rem 0 1rem;
  max-width: 830px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.6vw, 6.35rem);
  line-height: .91;
  letter-spacing: -0.075em;
  font-weight: 800;
}

.hero-subline {
  max-width: 700px;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 2rem 0 1.25rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.hero-tags span {
  border-radius: 999px;
  padding: .45rem .7rem;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  font-weight: 750;
  font-size: .9rem;
}

.demo-shell {
  position: relative;
  border-radius: 2rem;
  padding: 1.1rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.24);
  backdrop-filter: blur(22px);
}

.demo-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255,255,255,.82);
  padding: .25rem .35rem .9rem;
}

.demo-top strong,
.demo-top span,
.demo-top small {
  display: block;
}

.demo-top strong {
  color: #fff;
  font-family: var(--font-display);
  margin-top: .16rem;
}

.demo-meta {
  font-size: .78rem;
  opacity: .72;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.demo-stats {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.demo-stats span {
  border-radius: 999px;
  padding: .35rem .62rem;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
}

.demo-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .9rem;
  background: rgba(255,255,255,.16);
}

.demo-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
}

.demo-progress span.running { animation: demoProgress 4s linear forwards; }

.demo-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.15rem;
  background: #fff;
  color: var(--ink);
  height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: opacity .28s ease, transform .28s ease;
}
.demo-content.is-leaving { opacity: 0; transform: translateY(8px); }
.demo-content.is-entering { opacity: 0; transform: translateY(-8px); }

.demo-media {
  height: 172px;
  margin-bottom: 1rem;
  border-radius: 1.2rem;
  overflow: hidden;
  background: #e8fbf5;
  border: 1px solid rgba(0,184,148,.16);
  flex: 0 0 auto;
}

.demo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* for map demo */
.demo-media-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.95), transparent 4rem),
    linear-gradient(135deg, #c7f2de, #67c8a3);
}

.media-emoji {
  font-size: 4.8rem;
  filter: drop-shadow(0 12px 18px rgba(23,32,51,.14));
}

.demo-card h2 {
  margin: 0 0 1rem;
  min-height: 76px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.demo-answers {
  display: grid;
  gap: .65rem;
}

.demo-answer {
  position: relative;
  border: 2px solid transparent;
  border-radius: 1rem;
  padding: .86rem 1rem;
  background: #f4f2ff;
  color: var(--ink);
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.demo-answer.pending {
  opacity: 0;
  transform: translateY(8px);
  animation: answerIn .35s ease forwards;
}

.demo-answer.selected {
  border-color: #00b894;
  background: #ddf8ec;
  transform: translateY(-2px);
}

.demo-feedback {
  margin-top: 1rem;
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: #eaf7ef;
  color: #116b48;
  font-weight: 800;
  min-height: 54px;
}

.fake-cursor {
  position: absolute;
  left: 70%;
  top: 62%;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 8;
}

.fake-cursor span {
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  clip-path: polygon(0 0, 0 100%, 31% 75%, 46% 100%, 62% 91%, 48% 68%, 82% 68%);
  filter: drop-shadow(0 .35rem .55rem rgba(0,0,0,.25));
}

.fake-cursor.clicking { animation: cursorClick .9s ease both; }

.points-pop {
  position: absolute;
  z-index: 12;
  pointer-events: none;
  color: #00b894;
  font-weight: 950;
  font-size: 1rem;
  background: #fff;
  border-radius: 999px;
  padding: .25rem .5rem;
  box-shadow: 0 .7rem 1.5rem rgba(23,32,51,.14);
  animation: pointsFloat .9s ease-out forwards;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 4.5rem;
}

.metric-strip div {
  border-radius: 1.5rem;
  padding: 1.25rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px);
}

.metric-strip strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.metric-strip span {
  color: rgba(255,255,255,.76);
  font-weight: 750;
}

.returning-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-radius: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px);
}

.returning-box strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.returning-box p { color: rgba(255,255,255,.78) !important; }

.flow-section { background: #fff; }

.flow-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: -3.4rem;
  border-radius: 2rem;
  padding: .8rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(23,32,51,.12);
}

.flow-card div { border-radius: 1.35rem; padding: 1.15rem; }

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  margin-bottom: .7rem;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
}

.flow-card strong {
  display: block;
  font-size: 1.08rem;
  font-family: var(--font-display);
}

.flow-card p { margin: .3rem 0 0; color: var(--muted); }

.showcase-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #fff 0%, #f8f7ff 100%);
}

.section-head { max-width: 760px; margin-bottom: 2rem; }

.section-head h2,
.teacher-note h2 {
  margin: .8rem 0 .65rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.section-head p,
.teacher-note p {
  color: var(--muted);
  font-size: 1.05rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.showcase-card {
  overflow: hidden;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(23,32,51,.1);
}

.showcase-visual {
  position: relative;
  min-height: 225px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bird-visual { background: linear-gradient(135deg, #00b894, #55efc4); }
.english-visual { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.geo-visual { background: linear-gradient(135deg, #5a4ff3, #00cec9); }

.showcase-photo {
  width: 100%;
  height: 100%;
  min-height: 225px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.showcase-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(23,32,51,.55), transparent);
  pointer-events: none;
}

.huge {
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border-radius: 2rem;
  background: rgba(255,255,255,.23);
  color: #fff;
  font-size: 4rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  z-index: 1;
}

.answer-chips,
.floating-words {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}

.answer-chips span,
.floating-words span {
  border-radius: 999px;
  padding: .35rem .65rem;
  background: rgba(255,255,255,.24);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.showcase-body { padding: 1.45rem; }

.card-label {
  display: inline-flex;
  border-radius: 999px;
  padding: .35rem .7rem;
  margin-bottom: .75rem;
  background: var(--soft);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: .8rem;
}

.showcase-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.showcase-card p { color: var(--muted); }

.teacher-note-section { padding: 5rem 0; }

.teacher-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-radius: 2rem;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(23,32,51,.09);
}

.teacher-note > div { max-width: 800px; }

.footer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(23,32,51,.08);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}

@keyframes answerIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursorClick {
  0% { opacity: 0; transform: translate(-30px, -20px) scale(.95); }
  20% { opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1); }
  70% { transform: translate(-50%, -50%) scale(.84); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.84); }
}

@keyframes pointsFloat {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.9); }
  30% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(1); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(18px,-18px,0) scale(1.04); }
}

@keyframes demoProgress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 992px) {
  .hero { min-height: auto; padding-top: 7rem; }
  .demo-shell { margin-top: 1rem; }
  .metric-strip,
  .flow-card,
  .showcase-grid { grid-template-columns: 1fr; }
  .flow-card { margin-top: -2rem; }
  .teacher-note,
  .returning-box { display: block; }
  .teacher-note .btn,
  .returning-box .btn { margin-top: 1rem; }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 3.25rem;
    letter-spacing: -0.065em;
  }

  .hero-actions .btn { width: 100%; }

  .demo-card { height: 500px; }
  .demo-media { height: 150px; }

  .metric-strip { margin-top: 2.5rem; }
  .metric-strip strong { font-size: 2rem; }
}
