/* ==========================================================================
   🏛️ AI Portfolio Studio — Product Design Constitution (Phase 32)
   Calm, editorial, tactile, typography-led visual identity for the generator product.
   Explicitly separated from the diverse visual worlds of generated portfolios.
   ========================================================================== */

:root {
  /* Obsidian Void & Solar Gold Core Palette */
  --space-void: #06070B;
  --solar-gold: #F5A623;
  --solar-flare: #FFB020;
  --solar-amber: #FF8C00;
  --product-bg: #06070B;
  --product-surface: rgba(14, 18, 28, 0.78);
  --product-surface-alt: #131826;
  --product-surface-muted: #1A2234;
  --product-text: #FFFFFF;
  --product-text-muted: #F1F5F9;
  --product-text-subtle: #E2E8F0;
  
  /* Accent & Interaction Tokens */
  --product-accent: #F5A623;
  --product-accent-hover: #FFB020;
  --product-accent-subtle: rgba(245, 166, 35, 0.12);
  --product-focus-ring: #F5A623;
  
  /* Borders & Structure */
  --product-border: rgba(245, 166, 35, 0.18);
  --product-border-strong: rgba(245, 166, 35, 0.35);
  --product-radius-sm: 6px;
  --product-radius-md: 12px;
  --product-radius-lg: 18px;
  --product-radius-pill: 9999px;
  
  /* Elevation Shadows */
  --product-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --product-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --product-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.75);
  
  /* Typography System — Sleek, modern, balanced scale */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   🌙 DARK THEME TOKENS & OVERRIDES (Eye-Friendly Obsidian Slate Design)
   ========================================================================== */
:root[data-theme="dark"], body[data-theme="dark"], [data-theme="dark"] {
  /* Dark Mode Base Ink & Surfaces */
  --product-bg: #07090E;
  --product-surface: #0F172A;
  --product-surface-alt: #1E293B;
  --product-surface-muted: #334155;
  --product-text: #FFFFFF;
  --product-text-muted: #F1F5F9;
  --product-text-subtle: #E2E8F0;
  
  /* Accent & Interaction Tokens */
  --product-accent: #38BDF8;
  --product-accent-hover: #0284C7;
  --product-accent-subtle: rgba(56, 189, 248, 0.12);
  --product-focus-ring: #38BDF8;
  
  /* Borders & Structure */
  --product-border: rgba(255, 255, 255, 0.1);
  --product-border-strong: rgba(56, 189, 248, 0.35);
  
  /* Elevation Shadows */
  --product-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --product-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --product-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .product-mesh-layer {
  background-image: radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
}

[data-theme="dark"] .ref-overview-card,
[data-theme="dark"] .ref-workflow-card,
[data-theme="dark"] .ref-step-card,
[data-theme="dark"] .ref-plan-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .customizer-card,
[data-theme="dark"] .ref-universe-card {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #F8FAFC !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .ref-overview-card h3,
[data-theme="dark"] .ref-workflow-card h3,
[data-theme="dark"] .ref-step-card h3,
[data-theme="dark"] .ref-plan-card h3,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .ref-universe-card h3 {
  color: #F8FAFC !important;
}

[data-theme="dark"] .ref-overview-card p,
[data-theme="dark"] .ref-workflow-card p,
[data-theme="dark"] .ref-step-card p,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .ref-universe-card p {
  color: #94A3B8 !important;
}

[data-theme="dark"] .auth-modal-card,
[data-theme="dark"] .view-card,
[data-theme="dark"] .settings-panel-card {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0B1120 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  background: #0F172A !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Landing Page Sections & Top Nav Cosmic Spatial Overrides */
[data-theme="dark"] .reference-top-nav,
[data-theme="light"] .reference-top-nav,
.reference-top-nav {
  background: rgba(5, 7, 16, 0.65) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-bottom: 1px solid rgba(245, 166, 35, 0.25) !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 166, 35, 0.08) !important;
}

[data-theme="dark"] .nav-brand-text,
[data-theme="light"] .nav-brand-text,
.nav-brand-text {
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Syne', sans-serif) !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 16px rgba(245, 166, 35, 0.45) !important;
}

[data-theme="dark"] .nav-link-item,
[data-theme="light"] .nav-link-item,
.nav-link-item {
  color: rgba(241, 245, 249, 0.85) !important;
  font-family: var(--font-display, 'Syne', sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  transition: all 0.2s ease !important;
}

[data-theme="dark"] .nav-link-item:hover,
[data-theme="light"] .nav-link-item:hover,
.nav-link-item:hover {
  color: #F5A623 !important;
  text-shadow: 0 0 14px rgba(245, 166, 35, 0.7) !important;
}

[data-theme="dark"] .ref-speakers-section {
  background-color: transparent !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .ref-section-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .ref-section-desc {
  color: #94A3B8 !important;
}

[data-theme="dark"] .speaker-name {
  color: #F8FAFC !important;
}

[data-theme="dark"] .speaker-bio {
  color: #94A3B8 !important;
}

[data-theme="dark"] .btn-card-preview {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .btn-card-preview:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}

[data-theme="light"] .ref-speakers-section {
  background-color: #F1F5F9 !important;
  color: #1E293B !important;
}

[data-theme="light"] .speaker-name {
  color: #0F172A !important;
}

[data-theme="light"] .speaker-bio {
  color: #475569 !important;
}

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

html, body {
  background-color: var(--product-bg);
  color: var(--product-text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--product-focus-ring);
  outline-offset: 2px;
}

/* Background Texture */
.product-mesh-layer {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(28, 25, 23, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.app-shell-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  width: 100%;
}

.app-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: visible;
  width: 100%;
}

@media (max-width: 960px) {
  .app-shell-layout {
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  #sidebarMount {
    width: 100% !important;
    display: block !important;
  }

  .app-main-content {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
  }
}

/* ==========================================================================
   Reference-Inspired Homepage Visual System
   ========================================================================== */
.hero-landing-reference {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.reference-top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(11, 16, 38, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-monogram {
  font-size: 1.4rem;
  color: #38BDF8;
}

.nav-brand-text {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link-item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.nav-link-item:hover {
  color: #38BDF8;
}

.nav-btn-pill {
  background: linear-gradient(135deg, #F5A623 0%, #D97706 50%, #B45309 100%) !important;
  border: 1px solid rgba(255, 235, 180, 0.6) !important;
  color: #06070B !important;
  font-family: var(--font-display, 'Syne', sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 9px 22px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.45), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
}

.nav-btn-pill:hover {
  background: linear-gradient(135deg, #FFB020 0%, #F5A623 50%, #D97706 100%) !important;
  color: #000000 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 0 32px rgba(245, 166, 35, 0.75), 0 6px 20px rgba(0, 0, 0, 0.6) !important;
  border-color: #FFFFFF !important;
}

/* Reference Hero Banner (Cinematic 3D Video Loop + Interactive Three.js WebGL Mesh) */
.ref-hero-banner {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  background: #0B1026 url('/assets/hero-3d-bg.webp') center/cover no-repeat; /* WebP: 98KB vs 739KB JPG */
  color: #FFFFFF;
  overflow: hidden;
}

.ref-hero-bg-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.88;
}

.ref-hero-video-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: saturate(1.3) contrast(1.1);
  z-index: 0;
}

.ref-hero-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  filter: saturate(1.2) contrast(1.1);
}

.ref-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.15) 0%, rgba(11, 16, 38, 0.82) 85%);
  z-index: 2;
}

.ref-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.ref-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #E0E7FF;
  margin-bottom: 24px;
}

.ref-hero-title {
  font-family: var(--font-ui);
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-title-line {
  display: block;
}

.ref-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 500;
}

.ref-hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-ref-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 14px 34px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-ref-pill-outline:hover {
  background: #FFFFFF;
  color: #3B33D1;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn-ref-pill-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #FFFFFF;
  color: #3B33D1;
  padding: 16px 36px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-ref-pill-solid:hover {
  background: #E0E7FF;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

/* Multi-Input Dock Container (Placed directly after Hero) */
.ref-input-dock-section {
  max-width: 860px;
  margin: -48px auto 64px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
  width: 100%;
}

/* 2. SPEAKERS / CREATORS SECTION (Soft Ice-Blue) */
.ref-speakers-section {
  background-color: #DBEAFE;
  padding: 96px 24px 112px;
  color: #1E293B;
  width: 100%;
}

.ref-section-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.ref-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.0vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #FFFFFF;
}

.ref-section-title.dark-text {
  color: #FFFFFF;
}

.ref-section-title.light-text {
  color: #FFFFFF;
}

.ref-section-lead {
  font-family: var(--font-ui);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  color: var(--product-text-muted);
}

.ref-section-lead.dark-muted {
  color: var(--product-text-muted);
}

.ref-section-lead.light-muted {
  color: var(--product-text-muted);
}

.ref-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  justify-content: center;
}

/* Live Hero 3D Canvas */
.hero-live-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* 3D Universe Showcase Card — Concept 1 Obsidian Glass */
.ref-speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  perspective: 1000px;
  padding: 16px 14px 20px;
  background: rgba(14, 18, 28, 0.6);
  border: 1px solid rgba(245, 166, 35, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.ref-speaker-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 166, 35, 0.15);
}

.speaker-img-wrapper {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
  background: #06070B;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  transform-style: preserve-3d;
}

.ref-speaker-card:hover .speaker-img-wrapper {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
  border-color: rgba(245, 166, 35, 0.5);
}

.speaker-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-speaker-card:hover .speaker-portrait-img {
  transform: scale(1.05);
}

.universe-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--solar-gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.universe-telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--solar-gold);
  box-shadow: 0 0 6px var(--solar-gold);
}

.portfolio-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  color: var(--solar-gold);
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.speaker-name {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.speaker-bio {
  font-family: var(--font-ui);
  font-size: 0.80rem;
  line-height: 1.5;
  color: var(--product-text-muted);
  max-width: 300px;
  margin-bottom: 14px;
}

.btn-card-preview {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid rgba(245, 166, 35, 0.32);
  color: var(--solar-gold);
  font-family: var(--font-mono);
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-card-preview:hover {
  background: var(--solar-gold);
  color: #06070B;
  border-color: var(--solar-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
  font-weight: 700;
}

/* Nav Auth Dock */
.nav-auth-dock {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Auth Modal Cosmic Glassmorphic Styling (Design 1 Cyan & Platinum Theme) */
.cosmic-auth-card {
  background: rgba(8, 11, 24, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  color: #F1F5F9 !important;
}

.cosmic-modal-title {
  font-family: var(--font-sans) !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  background: linear-gradient(135deg, #FFFFFF 30%, #38BDF8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 6px !important;
}

.auth-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.auth-modal-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseNeon 2s infinite ease-in-out;
}

@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.auth-modal-bridge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: #E2E8F0;
  line-height: 1.4;
}

.auth-modal-bridge .bridge-icon {
  font-size: 1.1rem;
}

.auth-modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 9px 16px;
  border-radius: 9999px;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}

.auth-social-dock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-social-auth {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-social-auth:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
}

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

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 12px;
}

.cosmic-auth-card .form-group-field {
  margin-bottom: 14px;
}

.cosmic-auth-card .form-group-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 6px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.field-label-row label {
  margin-bottom: 0 !important;
}

.link-forgot-pass {
  color: #8b5cf6;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-forgot-pass:hover {
  color: #a78bfa;
  text-decoration: underline;
}

.cosmic-auth-card input[type="text"],
.cosmic-auth-card input[type="email"],
.cosmic-auth-card input[type="password"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #FFFFFF;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cosmic-auth-card input::placeholder {
  color: #64748B;
}

.cosmic-auth-card input:focus {
  border-color: #8b5cf6;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.input-with-prefix:focus-within {
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.input-with-prefix .input-prefix {
  padding: 0 10px 0 14px;
  color: #8b5cf6;
  font-weight: 700;
  font-size: 0.95rem;
}

.input-with-prefix input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper input {
  padding-right: 42px;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 4px;
}

.btn-toggle-password:hover {
  opacity: 1;
}

/* Password Strength Meter */
.password-meter-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.strength-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.strength-empty { color: #64748B; background: rgba(255, 255, 255, 0.04); }
.strength-weak { color: #F87171; background: rgba(239, 68, 68, 0.15); }
.strength-fair { color: #FBBF24; background: rgba(245, 158, 11, 0.15); }
.strength-strong { color: #38BDF8; background: rgba(56, 189, 248, 0.15); }
.strength-safe { color: #4ADE80; background: rgba(34, 197, 94, 0.15); }

.cosmic-auth-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #38bdf8 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cosmic-auth-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5) !important;
}

.cosmic-auth-btn:active {
  transform: translateY(0) !important;
}

.auth-modal-alert {
  padding: 10px 14px;
  border-radius: var(--product-radius-sm);
  font-size: 0.84rem;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.auth-modal-alert.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86EFAC;
}

/* 3. SCHEDULE / PIPELINE SECTION (Deep Royal Indigo) */
.ref-schedule-section {
  background: #312E81;
  color: #FFFFFF;
  padding: 96px 24px 112px;
  width: 100%;
}

.ref-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 48px;
  text-align: center;
}

.schedule-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-col-header {
  margin-bottom: 28px;
}

.schedule-day-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #A5B4FC;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.schedule-date-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.schedule-timeline-list {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-item-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.item-time {
  font-size: 0.78rem;
  color: #C7D2FE;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* 4. TYPOGRAPHIC COLLAGE (Soft Blue with Inline Chips) */
.ref-collage-section {
  background: #EFF6FF;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.ref-collage-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
}

.collage-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.collage-word {
  font-family: var(--font-ui);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #3730A3;
  line-height: 1;
}

.collage-inline-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 12vw, 110px);
  height: clamp(48px, 9vw, 80px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(55, 48, 163, 0.15);
  background: #FFFFFF;
  flex-shrink: 0;
}

.collage-inline-chip.chip-square {
  width: clamp(48px, 9vw, 80px);
}

.collage-inline-chip.chip-wide {
  width: clamp(90px, 18vw, 150px);
}

.collage-inline-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. SAVE YOUR SPOT / CALL TO ACTION (Midnight Navy) */
.ref-spot-section {
  background: transparent;
  color: #FFFFFF;
  padding: 96px 24px 112px;
  width: 100%;
}

.ref-spot-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.spot-media-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spot-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-spot-play {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #312E81;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.btn-spot-play:hover {
  transform: scale(1.1);
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

.play-icon {
  font-size: 1.25rem;
  margin-left: 4px;
}

.spot-info-block {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spot-headline {
  font-family: var(--font-ui);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.spot-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 28px;
}

.spot-btn {
  border-color: #FFFFFF;
}

/* Spatial Cosmic Observatory Footer */
.ref-landing-footer {
  position: relative;
  z-index: 5;
  background: linear-gradient(to top, rgba(3, 4, 9, 0.95) 0%, rgba(5, 7, 16, 0.65) 50%, rgba(5, 7, 16, 0.1) 85%, transparent 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-top: 1px solid rgba(245, 166, 35, 0.25) !important;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 166, 35, 0.08) inset !important;
  padding: 72px 24px 44px !important;
  text-align: center;
  color: #94A3B8;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.footer-starlight-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 80vw;
  height: 2px;
  background: radial-gradient(ellipse at center, #F5A623 0%, rgba(245, 166, 35, 0.4) 40%, transparent 80%);
  box-shadow: 0 0 20px #F5A623, 0 0 40px rgba(245, 166, 35, 0.5);
  pointer-events: none;
}

.footer-brand-stage {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-portal-emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 35%, rgba(245, 166, 35, 0.3) 0%, rgba(10, 14, 26, 0.8) 100%);
  border: 1px solid rgba(245, 166, 35, 0.45);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-core-glyph {
  font-size: 1.3rem;
  color: #F5A623;
  text-shadow: 0 0 12px #F5A623;
  animation: pulsePortalGlyph 3s ease-in-out infinite alternate;
}

@keyframes pulsePortalGlyph {
  0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 4px #F5A623); }
  100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 12px #FFB020); }
}

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

.footer-brand-title {
  font-family: var(--font-display, 'Syne', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.12em !important;
  color: #FFFFFF !important;
  text-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}

.footer-brand-subtitle {
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.16em !important;
  color: #F5A623 !important;
  opacity: 0.9;
}

.footer-philosophy {
  font-family: var(--font-body, sans-serif);
  font-size: 0.92rem;
  color: #F1F5F9;
  max-width: 580px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.footer-trust-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin-top: 6px;
}

.trust-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.22);
  backdrop-filter: blur(10px);
  color: #F1F5F9;
  font-size: 0.78rem;
  font-family: var(--font-ui, sans-serif);
  font-weight: 500;
  transition: all 0.25s ease;
}

.trust-capsule:hover {
  background: rgba(245, 166, 35, 0.14);
  border-color: rgba(245, 166, 35, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.25);
}

.footer-celestial-divider {
  width: 100%;
  max-width: 760px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.35) 50%, transparent 100%);
  margin: 10px 0;
}

.footer-nav-orbit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-orbit-link {
  color: rgba(241, 245, 249, 0.78);
  text-decoration: none;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.footer-orbit-link:hover {
  color: #F5A623 !important;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.6);
  transform: translateY(-1px);
}

.orbit-sep {
  font-size: 0.55rem;
  color: rgba(245, 166, 35, 0.5);
}

.footer-chronos-signature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.8);
  margin-top: 4px;
}

.signature-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: rgba(245, 166, 35, 0.75);
}

.ref-footer-brand {
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .reference-top-nav {
    padding: 12px 18px;
  }
  .nav-links a {
    display: none;
  }
  .ref-spot-container {
    flex-direction: column;
    text-align: center;
  }
  .spot-info-block {
    align-items: center;
  }
}

/* Resumed Session Banner */
.resumed-session-card {
  background: var(--product-surface);
  border: 1px solid var(--product-border-strong);
  border-radius: var(--product-radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--product-shadow-sm);
}

.resumed-text {
  font-size: 0.88rem;
  color: var(--product-text);
}

.resumed-actions {
  display: flex;
  gap: 8px;
}

/* Multi-Input Container & Selector Tabs */
.multi-input-container {
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  border-radius: var(--product-radius-lg);
  box-shadow: var(--product-shadow-md);
  overflow: hidden;
  margin-bottom: 32px;
}

.input-selector-bar {
  display: flex;
  border-bottom: 1px solid var(--product-border);
  background: var(--product-surface-alt);
  overflow-x: auto;
  scrollbar-width: none;
}
.input-selector-bar::-webkit-scrollbar { display: none; }

.input-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--product-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  min-height: 48px;
  border-bottom: 2px solid transparent;
}

.input-nav-btn:hover {
  color: var(--product-text);
  background: rgba(28, 25, 23, 0.03);
}

.input-nav-btn.active {
  color: var(--product-text);
  background: var(--product-surface);
  border-bottom-color: var(--product-accent);
}

.input-panel {
  display: none;
  padding: 32px 28px;
}

.input-panel.active {
  display: block;
}

.input-panel-card {
  max-width: 600px;
  margin: 0 auto;
}

.panel-card-head {
  margin-bottom: 20px;
}

.panel-card-head h3 {
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--product-text);
}

.panel-card-head p {
  color: var(--product-text-muted);
  font-size: 0.92rem;
}

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

/* Input Form Controls */
.input-prefix-box {
  display: flex;
  align-items: center;
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border-strong);
  border-radius: var(--product-radius-sm);
  padding: 4px 12px;
  min-height: 48px;
}

.prefix-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--product-text-muted);
  font-weight: 600;
  user-select: none;
}

.input-prefix-box input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--product-text);
  padding: 8px;
}

.input-prefix-box input:focus {
  outline: none;
}

.form-select-control {
  width: 100%;
  background: var(--product-surface);
  border: 1px solid var(--product-border-strong);
  border-radius: var(--product-radius-sm);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--product-text);
  cursor: pointer;
  min-height: 44px;
}

.form-group-field {
  margin-bottom: 14px;
  text-align: left;
}

.form-group-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--product-text);
  margin-bottom: 4px;
}

.form-group-field input,
.form-group-field textarea {
  width: 100%;
  background: var(--product-surface);
  border: 1px solid var(--product-border-strong);
  border-radius: var(--product-radius-sm);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--product-text);
}

.form-group-field input:focus,
.form-group-field textarea:focus {
  outline: 2px solid var(--product-focus-ring);
}

/* File Drop Targets */
.file-drop-target {
  border: 2px dashed var(--product-border-strong);
  border-radius: var(--product-radius-md);
  padding: 36px 20px;
  background: var(--product-surface-alt);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-drop-target:hover {
  border-color: var(--product-accent);
  background: var(--product-accent-subtle);
}

.file-drop-target.drag-over {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.16) !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35) !important;
  transform: scale(1.02);
}

.drop-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.drop-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--product-text);
}

.drop-status {
  font-size: 0.8rem;
  color: var(--product-text-muted);
  margin-top: 4px;
}

.file-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border);
  padding: 4px 10px;
  border-radius: var(--product-radius-pill);
}

.btn-remove-link {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Primary CTA Button */
.btn-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--product-accent);
  color: #FFFFFF;
  border: none;
  padding: 14px 24px;
  border-radius: var(--product-radius-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
  min-height: 48px;
  margin-top: 14px;
}

.btn-cta-main:hover {
  background: var(--product-accent-hover);
  transform: translateY(-1px);
}

.btn-primary-mini {
  background: var(--product-text);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: var(--product-radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}

.btn-ghost-mini {
  background: none;
  border: 1px solid var(--product-border);
  color: var(--product-text-muted);
  padding: 6px 10px;
  border-radius: var(--product-radius-sm);
  cursor: pointer;
  min-height: 36px;
}

.hero-secondary-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-subtle {
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  color: var(--product-text);
  padding: 10px 18px;
  border-radius: var(--product-radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease;
}

.btn-subtle:hover {
  background: var(--product-surface-alt);
}

.trust-footer-note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--product-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Image Thumbnails */
.image-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.image-thumb-card {
  position: relative;
  border-radius: var(--product-radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--product-border);
}

.image-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  cursor: pointer;
}

/* Combined Sources Checklist */
.sources-summary-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.source-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border);
  padding: 10px 14px;
  border-radius: var(--product-radius-sm);
}

.source-check-row.connected {
  border-color: #16A34A;
  background: rgba(22, 163, 74, 0.04);
}

.check-info {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.check-info strong {
  color: var(--product-text);
}

.check-info span {
  font-size: 0.78rem;
  color: var(--product-text-muted);
}

.btn-link-action {
  background: none;
  border: none;
  color: var(--product-accent);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ==========================================================================
   Fullscreen Studio View & Top Bar
   ========================================================================== */
.studio-fullscreen-view {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #E5E5E5;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--product-surface);
  border-bottom: 1px solid var(--product-border);
  box-shadow: var(--product-shadow-sm);
  min-height: 56px;
  gap: 12px;
  z-index: 10;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-topbar-nav {
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border);
  color: var(--product-text);
  padding: 6px 12px;
  border-radius: var(--product-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}

.portfolio-name-label {
  font-weight: 800;
  font-size: 0.95rem;
}

.status-live-dot {
  display: inline-block;
  background: #22C55E;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.device-switcher-pill {
  display: flex;
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border);
  border-radius: var(--product-radius-pill);
  padding: 2px;
}

.device-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--product-text-muted);
  border-radius: var(--product-radius-pill);
  cursor: pointer;
  min-height: 32px;
}

.device-btn.active {
  background: var(--product-surface);
  color: var(--product-text);
  box-shadow: var(--product-shadow-sm);
}

.btn-topbar-action {
  background: var(--product-surface);
  border: 1px solid var(--product-border-strong);
  color: var(--product-text);
  padding: 6px 12px;
  border-radius: var(--product-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}

.btn-topbar-action.primary {
  background: var(--product-accent);
  color: #FFFFFF;
  border-color: var(--product-accent);
}

/* Studio Canvas Stage */
.studio-canvas-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #111827;
}

.preview-frame-wrapper {
  transition: width 0.25s ease, height 0.25s ease;
  height: 100%;
  width: 100%;
  position: relative;
  background: #FFFFFF;
}

.preview-frame-wrapper.desktop-mode { width: 100%; height: 100%; }
.preview-frame-wrapper.tablet-mode { width: 768px; height: 92%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden; }
.preview-frame-wrapper.mobile-mode { width: 390px; height: 92%; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden; }

.preview-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.preview-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid var(--product-border);
  border-top-color: var(--product-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Truthful Progress Modal
   ========================================================================== */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}

.product-modal-card {
  background: var(--product-surface);
  border: 1px solid var(--product-border-strong);
  border-radius: var(--product-radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--product-shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.btn-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--product-text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
}

/* Samples & Demo Explorer Modal */
#samplesModal .product-modal-card {
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid rgba(74, 63, 122, 0.45);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(5, 8, 10, 0.8), 0 0 40px rgba(36, 27, 61, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #EDEAFB;
}

#samplesModal .modal-head-block h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #EDEAFB;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#samplesModal .modal-subtext {
  color: #9C97B8;
  font-size: 0.9rem;
}

#samplesModal .btn-modal-close {
  color: #9C97B8;
  transition: color 0.2s ease;
}

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

.sample-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.sample-card {
  background: rgba(36, 27, 61, 0.5);
  border: 1px solid rgba(74, 63, 122, 0.45);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sample-card:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 151, 184, 0.4);
}

.sample-category-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #9C97B8;
  background: rgba(74, 63, 122, 0.35);
  border: 1px solid rgba(74, 63, 122, 0.5);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 8px;
}

.sample-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #EDEAFB;
  margin: 0 0 6px 0;
}

.sample-description {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.84rem;
  color: #9C97B8;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.sample-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.sample-btn-live {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #E8A33D;
  color: #05080A;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sample-btn-live:hover {
  background: #F0B254;
  transform: translateY(-1px);
}

.sample-btn-studio {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 63, 122, 0.35);
  color: #EDEAFB;
  border: 1px solid rgba(156, 151, 184, 0.25);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sample-btn-studio:hover {
  background: rgba(74, 63, 122, 0.55);
  border-color: rgba(156, 151, 184, 0.4);
}

.modal-head-block {
  text-align: center;
  margin-bottom: 24px;
}

.modal-head-block h2 {
  font-family: var(--font-editorial);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--product-text);
}

.modal-subtext {
  color: var(--product-text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.elapsed-timer-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--product-surface-alt);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--product-text-muted);
  margin-top: 6px;
}

.truthful-stages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border);
  border-radius: var(--product-radius-sm);
  opacity: 0.5;
  transition: all 0.2s ease;
}

.stage-item.active {
  opacity: 1;
  border-color: var(--product-accent);
  background: var(--product-accent-subtle);
}

.stage-item.completed {
  opacity: 0.9;
  border-color: #22C55E;
  background: rgba(34, 197, 94, 0.05);
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--product-text-muted);
}

.stage-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stage-text strong {
  font-size: 0.88rem;
  color: var(--product-text);
}

.stage-text span {
  font-size: 0.75rem;
  color: var(--product-text-muted);
}

/* Structured Error Card */
.structured-error-card {
  margin-top: 20px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--product-radius-md);
  padding: 20px;
  text-align: left;
}

.error-status-badge {
  display: inline-block;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.error-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #991B1B;
  margin-bottom: 4px;
}

.error-reason {
  font-size: 0.88rem;
  color: #7F1D1D;
  line-height: 1.4;
  margin-bottom: 12px;
}

.error-advice-box {
  background: rgba(255,255,255,0.7);
  border: 1px solid #FECACA;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: #7F1D1D;
  margin-bottom: 14px;
}

.error-action-buttons {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Customizer Sheet / Drawer
   ========================================================================== */
.customizer-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999999;
  display: flex;
  justify-content: flex-end;
}

.customizer-drawer-panel {
  background: var(--product-surface);
  width: 100%;
  max-width: 440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  border-left: 1px solid var(--product-border);
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--product-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-weight: 800;
}

.drawer-header p {
  font-size: 0.8rem;
  color: var(--product-text-muted);
}

.customizer-sections-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.customizer-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.group-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--product-text-muted);
  font-weight: 800;
  border-bottom: 1px solid var(--product-border);
  padding-bottom: 6px;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--product-text);
}

.pill-options-group {
  display: flex;
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border);
  border-radius: var(--product-radius-sm);
  padding: 2px;
}

.pill-opt-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--product-text-muted);
  cursor: pointer;
  border-radius: 4px;
  min-height: 36px;
}

.pill-opt-btn.active {
  background: var(--product-surface);
  color: var(--product-text);
  box-shadow: var(--product-shadow-sm);
}

.customizer-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customizer-section-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--product-surface-alt);
  border: 1px solid var(--product-border);
  padding: 10px 14px;
  border-radius: var(--product-radius-sm);
}

.drawer-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--product-border);
  background: var(--product-surface-alt);
}

.drawer-undo-redo {
  display: flex;
  gap: 8px;
}

.btn-drawer-tool {
  flex: 1;
  background: var(--product-surface);
  border: 1px solid var(--product-border-strong);
  color: var(--product-text);
  padding: 8px;
  border-radius: var(--product-radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  background: var(--product-text);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--product-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--product-shadow-lg);
}

/* ==========================================================================
   Homepage Landing Sections Styling (Workflow, Steps, Pricing, Features, FAQ)
   ========================================================================== */

.landing-section {
  padding: clamp(60px, 8vw, 110px) 24px;
  position: relative;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 9999px;
  color: var(--solar-gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title-large {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.0vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-lead-text {
  font-family: var(--font-ui);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--product-text-muted);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* Steps Grid (How to Generate) */
.steps-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.step-guide-card {
  background: rgba(14, 18, 28, 0.78);
  border: 1px solid rgba(245, 166, 35, 0.18);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.step-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.5);
}

.step-num-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #F5A623, #FF8C00);
  color: #06070B;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

.step-guide-title {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.step-guide-desc {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--product-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.step-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--solar-gold);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

/* Workflow Timeline Architecture */
.workflow-pipeline-wrapper {
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  color: #FFFFFF;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.workflow-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.workflow-stage-col {
  display: flex;
  flex-direction: column;
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(245, 166, 35, 0.14);
  border-radius: 16px;
  padding: 20px 16px;
}

.workflow-col-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--solar-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.workflow-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.workflow-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-node-item {
  background: rgba(6, 8, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  transition: all 0.2s;
}

.workflow-node-item:hover {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.4);
  transform: translateX(4px);
}

.workflow-node-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.workflow-node-item p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--product-text-muted);
  line-height: 1.45;
}

/* Feature Matrix Grid (Why Traditional Portfolios Fail) */
.features-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-rich-card {
  background: rgba(14, 18, 28, 0.78);
  border: 1px solid rgba(245, 166, 35, 0.18);
  border-radius: 18px;
  padding: 24px 20px;
  transition: all 0.3s;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.feature-rich-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 20px rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.5);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.feature-card-desc {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--product-text-muted);
  line-height: 1.55;
}

/* Pricing Grid */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-plan-card {
  background: rgba(14, 18, 28, 0.78);
  border: 1px solid rgba(245, 166, 35, 0.18);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

.pricing-plan-card.featured {
  background: linear-gradient(180deg, rgba(22, 16, 36, 0.92) 0%, rgba(10, 8, 20, 0.96) 100%);
  border: 1.5px solid #F5A623;
  color: #FFFFFF;
  box-shadow: 0 0 35px rgba(245, 166, 35, 0.25), 0 15px 40px rgba(0, 0, 0, 0.7);
  transform: scale(1.02);
}

.pricing-plan-card.featured .pricing-card-title,
.pricing-plan-card.featured .pricing-price-num {
  color: #FFFFFF;
}

.pricing-plan-card.featured .pricing-feature-item {
  color: #CBD5E1;
}

.pricing-plan-card.featured .pricing-feature-item strong {
  color: #FFFFFF;
}

.pricing-popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F5A623, #FF8C00);
  color: #06070B;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.5);
}

.pricing-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.pricing-card-desc {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--product-text-muted);
  margin-bottom: 20px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-plan-card.featured .pricing-price-box {
  border-bottom-color: rgba(245, 166, 35, 0.2);
}

.pricing-price-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.pricing-price-period {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--product-text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #CBD5E1;
  line-height: 1.45;
}

.pricing-feature-item strong {
  color: #FFFFFF;
  font-weight: 600;
}

.pricing-check-icon {
  color: var(--solar-gold);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.btn-pricing-cta {
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-pricing-cta.secondary {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--solar-gold);
  font-family: var(--font-mono);
  font-size: 0.80rem;
}

.btn-pricing-cta.secondary:hover {
  background: rgba(245, 166, 35, 0.15);
  border-color: var(--solar-gold);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.25);
}

.btn-pricing-cta.primary {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5A623 45%, #FF8C00 100%);
  color: #06070B;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}

.btn-pricing-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.55);
}

/* 🌙 Dark theme overrides for landing pricing */
[data-theme="dark"] #sectionPricing {
  background: transparent !important;
}

/* FAQ Accordion */
.faq-accordion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}

.faq-item-card {
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid rgba(245, 166, 35, 0.18);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-question-text {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-answer-text {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--product-text-muted);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 60px 20px 80px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-actions-row {
    justify-content: center;
  }
  .reference-speaker-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .pricing-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .reference-top-nav {
    padding: 12px 16px;
  }
  .nav-links a {
    display: none;
  }
  .hero-headline {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .reference-speaker-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-cards-container {
    grid-template-columns: 1fr;
  }
  .pricing-plan-card.featured {
    transform: none;
  }
  .faq-accordion-grid {
    grid-template-columns: 1fr;
  }
  .faq-item-card {
    padding: 18px 20px;
  }
  .ref-spot-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .spot-info-block {
    align-items: center;
  }
  .btn-primary, .btn-secondary, .btn-card-preview {
    min-height: 44px; /* WCAG 2.1 touch target standard */
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 14px 60px;
  }
  .reference-speaker-card {
    padding: 20px 16px;
  }
}

/* =========================================================================
   3D TACTILE DAY / NIGHT TOGGLE SWITCH
   ========================================================================= */
.theme-3d-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  outline: none;
}

.theme-3d-switch-btn:hover {
  transform: scale(1.08);
}

.theme-3d-switch-btn:active {
  transform: scale(0.92);
}

.switch-3d-track {
  width: 58px;
  height: 28px;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 50%, #818CF8 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 -1px 2px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(56, 189, 248, 0.28);
}

[data-theme="dark"] .switch-3d-track {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.65), inset 0 -1px 2px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.45);
}

.track-celestial-day {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  pointer-events: none;
}

.cloud-puff {
  width: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.cloud-puff::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.track-celestial-night {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8px;
  gap: 3px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
  pointer-events: none;
  font-size: 8px;
  color: #FDE047;
}

[data-theme="dark"] .track-celestial-day {
  opacity: 0;
  transform: translateY(-8px);
}

[data-theme="dark"] .track-celestial-night {
  opacity: 1;
  transform: translateY(0);
}

.switch-3d-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: absolute;
  top: 1.5px;
  left: 0;
  background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #F1F5F9 55%, #CBD5E1 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1.5px 2px #FFFFFF, inset 0 -1.5px 2px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(3px) rotate(0deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .switch-3d-thumb {
  transform: translateX(31px) rotate(360deg);
  background: radial-gradient(circle at 35% 35%, #F8FAFC 0%, #E2E8F0 60%, #94A3B8 100%);
}

.thumb-face-sun,
.thumb-face-moon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.thumb-face-sun {
  opacity: 1;
  transform: scale(1);
}

.thumb-face-moon {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

[data-theme="dark"] .thumb-face-sun {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

[data-theme="dark"] .thumb-face-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* =========================================================================
   RESPONSIVE & MOBILE TOP BAR RULES
   ========================================================================= */
.mobile-top-bar {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 960px) {
  .mobile-top-bar {
    display: flex !important;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    z-index: 990;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }

  [data-theme="dark"] .mobile-top-bar {
    background: rgba(11, 15, 25, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 10px;
    color: #0284C7;
    cursor: pointer;
    transition: all 0.2s;
  }

  [data-theme="dark"] .mobile-menu-toggle {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38BDF8;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Sticky Mobile Bottom Floating CTA Bar */
.sticky-mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(11, 15, 25, 0.94);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 16px env(safe-area-inset-bottom, 12px) 16px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.sticky-cta-text {
  display: flex;
  flex-direction: column;
}

.sticky-cta-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.sticky-cta-sub {
  font-size: 0.75rem;
  color: #38BDF8;
  font-weight: 600;
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #05080A;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sticky-mobile-cta-bar {
    display: block;
  }
}
