/* ==========================================================================
   Zero Cut — Product Website Stylesheet
   Modern, High-Performance, Dark Obsidian CSS (#09090B)
   ========================================================================== */

:root {
  --bg-obsidian: #09090b;
  --bg-surface: #141417;
  --bg-elevated: #1e1e24;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-crimson: #f43f5e;
  --accent-crimson-glow: rgba(244, 63, 94, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-center { text-align: center; }

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-top-left {
  top: -150px;
  left: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-cyan-glow), transparent 70%);
}

.glow-top-right {
  top: 100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-emerald-glow), transparent 70%);
}

.glow-center {
  top: 45%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 16px var(--accent-emerald-glow);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-accent {
  color: var(--accent-emerald);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  z-index: 99;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: #fafafa;
  color: #09090b;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.btn-emerald {
  background: var(--accent-emerald);
  color: #09090b;
}

.btn-emerald:hover {
  background: #14d695;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-emerald-glow);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 8px 18px;
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 28px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  padding-top: clamp(20px, 3.5vw, 42px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.hero-container-landscape {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  gap: 16px;
}

.hero-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title-compact {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
}

.gradient-text {
  background: linear-gradient(135deg, #fafafa 30%, var(--accent-cyan) 75%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description-compact {
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 720px;
}

.hero-cta-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.hero-specs-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: 6px;
}

.spec-pill {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.spec-pill strong {
  color: var(--text-primary);
  font-weight: 700;
  margin-right: 2px;
}

/* ==========================================================================
   Interactive Hero Landscape Smartphone Studio Simulator
   ========================================================================== */
.hero-simulator-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.landscape-phone-chassis {
  width: 100%;
  max-width: 1060px;
  background: #0c0d12;
  border: 10px solid #1c1c23;
  border-radius: 36px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 50px rgba(16, 185, 129, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
}

/* Hardware Accent: Landscape Notch on Left Bezel */
.hardware-notch {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 38px;
  background: #000000;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 20;
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notch-lens {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0a1128;
  box-shadow: 0 0 2px #38bdf8;
}

.notch-sensor {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #18181b;
}

/* Inner Phone Screen Area */
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #09090b;
  padding: 10px 14px 10px 22px;
  box-sizing: border-box;
  min-height: 435px;
}

/* Top Studio Navigation HUD */
.phone-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.back-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.back-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.project-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.project-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.project-subtitle {
  font-size: 0.65rem;
  color: var(--accent-emerald);
  font-weight: 500;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-crimson);
  box-shadow: 0 0 10px var(--accent-crimson);
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.rec-timer {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rec-quality-chip {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-emerald);
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-audio-meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.meter-bar {
  width: 3px;
  background: var(--accent-emerald);
  border-radius: 1px;
  transition: height var(--transition-fast);
}

/* Phone Main Split Workspace (Left: Stage + Scene Strip; Right: Inspector) */
.phone-workspace-split {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 12px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.workspace-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

/* Widescreen 16:9 Stage Screen */
.sim-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sim-bg-layer {
  position: absolute;
  inset: 0;
  background: url('assets/dock.jpg') center/cover no-repeat;
  transition: background var(--transition-normal), filter var(--transition-normal);
}

.sim-bg-layer.bg-dock {
  background-image: url('assets/dock.jpg');
}

.sim-bg-layer.bg-studio {
  background-image: url('assets/studio.jpg');
}

.sim-bg-layer.bg-sunset {
  background-image: url('assets/sunset.jpg');
}

.sim-bg-layer.bg-bokeh {
  background-image: radial-gradient(circle at 70% 30%, #38bdf8 0%, #09090b 60%);
  filter: blur(28px);
  transform: scale(1.15);
}

/* Layer 1: Behind-Presenter Graphic in 16:9 */
.sim-graphic-layer {
  position: absolute;
  top: 8%;
  left: 6%;
  max-width: 58%;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.sim-bullet-card {
  background: rgba(15, 15, 18, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-tag {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}

.card-title {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.1;
}

.sim-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sim-bullet {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--text-secondary);
  opacity: 0.35;
  transform: translateX(-4px);
  transition: all var(--transition-normal);
}

.sim-bullet.active {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-primary);
}

.bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* Layer 2: Presenter Silhouette Avatar in 16:9 */
.sim-presenter-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.presenter-silhouette {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
}

.presenter-head {
  width: 74px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(180deg, #38bdf8 0%, #1e40af 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.presenter-torso {
  width: 140px;
  height: 130px;
  border-radius: 70px 70px 0 0;
  background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
  margin-top: -12px;
}

.presenter-badge {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fafafa;
  background: rgba(9, 9, 11, 0.75);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-top: -24px;
  z-index: 4;
}

/* Presenter Layouts in 16:9 */
.layout-circle-right .presenter-silhouette {
  bottom: 8%;
  right: 5%;
  transform: scale(0.62);
}

.layout-circle-right .presenter-silhouette::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
}

.layout-circle-left .presenter-silhouette {
  bottom: 8%;
  left: 5%;
  transform: scale(0.62);
}

.layout-circle-left .presenter-silhouette::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
}

.layout-full-screen .presenter-silhouette {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
}

.layout-corner-pip .presenter-silhouette {
  bottom: 8%;
  right: 5%;
  transform: scale(0.48);
  border: 2px solid var(--accent-emerald);
  border-radius: 10px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.45);
}

/* Layer 3: Lower-Third in 16:9 */
.sim-lower-third {
  position: absolute;
  bottom: 4px;
  left: 6px;
  right: 6px;
  z-index: 5;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-emerald);
  border-radius: 6px;
  padding: 3px 8px;
}

.lt-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lt-subtitle {
  font-size: 0.55rem;
  color: var(--text-secondary);
}

/* Watermark */
.sim-watermark {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(9, 9, 11, 0.65);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.wm-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* Scene Selector Strip (Left Panel Footer) */
.sim-scene-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow-x: auto;
  flex-shrink: 0;
}

.scene-strip-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  margin-right: 2px;
  flex-shrink: 0;
}

.scene-pills-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
}

.scene-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.scene-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.scene-pill.active {
  background: var(--text-primary);
  color: #09090b;
  border-color: var(--text-primary);
  font-weight: 700;
}

.scene-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.scene-pill.active .scene-dot {
  background: #09090b;
}

.scene-dur {
  font-size: 0.6rem;
  opacity: 0.7;
  font-family: var(--font-mono);
}

.add-scene-pill {
  border-style: dashed;
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

/* Right Panel: Segmented Tabs & Inspector */
.workspace-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
}

.inspector-tabs-header {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.inspector-tab {
  flex: 1;
  padding: 4px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--transition-fast);
}

.inspector-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.inspector-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  justify-content: space-between;
}

.control-row-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.ctrl-subhead {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 95px;
  flex-shrink: 0;
  text-align: left;
}

.btn-group {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.btn-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-chip.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.inspector-actions-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-xs {
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 6px;
}

/* Tab 2: Script & Teleprompter Notes */
.script-editor-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  text-align: left;
}

.script-box-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.script-words {
  color: var(--text-muted);
  font-weight: 500;
}

.script-textarea {
  width: 100%;
  height: 95px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.72rem;
  padding: 8px;
  font-family: var(--font-sans);
  line-height: 1.4;
  resize: none;
  box-sizing: border-box;
}

.script-textarea:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

.script-footer-hint {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Tab 3: Video Engine Specs */
.engine-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
}

.spec-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.spec-k {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.spec-v {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-v.text-emerald {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-emerald);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.emerald-glow {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.cyan-glow {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.crimson-glow {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-crimson);
  box-shadow: 0 0 20px var(--accent-crimson-glow);
}

.amber-glow {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.purple-glow {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.blue-glow {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.feature-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Before vs After Comparison Slider
   ========================================================================== */
.comparison-section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 100px) 0;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 23, 0.6) 50%, transparent);
}

.comparison-container {
  max-width: 860px;
  margin: 0 auto;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comp-label {
  position: absolute;
  top: 18px;
  z-index: 10;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.before-label {
  left: 18px;
  background: rgba(9, 9, 11, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.after-label {
  right: 18px;
  background: rgba(16, 185, 129, 0.85);
  color: #09090b;
}

.after-img {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
  z-index: 2;
  transition: width 0.05s ease-out;
}

/* Mock Raw Clutter View */
.sim-raw-view {
  width: 860px;
  height: 100%;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.raw-clutter {
  position: absolute;
  top: 30%;
  left: 20%;
}

.clutter-tag {
  font-size: 0.85rem;
  background: rgba(244, 63, 94, 0.16);
  color: var(--accent-crimson);
  border: 1px dashed var(--accent-crimson);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.raw-person {
  position: absolute;
  bottom: 0;
  right: 32%;
  width: 220px;
  height: 280px;
  background: #3f3f46;
  border-radius: 110px 110px 0 0;
}

/* Mock Studio View */
.sim-studio-view {
  width: 860px;
  height: 100%;
  background: url('assets/dock.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.studio-graphic {
  position: absolute;
  top: 25%;
  left: 14%;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
}

.chart-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 48px;
  margin-top: 8px;
}

.cbar {
  width: 14px;
  background: var(--accent-emerald);
  border-radius: 3px;
}

.studio-person {
  position: absolute;
  bottom: 0;
  right: 32%;
  width: 220px;
  height: 280px;
  background: linear-gradient(180deg, #38bdf8 0%, #1e40af 100%);
  border-radius: 110px 110px 0 0;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.handle-line {
  flex: 1;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.handle-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

/* ==========================================================================
   Architecture Section
   ========================================================================== */
.architecture-section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 120px) 0;
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.ios-card {
  border-top: 3px solid var(--accent-cyan);
}

.android-card {
  border-top: 3px solid var(--accent-emerald);
}

.arch-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.ios-card .arch-badge { color: var(--accent-cyan); }
.android-card .arch-badge { color: var(--accent-emerald); }

.arch-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.arch-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  flex: 1;
}

.arch-specs li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.arch-specs code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

.arch-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.chip-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.chip-zinc {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* ==========================================================================
   Workflow Section
   ========================================================================== */
.workflow-section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 100px) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 120px) 0;
}

.in-app-notice {
  max-width: 740px;
  margin: 0 auto 36px auto;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.in-app-notice svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.in-app-notice strong {
  color: var(--text-primary);
}

.pricing-disclaimer {
  max-width: 720px;
  margin: 32px auto 0 auto;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 460px));
  justify-content: center;
  gap: 28px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pro-card {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 35px var(--accent-emerald-glow);
}

.pro-tag {
  position: absolute;
  top: -13px;
  right: 32px;
  background: var(--accent-emerald);
  color: #09090b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.tier-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pro-badge {
  color: var(--accent-emerald);
}

.tier-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.tier-price {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tier-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.tier-features li {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.tier-features .muted-feat {
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 100px) 0;
}

.faq-container {
  max-width: 780px;
}

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

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.chevron {
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  color: var(--text-secondary);
}

.faq-item.open .chevron {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Download CTA Card
   ========================================================================== */
.download-section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 120px) 0;
}

.download-card {
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.download-content {
  max-width: 580px;
}

.emerald-text {
  color: var(--accent-emerald);
}

.download-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 12px 0 16px;
}

.download-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  transition: all var(--transition-fast);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn-text .subtext {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.store-btn-text .maintext {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.large-logo-glow {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  box-shadow: 0 0 50px var(--accent-emerald-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  background: rgba(9, 9, 11, 0.9);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 14px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 968px) {
  .hero-container-landscape {
    text-align: center;
  }

  .landscape-phone-chassis {
    border-radius: 24px;
    border-width: 7px;
  }

  .phone-screen {
    padding: 8px 10px 8px 14px;
    min-height: auto;
  }

  .phone-workspace-split {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .phone-top-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .top-bar-right {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }

  .arch-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
  }

  .store-buttons {
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
}

/* ==========================================================================
   Real-Time Studio Enhancements & Camera Stream
   ========================================================================== */

/* REC Status Badge & Chip */
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--accent-crimson);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.rec-badge.recording .rec-indicator {
  background: var(--accent-crimson);
  box-shadow: 0 0 8px var(--accent-crimson);
  animation: pulse-crimson 1.2s infinite;
}

.rec-badge.paused {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.rec-badge.paused .rec-indicator {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: none;
}

.rec-chip-fps {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Real-Time Transport Bar */
.sim-transport-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(9, 9, 11, 0.95);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.transport-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.transport-btn:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.3);
}

.transport-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.transport-btn.btn-rec {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.5);
  color: #ff6b81;
}

.transport-btn.btn-rec:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.3);
}

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

.btn-camera-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-camera-toggle:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--accent-emerald);
}

.btn-camera-toggle.active {
  background: var(--accent-emerald);
  color: #09090b;
}

/* Live Webcam Video Inside Presenter Layer */
.webcam-feed {
  position: absolute;
  object-fit: cover;
  transform: scaleX(-1);
  transition: all var(--transition-normal);
  z-index: 2;
}

.layout-circle-right .webcam-feed {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  bottom: 18%;
  right: 6%;
  border: 3px solid var(--accent-emerald);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
}

.layout-circle-left .webcam-feed {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  bottom: 18%;
  left: 6%;
  border: 3px solid var(--accent-emerald);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
}

.layout-full-screen .webcam-feed {
  width: 100%;
  height: 100%;
  inset: 0;
  mask-image: radial-gradient(ellipse at 50% 65%, black 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 65%, black 45%, transparent 75%);
}

.layout-corner-pip .webcam-feed {
  width: 110px;
  height: 140px;
  bottom: 16%;
  right: 6%;
  border-radius: 12px;
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Animated Realistic Avatar */
.presenter-head {
  position: relative;
  overflow: hidden;
}

.avatar-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.avatar-eyes {
  display: flex;
  gap: 22px;
  margin-top: 15px;
}

.avatar-eyes .eye {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: eye-blink 4s infinite ease-in-out;
}

@keyframes eye-blink {
  0%, 96%, 100% { transform: scaleY(1); }
  98% { transform: scaleY(0.1); }
}

.avatar-mouth {
  width: 14px;
  height: 4px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  animation: mouth-talk 0.8s infinite alternate ease-in-out;
}

@keyframes mouth-talk {
  0% { transform: scaleX(0.8) scaleY(0.6); }
  100% { transform: scaleX(1.3) scaleY(1.8); }
}

.presenter-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  opacity: 0.6;
  animation: breathe-glow 3s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes breathe-glow {
  0% { opacity: 0.3; transform: scale(0.97); }
  100% { opacity: 0.85; transform: scale(1.03); filter: drop-shadow(0 0 12px var(--accent-cyan)); }
}

/* Lower Third Editable State */
.lt-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lt-edit-badge {
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  padding: 2px 5px;
  border-radius: 4px;
  opacity: 0.7;
  pointer-events: none;
}

.lt-title:focus,
.lt-subtitle:focus {
  outline: 1px dashed var(--accent-emerald);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Pause Banner */
.sim-pause-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.25s ease-out;
}

.pause-icon {
  font-size: 1.8rem;
  color: #f59e0b;
  margin-bottom: 6px;
}

.pause-text {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f59e0b;
}

.pause-hint {
  font-size: 0.68rem;
  color: var(--text-secondary);
  max-width: 220px;
  margin-top: 4px;
}

/* Variant B: Dynamic Data Chart */
.sim-chart-card {
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 240px;
  position: absolute;
  top: 14%;
  left: 6%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 90px;
  margin-top: 12px;
  padding-bottom: 20px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  width: 28%;
}

.chart-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent-emerald) 0%, rgba(16, 185, 129, 0.4) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.chart-bar-fill.muted-bar {
  background: linear-gradient(180deg, #71717a 0%, rgba(113, 113, 122, 0.3) 100%);
  box-shadow: none;
}

.col-lbl {
  position: absolute;
  bottom: 0;
  font-size: 0.55rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Variant C: Teleprompter */
.sim-teleprompter {
  position: absolute;
  top: 14%;
  left: 6%;
  right: 6%;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 4;
}

.prompter-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.prompter-tag {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.8px;
}

.prompter-speed {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.prompter-scroller {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 80px;
  overflow: hidden;
}

.prompter-line {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.prompter-line.active {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fafafa;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Tutorial Section Styles
   ========================================================================== */
.tutorial-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  position: relative;
  z-index: 1;
}

.emerald-text {
  color: var(--accent-emerald) !important;
}

.tutorial-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tut-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tut-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.tut-tab.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--accent-emerald);
  color: #fafafa;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.tut-tab-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.tut-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.35s ease-out;
}

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

.tut-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.tut-heading {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.tut-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tut-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.tut-substep {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.tut-substep .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.tut-protip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.protip-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-cyan);
  color: #09090b;
  padding: 3px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Tutorial Visual Mockups */
.tut-mockup {
  background: #09090b;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.landscape-mockup {
  height: 280px;
}

.tut-mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.tut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tut-dot.red { background: #f43f5e; }
.tut-dot.yellow { background: #f59e0b; }
.tut-dot.green { background: #10b981; }

.tut-mock-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tut-mock-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  height: calc(100% - 35px);
}

.tut-split-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 12px;
}

.mock-item {
  font-size: 0.72rem;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.mock-item.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-weight: 700;
}

.mock-btn {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 6px;
  text-align: center;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 6px;
}

.mock-preview-box {
  background: #141417;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.mock-layer-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.mock-bullet-preview {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.mock-bullet-preview .highlight {
  color: #fafafa;
  font-weight: 700;
}

.mock-avatar-pip {
  align-self: flex-end;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

.portrait-mockup {
  height: 320px;
  display: flex;
  flex-direction: column;
}

.mock-hud-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mock-relight-tag {
  color: var(--accent-cyan);
  font-weight: 700;
}

.mock-portrait-stage {
  flex: 1;
  background: #141417;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.mock-chart-layer {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 10px;
  width: 170px;
}

.layer-pill {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.mock-bars-visual {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 45px;
}

.mbar {
  flex: 1;
  background: var(--accent-cyan);
  border-radius: 3px 3px 0 0;
}

.mock-presenter-circle {
  position: absolute;
  bottom: 22%;
  right: 12%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(9, 9, 11, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.mock-avatar-icon {
  font-size: 1.5rem;
}

.mock-lt-box {
  background: rgba(9, 9, 11, 0.9);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-emerald);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--text-primary);
}

/* Rec Mockup */
.rec-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock-rec-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-flow-step {
  background: #141417;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
}

.rec-flow-step p {
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-top: 4px;
}

.rf-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.rf-badge.red {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-crimson);
}

.rf-badge.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.rf-arrow {
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.rf-finish-pill {
  text-align: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
}

/* Export Mockup */
.export-mockup {
  text-align: center;
}

.export-success-badge {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.export-success-badge h4 {
  font-size: 1.1rem;
  color: #fafafa;
  margin-top: 8px;
}

.file-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-top: 4px;
}

.export-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.estat {
  background: #141417;
  padding: 10px;
  border-radius: 8px;
}

.enum {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #fafafa;
  display: block;
}

.elbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.export-share-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 50px;
}

/* ==========================================================================
   Modern HTML5 <dialog> Styles & Backdrop
   ========================================================================== */
dialog.modal-dialog {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  max-width: 520px;
  width: 90vw;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 9999;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-badge-success {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fafafa;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fafafa;
}

.sim-export-preview {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #09090b;
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.preview-stage-snapshot {
  width: 100%;
  height: 100%;
  background: url('assets/dock.jpg') center/cover no-repeat;
  filter: brightness(0.9);
}

.preview-overlay-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(9, 9, 11, 0.8);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 4px 8px;
  border-radius: 4px;
}

.export-file-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Guided Tour Modal */
.tour-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour-step-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.tour-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fafafa;
}

.tour-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tour-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tour-footer {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tour-dots {
  display: flex;
  gap: 8px;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.tour-dot.active {
  background: var(--accent-emerald);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--accent-emerald);
}

@media (max-width: 900px) {
  .tut-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Motion Accessibility (modern-web-guidance)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pulse-dot,
  .rec-indicator {
    animation: none;
  }
}
