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

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #fff;
  font-family: 'Kanit', sans-serif;
}

/* ─── Loader ──────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.5);
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff, 0 0 24px #00d4ff;
  animation: pulse-dot 2s ease-in-out infinite;
}

.loader-bar-wrap {
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00d4ff, #c084fc);
  border-radius: 2px;
  transition: width 0.12s linear;
}

.loader-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
}

#loader-pct {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  min-width: 2.5ch;
  text-align: right;
}

.loader-label { color: rgba(255,255,255,0.2); }

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  backdrop-filter: blur(0px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.9);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff, 0 0 24px #00d4ff;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.header-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
}

/* ─── Scroll Section ──────────────────────────────────────────── */
#scroll-sequence { height: 400vh; }

.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── Vignette ────────────────────────────────────────────────── */
.vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%,
      transparent 40%,
      rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,0.4) 0%,
      transparent 20%,
      transparent 80%,
      rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* ─── Text Groups ─────────────────────────────────────────────── */
.text-group {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(680px, 88vw);
  opacity: 0;
  pointer-events: none;

  /* Glass morphism card */
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 3rem 3.5rem 3.25rem;
  box-shadow:
    0 0  0 1px rgba(0, 212, 255, 0.08) inset,
    0 0 40px rgba(0, 212, 255, 0.06),
    0 0 80px rgba(180, 0, 255, 0.05),
    0 24px 60px rgba(0,0,0,0.4);
}

/* เส้นกรอบมุม sci-fi */
.text-group::before,
.text-group::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(0, 212, 255, 0.6);
  border-style: solid;
}
.text-group::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 1.5rem 0 0 0;
}
.text-group::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 1.5rem 0;
}

/* ─── Label ───────────────────────────────────────────────────── */
.text-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 100px;
  padding: 0.35em 1.1em 0.3em;
  margin-bottom: 1.4rem;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 6px #00d4ff;
  flex-shrink: 0;
}

/* ─── Heading ─────────────────────────────────────────────────── */
.text-heading {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;

  /* Gradient text — cyan → white → purple */
  background: linear-gradient(135deg,
    #00d4ff 0%,
    #ffffff 45%,
    #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  filter: drop-shadow(0 2px 24px rgba(0, 212, 255, 0.25));
}

/* ─── Divider ─────────────────────────────────────────────────── */
.text-divider {
  width: 48px;
  height: 2px;
  margin: 0 auto 1.4rem;
  background: linear-gradient(90deg, transparent, #00d4ff, #c084fc, transparent);
  border-radius: 2px;
}

/* ─── Subtitle ────────────────────────────────────────────────── */
.text-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* ─── Scroll Hint ─────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.6;
  animation: hint-fade 2.5s ease-in-out infinite;
}

.scroll-hint__text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.7);
}

.scroll-hint__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.8), transparent);
  animation: hint-line 2.5s ease-in-out infinite;
}

@keyframes hint-fade {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes hint-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════════════════
   SHARED
═══════════════════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,0.35);
  background: rgba(0,212,255,0.07);
  border-radius: 100px;
  padding: 0.35em 1.1em;
  margin-bottom: 1.75rem;
}

.split-heading {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  /* clip chars for animation */
  overflow: hidden;
}

.split-heading .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════════════════════
   SECTION 2 — STATS
═══════════════════════════════════════════════════════ */
.section-stats {
  padding: 5rem 0;
  background: #020208;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
}

.stat-num {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #00d4ff 0%, #fff 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-num small {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.stat-unit {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,212,255,0.3), transparent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   SECTION 3 — INTRO
═══════════════════════════════════════════════════════ */
.section-intro {
  padding: 8rem 0;
  background: #020208;
  position: relative;
  overflow: hidden;
}

.section-intro::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.intro-body {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin-bottom: 4rem;
}

.intro-body strong { color: #00d4ff; font-weight: 700; }
.intro-body em     { color: #c084fc; font-style: normal; font-weight: 600; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.compare-card {
  padding: 2rem 2rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.compare-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.compare-card--old::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
}
.compare-card--new {
  border-color: rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 40px rgba(0,212,255,0.06), 0 0 80px rgba(192,132,252,0.04);
}

.compare-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.compare-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.compare-card--old li { color: rgba(255,255,255,0.35); font-size: 0.9rem; }
.compare-card--old li::before { content: '✕  '; color: rgba(255,100,100,0.6); }
.compare-card--new li { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.compare-card--new li::before { content: '✓  '; color: #00d4ff; }

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.use-cases__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}

.use-cases__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.use-case-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55em 1.2em;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, color 0.3s;
}

.use-case-item:hover {
  border-color: rgba(0,212,255,0.4);
  color: rgba(255,255,255,0.9);
}

.uc-icon { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════
   SECTION 4 — WHY CLAUDE CODE
═══════════════════════════════════════════════════════ */
.section-why {
  padding: 8rem 0;
  background: #030310;
  position: relative;
  overflow: hidden;
}

.section-why::before {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,132,252,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2.25rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}

.why-card:hover {
  border-color: rgba(192,132,252,0.25);
  transform: translateY(-4px);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.why-card:hover::before { opacity: 1; }

.why-card__num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(192,132,252,0.15);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 0.85rem;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════
   SECTION 4b — USE CASES
═══════════════════════════════════════════════════════ */
.section-usecases {
  padding: 8rem 0;
  background: #030310;
  position: relative;
  overflow: hidden;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.5);
  line-height: 1.85;
  max-width: 580px;
  margin-bottom: 3.5rem;
}

.section-desc strong { color: rgba(255,255,255,0.85); font-weight: 700; }

.uc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.uc-card {
  padding: 2rem 2rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.uc-card:hover { transform: translateY(-4px); }

.uc-card--cyan  { border-color: rgba(0,212,255,0.18);   background: rgba(0,212,255,0.04); }
.uc-card--purple{ border-color: rgba(192,132,252,0.18); background: rgba(192,132,252,0.04); }

.uc-card__icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  display: block;
}

.uc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.uc-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

/* ═══════════════════════════════════════════════════════
   SECTION 4c+d — PRODUCT SHOWCASE (unified)
═══════════════════════════════════════════════════════ */
.section-product-showcase {
  background: #050508;
}

.section-product-head {
  padding: 6rem 0 1.5rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   SECTION 4d — PRODUCT CANVAS SEQUENCE
═══════════════════════════════════════════════════════ */
#scroll-sequence-product { height: 400vh; }

.sticky-container--dark {
  background: #050508;
}

/* ─── Ambient background glow ────────────────────────── */
.product-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0, 212, 255, 0.04) 0%,
    rgba(192, 132, 252, 0.03) 40%,
    transparent 70%);
  pointer-events: none;
}

/* ─── iPad landscape mockup ──────────────────────────── */
.ipad-wrapper {
  position: relative;
  z-index: 2;
  width: min(86vw, 900px);
}

.ipad-frame {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #2a2a2e 0%, #1a1a1e 60%, #111114 100%);
  border-radius: 36px;
  padding: 26px 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 0 2.5px rgba(0,0,0,0.8),
    0 60px 140px rgba(0,0,0,0.9),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 120px rgba(0,212,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.4);
}

/* Side button */
.ipad-frame::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 28%;
  width: 3px;
  height: 8%;
  background: #2a2a2e;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.ipad-camera {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d0d10;
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow:
    inset 0 0 3px rgba(0,212,255,0.15),
    0 0 6px rgba(0,212,255,0.08);
}

.ipad-screen {
  width: 100%;
  aspect-ratio: 1264 / 720;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}

#product-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Caption pill ───────────────────────────────────── */
.product-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  animation: captionPulse 2.5s ease-in-out infinite;
}

.product-caption__tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.65);
  backdrop-filter: blur(10px);
  background: rgba(0, 212, 255, 0.04);
}

@keyframes captionPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════
   SECTION 5b — TECH STACK DESCRIPTIONS
═══════════════════════════════════════════════════════ */
.section-techstack {
  padding: 8rem 0;
  background: #020208;
}

.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tech-card {
  padding: 1.75rem 1.75rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s, transform 0.3s;
}

.tech-card:hover { transform: translateY(-4px); }

.tech-card--cyan   { border-color: rgba(0,212,255,0.2);   background: rgba(0,212,255,0.04); }
.tech-card--purple { border-color: rgba(192,132,252,0.2); background: rgba(192,132,252,0.04); }

.tech-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.tech-card__icon { font-size: 1.75rem; flex-shrink: 0; }

.tech-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.tech-card__type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.15rem;
}

.tech-card p {
  font-size: 0.87rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

.tech-card p code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.82em;
  color: #00d4ff;
  background: rgba(0,212,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════
   SECTION 5c — ASSETS
═══════════════════════════════════════════════════════ */
.section-assets {
  padding: 8rem 0;
  background: #030310;
}

.assets-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.assets-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}

.assets-lead strong { color: #fff; font-weight: 700; }

.assets-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.asset-check {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.asset-check__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.asset-check__icon--ok   { background: rgba(0,212,255,0.15);   color: #00d4ff; }
.asset-check__icon--warn { background: rgba(255,189,46,0.15);  color: #ffbd2e; }

.asset-check div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.asset-check strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

.asset-check span {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.asset-check span code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.85em;
  color: #00d4ff;
  background: rgba(0,212,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.assets-prompt__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.85rem;
}

/* ═══════════════════════════════════════════════════════
   SECTION 5 — MARQUEE
═══════════════════════════════════════════════════════ */
.section-tech {
  padding: 3.5rem 0;
  background: #020208;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.tech-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
}

.marquee-wrapper {
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-badge {
  padding: 0.55em 1.4em;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.tech-badge--cyan {
  border-color: rgba(0,212,255,0.3);
  color: #00d4ff;
  background: rgba(0,212,255,0.06);
}

.tech-badge--purple {
  border-color: rgba(192,132,252,0.3);
  color: #c084fc;
  background: rgba(192,132,252,0.06);
}

/* ═══════════════════════════════════════════════════════
   SECTION 6 — STEPS
═══════════════════════════════════════════════════════ */
.section-steps {
  padding: 8rem 0;
  background: #020208;
}

.steps-timeline {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 64px 2px 1fr;
  gap: 0 2rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.step-item:last-child { padding-bottom: 0; }

.step-num {
  font-size: 1rem;
  font-weight: 900;
  color: #00d4ff;
  letter-spacing: 0.1em;
  padding-top: 0.1rem;
  text-align: right;
}

.step-line {
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,212,255,0.6) 0%, rgba(192,132,252,0.3) 100%);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
  margin: 0.25rem 0;
}

.step-content {
  min-width: 0;
  grid-column: 3; /* pin ไว้ column 3 เสมอ แม้ step-line จะ display:none */
  padding-top: 0;
  padding-left: 0.5rem;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.85rem;
}

.step-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(192,132,252,0.7);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 100px;
  padding: 0.25em 0.9em;
  margin-bottom: 1.25rem;
}

/* ─── Code Box ────────────────────────────────────────────────── */
.code-box {
  border-radius: 0.875rem;
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.code-box__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-box__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.code-box__dot:nth-child(1) { background: rgba(255, 95, 87, 0.7); }
.code-box__dot:nth-child(2) { background: rgba(255, 189, 46, 0.7); }
.code-box__dot:nth-child(3) { background: rgba(40, 201, 64, 0.7); }

.code-box__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 0.25rem;
}

.code-box pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-x: auto;
}

.code-box code {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  white-space: pre;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   SECTION 7 — PRO TIPS
═══════════════════════════════════════════════════════ */
.section-tips {
  padding: 8rem 0;
  background: #030310;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tip-card {
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
}

.tip-card__glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  pointer-events: none;
}
.tip-card__glow--cyan   { background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%); }
.tip-card__glow--purple { background: radial-gradient(circle, rgba(192,132,252,0.12) 0%, transparent 70%); }

.tip-icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.tip-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
}

.tip-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

/* ═══════════════════════════════════════════════════════
   SECTION 8 — CTA
═══════════════════════════════════════════════════════ */
.section-cta {
  padding: 10rem 0 8rem;
  text-align: center;
  background: #020208;
  position: relative;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(0,212,255,0.07) 0%,
    rgba(192,132,252,0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}

.cta-heading {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #00d4ff 0%, #fff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.cta-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

.cta-x {
  color: rgba(0,212,255,0.4);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 768px
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Header ── */
  .site-header { padding: 1rem 1.25rem; }
  .header-nav  { display: none; }

  /* ── Container ── */
  .container { padding: 0 1.25rem; }

  /* ── Section paddings ── */
  .section-intro,
  .section-why,
  .section-usecases,
  .section-product-intro,
  .section-techstack,
  .section-assets,
  .section-steps,
  .section-tips { padding: 5rem 0; }
  .section-cta  { padding: 6rem 0 5rem; }

  /* ── Hero text group ── */
  .text-group {
    width: min(92vw, 480px);
    padding: 1.75rem 1.5rem 2rem;
  }
  .text-heading { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .text-sub     { font-size: 0.9rem; line-height: 1.7; }

  /* ── Stats — 2×2 grid ── */
  .stats-grid { flex-wrap: wrap; }
  .stat-item  { flex: 0 0 50%; padding: 1.5rem 1rem; }
  .stat-divider { display: none; }

  /* ── Compare — stack ── */
  .compare-grid { grid-template-columns: 1fr; gap: 1rem; }
  .compare-vs   { display: none; }

  /* ── Why grid — 1 col ── */
  .why-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* ── Use-case cards — 1 col ── */
  .uc-cards { grid-template-columns: 1fr; gap: 1rem; }

  /* ── Product showcase head ── */
  .section-product-head { padding: 5rem 0 2.5rem; }
  .section-product-head .section-desc { margin-left: auto; margin-right: auto; }

  /* ── iPad mockup ── */
  .ipad-wrapper { width: 92vw; }
  .ipad-frame   { border-radius: 22px; padding: 16px 13px; }
  .ipad-camera  { top: 7px; width: 6px; height: 6px; }
  .ipad-frame::before { display: none; }
  .product-caption { bottom: 1.5rem; }

  /* ── Tech stack — 1 col ── */
  .tech-cards { grid-template-columns: 1fr; gap: 1rem; }

  /* ── Assets — 1 col ── */
  .assets-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  /* ── Steps ── */
  .step-item { grid-template-columns: 40px 2px 1fr; gap: 0 1rem; padding-bottom: 2.5rem; }
  .step-num  { font-size: 0.85rem; }
  .code-box code { font-size: 0.75rem; }

  /* ── Tips — 1 col ── */
  .tips-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* ── CTA ── */
  .cta-stack { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 480px
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Section paddings ── */
  .section-intro,
  .section-why,
  .section-usecases,
  .section-techstack,
  .section-assets,
  .section-steps,
  .section-tips { padding: 4rem 0; }

  /* ── Stats — 1 col ── */
  .stat-item { flex: 0 0 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .stat-item:last-child { border-bottom: none; }

  /* ── Steps tighter ── */
  .step-item { grid-template-columns: 32px 2px 1fr; gap: 0 0.75rem; }

  /* ── Hero text group ── */
  .text-group { padding: 1.5rem 1.25rem 1.75rem; }
  .text-heading { font-size: clamp(1.6rem, 8vw, 2.2rem); }

  /* ── iPad mockup smaller ── */
  .ipad-wrapper { width: 96vw; }
  .ipad-frame   { border-radius: 16px; padding: 12px 10px; }
}
