/* ─── Feature Page ─── */
.feature-page main {
  padding-top: 0;
}

/* ─── Demo Hero ─── */
.demo-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.demo-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.demo-hero-aurora {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,168,83,0.1), transparent 60%),
              radial-gradient(ellipse 50% 40% at 15% 60%, rgba(212,168,83,0.05), transparent 50%);
}

.demo-hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.12), transparent 60%);
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  animation: demoPulseGlow 4s ease-in-out infinite alternate;
}

@keyframes demoPulseGlow {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.demo-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 60px);
  width: 100%;
}

.demo-hero-text {
  flex: 1 1 40%;
  min-width: 300px;
}

.demo-hero-text .section-label {
  margin-bottom: 12px;
}

.demo-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.92;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.demo-hero-text h1 em {
  font-style: italic;
  color: var(--gold);
}

.demo-hero-text p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 28px;
}

.demo-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s;
}

.demo-hero-cta:hover {
  opacity: 0.85;
}

.demo-hero-cta svg {
  width: 16px;
  height: 16px;
}

/* ─── Demo Container (injected by JS) ─── */
#featureDemo {
  flex: 1 1 55%;
  min-width: 340px;
}

.demo-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

/* ─── Phone Frame ─── */
.demo-phone {
  width: 260px;
  height: 530px;
  background: #0c0c0c;
  border-radius: 44px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(212, 168, 83, 0.06);
}

/* Glass reflection */
.demo-phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 5;
}

.demo-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.demo-notch-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a2e;
}

.demo-screen {
  padding: 48px 16px 16px;
  height: 100%;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ─── Scene HTML Styles ─── */

/* Status header */
.demo-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.demo-status strong {
  color: var(--gold);
}

/* List items */
.demo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.demo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 12px;
}

.demo-item .badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.demo-item.pending .badge {
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.demo-item.approved {
  border-color: rgba(76, 175, 132, 0.2);
  background: rgba(76, 175, 132, 0.06);
}

.demo-item.approved .check {
  color: #4CAF84;
  font-weight: 700;
}

/* Detail card (scene 2) */
.demo-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 14px;
  padding: 16px;
  margin-top: 4px;
}

.demo-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold);
}

.demo-card-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.demo-card-row:last-child {
  border-bottom: none;
}

.demo-card-row span:first-child {
  color: var(--muted);
}

.demo-card-row span:last-child {
  font-weight: 500;
}

/* Action buttons */
.demo-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.demo-btn {
  flex: 1;
  padding: 10px;
  border-radius: 100px;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  text-align: center;
}

.demo-btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.demo-btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Success overlay */
.demo-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 10px;
}

.demo-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(76, 175, 132, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #4CAF84;
}

.demo-success h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.demo-success p {
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
}

/* QR code placeholder */
.demo-qr {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 6px;
}

.demo-qr-inner {
  width: 100%;
  height: 100%;
  background: repeating-conic-gradient(#000 0% 25%, transparent 0% 50%) 0 0 / 8px 8px;
  border-radius: 4px;
}

/* Dashboard stats */
.demo-dashboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.demo-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border);
}

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

.demo-stat-value {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 600;
}

.demo-stat-value.gold {
  color: var(--gold);
}

.demo-stat-value.green {
  color: #4CAF84;
}

/* Notification badge */
.demo-notif {
  position: absolute;
  top: 52px;
  right: 12px;
  background: #ff6b6b;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  z-index: 2;
  line-height: 1.4;
}

/* ─── Narration Panel ─── */
.demo-narration {
  display: flex;
  flex-direction: column;
  max-width: 220px;
}

.demo-caption {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 10px;
  transition: none;
}

.demo-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Progress bar */
.demo-progress-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.demo-progress {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 100%;
}

.demo-progress-anim {
  animation: demoProgress linear forwards;
}

.demo-progress-paused {
  animation-play-state: paused !important;
}

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

/* Controls row */
.demo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-pause-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.demo-pause-btn:hover {
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.08);
}

.demo-dots {
  display: flex;
  gap: 5px;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.demo-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

.demo-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ─── Micro animation on scene mount ─── */
.demo-animate .demo-item {
  opacity: 0;
  animation: demoFadeIn 0.35s ease forwards;
}

.demo-animate .demo-item:nth-child(2) { animation-delay: 0.06s; }
.demo-animate .demo-item:nth-child(3) { animation-delay: 0.12s; }

.demo-animate .demo-card {
  opacity: 0;
  animation: demoFadeIn 0.3s 0.05s ease forwards;
}

.demo-animate .demo-success {
  opacity: 0;
  animation: demoScaleIn 0.35s ease forwards;
}

.demo-animate .demo-stat-row {
  opacity: 0;
  animation: demoFadeIn 0.3s ease forwards;
}

.demo-animate .demo-stat-row:nth-child(2) { animation-delay: 0.06s; }
.demo-animate .demo-stat-row:nth-child(3) { animation-delay: 0.12s; }
.demo-animate .demo-stat-row:nth-child(4) { animation-delay: 0.18s; }
.demo-animate .demo-stat-row:nth-child(5) { animation-delay: 0.24s; }

.demo-animate .demo-btn {
  opacity: 0;
  animation: demoFadeIn 0.25s 0.1s ease forwards;
}

.demo-animate .demo-btn-secondary {
  animation-delay: 0.15s;
}

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

@keyframes demoScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── How It Works ─── */
.demo-scenes {
  padding: 80px 24px 40px;
}

.demo-scenes-inner {
  max-width: 800px;
  margin: 0 auto;
}

.scene-text {
  padding: 32px 0;
  opacity: 0.3;
  transition: opacity 0.5s;
}

.scene-text.visible {
  opacity: 1;
}

.scene-text-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.scene-text h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.scene-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Benefits ─── */
.demo-benefits {
  padding: 80px 24px;
}

.demo-benefits-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}

.benefit-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--gold);
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Responsive ─── */
@media(max-width: 900px) {
  .demo-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .demo-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .demo-hero-text p {
    max-width: none;
  }

  #featureDemo {
    width: 100%;
    min-width: 0;
  }

  .demo-layout {
    flex-direction: column;
    gap: 24px;
  }

  .demo-phone {
    width: 220px;
    height: 450px;
  }

  .demo-narration {
    max-width: 340px;
    text-align: center;
  }

  .demo-controls {
    justify-content: center;
  }

  .demo-caption {
    font-size: clamp(20px, 4vw, 26px);
  }
}

@media(max-width: 480px) {
  .demo-hero {
    padding: 80px 16px 40px;
  }

  .demo-phone {
    width: 190px;
    height: 390px;
  }

  .demo-caption {
    font-size: 20px;
  }

  .scene-text {
    padding: 24px 0;
  }
}

/* ─── Video Hero ─── */
.video-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.video-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-hero-aurora {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,168,83,0.1), transparent 60%),
              radial-gradient(ellipse 50% 40% at 15% 60%, rgba(212,168,83,0.05), transparent 50%);
}

.video-hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.12), transparent 60%);
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: demoPulseGlow 4s ease-in-out infinite alternate;
}

.video-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.video-hero-inner .section-label {
  margin-bottom: 16px;
}

.video-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.video-hero-inner h1 em {
  font-style: italic;
  color: var(--gold);
}

.video-hero-inner > p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 32px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.4), 0 0 60px rgba(212,168,83,0.06);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s;
}

.video-cta:hover {
  opacity: 0.85;
}

.video-cta svg {
  width: 16px;
  height: 16px;
}

@media(max-width: 768px) {
  .video-hero {
    padding: 80px 16px 40px;
  }

  .video-hero-inner > p {
    max-width: none;
  }

  .video-wrap {
    max-width: 100%;
  }
}

@media(max-width: 480px) {
  .video-hero {
    padding: 80px 12px 40px;
  }

  .video-wrap {
    border-radius: 12px;
  }
}
