/* ============================================
   HelloGPT Official Website — styles.css
   Studycat-inspired, colorful, playful design
   ============================================ */

/* --- CSS Variables (Studycat-inspired vivid palette) --- */
:root {
  --red: #fd373b;
  --red-light: #FFF0F0;
  --red-glow: rgba(253,55,59,.35);
  --sky: #33CDD8;
  --sky-light: #E0F7FA;
  --sky-dark: #00ACC1;
  --sky-vivid: #00BCD4;
  --yellow: #F6BE00;
  --yellow-light: #FFF8E1;
  --yellow-vivid: #FFCA28;
  --green: #1FE49C;
  --green-light: #E0FFF0;
  --green-dark: #00C853;
  --green-vivid: #3ec48e;
  --coral: #FF6267;
  --coral-light: #FFF0F0;
  --purple: #C198E8;
  --purple-light: #F3E8FF;
  --purple-vivid: #AB47BC;
  --pink: #FF80AB;
  --pink-light: #FFE8F0;
  --teal: #33CDD8;
  --dark: #1a1a2e;
  --text: #2d2d2d;
  --text-light: #555;
  --white: #fff;
  --bg-light: #f8faff;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow: 0 6px 28px rgba(0,0,0,.10);
  --shadow-lg: 0 14px 44px rgba(0,0,0,.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 100px;
  --nav-height: 72px;
  --font: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Utility --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #1565c0;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #fff;
}
.star-twinkle {
  animation: twinkle 1.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}
.section-subtitle {
  text-align: center;
  color: #424242;
  font-size: 1.25rem;
  margin-bottom: 52px;
  font-weight: 400;
}

/* --- Buttons (Studycat-style: bold, rounded, chunky) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s;
  border: none;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.97); }
.btn--lg { padding: 16px 36px; font-size: 1.1rem; }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 18px var(--red-glow);
}
.btn--primary:hover { box-shadow: 0 8px 30px rgba(253,55,59,.5); background: #e02e32; }

.btn--green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(31,228,156,.35);
}
.btn--green:hover { box-shadow: 0 8px 28px rgba(31,228,156,.45); background: var(--green-dark); }

.btn--white {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 2px solid #e0e0e0;
}
.btn--white:hover { border-color: var(--sky); color: var(--sky-dark); background: var(--sky-light); }

.btn--coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,98,103,.35);
}
.btn--coral:hover { box-shadow: 0 8px 28px rgba(255,98,103,.45); }

.btn--glow {
  background: linear-gradient(135deg, var(--red), #e02e32);
  color: var(--white);
  font-size: 1.2rem;
  padding: 18px 48px;
  box-shadow: 0 4px 24px var(--red-glow);
  animation: pulse 2.5s ease-in-out infinite;
}

/* --- Wave Dividers --- */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  line-height: 0;
  overflow: hidden;
}
.wave-divider--top { top: 0; left: 0; width: 100%; }
.wave-divider--bottom { bottom: -3px; }
.wave-divider svg { width: 200%; min-width: 200%; height: 80px; display: block; animation: waveFlow 8s ease-in-out infinite alternate; }
.wave-divider svg:nth-child(2),
.wave-divider svg.wave-layer2 { position: absolute; bottom: 0; left: 0; opacity: .5; animation: waveFlow2 10s ease-in-out infinite alternate; }
@keyframes waveFlow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes waveFlow2 {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Media monsters */
.media-monsters {
  display: block;
  margin: 0 auto 12px;
  width: 240px;
  height: auto;
  transform: scale(0);
  opacity: 0;
  transition: transform .8s cubic-bezier(.23,1,.32,1), opacity .6s ease;
  pointer-events: none;
}
.media-monsters.is-visible {
  opacity: 1;
  transform: scale(1);
  animation: monstersBreath 3s ease-in-out .8s infinite;
}
@keyframes monstersBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Wave treasure */
.wave-treasure {
  position: absolute;
  right: -40px;
  bottom: 20px;
  width: 200px;
  height: auto;
  transform: rotate(10deg) translateX(300px);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(.23,1,.32,1), opacity 1s ease;
  z-index: 5;
  pointer-events: none;
}
.wave-treasure.is-visible {
  opacity: 1;
  transform: rotate(15deg) translateX(0);
  animation: treasureFloat 3s ease-in-out 1.4s infinite;
}
@keyframes treasureFloat {
  0%, 100% { transform: rotate(15deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-8px); }
}
.creations__hat {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 160px;
  height: auto;
  z-index: 5;
  pointer-events: none;
  transform: rotate(-18deg);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}

/* Wave telescope */
.wave-telescope {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 200px;
  height: auto;
  transform: rotate(15deg) translateX(-300px);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(.23,1,.32,1), opacity 1s ease;
  z-index: 5;
  pointer-events: none;
}
.wave-telescope.is-visible {
  opacity: 1;
  transform: rotate(8deg) translateX(0);
  animation: telescopeFloat 3.5s ease-in-out 1.4s infinite;
}
@keyframes telescopeFloat {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-10px); }
}

/* Wave boat */
.wave-boat {
  position: absolute;
  right: -40px;
  top: -60px;
  width: 320px;
  height: auto;
  transform: rotate(-18deg) translateX(350px);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(.23,1,.32,1), opacity 1.2s ease;
  z-index: 5;
  pointer-events: none;
}
.wave-boat.is-visible {
  opacity: 1;
  transform: rotate(-3deg) translateX(0);
  animation: boatFloat 3s ease-in-out 1.6s infinite;
}
@keyframes boatFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  30% { transform: rotate(-1deg) translateY(-8px); }
  70% { transform: rotate(-5deg) translateY(4px); }
}

/* Wave bubbles */
.wave-divider--bubbles { overflow: visible; }
.wave-bubble {
  position: absolute;
  bottom: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 6px rgba(255,255,255,.4);
  animation: bubbleFloat 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bubbleFloat {
  0%   { transform: translateY(0) scale(1); opacity: .5; }
  30%  { transform: translateY(-18px) scale(1.1); opacity: .9; }
  60%  { transform: translateY(-32px) scale(1.2); opacity: .7; }
  100% { transform: translateY(0) scale(1); opacity: .5; }
}


/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -20px); }
  66% { transform: translate(-10px, 10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 24px var(--red-glow); }
  50% { box-shadow: 0 4px 48px rgba(253,55,59,.55); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   1. NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
  height: var(--nav-height);
}
.navbar.is-scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo img { object-fit: contain; }
.navbar__logo-mobile { display: none; }
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar__link {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  transition: background .2s, color .2s, transform .15s, text-shadow .3s;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.navbar.is-scrolled .navbar__link {
  color: var(--text);
  text-shadow: none;
}
.navbar__link:hover { background: var(--sky-light); color: var(--sky-dark); transform: scale(1.05); }
.navbar__link--cta {
  background: var(--red);
  color: var(--white) !important;
  margin-left: 8px;
  box-shadow: 0 3px 12px var(--red-glow);
}
.navbar__link--cta:hover { background: #e02e32; }
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .2s, background .3s;
}
.navbar.is-scrolled .navbar__hamburger span {
  background: var(--text);
}
.navbar__hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__hamburger.is-active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 160px;
  overflow: hidden;
  background: #111;
}
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 200px 24px 0;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #222;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 3px 16px rgba(0,0,0,.12);
}
.hero__badge:hover { transform: scale(1.05); box-shadow: 0 5px 18px rgba(0,0,0,.25); }
.hero__text h1 {
  font-size: 4rem;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
}
.hero__highlight {
  color: var(--yellow);
  position: relative;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 36px;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ============================================
   3. AWARDS
   ============================================ */
.awards {
  position: relative;
  background: url('assets/background1.png') center/cover no-repeat;
  padding: 64px 0 100px;
}
/* --- Per-section vibrant h2 colors --- */
.awards .section-title { color: #d4a017; display: flex; align-items: center; justify-content: center; gap: 6px; }
.value .section-title { color: #e91e63; display: flex; align-items: center; justify-content: center; gap: 8px; }
.showcase .section-title { color: #167ac6; margin-bottom: 32px; }
.ai-engine .section-title { color: #00897b; }
.video-section .section-title { color: #167ac6; }
.use-cases .section-title { color: #fd373b; }
.creations .section-title { color: #d81b60; }
.testimonials .section-title { color: #4caf50; display: flex; align-items: center; justify-content: center; gap: 8px; }
.media .section-title { color: #ff6f00; }
.cta .section-title { color: #167ac6; paint-order: stroke fill; -webkit-text-stroke: 3px #fff; }
/* Image-bg section subtitles */
.awards .section-subtitle { color: #222; text-shadow: 0 1px 4px rgba(255,255,255,.8); }
.showcase .section-subtitle,
.media .section-subtitle { color: #f5f5f5; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.awards__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  overflow: visible;
}
.awards__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  color: #5D4037;
  background: rgba(255,255,255,.75);
  padding: 32px 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s;
  position: relative;
}
.awards__badge::before,
.awards__badge::after {
  content: '';
  position: absolute;
  bottom: 12px;
  width: 32px;
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2254%22%20height%3D%22108%22%20viewBox%3D%220%200%2054%20108%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cellipse%20cx%3D%2237.2348%22%20cy%3D%22102.932%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(3.14415%2037.2348%20102.932)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2221.1631%22%20cy%3D%2289.5516%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(26.0009%2021.1631%2089.5516)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%229.5487%22%20cy%3D%2272.0412%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(50.7104%209.5487%2072.0412)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%227.66582%22%20cy%3D%2251.1727%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(62.7242%207.66582%2051.1727)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2210.4396%22%20cy%3D%2231.4879%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(83.0138%2010.4396%2031.4879)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2220.5433%22%20cy%3D%2215.0243%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(90.3108%2020.5433%2015.0243)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2248.7055%22%20cy%3D%2290.1137%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(88.5182%2048.7055%2090.1137)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2236.3192%22%20cy%3D%2281.8573%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(104.151%2036.3192%2081.8573)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2226.4664%22%20cy%3D%2270.0766%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(127.92%2026.4664%2070.0766)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2224.0524%22%20cy%3D%2253.5246%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(141.121%2024.0524%2053.5246)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2224.9906%22%20cy%3D%2238.723%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(162.265%2024.9906%2038.723)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2233.9905%22%20cy%3D%2224.7231%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(170.36%2033.9905%2024.7231)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2239.0091%22%20cy%3D%228.61122%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(139.611%2039.0091%208.61122)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3C%2Fsvg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .7;
  pointer-events: none;
}
.awards__badge::before {
  left: 14px;
}
.awards__badge::after {
  right: 14px;
  transform: scaleX(-1);
}
.awards__badge:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.awards__badge img {
  width: 140px;
  height: auto;
  object-fit: contain;
}
.awards__badge span { line-height: 1.5; font-size: 1.2rem; font-weight: 700; }
.awards__badge strong { color: #BF360C; font-weight: 900; font-size: 1.4rem; }

/* ============================================
   4. VALUE
   ============================================ */
.value {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #fff 0%, #F0F9FF 100%);
}
.value__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value__card {
  border-radius: var(--radius-lg);
  padding: 40px 24px 36px;
  text-align: center;
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.value__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.value__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.value__card--sky { background: linear-gradient(180deg, #E0F7FA, #B2EBF2); }
.value__card--sky::before { background: var(--sky); }
.value__card--yellow { background: linear-gradient(180deg, #FFF8E1, #FFECB3); }
.value__card--yellow::before { background: var(--yellow); }
.value__card--green { background: linear-gradient(180deg, #E0FFF0, #B9F6CA); }
.value__card--green::before { background: var(--green); }
.value__card--coral { background: linear-gradient(180deg, #FFF0F0, #FFCDD2); }
.value__card--coral::before { background: var(--red); }
.value__icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.value__icon-wrap img { width: 56px; height: 56px; }
.value__card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 700;
}
.value__card p { color: var(--text-light); font-size: 1rem; line-height: 1.7; }

/* ============================================
   5. PRODUCT SHOWCASE (Device Frames)
   ============================================ */
.showcase {
  position: relative;
  padding: 80px 0 120px;
  background: url('assets/background4.png') center/cover no-repeat;
}
.showcase__devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Laptop frame */
.device--laptop {
  width: 680px;
  max-width: 100%;
}
.device--laptop .device__screen {
  background: #222;
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 0;
  border: 3px solid #333;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.device--laptop .device__screen::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
  z-index: 1;
}
.device--laptop .device__screen img {
  width: 100%;
  display: block;
  border-radius: 6px 6px 0 0;
  margin-top: 16px;
}
.device--laptop .device__base {
  width: 110%;
  margin-left: -5%;
  height: 18px;
  background: linear-gradient(180deg, #d0d0d0, #b8b8b8);
  border-radius: 0 0 8px 8px;
  position: relative;
}
.device--laptop .device__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #a0a0a0;
  border-radius: 0 0 4px 4px;
}


/* ============================================
   6. AI ENGINE
   ============================================ */
.ai-engine {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #E0FFF0, #A5D6A7);
  overflow: hidden;
}
/* Seaweed decorations */
.ai-engine::before,
.ai-engine::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 160px;
  border-radius: 60% 50% 0 0 / 80% 70% 0 0;
  opacity: .4;
  z-index: 0;
  transform-origin: bottom center;
}
.ai-engine::before {
  left: 3%;
  height: 190px;
  background: linear-gradient(170deg, #1b5e20, #66bb6a);
  animation: seaweedWave1 4s ease-in-out infinite;
}
.ai-engine::after {
  right: 4%;
  width: 14px;
  height: 220px;
  border-radius: 50% 60% 0 0 / 70% 80% 0 0;
  background: linear-gradient(175deg, #2e7d32, #43a047);
  animation: seaweedWave2 5s ease-in-out infinite;
}
.ai-engine .seaweed {
  position: absolute;
  bottom: 0;
  opacity: .3;
  z-index: 0;
  transform-origin: bottom center;
}
.ai-engine .seaweed--1 {
  left: 8%;
  width: 12px;
  height: 130px;
  border-radius: 55% 45% 0 0;
  background: linear-gradient(172deg, #388e3c, #81c784);
  opacity: .25;
  animation: seaweedWave2 4.5s ease-in-out .5s infinite;
}
.ai-engine .seaweed--2 {
  right: 12%;
  width: 16px;
  height: 170px;
  border-radius: 45% 55% 0 0;
  background: linear-gradient(168deg, #2e7d32, #a5d6a7);
  animation: seaweedWave1 3.8s ease-in-out .3s infinite;
}
.ai-engine .seaweed--3 {
  left: 22%;
  width: 10px;
  height: 100px;
  border-radius: 50% 60% 0 0;
  background: linear-gradient(175deg, #1b5e20, #66bb6a);
  opacity: .2;
  animation: seaweedWave2 5.2s ease-in-out .8s infinite;
}
.ai-engine .seaweed--4 {
  right: 25%;
  width: 14px;
  height: 150px;
  border-radius: 60% 40% 0 0;
  background: linear-gradient(170deg, #4caf50, #c8e6c9);
  opacity: .35;
  animation: seaweedWave1 4.2s ease-in-out 1s infinite;
}
.ai-engine .seaweed--5 {
  left: 42%;
  width: 11px;
  height: 110px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(170deg, #2e7d32, #81c784);
  opacity: .2;
  animation: seaweedWave1 4.8s ease-in-out .2s infinite;
}
.ai-engine .seaweed--6 {
  right: 40%;
  width: 15px;
  height: 180px;
  border-radius: 55% 45% 0 0;
  background: linear-gradient(172deg, #1b5e20, #a5d6a7);
  opacity: .28;
  animation: seaweedWave2 3.5s ease-in-out .6s infinite;
}
.ai-engine .seaweed--7 {
  left: 55%;
  width: 9px;
  height: 90px;
  border-radius: 60% 40% 0 0;
  background: linear-gradient(168deg, #388e3c, #66bb6a);
  opacity: .18;
  animation: seaweedWave1 5.5s ease-in-out 1.2s infinite;
}
.ai-engine .seaweed--8 {
  right: 55%;
  width: 13px;
  height: 140px;
  border-radius: 45% 55% 0 0;
  background: linear-gradient(175deg, #4caf50, #81c784);
  opacity: .22;
  animation: seaweedWave2 4s ease-in-out .4s infinite;
}
@keyframes seaweedWave1 {
  0% { transform: rotate(-5deg) skewX(-3deg); }
  25% { transform: rotate(2deg) skewX(4deg); }
  50% { transform: rotate(8deg) skewX(-2deg); }
  75% { transform: rotate(3deg) skewX(3deg); }
  100% { transform: rotate(-5deg) skewX(-3deg); }
}
@keyframes seaweedWave2 {
  0% { transform: rotate(6deg) skewX(3deg); }
  25% { transform: rotate(-2deg) skewX(-4deg); }
  50% { transform: rotate(-7deg) skewX(2deg); }
  75% { transform: rotate(-1deg) skewX(-3deg); }
  100% { transform: rotate(6deg) skewX(3deg); }
}
.ai-engine__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ai-engine__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s;
}
.ai-engine__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.ai-engine__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-engine__icon--blue { background: #B2EBF2; }
.ai-engine__icon--yellow { background: #FFECB3; }
.ai-engine__icon--green { background: #B9F6CA; }
.ai-engine__card h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--dark); font-weight: 700; }
.ai-engine__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--sky-light), #B2EBF2);
  color: var(--sky-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.ai-engine__card p { color: var(--text-light); font-size: 1rem; line-height: 1.7; }

/* ============================================
   7. HOW IT WORKS
   ============================================ */
.how-it-works {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #FFF3E0, #FFCC80);
}
.steps {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.steps__path {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--coral) 0,
    var(--coral) 10px,
    transparent 10px,
    transparent 20px
  );
  border-radius: 4px;
}
.steps__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
.steps__item:last-child { margin-bottom: 0; }
.steps__icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.steps__icon--sky { background: #B2EBF2; border: 3px solid var(--sky); }
.steps__icon--green { background: #B9F6CA; border: 3px solid var(--green); }
.steps__icon--yellow { background: #FFECB3; border: 3px solid var(--yellow); }
.steps__icon--coral { background: #FFCDD2; border: 3px solid var(--red); }
.steps__icon--purple { background: #E1BEE7; border: 3px solid var(--purple); }
.steps__icon img { width: 40px; height: 40px; }
.steps__icon .fa-solid { font-size: 2rem; color: #fff; }
.steps__num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--red-glow);
}
.steps__content {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.steps__content h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--dark); font-weight: 700; }
.steps__content p { color: var(--text-light); font-size: 1rem; }

/* ============================================
   8. VIDEO SECTION
   ============================================ */
.video-section {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #E0F7FA, #80DEEA);
  overflow: hidden;
}

/* Report section */
.report-section {
  position: relative;
  z-index: 2;
  margin: 48px auto 0;
  padding: 48px 40px 52px;
  max-width: 960px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.6) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255,255,255,.4) 0%, transparent 55%),
              rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,.1), inset 0 0 40px rgba(255,255,255,.3);
  border: 3px solid rgba(255,255,255,.8);
  animation: bubbleShape 8s ease-in-out infinite;
}
@keyframes bubbleShape {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  25% { border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; }
  50% { border-radius: 50% 50% 45% 55% / 45% 55% 50% 50%; }
  75% { border-radius: 55% 45% 60% 40% / 50% 50% 45% 55%; }
}
.report-section__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: #00897b;
  margin-bottom: 12px;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px #fff;
}
.report-section__title .fa-solid {
  margin-right: 8px;
}
.report-section__desc {
  text-align: center;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.report-samples {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.report-samples__img {
  width: 140px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  transition: transform .3s ease;
}
.report-samples__img:nth-child(1) { transform: rotate(-3deg); }
.report-samples__img:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.report-samples__img:nth-child(3) { transform: rotate(-2deg) translateY(-5px); }
.report-samples__img:nth-child(4) { transform: rotate(3deg) translateY(8px); }
.report-samples__img { cursor: pointer; }
.report-samples__img:hover { transform: scale(1.15) rotate(0deg); z-index: 4; }

/* Report lightbox */
.report-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.report-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.report-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transform: scale(.8);
  transition: transform .3s ease;
}
.report-lightbox.is-open img {
  transform: scale(1);
}

/* Ocean bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.video-section .section-container { position: relative; z-index: 1; }
.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), rgba(255,255,255,.15));
  border: 1px solid rgba(255,255,255,.35);
  animation: bubbleRise linear infinite;
}
.bubble:nth-child(1)  { left:  5%; width: 22px; height: 22px; animation-duration: 8s;  animation-delay: 0s;   }
.bubble:nth-child(2)  { left: 15%; width: 14px; height: 14px; animation-duration: 10s; animation-delay: 1.5s; }
.bubble:nth-child(3)  { left: 25%; width: 30px; height: 30px; animation-duration: 9s;  animation-delay: 0.8s; }
.bubble:nth-child(4)  { left: 38%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: 3s;   }
.bubble:nth-child(5)  { left: 48%; width: 10px; height: 10px; animation-duration: 7s;  animation-delay: 2s;   }
.bubble:nth-child(6)  { left: 58%; width: 26px; height: 26px; animation-duration: 12s; animation-delay: 0.5s; }
.bubble:nth-child(7)  { left: 68%; width: 16px; height: 16px; animation-duration: 8.5s;animation-delay: 4s;   }
.bubble:nth-child(8)  { left: 78%; width: 20px; height: 20px; animation-duration: 9.5s;animation-delay: 1s;   }
.bubble:nth-child(9)  { left: 85%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: 3.5s; }
.bubble:nth-child(10) { left: 92%; width: 24px; height: 24px; animation-duration: 11s; animation-delay: 2.5s; }
.bubble:nth-child(11) { left: 33%; width:  8px; height:  8px; animation-duration: 7.5s;animation-delay: 5s;   }
.bubble:nth-child(12) { left: 72%; width: 14px; height: 14px; animation-duration: 9s;  animation-delay: 4.5s; }

@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: .7; }
  80%  { opacity: .4; }
  100% { transform: translateY(-110vh) scale(1.3); opacity: 0; }
}
.video-section__player {
  max-width: 800px;
  margin: 0 auto;
}
.video-section__frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.video-section__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   9. USE CASES
   ============================================ */
.use-cases {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #fff, #F0F9FF);
}
.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.use-cases__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  transition: transform .3s;
  display: flex;
  flex-direction: column;
}
.use-cases__card:hover { transform: translateY(-6px); }
.use-cases__card--teacher { border-top: 4px solid var(--sky); }
.use-cases__card--parent  { border-top: 4px solid var(--red); }

/* Media area (video / image) */
.use-cases__video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.use-cases__video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.use-cases__img-link { display: block; }
.use-cases__cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.use-cases__img-link:hover .use-cases__cover { transform: scale(1.03); }

/* Card body */
.use-cases__body { padding: 24px 28px 28px; }
.use-cases__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.use-cases__emoji { font-size: 1.6rem; }
.use-cases__card h3 {
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: 700;
}
.use-cases__desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}
.use-cases__card li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
  font-size: 1rem;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}
.use-cases__card li:last-child { border-bottom: none; }
.use-cases__card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  font-size: 1rem;
}
.use-cases__card--teacher li::before { color: var(--sky-dark); }
.use-cases__card--parent li::before  { color: var(--red); }

/* ============================================
   10. STUDENT CREATIONS (Netflix-style)
   ============================================ */
.creations {
  position: relative;
  padding: 80px 0 100px;
  background: url('assets/treasure-map.png') center/contain no-repeat, linear-gradient(180deg, #FFE8F0, #F8BBD0);
}
.creations__track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px 24px 36px;
  max-width: 1200px;
  margin: 0 auto;
}
.creations__card {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.23,1,.32,1);
  background: var(--white);
}
.creations__card[data-book] { cursor: pointer; position: relative; }
.creations__card[data-book]::after {
  content: '📖 點我翻閱';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  white-space: nowrap;
}
.creations__card[data-book]:hover::after { opacity: 1; }
.creations__card:hover { transform: scale(1.08) rotate(-1deg); }
.creations__card:active { transform: scale(.95); transition: transform .1s; }
.creations__card img { width: 100%; height: auto; object-fit: cover; }

/* Highlight one book to hint clickability */
/* Fly-in animations for book cards */
.creations__track .creations__card,
.creations__track .creations__card-wrap {
  opacity: 0;
  transition: opacity .6s ease, transform .6s cubic-bezier(.23,1,.32,1);
}

/* Row 1: fly from left */
.creations__track .creations__card:nth-child(-n+5),
.creations__track .creations__card-wrap:nth-child(-n+5) {
  transform: translateX(-80px) rotate(-5deg);
}
/* Row 2: fly from right */
.creations__track .creations__card:nth-child(n+6),
.creations__track .creations__card-wrap:nth-child(n+6) {
  transform: translateX(80px) rotate(5deg);
}
/* Visible state */
.creations__track .creations__card.is-visible,
.creations__track .creations__card-wrap.is-visible {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

/* Stagger delays */
.creations__track > :nth-child(1) { transition-delay: 0s; }
.creations__track > :nth-child(2) { transition-delay: .1s; }
.creations__track > :nth-child(3) { transition-delay: .2s; }
.creations__track > :nth-child(4) { transition-delay: .3s; }
.creations__track > :nth-child(5) { transition-delay: .4s; }
.creations__track > :nth-child(6) { transition-delay: 0s; }
.creations__track > :nth-child(7) { transition-delay: .1s; }
.creations__track > :nth-child(8) { transition-delay: .2s; }
.creations__track > :nth-child(9) { transition-delay: .3s; }
.creations__track > :nth-child(10) { transition-delay: .4s; }

/* Magic sparkles */
.creations__sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 5;
  animation: sparkle 1s ease-out forwards;
}
.creations__sparkle::before,
.creations__sparkle::after {
  content: '';
  position: absolute;
  background: var(--spark-color, var(--yellow));
  border-radius: 50%;
}
.creations__sparkle::before {
  width: 100%;
  height: 3px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.creations__sparkle::after {
  width: 3px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
@keyframes sparkle {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(90deg); opacity: 1; }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

.creations__card--highlight {
  position: relative;
}
.creations__point {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px !important;
  height: 80px !important;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
  animation: pointTap 1.8s ease-in-out infinite;
}
.creations__card--highlight {
  animation: bookPop 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px var(--coral), var(--shadow);
}
@keyframes bookPop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.06) rotate(-1.5deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.04) rotate(1deg); }
}
@keyframes pointTap {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  40% { transform: translate(-8px, -8px) scale(.9); opacity: .8; }
  50% { transform: translate(-8px, -8px) scale(.85); opacity: 1; }
  60% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* Book preview modal */
.book-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.book-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.book-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}
.book-modal__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 92vw;
  max-width: 1100px;
  height: 85vh;
  transform: scale(.92);
  transition: transform .3s cubic-bezier(.23,1,.32,1);
}
.book-modal.is-open .book-modal__content {
  transform: scale(1);
}
/* Book loader */
.book-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 3;
}
.book-modal__loader.is-active {
  opacity: 1;
  visibility: visible;
}
.book-modal__loader span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .5px;
}
.book-modal__spinner {
  width: 52px;
  height: 52px;
  border: 5px solid rgba(255,255,255,.2);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: book-spin 1s linear infinite;
}
@keyframes book-spin {
  to { transform: rotate(360deg); }
}

.book-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.book-modal__close:hover { background: rgba(0,0,0,.85); }

/* Two-page spread */
.book-modal__spread {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-height: calc(85vh - 60px);
  flex: 1;
  min-height: 0;
  perspective: 1200px;
  opacity: 0;
  transform: scale(.95);
  transition: opacity .4s ease, transform .4s ease;
}
.book-modal__spread.is-loaded {
  opacity: 1;
  transform: scale(1);
}
.book-modal__page {
  max-height: calc(85vh - 60px);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  background: #fff;
  transition: opacity .15s;
}
.book-modal__page.is-hidden { display: none; }

/* Flip animations */
.book-modal__spread.flip-exit-left {
  animation: flipOutLeft .3s ease-in forwards;
}
.book-modal__spread.flip-exit-right {
  animation: flipOutRight .3s ease-in forwards;
}
.book-modal__spread.flip-enter-right {
  animation: flipInRight .35s ease-out forwards;
}
.book-modal__spread.flip-enter-left {
  animation: flipInLeft .35s ease-out forwards;
}

@keyframes flipOutLeft {
  0%   { transform: rotateY(0);     opacity: 1; }
  100% { transform: rotateY(-30deg); opacity: 0; }
}
@keyframes flipOutRight {
  0%   { transform: rotateY(0);    opacity: 1; }
  100% { transform: rotateY(30deg); opacity: 0; }
}
@keyframes flipInRight {
  0%   { transform: rotateY(30deg); opacity: 0; }
  100% { transform: rotateY(0);     opacity: 1; }
}
@keyframes flipInLeft {
  0%   { transform: rotateY(-30deg); opacity: 0; }
  100% { transform: rotateY(0);      opacity: 1; }
}

/* Navigation arrows */
.book-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255,255,255,.9);
  color: var(--dark);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
}
.book-modal__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.book-modal__arrow:disabled {
  opacity: .3;
  cursor: default;
  transform: translateY(-50%);
}
.book-modal__arrow--left  { left: -8px; }
.book-modal__arrow--right { right: -8px; }

/* Page indicator */
.book-modal__pager {
  margin-top: 12px;
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  user-select: none;
}

@media (max-width: 768px) {
  .book-modal__spread { flex-direction: column; gap: 8px; }
  .book-modal__page { max-width: 90vw; max-height: calc(42vh - 30px); }
  .book-modal__arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .book-modal__arrow--left  { left: 4px; }
  .book-modal__arrow--right { right: 4px; }
}

/* ============================================
   11. TESTIMONIALS
   ============================================ */
.testimonials {
  position: relative;
  padding: 80px 0 120px;
  background: #ffffff;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonials__card {
  background: #f8f9fa;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border: 3px solid transparent;
  background-clip: padding-box;
}
.testimonials__card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  z-index: -1;
}
.testimonials__card:nth-child(1)::before {
  background: linear-gradient(135deg, #ff6b6b, #ffa502, #ffd93d);
}
.testimonials__card:nth-child(2)::before {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7, #fd79a8);
}
.testimonials__card:nth-child(3)::before {
  background: linear-gradient(135deg, #00b894, #00cec9, #0984e3);
  border: 1px solid #e9ecef;
  transition: transform .3s, box-shadow .3s;
}
.testimonials__card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.testimonials__card:hover { transform: translateY(-6px); }
.testimonials__stars {
  color: #F6BE00;
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.testimonials__card > p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.8;
}
.testimonials__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonials__author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.testimonials__author strong { display: block; font-size: 1rem; }
.testimonials__author span { font-size: 1rem; color: var(--text-light); }

/* ============================================
   12. MEDIA COVERAGE
   ============================================ */
.media {
  position: relative;
  padding: 0 0 120px;
  min-height: 900px;
  background: url('assets/background5.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.media .section-title { margin-top: 0; }
.media__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.media__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.media__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-vivid);
}
.media__img {
  overflow: hidden;
  line-height: 0;
}
.media__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s;
}
.media__card:hover .media__img img { transform: scale(1.05); }
.media__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.media__logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-vivid);
  letter-spacing: 1px;
}
.media__headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
}
.media__desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

/* ============================================
   13. CTA
   ============================================ */
.cta {
  position: relative;
  padding: 100px 0 120px;
  margin-top: -3px;
  background: #ffffff;
  text-align: center;
  overflow: hidden;
}
.cta__confetti {
  position: absolute;
  opacity: .5;
  animation: float 5s ease-in-out infinite;
}
.cta__confetti--left { top: 10%; left: 5%; }
.cta__confetti--right { bottom: 10%; right: 5%; transform: scaleX(-1); animation-delay: 2s; }
.cta__mascot {
  margin: 0 auto 28px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}
.cta h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  font-weight: 900;
}
.cta p {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 40px;
}
.cta__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.cta__visual {
  position: relative;
  flex-shrink: 0;
}
.pricing {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.pricing__card {
  text-align: center;
  flex: 1;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing__img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.15));
}
.pricing__name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
.pricing__desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
}
.pricing__cta {
  margin-top: 36px;
}

/* ============================================
   14. BOOK WORLD
   ============================================ */
.book-world {
  padding: 80px 0;
  background: transparent;
  position: relative;
}
.book-world__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.book-world__text { flex: 1; }
.book-world__text h2 { font-size: 2rem; margin-bottom: 16px; color: var(--dark); font-weight: 900; }
.book-world__text p { color: var(--text-light); margin-bottom: 32px; font-size: 1.05rem; line-height: 1.8; }
.book-world__visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.book-world__map { animation: float 4s ease-in-out infinite; filter: drop-shadow(0 8px 20px rgba(0,0,0,.1)); }
.book-world__cat {
  position: absolute;
  bottom: 0;
  right: 8%;
  animation: float 3s ease-in-out infinite;
  animation-delay: 1.2s;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.1));
}

/* ============================================
   15. FOOTER
   ============================================ */
.footer {
  position: relative;
}
.footer__landscape {
  line-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #499dec 50%);
}
.footer__landscape img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: -2px;
}
.footer__body {
  background: #499dec;
  color: rgba(255,255,255,.85);
  padding: 0 0 0;
  text-align: center;
}
.footer__brand {
  padding: 48px 24px 36px;
  text-align: center;
}
.footer__brand img {
  margin: 0 auto 16px;
  width: 280px;
  height: auto;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}
.footer__brand p {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer__edu-badge {
  display: inline-block;
  background: #ffffff;
  color: #222;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}
.footer__col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  color: rgba(255,255,255,.5);
}

/* ============================================
   RWD — Breakpoints
   ============================================ */

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 1.05rem; margin-bottom: 36px; }
  .wave-divider svg { height: 50px; }
  .wave-divider svg.wave-layer2 { height: 50px; }

  /* Navbar */
  .navbar__logo-desktop { display: block; width: 120px; height: auto; }
  .navbar__logo-mobile { display: none; }
  .navbar__inner { justify-content: center; position: relative; }
  .navbar__logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .navbar__hamburger { display: flex; position: absolute; right: 24px; }
  .navbar__menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
  }
  .navbar__menu.is-open {
    display: flex;
  }
  .navbar:has(.navbar__menu.is-open) {
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .navbar:has(.navbar__menu.is-open) .navbar__logo-desktop {
    filter: none;
  }
  .navbar__hamburger { z-index: 1003; }
  .navbar__hamburger span {
    background: #fff;
  }
  .navbar.is-scrolled .navbar__hamburger span {
    background: var(--text);
  }
  .navbar__hamburger.is-active span {
    background: var(--text) !important;
  }
  .navbar__link {
    padding: 14px 24px;
    width: auto;
    font-size: 1.2rem;
    text-align: center;
    color: var(--text);
    text-shadow: none;
  }
  .navbar__link--cta { margin: 12px 0 0; font-size: 1.1rem; }

  /* Hero */
  .hero { padding: 110px 0 100px; }
  .hero__inner { padding: 150px 24px 0; }
  .hero__overlay { min-height: 110vh; }
  .hero__text h1 { font-size: 1.9rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__badge { font-size: .8rem; }
  .hero__buttons { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
  .hero__buttons .btn { font-size: .9rem; padding: 12px 20px; }

  /* Awards */
  .awards { padding: 48px 0 72px; }
  .awards__inner { gap: 16px; flex-direction: column; align-items: center; }
  .awards__badge { padding: 24px 20px; font-size: .9rem; max-width: 100%; width: 100%; }
  .awards__badge img { width: 100px; }

  /* Value */
  .value { padding: 60px 0 80px; }
  .value__grid { grid-template-columns: 1fr; gap: 16px; }
  .value__card { padding: 32px 20px; }

  /* Showcase */
  .showcase { padding: 60px 0 80px; }
  .showcase__devices { flex-direction: column; align-items: center; gap: 24px; }
  .device--laptop { width: 100%; }

  /* AI Engine */
  .ai-engine { padding: 60px 0 80px; }
  .ai-engine__grid { grid-template-columns: 1fr; gap: 16px; }

  /* Steps */
  .how-it-works { padding: 60px 0 80px; }
  .steps__path { left: 36px; }

  /* Video */
  .video-section { padding: 60px 0 80px; }
  .report-section { padding: 32px 20px 36px; margin: 32px 16px 0; }
  .report-samples { flex-wrap: wrap; gap: 10px; }
  .report-samples__img { width: 42%; }
  .report-section__title { font-size: 1.3rem; }
  .report-section__desc { font-size: 1rem; }

  /* Use Cases */
  .use-cases { padding: 60px 0 80px; }
  .use-cases__grid { grid-template-columns: 1fr; }

  /* Creations */
  .creations { padding: 60px 0 60px; }
  .creations__track { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px 16px 24px; }
  .creations__card[data-book]::after { font-size: .85rem; padding: 4px 10px; bottom: 8px; }

  /* Testimonials */
  .testimonials { padding: 60px 0 80px; }
  .testimonials__grid { grid-template-columns: 1fr; }

  /* Media */
  .media { padding: 60px 0 100px; }
  .media__grid { grid-template-columns: 1fr; }
  .media__img img { height: 180px; }

  /* CTA */
  .cta { padding: 60px 0 80px; }
  .cta h2 { font-size: 1.7rem; }
  .pricing { gap: 24px; }
  .pricing__img { width: 140px; }
  .pricing__name { font-size: 1.2rem; }
  .pricing__desc { font-size: .9rem; }

  /* Book World */
  .book-world { padding: 60px 0; }
  .book-world__inner { flex-direction: column; text-align: center; gap: 32px; }
  .book-world__text h2 { font-size: 1.5rem; }
  .book-world__visual { min-height: 220px; }
  .book-world__map { width: 200px; height: auto; }
  .book-world__cat { width: 100px; height: auto; }

  /* Hide fly-in decorations on mobile */
  .wave-boat,
  .wave-telescope,
  .wave-treasure, .creations__hat { display: none; }

  /* Book modal: single page on mobile */
  .book-modal__spread { flex-direction: column; }
  .book-modal__content { width: 95%; padding: 16px 8px; }
  .book-modal__page { max-height: calc(80vh - 80px); }

  /* Media section */
  .media { min-height: auto; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer__col:nth-child(1),
  .footer__col:nth-child(2) { display: none; }
}

/* Tablet (768px ~ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .value__grid { grid-template-columns: repeat(2, 1fr); }
  .ai-engine__grid { grid-template-columns: repeat(2, 1fr); }
  .ai-engine__grid > :last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid > :last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .media__grid { grid-template-columns: repeat(2, 1fr); }
  .media__grid > :last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .footer__inner { grid-template-columns: repeat(3, 1fr); }
  .device--laptop { width: 520px; }
}

/* Desktop (1024px ~ 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__text h1 { font-size: 2.4rem; }
}

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
  .hero__text h1 { font-size: 3rem; }
  .section-title { font-size: 2.4rem; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: #ffffff;
  padding: 40px 20px;
  text-align: center;
}
.stats-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: nowrap;
  flex-wrap: wrap;
}
.stats-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.stats-bar.is-visible .stats-bar__item {
  opacity: 1;
  transform: translateY(0);
}
.stats-bar.is-visible .stats-bar__item:nth-child(1) { transition-delay: 0s; }
.stats-bar.is-visible .stats-bar__item:nth-child(3) { transition-delay: .15s; }
.stats-bar.is-visible .stats-bar__item:nth-child(5) { transition-delay: .3s; }
.stats-bar__icon {
  font-size: 1.8rem;
  color: var(--sky);
  flex-shrink: 0;
}
.stats-bar__number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--sky-dark);
  line-height: 1.2;
}
.stats-bar__label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}
.stats-bar__divider {
  width: 1px;
  height: 48px;
  background: #e0e0e0;
}
@media (max-width: 600px) {
  .stats-bar__inner { gap: 20px; }
  .stats-bar__number { font-size: 1.8rem; }
  .stats-bar__divider { height: 36px; }
}

/* ============================================
   STEPS HINT
   ============================================ */
.steps__hint {
  text-align: center;
  margin-top: 32px;
  font-size: 1.05rem;
  color: var(--text-light);
}
.steps__hint-link {
  color: var(--sky-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}
.steps__hint-link:hover { color: var(--sky-vivid); }
.steps__hint-link i { margin-left: 4px; }
