/* ==========================================================================
   好好學AI｜親切白話教學風 Design System (Mobile-First, Zero Dependencies)
   Strict palette from BRIEF.md
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-cream: #FFFBF5;
  --bg-ivory: #FFF6EB;
  --bg-card: #FFFFFF;
  --bg-badge: #FEF3C7;
  --bg-sky-soft: #F0F9FF;
  --bg-line-soft: #ECFDF3;

  /* Borders */
  --border-warm: #F1E6D8;
  --border-strong: #E4D4BE;

  /* Typography colors */
  --ink-primary: #1E293B;
  --ink-secondary: #475569;
  --ink-muted: #526075;
  --ink-badge: #B45309;

  /* Brand accents */
  --orange: #F97316;
  --orange-hover: #EA580C;
  --orange-soft: #FFF0E3;
  --sky: #0EA5E9;
  --sky-dark: #0284C7;
  --line-green: #06C755;
  --line-green-hover: #05B34C;

  /* Glassmorphism System (Warm Translucent Frosted Glass) */
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-bg-soft: rgba(255, 255, 255, 0.56);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(18px) saturate(160%);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --glass-shadow:
    0 12px 32px rgba(180, 120, 60, 0.10),
    0 2px 10px rgba(30, 41, 59, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --glass-shadow-hover:
    0 20px 44px rgba(180, 120, 60, 0.15),
    0 5px 16px rgba(30, 41, 59, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);

  /* Ambient Orbs Palette */
  --orb-orange: rgba(249, 115, 22, 0.16);
  --orb-sky: rgba(14, 165, 233, 0.14);
  --orb-gold: rgba(251, 191, 36, 0.15);
  --orb-mint: rgba(6, 199, 85, 0.13);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 10px 28px rgba(180, 120, 60, 0.09), 0 2px 8px rgba(30, 41, 59, 0.04);
  --shadow-lg: 0 20px 44px rgba(180, 120, 60, 0.14), 0 6px 16px rgba(30, 41, 59, 0.06);
  --shadow-orange: 0 10px 24px rgba(249, 115, 22, 0.26);
  --shadow-line: 0 10px 24px rgba(6, 199, 85, 0.24);

  /* Fonts */
  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-num: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radii & Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container-max: 1160px;
  --header-h: 72px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-primary);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: 84px; /* Space for sticky mobile CTA bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

/* Focus Accessibility */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }
}

.section {
  position: relative;
  padding-block: 68px;
}

@media (min-width: 960px) {
  .section {
    padding-block: 96px;
  }
}

.section--ivory {
  background-color: var(--bg-ivory);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

/* ==========================================================================
   Ambient Gradient Orbs & Shared Glassmorphism System (v2)
   ========================================================================== */
.ambient-section {
  position: relative;
  overflow: clip;
}

.ambient-section > .container {
  position: relative;
  z-index: 2;
}

.ambient-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  transform: translate3d(0, 0, 0);
}

.orb--orange {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24) 0%, rgba(249, 115, 22, 0.14) 44%, transparent 72%);
}

.orb--sky {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.20) 0%, rgba(14, 165, 233, 0.12) 44%, transparent 72%);
}

.orb--gold {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.23) 0%, rgba(251, 191, 36, 0.13) 44%, transparent 72%);
}

.orb--mint {
  background: radial-gradient(circle, rgba(6, 199, 85, 0.18) 0%, rgba(6, 199, 85, 0.10) 44%, transparent 72%);
}

/* Section-specific orb positions (behind key glass cards for visible frosted depth) */
.orb--hero-1 { width: 520px; height: 520px; top: -120px; right: -80px; }
.orb--hero-2 { width: 460px; height: 460px; bottom: -110px; left: -100px; }
.orb--hero-3 { width: 380px; height: 380px; top: 34%; left: 38%; }

.orb--compare-1 { width: 440px; height: 440px; top: 8%; left: -80px; }
.orb--compare-2 { width: 520px; height: 520px; bottom: -90px; right: -70px; }

.orb--case-1 { width: 500px; height: 500px; top: 6%; right: -90px; }
.orb--case-2 { width: 420px; height: 420px; bottom: -60px; left: -60px; }

.orb--curr-1 { width: 480px; height: 480px; top: 10%; left: 26%; }
.orb--curr-2 { width: 420px; height: 420px; bottom: -80px; left: -70px; }
.orb--curr-3 { width: 440px; height: 440px; top: 38%; right: -80px; }

.orb--b2b-1 { width: 500px; height: 500px; top: 10%; left: -80px; }
.orb--b2b-2 { width: 460px; height: 460px; bottom: -80px; right: -70px; }

.orb--inst-1 { width: 460px; height: 460px; top: 4%; right: -80px; }
.orb--inst-2 { width: 420px; height: 420px; bottom: -60px; left: -70px; }

.orb--rev-1 { width: 520px; height: 520px; top: -40px; right: -80px; }
.orb--rev-2 { width: 440px; height: 440px; bottom: -70px; left: -60px; }
.orb--rev-3 { width: 360px; height: 360px; top: 38%; left: 36%; }

.orb--price-1 { width: 560px; height: 560px; top: 12%; left: 8%; }
.orb--price-2 { width: 460px; height: 460px; bottom: -60px; left: 34%; }
.orb--price-3 { width: 480px; height: 480px; top: 16%; right: -80px; }

.orb--faq-1 { width: 420px; height: 420px; top: 8%; left: -80px; }
.orb--faq-2 { width: 440px; height: 440px; bottom: -80px; right: -80px; }

/* Core Shared Glass Surfaces */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 6px 18px rgba(180, 120, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.glass-card--warm {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 247, 237, 0.68) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.48);
  box-shadow:
    0 18px 40px rgba(249, 115, 22, 0.13),
    0 4px 14px rgba(180, 120, 60, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.glass-card--featured-orange {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    148deg,
    rgba(255, 255, 255, 0.84) 0%,
    rgba(255, 245, 232, 0.74) 50%,
    rgba(255, 234, 210, 0.68) 100%
  );
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  border: 2px solid rgba(249, 115, 22, 0.68);
  box-shadow:
    0 24px 52px rgba(249, 115, 22, 0.20),
    0 8px 20px rgba(180, 120, 60, 0.09),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.glass-card--featured-orange::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(251, 191, 36, 0.10) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.glass-card--featured-orange > * {
  position: relative;
  z-index: 1;
}

.glass-card--sky {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.74) 0%, rgba(240, 249, 255, 0.66) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 30px rgba(14, 165, 233, 0.09),
    0 2px 10px rgba(30, 41, 59, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.glass-card--line {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(236, 253, 243, 0.68) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 16px 38px rgba(6, 199, 85, 0.12),
    0 2px 10px rgba(30, 41, 59, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(6, 199, 85, 0.18);
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 44px;
}

@media (min-width: 960px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-badge);
  color: var(--ink-badge);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.eyebrow--sky {
  background-color: #E0F2FE;
  color: var(--sky-dark);
}

.eyebrow--green {
  background-color: var(--bg-line-soft);
  color: #047857;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-desc {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .section-desc {
    font-size: 17px;
  }
}

.num-font {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.mono-font {
  font-family: var(--font-mono);
}

.highlight-underline {
  position: relative;
  display: inline;
  background-image: linear-gradient(transparent 62%, rgba(249, 115, 22, 0.24) 62%, rgba(249, 115, 22, 0.24) 94%, transparent 94%);
  padding-inline: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--orange);
  color: #FFFFFF;
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  background-color: var(--orange-hover);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.32);
}

.btn--line {
  background-color: var(--line-green);
  color: #FFFFFF;
  box-shadow: var(--shadow-line);
}

.btn--line:hover {
  background-color: var(--line-green-hover);
  box-shadow: 0 14px 28px rgba(5, 179, 76, 0.3);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: var(--ink-primary);
  border-color: rgba(228, 212, 190, 0.9);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn--outline:hover {
  border-color: var(--orange);
  color: var(--orange-hover);
  background: rgba(255, 255, 255, 0.88);
}

.btn--glass-subtle {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color: var(--ink-primary);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 6px 16px rgba(30, 41, 59, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  font-size: 14.5px;
  padding: 12px 18px;
}

.btn--glass-subtle:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(6, 199, 85, 0.45);
  color: #047857;
}

.btn--sky {
  background-color: var(--sky);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.22);
}

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

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 17px;
  border-radius: 12px;
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   Header / Sticky Nav (Glassmorphism)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 251, 245, 0.72);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 22px rgba(180, 120, 60, 0.07),
    inset 0 -1px 0 rgba(241, 230, 216, 0.72);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--orange) 0%, #FB923C 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.brand-sub {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
  line-height: 1.2;
}

@media (min-width: 1340px) {
  .brand-sub {
    display: inline-block;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1020px) {
  .desktop-nav {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .desktop-nav {
    gap: 16px;
  }
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
  padding-block: 6px;
  white-space: nowrap;
}

.nav-link--faq {
  display: none;
}

@media (min-width: 1180px) {
  .nav-link--faq {
    display: inline-block;
  }
}

.nav-link:hover {
  color: var(--orange);
}

.nav-share-link {
  color: var(--sky-dark);
  font-weight: 700;
}

.nav-share-link:hover {
  color: var(--orange);
}

.nav-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--orange-hover);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 240, 227, 0.78) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.34);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-video-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 237, 213, 0.92) 100%);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-video-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  color: #FFFFFF;
  font-size: 9px;
  padding-left: 1px;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.32);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Sound Toggle Glass Pill */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.sound-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(255, 255, 255, 0.88);
  color: var(--orange-hover);
}

.sound-toggle-btn .sound-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.sound-toggle-btn .sound-icon--off {
  display: none;
  color: var(--ink-muted);
}

.sound-toggle-btn.is-muted .sound-icon--on {
  display: none;
}

.sound-toggle-btn.is-muted .sound-icon--off {
  display: inline-flex;
}

.sound-toggle-btn.is-muted {
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.52);
}

.sound-label {
  display: none;
}

@media (min-width: 440px) {
  .sound-toggle-btn {
    padding: 0 13px;
  }
  .sound-label {
    display: inline;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 680px) {
  .header-cta {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ink-primary);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(249, 115, 22, 0.35);
}

@media (min-width: 980px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px 24px;
  z-index: 88;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.mobile-drawer-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink-primary);
}

.mobile-drawer-links a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--orange);
}

.mobile-drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 44px 64px;
  background:
    radial-gradient(circle at 86% 14%, var(--orb-orange), transparent 44%),
    radial-gradient(circle at 12% 76%, var(--orb-sky), transparent 46%),
    radial-gradient(circle at 52% 42%, var(--orb-gold), transparent 48%),
    var(--bg-cream);
}

@media (min-width: 960px) {
  .hero {
    padding-block: 72px 88px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(254, 243, 199, 0.78);
  color: var(--ink-badge);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 6px 18px rgba(249, 115, 22, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(251, 191, 36, 0.35);
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: 13px;
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.22);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(31px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 18px;
}

.hero-title .accent {
  color: var(--orange);
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  max-width: 580px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 18px;
  }
}

.hero-subtitle strong {
  color: var(--ink-primary);
  font-weight: 800;
}

/* 3-Stage Highlight Glass Pills */
.stage-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.stage-pill {
  border-radius: 16px;
  padding: 13px 10px;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.stage-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(249, 115, 22, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.stage-pill-time {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 900;
  color: var(--orange);
  line-height: 1.2;
}

.stage-pill-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 3px;
}

@media (min-width: 640px) {
  .stage-pill {
    padding: 15px 12px;
  }
  .stage-pill-label {
    font-size: 14px;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 540px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Hero Video & Share Frosted Glass Bar */
.hero-media-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-video-glass,
.btn--video-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 240, 227, 0.78) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(249, 115, 22, 0.36);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-video-glass:hover,
.btn--video-glass:hover {
  transform: translateY(-2px);
  color: var(--orange-hover);
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: #FFFFFF;
  font-size: 11px;
  padding-left: 2px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.36);
  flex-shrink: 0;
}

.btn-share-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--sky-dark);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(240, 249, 255, 0.78) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(14, 165, 233, 0.30);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-share-glass:hover {
  transform: translateY(-2px);
  color: var(--orange-hover);
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check-icon {
  color: var(--orange);
  flex-shrink: 0;
}

/* Hero Right Preview Frame (Glassmorphism) */
.hero-preview-wrap {
  position: relative;
}

.browser-frame {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255, 251, 245, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #FDA4AF; }
.browser-dots span:nth-child(2) { background: #FCD34D; }
.browser-dots span:nth-child(3) { background: #6EE7B7; }

.browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(241, 230, 216, 0.85);
  border-radius: 8px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-url .lock {
  color: #16A34A;
  flex-shrink: 0;
}

.browser-viewport {
  position: relative;
  background: #F5F5F0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.browser-frame:hover .browser-viewport img {
  transform: scale(1.02);
}

.hero-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  flex-wrap: wrap;
}

.preview-meta-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
}

.preview-meta-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(224, 242, 254, 0.9);
  color: var(--sky-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.floating-stat {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-stat-card {
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}

.mini-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-stat-icon--sky {
  background: #E0F2FE;
  color: var(--sky-dark);
}

.mini-stat-num {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 900;
  color: var(--ink-primary);
  line-height: 1.2;
}

.mini-stat-label {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Comparison Section (Pain vs Solution)
   ========================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 820px) {
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (min-width: 768px) {
  .compare-card {
    padding: 36px 32px;
  }
}

.compare-card--old {
  background: rgba(250, 248, 245, 0.62);
  border-color: rgba(255, 255, 255, 0.82);
}

.compare-card--new {
  border: 2px solid rgba(249, 115, 22, 0.65);
  position: relative;
}

.compare-card--new:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 48px rgba(249, 115, 22, 0.16),
    0 6px 16px rgba(180, 120, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.compare-ribbon {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.compare-head {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--border-strong);
}

.compare-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.compare-card--new .compare-label {
  color: var(--orange);
}

.compare-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.compare-cost {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 900;
  color: #94A3B8;
  line-height: 1.2;
}

.compare-card--new .compare-cost {
  color: var(--orange);
}

.compare-cost small {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 6px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.compare-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 900;
  font-size: 14px;
}

.compare-icon--bad {
  background: #FEE2E2;
  color: #DC2626;
}

.compare-icon--good {
  background: #FFEDD5;
  color: var(--orange-hover);
}

.compare-item strong {
  display: block;
  font-size: 16px;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.compare-item span {
  font-size: 14.5px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Case Study Section (kylealex.com.tw)
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .case-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
  }
}

.device-showcase {
  position: relative;
  padding-bottom: 24px;
}

.case-desktop-btn {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  display: block;
}

.case-desktop-btn .browser-frame {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-desktop-btn:hover .browser-frame {
  transform: translateY(-3px);
}

.phone-overlay {
  margin: 16px auto 0;
  width: 175px;
  background: #1E293B;
  padding: 8px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #334155;
  display: block;
  transition: transform 0.25s ease;
}

.phone-overlay:hover {
  transform: translateY(-4px);
}

@media (min-width: 640px) {
  .device-showcase {
    padding-bottom: 36px;
    padding-right: 36px;
  }
  .phone-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 164px;
  }
}

.phone-screen {
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  aspect-ratio: 9 / 17.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-caption {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  margin-top: 6px;
}

.zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.case-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.case-point {
  border-radius: 16px;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.case-point:hover {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(255, 255, 255, 0.80);
  transform: translateX(3px);
  box-shadow: var(--glass-shadow-hover);
}

.case-point-num {
  font-family: var(--font-num);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #E0F2FE;
  color: var(--sky-dark);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-point h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.case-point p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.case-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   Curriculum 3-Stage + Workshop Schedule
   ========================================================================== */
.stages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 36px;
}

@media (min-width: 900px) {
  .stages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.stage-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(255, 255, 255, 0.80);
}

.stage-card--featured {
  border: 2px solid rgba(249, 115, 22, 0.65);
}

.stage-card--featured:hover {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 245, 234, 0.78) 100%);
}

.stage-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-ivory);
  color: var(--ink-badge);
  margin-bottom: 14px;
}

.stage-card--featured .stage-step-tag {
  background: var(--orange);
  color: #FFFFFF;
}

.stage-big-time {
  font-family: var(--font-num);
  font-size: 38px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stage-big-time span {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-left: 4px;
}

.stage-card h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.stage-card > p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}

.stage-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border-warm);
}

.stage-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-primary);
  font-weight: 500;
}

.stage-bullets .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 9px;
  flex-shrink: 0;
}

/* Taichung 6-Hour Workshop Rhythm Banner */
.schedule-banner {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

@media (min-width: 768px) {
  .schedule-banner {
    padding: 32px 36px;
  }
}

.schedule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.schedule-head h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-primary);
}

.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 240, 227, 0.88);
  color: var(--orange-hover);
  font-size: 13.5px;
  font-weight: 800;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .timeline-row {
    grid-template-columns: 1.2fr 0.7fr 1.2fr;
    gap: 16px;
  }
}

.timeline-block {
  border-radius: 14px;
  padding: 18px;
}

.timeline-block--break {
  background: rgba(255, 247, 237, 0.74);
  border: 1.5px dashed rgba(249, 115, 22, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sky-dark);
  margin-bottom: 6px;
}

.timeline-block--break .timeline-time {
  color: var(--orange-hover);
}

.timeline-block strong {
  display: block;
  font-size: 16px;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.timeline-block p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Enterprise B2B Section
   ========================================================================== */
.b2b-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

@media (min-width: 860px) {
  .b2b-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.b2b-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.b2b-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 44px rgba(14, 165, 233, 0.14),
    0 4px 14px rgba(30, 41, 59, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  border-color: rgba(14, 165, 233, 0.45);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.86) 0%, rgba(240, 249, 255, 0.78) 100%);
}

.b2b-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #E0F2FE;
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.b2b-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.b2b-card p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.b2b-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b2b-tag {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-sky-soft);
  color: var(--sky-dark);
}

.b2b-banner {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 820px) {
  .b2b-banner {
    flex-direction: row;
    align-items: center;
    padding: 30px 36px;
  }
}

.b2b-banner h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.b2b-banner p {
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 620px;
}

/* ==========================================================================
   Instructor & 6-Certificate Gallery Wall
   ========================================================================== */
.instructor-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 820px) {
  .instructor-card {
    grid-template-columns: 220px 1fr;
    padding: 36px;
    gap: 36px;
  }
}

.instructor-badge-box {
  background: linear-gradient(145deg, #FFF6EB 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
}

.instructor-monogram {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #FB923C 100%);
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.instructor-badge-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-primary);
}

.instructor-badge-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-badge);
  margin-top: 2px;
}

.instructor-bio h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.instructor-bio p {
  font-size: 15.5px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.instructor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.instructor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.certs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.certs-header h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-primary);
}

.certs-header span {
  font-size: 14px;
  color: var(--ink-muted);
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 580px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cert-card {
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(249, 115, 22, 0.55);
}

.cert-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #FAF5EE 0%, #F3ECE2 100%);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.12);
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-thumb img {
  transform: scale(1.03);
}

.cert-zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(30, 41, 59, 0.78);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cert-meta {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-warm);
}

.cert-meta strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.cert-meta span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   LINE Official Account (QR Glass Card) & 5-Star Reviews
   ========================================================================== */
.line-spotlight {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 820px) {
  .line-spotlight {
    grid-template-columns: 1fr auto;
    gap: 36px;
    padding: 34px 38px;
  }
}

.line-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(236, 253, 243, 0.92);
  border: 1px solid rgba(6, 199, 85, 0.25);
  color: #047857;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.line-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-green);
  box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.2);
  flex-shrink: 0;
}

.line-spotlight h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.line-spotlight p {
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 600px;
  margin-bottom: 18px;
}

.line-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.line-direct-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.line-url-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(6, 199, 85, 0.28);
  color: #047857;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.line-url-pill:hover {
  background: #ECFDF3;
  border-color: var(--line-green);
}

.line-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow:
    0 14px 30px rgba(6, 199, 85, 0.12),
    0 2px 8px rgba(30, 41, 59, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  justify-self: center;
}

.line-qr-frame {
  display: block;
  background: #FFFFFF;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(6, 199, 85, 0.2);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.line-qr-frame:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 22px rgba(6, 199, 85, 0.18);
}

.line-qr-frame img {
  width: 156px;
  height: 156px;
  display: block;
  image-rendering: pixelated;
}

.line-qr-meta {
  margin-top: 10px;
}

.line-qr-meta strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #047857;
  line-height: 1.3;
}

.line-qr-meta span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.review-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}

.stars {
  color: #F59E0B;
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 15px;
  color: var(--ink-primary);
  line-height: 1.75;
  margin-bottom: 18px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-warm);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-badge);
  color: var(--ink-badge);
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink-primary);
}

.review-author span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.sample-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-muted);
  background: #FAF8F5;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-warm);
}

/* ==========================================================================
   Pricing Section (Dual Plans)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: stretch;
}

@media (min-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
  }
}

.price-card {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

@media (min-width: 768px) {
  .price-card {
    padding: 38px 34px;
  }
}

.price-card--featured {
  position: relative;
}

.price-card--featured:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px rgba(249, 115, 22, 0.24),
    0 10px 24px rgba(180, 120, 60, 0.11),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.98);
}

.price-card--featured .price-amount-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(249, 115, 22, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.price-card--b2b .price-amount-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.price-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.price-badge-top--sky {
  background: #E0F2FE;
  color: var(--sky-dark);
}

.price-card h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.price-sub {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.price-amount-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.price-original {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.price-original del {
  font-family: var(--font-num);
  font-weight: 700;
}

.price-save-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: #FEE2E2;
  color: #DC2626;
  font-size: 12px;
  font-weight: 800;
}

.price-now {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-currency {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
}

.price-num {
  font-family: var(--font-num);
  font-size: clamp(40px, 6vw, 52px);
  font-weight: 900;
  color: var(--orange);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.price-batch-info {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-badge);
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-primary);
}

.price-features svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 3px;
}

.price-card--b2b .price-features svg {
  color: var(--sky-dark);
}

.price-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 6px;
}

/* Pricing Bottom LINE QR Glass Strip */
.pricing-line-qr-card {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 820px) {
  .pricing-line-qr-card {
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    padding: 26px 32px;
    text-align: left;
  }
}

.pricing-qr-thumb {
  display: inline-block;
  justify-self: center;
  background: #FFFFFF;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid rgba(6, 199, 85, 0.22);
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-qr-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 26px rgba(6, 199, 85, 0.22);
}

.pricing-qr-thumb img {
  width: 112px;
  height: 112px;
  display: block;
  image-rendering: pixelated;
}

.pricing-qr-copy h3 {
  font-size: 19px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.pricing-qr-copy p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.inline-line-link {
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-line-link:hover {
  color: var(--line-green-hover);
}

.pricing-qr-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

@media (max-width: 819px) {
  .pricing-qr-actions {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(249, 115, 22, 0.48);
  background: rgba(255, 255, 255, 0.80);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.5;
}

.faq-trigger:hover {
  color: var(--orange-hover);
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-ivory);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  background: var(--orange);
  color: #FFFFFF;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.8;
  border-top: 1px dashed var(--border-warm);
  padding-top: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #1E293B;
  color: #CBD5E1;
  padding-block: 52px 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #94A3B8;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #FDBA74;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #94A3B8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Sticky Mobile Bottom CTA Bar (Glassmorphism)
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  background: rgba(255, 251, 245, 0.76);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border-top: 1px solid rgba(255, 255, 255, 0.90);
  box-shadow:
    0 -10px 28px rgba(180, 120, 60, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.mobile-sticky-bar .btn {
  padding: 12px 10px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* ==========================================================================
   Modals (Lightbox & Link Guide Modal)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-warm);
  background: var(--bg-cream);
  color: var(--ink-primary);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--orange-soft);
  color: var(--orange-hover);
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-badge);
  color: var(--ink-badge);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.guide-title {
  font-size: 21px;
  font-weight: 900;
  color: var(--ink-primary);
  margin-bottom: 10px;
  padding-right: 36px;
}

.guide-desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.guide-code-tip {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #9A3412;
  margin-bottom: 18px;
}

.guide-code-tip code {
  font-family: var(--font-mono);
  background: #FFFFFF;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--ink-primary);
}

.guide-copy-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: var(--ink-primary);
  white-space: pre-line;
  margin-bottom: 14px;
  line-height: 1.65;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-feedback {
  font-size: 13px;
  font-weight: 700;
  color: #15803D;
  margin-top: 10px;
  min-height: 20px;
}

/* Lightbox Dialog */
.lightbox-dialog {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lightbox-close:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #1E293B;
  overflow: auto;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  font-size: 13.5px;
  color: #CBD5E1;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lightbox-nav button {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
}

.lightbox-nav button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.lightbox-nav button[hidden] {
  display: none;
}

/* ==========================================================================
   Frosted Glass Video Lightbox Modal (9:16 Friendly, Responsive)
   ========================================================================== */
.video-modal-dialog {
  width: min(94vw, 430px);
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 251, 245, 0.92) 0%, rgba(255, 246, 235, 0.88) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.42),
    0 4px 16px rgba(249, 115, 22, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  position: relative;
}

.video-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(241, 230, 216, 0.9);
  background: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.video-modal-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.video-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-badge);
  color: var(--ink-badge);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.video-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-primary);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.video-modal-close:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.video-modal-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: radial-gradient(circle at 50% 35%, rgba(249, 115, 22, 0.12), rgba(15, 23, 42, 0.06) 72%);
  overflow: hidden;
}

.video-modal-stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(65vh, 65dvh);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 16px;
  background: #0F172A;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(241, 230, 216, 0.9);
  background: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.video-modal-footer .btn {
  flex: 1 1 140px;
  justify-content: center;
}

/* ==========================================================================
   Scroll Reveal Micro-Motion
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .stage-card:hover,
  .cert-card:hover,
  .b2b-card:hover {
    transform: none;
  }
}
