/* ==========================================================================
   PHET AI FLOW — AI DRAMA SERIES MASTERY
   Apple MacBook Pro "Liquid Retina XDR Display" Layout System
   + Clean Sans-Serif Typography (Thai Looped-less & English Sans-Serif)
   + Unified Hero Banner (BG.jpg + banner2.png) for Desktop & Mobile
   + 4 Vertical 9:16 Video Mockups Showcase
   + 3D Container Scroll Animation (container-scroll-animation)
   + Nimbus UI "Waterline" WebGL Liquid Glass Navbar
   ========================================================================== */

:root {
  /* 75%+ Pure White & Apple Studio Alabaster Surfaces */
  --bg-pure: #ffffff;
  --bg-apple-gray: #f5f5f7;
  --bg-subtle: #eef2f8;
  --bg-glass: rgba(255, 255, 255, 0.82);

  /* Apple XDR Contrast Ink Colors */
  --ink-primary: #1d1d1f;
  --ink-secondary: #424245;
  --ink-muted: #6e6e73;
  --ink-light: #86868b;

  /* Phet Ai Flow Brand Palette (Cohesive Blue-Indigo-Cyan Tone) */
  --brand-indigo: #2b2899;
  --brand-blue: #0066cc;
  --brand-electric: #1a66f0;
  --brand-cyan: #00b8d9;
  --brand-violet: #4f46e5;
  --brand-emerald: #0d9f6e;
  --brand-crimson: #e11d48;

  /* Gradients (Apple XDR Pro Style) */
  --grad-brand: linear-gradient(135deg, #2b2899 0%, #1a66f0 52%, #00b8d9 100%);
  --grad-xdr-headline: linear-gradient(135deg, #1d1d1f 0%, #2b2899 48%, #0088cc 100%);
  --grad-xdr-glow: radial-gradient(circle at 50% 45%, rgba(26, 102, 240, 0.22), rgba(79, 70, 229, 0.14) 45%, transparent 72%);
  --grad-dark-xdr: linear-gradient(145deg, #090915 0%, #131129 55%, #0b1326 100%);

  /* Borders & Shadows */
  --border-light: rgba(29, 29, 31, 0.08);
  --border-medium: rgba(29, 29, 31, 0.14);
  --border-brand: rgba(26, 102, 240, 0.26);
  --shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 16px 42px rgba(26, 102, 240, 0.26);

  /* Clean Thai Looped-less & English Sans-Serif Font Stack */
  --font-sans: 'Plus Jakarta Sans', 'Anuphan', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Sukhumvit Set', system-ui, sans-serif;

  /* Radii & Motion */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-pure);
  color: var(--ink-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   APPLE XDR TYPOGRAPHY SCALE
   ========================================================================== */

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(26, 102, 240, 0.08);
  color: var(--brand-electric);
  border: 1px solid rgba(26, 102, 240, 0.18);
  margin-bottom: 18px;
}

.eyebrow-pill.dark {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.apple-kicker {
  font-size: clamp(1.02rem, 1.4vw, 1.3rem);
  font-weight: 700;
  color: var(--brand-electric);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.display-hero-title {
  font-size: clamp(2.35rem, 3.85vw, 4.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: var(--ink-primary);
}

.hero-nowrap {
  white-space: nowrap;
}

.xdr-section-headline {
  font-size: clamp(1.9rem, 3.8vw, 3.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.028em;
  color: var(--ink-primary);
}

.section-subheadline {
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 400;
  line-height: 1.68;
  color: var(--ink-secondary);
  max-width: 780px;
}

.text-gradient {
  background: var(--grad-xdr-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 104px 0;
  position: relative;
}

.bg-pure {
  background-color: var(--bg-pure);
}

.bg-apple-gray {
  background-color: var(--bg-apple-gray);
}

.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.section-header-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 52px;
}

/* ==========================================================================
   TOP STICKY BAR + NIMBUS UI "WATERLINE" LIQUID GLASS NAVBAR
   ========================================================================== */

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 1100;
  transition: width 0.08s linear;
}

.top-header-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
  transition: all 0.35s var(--ease-apple);
}

.top-header-bar.scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-link img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

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

/* Nimbus Liquid Navbar CSS */
.nimbus-nav {
  --nv-ink: #0b132b;
  --nv-muted: rgba(11, 19, 43, 0.56);
  --nv-shell: rgba(255, 255, 255, 0.62);
  --nv-rim: rgba(255, 255, 255, 0.9);
  --nv-outline: rgba(15, 40, 90, 0.1);
  --nv-shadow: 0 14px 36px -12px rgba(18, 45, 95, 0.2), 0 3px 10px rgba(18, 45, 95, 0.06);
  --nv-fallback: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.95), rgba(200, 228, 255, 0.55) 70%);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: var(--nv-shell);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: var(--nv-shadow), inset 0 1px 0 var(--nv-rim), inset 0 0 0 1px var(--nv-outline);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.nimbus-nav canvas.nv-water {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  pointer-events: none;
  z-index: 1;
}

.nimbus-nav .nv-drop-css {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--nv-fallback);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.95), inset 0 -2px 6px rgba(60, 120, 200, 0.25), 0 6px 14px rgba(20, 60, 130, 0.18);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nimbus-nav .nv-item {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--nv-muted);
  font: 600 13.5px/1 var(--font-sans);
  letter-spacing: -0.01em;
  padding: 10px 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.2s ease;
  text-decoration: none;
}

.nimbus-nav .nv-item:hover {
  color: var(--nv-ink);
}

.nimbus-nav .nv-item[data-active="true"] {
  color: var(--nv-ink);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nimbus-nav .nv-item:active {
  transform: scale(0.95);
}

.nimbus-nav .nv-ico {
  position: relative;
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  transform: translateY(var(--lift, 0px)) scale(var(--scale, 1));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nimbus-nav .nv-item:hover .nv-ico {
  --lift: -1.5px;
}

.nimbus-nav .nv-item[data-active="true"] .nv-ico {
  --lift: -1px;
  --scale: 1.08;
}

@keyframes nv-plane {
  0% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(3px, -4px) rotate(-14deg) scale(1.12); }
  65% { transform: translate(-2px, 1px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes nv-drop {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(-4px) scale(0.88, 1.15); }
  55% { transform: translateY(2px) scale(1.18, 0.84); }
  80% { transform: translateY(-1px) scale(0.96, 1.04); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes nv-spin {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(195deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes nv-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(90, 175, 255, 0)); transform: scale(1); }
  45% { filter: drop-shadow(0 0 7px rgba(70, 160, 255, 0.85)); transform: scale(1.14); }
}
@keyframes nv-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg) translateY(-2px); }
  55% { transform: rotate(12deg) translateY(-2px); }
  80% { transform: rotate(-6deg); }
}
.nimbus-nav .nv-item[data-play="plane"] .nv-ico svg { animation: nv-plane 0.62s cubic-bezier(0.22, 1, 0.36, 1); }
.nimbus-nav .nv-item[data-play="drop"]  .nv-ico svg { animation: nv-drop  0.58s cubic-bezier(0.22, 1, 0.36, 1); }
.nimbus-nav .nv-item[data-play="spin"]  .nv-ico svg { animation: nv-spin  0.68s cubic-bezier(0.22, 1, 0.36, 1); }
.nimbus-nav .nv-item[data-play="glow"]  .nv-ico svg { animation: nv-glow  0.65s ease; }
.nimbus-nav .nv-item[data-play="wave"]  .nv-ico svg { animation: nv-wave  0.6s ease; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-brand);
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 22px 48px rgba(26, 102, 240, 0.34);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 1.02rem;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
  transition: all 0.28s var(--ease-apple);
}

.btn-secondary:hover {
  border-color: var(--brand-electric);
  color: var(--brand-electric);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* ==========================================================================
   SECTION 1: FULL-BLEED EDGE-TO-EDGE HERO BANNER (NO BORDER, 100% WIDTH)
   + Below-Banner Offer & Bonus Strip
   ========================================================================== */

.hero-section {
  padding: 0 0 64px;
  background-color: var(--bg-pure);
}

/* Full-bleed edge-to-edge banner (no border, no border-radius, 100% viewport width) */
.hero-fullbleed-banner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(12px, 1.8vw, 24px) 0;
  /* Custom Apple Studio Mesh Backdrop that blends seamlessly with banner2.png */
  background:
    radial-gradient(circle at 14% 28%, rgba(26, 102, 240, 0.14) 0%, rgba(26, 102, 240, 0) 48%),
    radial-gradient(circle at 76% 36%, rgba(0, 184, 217, 0.16) 0%, rgba(79, 70, 229, 0.10) 36%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(180deg, #eef4ff 0%, #f5f8ff 52%, #ffffff 100%);
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
}

/* Subtle ambient light orbs inside full-bleed banner */
.hero-fullbleed-banner::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 40, 153, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-fullbleed-inner {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 72px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  position: relative;
  z-index: 2;
}

.hero-banner-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: clamp(12px, 1.5vw, 24px) 0;
}

.hero-banner-text-col .eyebrow-pill {
  font-size: clamp(0.84rem, 1vw, 1.02rem);
  padding: 9px 20px;
  margin-bottom: 22px;
}

.hero-banner-art-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cutout-img {
  width: 114%;
  max-width: 920px;
  height: auto;
  object-fit: contain;
  display: block;
  /* Trim built-in PNG whitespace margins so artwork fills the banner height */
  margin: -5.5% -6% -6.5% 0;
  transform-origin: center center;
  transition: transform 0.6s var(--ease-apple);
}

.hero-fullbleed-banner:hover .hero-cutout-img {
  transform: scale(1.02);
}

/* Below-Banner Content Block ("ที่เหลือต่อลงมา") */
.hero-below-bar {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-price-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: #f8faff;
  border: 1px solid rgba(26, 102, 240, 0.22);
  box-shadow: var(--shadow-xs);
  margin-top: 20px;
}

.hero-price-old {
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.hero-price-now {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-crimson);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 40px;
}

/* 2 Free Bonus Software Dock Cards below Banner */
.hero-bonus-dock {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.bonus-dock-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: all 0.32s var(--ease-apple);
}

.bonus-dock-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
}

.bonus-dock-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.bonus-dock-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(26, 102, 240, 0.1);
  color: var(--brand-electric);
  margin-bottom: 5px;
}

.bonus-dock-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.bonus-dock-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION 2: 4 VERTICAL 9:16 VIDEO MOCKUPS SHOWCASE
   ========================================================================== */

.vertical-mockups-section {
  padding: 76px 0 96px;
  background: linear-gradient(180deg, var(--bg-pure) 0%, var(--bg-apple-gray) 100%);
}

.vertical-mockups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.vertical-mockup-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-pure);
  border-radius: 30px;
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: transform 0.38s var(--ease-apple), box-shadow 0.38s var(--ease-apple), border-color 0.38s ease;
}

.vertical-mockup-item:hover {
  transform: translateY(-8px);
  border-color: var(--border-brand);
  box-shadow: var(--shadow-lg);
}

.mockup-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.mockup-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mockup-ratio-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-apple-gray);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* iPhone 9:16 Bezel Mockup */
.phone-916-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  background: #0d0f1a;
  border: 4px solid #262938;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 32px rgba(15, 20, 35, 0.16);
  overflow: hidden;
  cursor: pointer;
}

/* Dynamic Island Notch inside 9:16 Phone Mockup */
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #05060a;
  border-radius: 999px;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-916-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(9, 11, 22, 0.82) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.phone-916-frame.playing .phone-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.phone-916-frame:hover .phone-play-overlay {
  opacity: 1;
}

.phone-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s var(--ease-apple), background 0.25s ease;
}

.phone-916-frame:hover .phone-play-btn {
  transform: scale(1.08);
  background: #ffffff;
}

.phone-bottom-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  color: #ffffff;
  text-align: left;
  pointer-events: none;
}

.phone-ep-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(26, 102, 240, 0.88);
  color: #fff;
  margin-bottom: 5px;
}

.phone-overlay-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.mockup-Title-box {
  padding: 16px 6px 4px;
  text-align: left;
}

.mockup-series-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}

.mockup-series-genre {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   SECTION 3: APPLE LIQUID RETINA XDR DISPLAY + 3D CONTAINER SCROLL ANIMATION
   (Exact implementation of container-scroll-animation.tsx with โปรแกรม.mp4)
   ========================================================================== */

.xdr-scroll-section {
  position: relative;
  padding: 40px 0 90px;
  background: linear-gradient(180deg, var(--bg-apple-gray) 0%, var(--bg-pure) 100%);
  overflow: hidden;
}

.xdr-ambient-glow {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  height: 620px;
  background: var(--grad-xdr-glow);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.container-scroll-wrapper {
  min-height: 54rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 1.5rem 3rem;
  z-index: 1;
}

.container-scroll-perspective {
  padding: 2rem 0 3rem;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.container-scroll-header {
  max-width: 960px;
  margin: 0 auto 24px;
  text-align: center;
  will-change: transform;
  transition: transform 0.06s linear;
}

.container-scroll-card {
  max-width: 1140px;
  margin: -18px auto 0;
  width: 100%;
  border: 4px solid #6c6c6c;
  padding: 16px;
  background: #222222;
  border-radius: 30px;
  box-shadow:
    0 0 #0000004d,
    0 9px 20px #0000004a,
    0 37px 37px #00000042,
    0 84px 50px #00000026,
    0 149px 60px #0000000a,
    0 233px 65px #00000003;
  transform-origin: center top;
  will-change: transform;
  transition: transform 0.06s linear;
  position: relative;
}

.xdr-camera-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 136px;
  height: 22px;
  background: #141416;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xdr-camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2563eb, #090d16 70%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.container-scroll-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #090915;
  position: relative;
  aspect-ratio: 16 / 10;
}

.container-scroll-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.xdr-hud-bar {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(12, 14, 26, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  z-index: 12;
}

.xdr-hud-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.xdr-hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xdr-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.2s ease;
}

.xdr-ctrl-btn:hover {
  background: rgba(26, 102, 240, 0.85);
  border-color: rgba(56, 189, 248, 0.6);
}

.xdr-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 44px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--border-medium);
}

.xdr-metric-item {
  text-align: left;
  padding-right: 12px;
}

.xdr-metric-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.xdr-metric-value {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 8px;
  background: var(--grad-xdr-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xdr-metric-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SECTION 4: APPLE XDR BENTO & 4-STEP ARCHITECTURE DEEP DIVE
   ========================================================================== */

.xdr-showcase-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 36px;
  align-items: stretch;
}

.xdr-card-surface {
  background: var(--bg-pure);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.xdr-card-dark {
  background: var(--grad-dark-xdr);
  color: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 28px 68px rgba(9, 9, 21, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.xdr-card-pad {
  padding: 34px 34px 24px;
}

.xdr-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.xdr-card-sub {
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.xdr-card-dark .xdr-card-sub {
  color: rgba(255, 255, 255, 0.76);
}

.xdr-media-bleed {
  padding: 0 20px 20px;
}

.xdr-media-bleed img,
.xdr-media-bleed video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.studio-architecture-box {
  background: var(--bg-pure);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 42px;
  margin-bottom: 36px;
}

.arch-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  background: var(--bg-apple-gray);
  padding: 8px;
  border-radius: var(--radius-lg);
}

.arch-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  text-align: left;
  background: transparent;
  color: var(--ink-secondary);
  transition: all 0.28s var(--ease-apple);
}

.arch-tab-btn:hover {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.6);
}

.arch-tab-btn.active {
  background: var(--bg-pure);
  color: var(--ink-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.arch-step-num {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-electric);
  margin-bottom: 4px;
}

.arch-step-title {
  font-size: 1rem;
  font-weight: 800;
  color: inherit;
}

.arch-panel {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  animation: fadeSlideUp 0.38s var(--ease-apple);
}

.arch-panel.active {
  display: grid;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.arch-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(26, 102, 240, 0.09);
  color: var(--brand-electric);
  margin-bottom: 14px;
}

.arch-panel-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink-primary);
}

.arch-panel-desc {
  font-size: 1rem;
  color: var(--ink-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

.arch-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-primary);
  font-weight: 500;
}

.arch-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(13, 159, 110, 0.12);
  color: var(--brand-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.arch-visual-card {
  background: var(--grad-dark-xdr);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 50px rgba(9, 9, 21, 0.18);
}

.arch-code-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 14px;
}

.arch-ui-mock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  margin-top: 14px;
}

.google-flow-banner-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   SECTION 5: BONUS #2 — GEM GEMINI SERIES (CLEAN COHESIVE WHITE-BLUE TONE)
   ========================================================================== */

.gem-xdr-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.gem-info-card {
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(26, 102, 240, 0.18);
  box-shadow: var(--shadow-md);
}

.gem-header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.gem-logo-thumb {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(26, 102, 240, 0.18);
}

.gem-video-frame {
  background: #14141f;
  border-radius: var(--radius-xl);
  padding: 14px;
  border: 3px solid #4a4a5a;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.gem-video-frame video {
  width: 100%;
  border-radius: 22px;
  display: block;
}

/* ==========================================================================
   SECTION 6: COURSE HIGHLIGHT VIDEO (ep7_highlight_v1.MP4)
   ========================================================================== */

.cinema-showcase-box {
  max-width: 1120px;
  margin: 0 auto;
  background: #0d0f1a;
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 3px solid #3a3f58;
  box-shadow: 0 36px 90px rgba(13, 15, 26, 0.22);
}

.cinema-video-inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.cinema-video-inner video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.cinema-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 6px;
  color: #ffffff;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTION 7: 9-MODULE CURRICULUM OVERVIEW
   ========================================================================== */

.curriculum-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-spec-card {
  background: var(--bg-pure);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--ease-apple);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-spec-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
}

.module-spec-card.exclusive {
  background: var(--grad-dark-xdr);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.35);
}

.module-num-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(26, 102, 240, 0.08);
  color: var(--brand-electric);
  margin-bottom: 14px;
  width: fit-content;
}

.module-spec-card.exclusive .module-num-tag {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.module-spec-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.module-spec-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.module-spec-card.exclusive .module-spec-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SECTION 8: VALUE STACK & SPECIAL OFFER 999.- CHECKOUT FUNNEL
   ========================================================================== */

.offer-checkout-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: stretch;
}

.value-stack-box {
  background: var(--bg-pure);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.stack-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.stack-row-item:last-of-type {
  border-bottom: none;
}

.stack-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stack-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.stack-item-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.stack-item-sub {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.stack-item-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(13, 159, 110, 0.1);
  color: var(--brand-emerald);
  white-space: nowrap;
}

.pricing-cta-box {
  background: var(--grad-dark-xdr);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 42px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 32px 80px rgba(9, 9, 21, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-compare-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 22px 0;
  text-align: center;
}

.price-regular-strike {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-big-number {
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.price-big-number span {
  font-size: 1.35rem;
  font-weight: 600;
  color: #38bdf8;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-pure);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-apple-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-electric);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-apple);
}

.faq-answer-inner {
  padding: 0 26px 22px;
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   STICKY BOTTOM CONVERSION BAR & FOOTER
   ========================================================================== */

.sticky-bottom-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 140%);
  width: calc(100% - 32px);
  max-width: 920px;
  background: rgba(17, 19, 34, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.4s var(--ease-apple);
}

.sticky-bottom-bar.visible {
  transform: translate(-50%, 0);
}

.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticky-bar-left img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.site-footer {
  padding: 60px 0 110px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET & MOBILE — NO DISTORTION)
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-fullbleed-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }
  .hero-banner-text-col {
    align-items: center;
    text-align: center;
    padding-bottom: 4px;
  }
  .hero-banner-art-col {
    justify-content: center;
  }
  .hero-cutout-img {
    width: 100%;
    max-width: 680px;
    margin: -3% auto -5%;
  }
  .hero-cta-row {
    justify-content: center;
  }
  .vertical-mockups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xdr-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xdr-showcase-split,
  .arch-panel.active,
  .gem-xdr-grid,
  .offer-checkout-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 68px 0;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nimbus-nav .nv-label {
    display: none;
  }
  .nimbus-nav .nv-item {
    padding: 10px 12px;
  }
  .hero-fullbleed-inner {
    padding: 28px 20px 0;
    gap: 18px;
  }
  .hero-cutout-img {
    max-width: 100%;
  }
  .display-hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.45rem);
  }
  .hero-bonus-dock,
  .xdr-metrics-grid,
  .curriculum-bento-grid,
  .arch-tabs-nav {
    grid-template-columns: 1fr;
  }
  .vertical-mockups-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .vertical-mockup-item {
    padding: 10px;
    border-radius: 22px;
  }
  .container-scroll-wrapper {
    min-height: 34rem;
    padding: 1rem 0.25rem;
  }
  .container-scroll-card {
    padding: 8px;
    border-radius: 22px;
  }
  .xdr-hud-bar {
    position: static;
    margin-top: 10px;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .sticky-bottom-bar {
    border-radius: 22px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-nowrap {
    white-space: normal;
  }
  .vertical-mockups-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}
