/* ==========================================================================
   ATS Resume - Premium Light Mode Design System
   ========================================================================== */

:root {
  /* Brand Palette - Clean Slate & Indigo */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.2);
  
  --accent: #8b5cf6;
  --accent-light: #f5f3ff;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-emerald: #10b981;
  --accent-emerald-light: #ecfdf5;

  /* Neutrals - Pristine Light Theme */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.85);
  --bg-subtle: #f1f5f9;
  --bg-dark: #0f172a;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #818cf8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.25);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

p {
  color: var(--text-body);
  font-size: 1.05rem;
}

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

/* Gradients & Highlights */
.hero-highlight {
  color: #4338ca;
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: rgba(99, 102, 241, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main) !important;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-emerald {
  background: var(--accent-emerald-light);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 170px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 90% 40%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.trust-item svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Problem vs Solution
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.comparison-card.negative {
  border-top: 4px solid #ef4444;
}

.comparison-card.positive {
  border-top: 4px solid #10b981;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: var(--shadow-md);
}

.card-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.card-badge.bad {
  background: #fef2f2;
  color: #b91c1c;
}

.card-badge.good {
  background: #ecfdf5;
  color: #047857;
}

.comparison-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}

.icon-bad {
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-good {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   How It Works (Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xs);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   Interactive Live Product Simulation Styles
   ========================================================================== */
.interactive-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.live-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sim-player-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Simulation Controls & Steps Timeline */
.sim-player-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0f172a;
  color: #ffffff;
  gap: 16px;
  flex-wrap: wrap;
}

.sim-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sim-steps-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 20px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sim-step-pill .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.sim-step-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sim-step-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.sim-step-pill.active .step-num {
  background: #ffffff;
  color: #4f46e5;
  font-weight: 900;
}

.sim-progress-track {
  width: 100%;
  height: 3px;
  background: #1e293b;
  position: relative;
}

.sim-progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #4f46e5, #10b981);
  transition: width 0.4s ease;
}

/* Browser Frame */
.sim-window-frame {
  background: #ffffff;
}

.sim-browser-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sim-window-dots {
  display: flex;
  gap: 6px;
}

.sim-url-address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.8rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  max-width: 550px;
  width: 100%;
}

.sim-ext-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Main Split Stage */
.sim-split-stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 580px;
  background: #f1f5f9;
}

/* Left Pane: Job Post */
.sim-webpage-pane {
  background: #f3f2ef;
  border-right: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.linkedin-header-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.linkedin-logo {
  background: #0a66c2;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linkedin-search-mock {
  background: #edf3f8;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: #666;
  flex: 1;
}

.linkedin-avatar-mock {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #cbd5e1;
}

.job-detail-scrollable {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.job-banner-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e0e0e0;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.job-company-avatar {
  width: 44px;
  height: 44px;
  background: #635bff;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-heading {
  font-size: 1.15rem;
  color: #191919;
  margin-bottom: 4px;
}

.job-company-name {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 8px;
}

.job-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.job-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #4b5563;
  padding: 2px 8px;
  border-radius: 4px;
}

.job-badge.highlighted {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.job-desc-body {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.job-section-heading {
  font-size: 0.95rem;
  color: #191919;
  margin: 14px 0 8px;
}

.job-desc-body p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

.job-bullets {
  padding-left: 18px;
  margin-top: 6px;
}

.job-bullets li {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 6px;
  line-height: 1.5;
}

.hl-keyword {
  background: #fef08a;
  color: #854d0e;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.hl-knockout {
  background: #fee2e2;
  color: #991b1b;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* Virtual Animated Cursor */
.virtual-cursor {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 100;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cursor-pointer {
  width: 18px;
  height: 18px;
  background: #0f172a;
  clip-path: polygon(0 0, 0 100%, 35% 70%, 65% 100%, 80% 90%, 50% 60%, 100% 60%);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.cursor-click-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  border: 2px solid #4f46e5;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
}

.cursor-click-ring.clicked {
  animation: click-ripple 0.4s ease-out;
}

@keyframes click-ripple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Right Pane: Actual ATS Resume Extension Mirror */
.sim-extension-pane {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.ext-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.ext-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ext-brand-title {
  font-weight: 900;
  font-size: 1rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ext-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ext-btn-upgrade {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
}

.ext-credits-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
}

.ext-icon-btn {
  color: #64748b;
  font-size: 0.85rem;
  padding: 2px 4px;
  cursor: pointer;
}

/* Extension Navigation Tabs */
.ext-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 6px;
}

.ext-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ext-tab-btn.active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Extension Body & Multi-Screen Container */
.ext-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.ext-screen {
  display: none;
  animation: fadeInScreen 0.35s ease;
}

.ext-screen.active {
  display: block;
}

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

/* Screen 1: Initial */
.ext-info-card {
  text-align: center;
  padding: 24px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.ext-info-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.ext-info-card h4 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.ext-info-card p {
  font-size: 0.8rem;
  color: #64748b;
}

.ext-lang-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.ext-lang-box label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  display: block;
  margin-bottom: 4px;
}

.ext-select-mock {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #0f172a;
  font-weight: 600;
}

.ext-primary-btn {
  width: 100%;
  padding: 10px 14px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
}

.ext-primary-btn.success {
  background: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.pulse-action {
  animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Screen 2: Loading */
.ext-spinner-wrap {
  text-align: center;
  padding: 36px 16px;
}

.ext-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e2e8f0;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.ext-spinner-wrap h4 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.ext-sub-loading {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 20px;
}

.ext-scan-steps {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-step-item {
  font-size: 0.78rem;
  font-weight: 600;
}

.scan-step-item.done {
  color: #059669;
}

.scan-step-item.active {
  color: #4f46e5;
  animation: pulse-step 1.5s infinite;
}

@keyframes pulse-step {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Screen 3: Results */
.ext-alert-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.ext-alert-banner .alert-icon {
  font-size: 1rem;
}

.ext-alert-banner strong {
  font-size: 0.76rem;
  color: #991b1b;
  display: block;
}

.ext-alert-banner p {
  font-size: 0.72rem;
  color: #b91c1c;
  margin-top: 2px;
}

.ext-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.ext-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.ext-gauge-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ext-gauge-circle {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.ext-gauge-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1s ease;
}

.gauge-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 900;
  color: #047857;
}

.score-pill-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.gauge-desc p {
  font-size: 0.75rem;
  color: #64748b;
}

.ext-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.b-item {
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: 6px;
}

.b-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #475569;
  margin-bottom: 4px;
}

.b-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.b-fill {
  height: 100%;
  background: #4f46e5;
}

.matrix-mini-section .matrix-title {
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.matrix-title.matched { color: #047857; }
.matrix-title.missing { color: #dc2626; }

.chips-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.chip.green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.chip.red {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Screen 4: Generated CV */
.ext-template-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tpl-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
}

.tpl-options {
  display: flex;
  gap: 4px;
}

.tpl-btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
}

.tpl-btn.active {
  background: #4f46e5;
  color: #ffffff;
}

.mini-cv-document {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  font-size: 0.75rem;
  margin-bottom: 12px;
  max-height: 270px;
  overflow-y: auto;
}

.mini-cv-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.mini-cv-header h5 {
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.mini-cv-subtitle {
  font-size: 0.75rem;
  color: #4f46e5;
  font-weight: 700;
}

.mini-cv-contact {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 2px;
}

.mini-cv-section h6 {
  font-size: 0.68rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 0.05em;
  margin: 8px 0 4px;
  border-bottom: 1px solid #f1f5f9;
}

.mini-cv-section p {
  font-size: 0.72rem;
  color: #334155;
  line-height: 1.4;
}

.mini-cv-job .job-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.mini-cv-job ul {
  padding-left: 14px;
  margin: 0;
}

.mini-cv-job li {
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.35;
  margin-bottom: 3px;
}

.ext-cv-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 6px;
}

.ext-action-btn {
  padding: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ext-action-btn.primary-action {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sim-toast-popup {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #065f46;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: slideUpToast 0.3s ease;
  z-index: 10;
}

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

@media (max-width: 900px) {
  .sim-split-stage {
    grid-template-columns: 1fr;
  }
  .sim-steps-timeline {
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

/* ==========================================================================
   Templates Showcase
   ========================================================================== */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.template-preview {
  height: 280px;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.t-line {
  background: #cbd5e1;
  border-radius: 4px;
}

.t-header { height: 28px; width: 60%; background: #94a3b8; }
.t-sub { height: 12px; width: 40%; }
.t-body { height: 10px; width: 100%; }
.t-body-short { height: 10px; width: 75%; }

.template-info {
  padding: 24px;
}

.template-info h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.template-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 26px 22px;
  color: var(--text-body);
  font-size: 1rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner-section {
  padding: 80px 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner-card h2 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.cta-banner-card p {
  color: #c7d2fe;
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-job-side { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { height: 70px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-section { padding: 130px 0 60px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .problem-solution-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .simulator-result-grid { grid-template-columns: 1fr; }
  .cta-banner-card { padding: 40px 20px; }
  .cta-banner-card h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
