/**
 * CraftCV - Master Style Sheet
 * Strict Light Mode with Clean White (#ffffff) Canvas
 * Abstract Faint Pastel Gradient Blobs (Peach, Light Orange, Pink with blur(100px))
 * Glassmorphism Navigation & Floating Toolbars (rgba(255, 255, 255, 0.7), blur(12px), border, pill shapes)
 * Fixed Bottom Gradient Overlay for Smooth Scrolling Form Fade Out
 */

/* Import core modular CSS files */
@import url('base.css');
@import url('layout.css');
@import url('themes.css');
@import url('print.css');

/* ==============================================
   DESIGN TOKENS (STRICT LIGHT MODE)
   ============================================== */
:root {
  --bg: #ffffff;
  --bg-canvas: #ffffff;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-card: rgba(255, 255, 255, 0.9);
  --panel-dark: rgba(255, 255, 255, 0.85); /* Light panel override */
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --text-light: #0f172a; /* Light mode text */
  --text-muted: #64748b;
  --line: #e2e8f0;
  --line-dark: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --gold: #d97706;
  --gold-hover: #b45309;
  --danger: #e11d48;
  --danger-bg: #fff1f2;
  --success: #059669;
  --focus-ring: rgba(37, 99, 235, 0.2);

  /* Shadows */
  --shadow-glass: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* Ensure Strict Light Mode even if OS prefers-color-scheme: dark */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #ffffff;
    --panel: rgba(255, 255, 255, 0.75);
    --panel-card: rgba(255, 255, 255, 0.9);
    --panel-dark: rgba(255, 255, 255, 0.85);
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-dark: #e2e8f0;
  }
}

/* Global Clean White Body */
body {
  background-color: #ffffff;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  padding-top: 88px; /* Clearance for fixed floating pill nav */
  position: relative;
  min-height: 100vh;
}

/* ==============================================
   TYPOGRAPHY: SATOSHI-BLACK & TRACKING-TIGHTER
   ============================================== */
.satoshi-black,
.tracking-tighter-h {
  font-family: 'Satoshi', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em; /* tracking-tighter */
  line-height: 1.05;
}

.tracking-tighter {
  letter-spacing: -0.05em !important;
}

/* ==============================================
   ABSTRACT PASTEL GLOW BACKGROUND BLOBS
   Peach, Light Orange & Pink with blur(100px)
   ============================================== */
.pastel-glow-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pastel-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  opacity: 0.6;
  will-change: transform;
  pointer-events: none;
}

/* Peach blob (top right) */
.blob-peach {
  top: -120px;
  right: -80px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #fed7aa 0%, #ffedd5 50%, rgba(255, 237, 213, 0) 75%);
}

/* Light orange / warm apricot blob (middle left) */
.blob-orange {
  top: 25%;
  left: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #ffe4d6 0%, #fed7aa 50%, rgba(255, 247, 237, 0) 80%);
}

/* Pink / blush pastel blob (bottom right) */
.blob-pink {
  bottom: 5%;
  right: 5%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #fce7f3 0%, #fbcfe8 50%, rgba(251, 207, 232, 0) 75%);
}

/* Soft apricot accent (center subtle) */
.blob-soft-apricot {
  top: 60%;
  left: 28%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #ffe4e6 0%, #fed7aa 55%, rgba(255, 228, 230, 0) 80%);
  opacity: 0.45;
}

/* ==============================================
   MAIN NAVIGATION (GLASSMORPHISM PILL)
   rgba(255,255,255,0.7), blur(12px), 1px border, pill shape
   ============================================== */
.top-nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  height: auto;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 var(--sp-4);
  pointer-events: none;
}

.nav-container {
  max-width: 960px;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-family: 'Satoshi', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  transition: opacity var(--tr-fast);
}

.logo:hover {
  opacity: 0.85;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

/* Navigation Links Container */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
}

/* Staggered Text Reveal on Hover */
.nav-roll-link {
  display: inline-block;
  text-decoration: none;
  color: #334155;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  transition: background-color var(--tr-fast), color var(--tr-fast);
}

.nav-roll-link:hover {
  background-color: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.roll-box {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25em;
}

.roll-primary,
.roll-secondary {
  display: inline-flex;
  white-space: nowrap;
}

.roll-secondary {
  position: absolute;
  top: 100%;
  left: 0;
  color: #2563eb;
}

.roll-primary span,
.roll-secondary span {
  display: inline-block;
  transition: transform 0.36s cubic-bezier(0.76, 0, 0.24, 1);
  transition-delay: calc(var(--i) * 26ms);
  will-change: transform;
}

/* Hover Roll Animation */
.nav-roll-link:hover .roll-primary span {
  transform: translateY(-100%);
}

.nav-roll-link:hover .roll-secondary span {
  transform: translateY(-100%);
}

/* Special Build CTA Button in Nav */
.nav-roll-cta {
  background: #0f172a;
  color: #ffffff !important;
  border-radius: 9999px;
  padding: 8px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
}

.nav-roll-cta .roll-secondary {
  color: #93c5fd !important;
}

.nav-roll-cta:hover {
  background: #1e293b;
}

/* ==============================================
   FULL-SCREEN TWO-COLUMN HERO SECTION
   ============================================== */
.landing-hero-fullscreen {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: clamp(60px, 9vh, 120px) var(--sp-4);
  background: transparent;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-sizing: border-box;
  overflow: hidden;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  z-index: 1;
}

.landing-hero-fullscreen.hero-fade-out {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

/* Left Column: Typography & CTAs */
.hero-left-col {
  text-align: left;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  color: #d97706;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.hero-display-title {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-family: 'Satoshi', 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em; /* tracking-tighter */
  line-height: 0.92;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0 0 clamp(2.25rem, 4.5vh, 3.75rem);
}

.hero-display-title .gold-gradient {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 45%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 12px rgba(234, 88, 12, 0.2));
}

.hero-sub {
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  color: #475569;
  max-width: 540px;
  margin: 0 0 var(--sp-5);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.35rem);
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Primary CTA Button: 'Generate my CV' */
.btn-generate-cv {
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 34px;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.btn-generate-cv:hover {
  transform: scale(1.06);
  background: #1e293b;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3);
}

.btn-generate-cv:active {
  transform: scale(0.98);
}

.btn-generate-cv:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #334155;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--tr-fast), border-color var(--tr-fast), background-color var(--tr-fast);
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  background: #ffffff;
}

.hero-badges-row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.82rem;
  color: #64748b;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-item strong {
  color: #0f172a;
}

/* Right Column: 3D Gallery Scene */
.hero-right-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gallery-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-scene {
  position: relative;
  width: 280px;
  height: 395px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.scene-glow-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin-top: -180px;
  margin-left: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.4) 0%, rgba(252, 231, 243, 0.2) 55%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  transform: translateZ(-80px);
}

/* 3D Template Cards */
.gallery-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.card-glass-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(254, 215, 170, 0.2), inset 0 0 0 1px rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .card-glass-frame,
.gallery-card:focus-visible .card-glass-frame {
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.18), 0 0 35px rgba(254, 215, 170, 0.35), inset 0 0 0 1.5px #2563eb;
  transform: scale(1.02);
}

.gallery-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.card-floating-badge {
  position: absolute;
  top: -13px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  z-index: 20;
  pointer-events: none;
}

.card-floating-badge.featured {
  border-color: #2563eb;
  color: #2563eb;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.badge-dot.gold { background: #d97706; box-shadow: 0 0 6px #d97706; }
.badge-dot.accent { background: #2563eb; box-shadow: 0 0 6px #2563eb; }
.badge-dot.purple { background: #7c3aed; box-shadow: 0 0 6px #7c3aed; }

.badge-stat {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
}

/* Miniature Realistic A4 Sheet Mockups */
.mini-sheet {
  width: 100%;
  height: 100%;
  background: #ffffff;
  font-size: 7px;
  line-height: 1.35;
  color: #1f2937;
  box-sizing: border-box;
  display: flex;
  overflow: hidden;
}

.mini-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 3.5px;
  background: #e2e8f0;
}
.mini-bar.h-lg { height: 7px; border-radius: 3px; margin-bottom: 4px; }
.mini-bar.dark { background: #1e293b; }
.mini-bar.gold { background: #d97706; }
.mini-bar.white { background: #ffffff; }
.mini-bar.white-alpha { background: rgba(255, 255, 255, 0.65); }
.mini-bar.muted { background: #cbd5e1; }
.mini-bar.text { background: #94a3b8; height: 3px; }

.mini-bar.w-100 { width: 100%; }
.mini-bar.w-95 { width: 95%; }
.mini-bar.w-90 { width: 90%; }
.mini-bar.w-85 { width: 85%; }
.mini-bar.w-80 { width: 80%; }
.mini-bar.w-75 { width: 75%; }
.mini-bar.w-70 { width: 70%; }
.mini-bar.w-65 { width: 65%; }
.mini-bar.w-60 { width: 60%; }
.mini-bar.w-50 { width: 50%; }
.mini-bar.w-45 { width: 45%; }
.mini-bar.w-40 { width: 40%; }

.mini-heading-label {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mini-sec-heading {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid #e2e8f0;
}
.mini-sec-heading.accent {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.mini-sec-heading.purple-text {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}
.mini-sec-heading.dark {
  color: #1e293b;
  border-bottom-color: #cbd5e1;
}
.gold-text { color: #d97706; }
.white-text { color: #ffffff; }
.purple-text { color: #7c3aed; }
.blue-text { color: #2563eb; }

.mini-avatar-ph {
  width: 38px;
  height: 38px;
  background: #334155;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1.5px solid #d97706;
}
.mini-avatar-ph.circle {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.mini-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 8px 0;
}
.mini-divider.light {
  background: rgba(255, 255, 255, 0.25);
}

.mini-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 6px;
}
.mini-tags-cloud span {
  font-size: 5.5px;
  font-weight: 600;
  padding: 1px 4px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 3px;
  border: 0.5px solid #cbd5e1;
}
.mini-tags-cloud.light span {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Specific Template Preview Variants */
.t-executive-preview {
  display: grid;
  grid-template-columns: 32% 68%;
}
.mini-sidebar.dark-sidebar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
}
.mini-content-col {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
}
.mini-exp-row {
  margin-bottom: 4px;
}

.t-modern-preview {
  display: flex;
  flex-direction: column;
}
.mini-banner-head {
  background: #2563eb;
  padding: 14px 12px 10px;
  color: #ffffff;
}
.mini-contact-dots {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.mini-contact-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}
.mini-split-body {
  display: grid;
  grid-template-columns: 35% 65%;
  flex: 1;
}
.mini-side-pane {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 10px 8px;
}
.mini-main-pane {
  padding: 10px 10px;
  background: #ffffff;
}

.t-creative-preview {
  display: grid;
  grid-template-columns: 32% 68%;
}
.mini-sidebar.creative-sidebar {
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  padding: 14px 8px;
  color: #ffffff;
}

/* ==============================================
   BUILDER REVEAL TRANSITIONS (MULTI-STEP INTERFACE)
   ============================================== */
.builder-hidden {
  display: none !important;
}

@keyframes builderSubtleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.builder-revealed {
  display: block !important;
  animation: builderSubtleFadeIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==============================================
   FLOATING CV FORMATTING TOOLBAR (GLASSMORPHISM PILL)
   rgba(255,255,255,0.7), blur(12px), 1px border, pill shape
   ============================================== */
.formatting-controls {
  position: sticky;
  top: 86px;
  z-index: 100;
  margin: 0 auto var(--sp-4);
  max-width: 540px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
}

.format-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.slider-group input[type="range"] {
  accent-color: #2563eb;
  cursor: pointer;
}

.slider-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 38px;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.toggle-group input[type="checkbox"] {
  accent-color: #2563eb;
  cursor: pointer;
}

/* ==============================================
   FIXED BOTTOM GRADIENT OVERLAY
   Fades out scrolling long input forms at bottom
   ============================================== */
.bottom-fade-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0.8), transparent);
  z-index: 50;
  pointer-events: none;
}

/* ==============================================
   HOW IT WORKS 3-STEP SECTION
   ============================================== */
.landing-section {
  max-width: 1100px;
  margin: clamp(4.5rem, 9vh, 8rem) auto;
  padding: 0 var(--sp-4);
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-family: 'Satoshi', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.section-head p {
  color: #64748b;
  font-size: 0.95rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.step-box {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(2rem, 3.5vw, 2.75rem);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.step-box:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #000000;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.step-num {
  font-family: 'Satoshi', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #000000;
  line-height: 1;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  display: block;
  letter-spacing: -0.05em;
}

.step-box h3,
.step-box .step-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-family: 'Satoshi', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  line-height: 1.15;
}

.step-box p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==============================================
   ASYMMETRIC BENTO GRID ARCHITECTURE
   Clean white cards (#ffffff), 1px border (#f3f4f6),
   1.5rem rounded corners, soft shadows, brutalist typography
   ============================================== */

/* Consistent Mathematical Spacing (gap-6: 1.5rem / 24px, gap-8: 2rem / 32px) */
.gap-6 {
  gap: 1.5rem !important;
}

.gap-8 {
  gap: 2rem !important;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem; /* Consistent mathematical spacing (gap-6: 24px / 1.5rem) */
  width: 100%;
}

/* Asymmetric 12-Column Spans */
.bento-col-12 { grid-column: span 12; }
.bento-col-8  { grid-column: span 8; }
.bento-col-7  { grid-column: span 7; }
.bento-col-6  { grid-column: span 6; }
.bento-col-5  { grid-column: span 5; }
.bento-col-4  { grid-column: span 4; }
.bento-col-3  { grid-column: span 3; }

/* Bento Card Specification */
.bento-card {
  background: #ffffff !important;
  border: 1px solid #f3f4f6 !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.03), 0 2px 10px -2px rgba(0, 0, 0, 0.02) !important;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.05), 0 4px 15px -3px rgba(0, 0, 0, 0.02) !important;
}

/* Brutalist Typography for Headings in Deep Black (#000000) */
.bento-main-heading,
.bento-heading,
.bento-card h2,
.bento-card h3,
.pill-title {
  font-family: 'Satoshi', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 900 !important;
  color: #000000 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.1;
  margin: 0;
}

.bento-main-heading {
  font-size: 1.6rem;
  letter-spacing: -0.05em !important;
}

.bento-heading {
  font-size: 1.15rem;
}

/* Minimal Descriptive Text: Secondary Labels & Helper Text in Muted Gray, Uppercase, Wide Letter Spacing */
.bento-subhead,
.bento-label,
.label-minimal {
  color: #6b7280 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  display: block;
}

.bento-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.25rem;
}

/* ==============================================
   FROSTED GLASS PILL ELEMENT OVERLAY
   Uniform height (64px) & uniform padding (0 1.25rem)
   across all cards regardless of preview image height
   ============================================== */
.frosted-glass-pill {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  height: 64px; /* Uniform mathematical height across all cards */
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 0 1.25rem !important; /* Uniform mathematical padding */
  border-radius: 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 10;
  pointer-events: auto;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-info {
  display: flex;
  align-items: center;
  text-align: left;
}

.pill-title {
  font-family: 'Satoshi', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: #000000 !important;
  letter-spacing: -0.03em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.pill-meta {
  display: none !important; /* Secondary descriptive text removed for pristine look */
}

.pill-check-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Primary CTA 'SELECT & BUILD ->' Button */
.bento-pill-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 10px 20px !important;
  font-family: 'Satoshi', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bento-pill-btn:hover {
  background: #111827 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

.bento-pill-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* ==============================================
   TEMPLATE SELECTION BENTO CARDS (STEP 2 & LANDING)
   ============================================== */
.th.bento-card,
.showcase-bento-card {
  padding: 0 !important;
  cursor: pointer;
  border: 1px solid #f3f4f6 !important;
  border-radius: 1.5rem !important;
  outline: none;
}

.th.bento-card:hover,
.showcase-bento-card:hover {
  transform: translateY(-4px);
  border-color: #e5e7eb !important;
  box-shadow: 0 14px 35px -6px rgba(0, 0, 0, 0.08) !important;
}

.th.bento-card.sel {
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12), 0 14px 35px -6px rgba(0, 0, 0, 0.08) !important;
}

.th.bento-card.sel .frosted-glass-pill {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #000000 !important;
}

.th.bento-card.sel .pill-check-indicator {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
}

/* Template Preview Wrappers */
.th-preview-wrap,
.showcase-preview-frame {
  position: relative;
  width: 100%;
  height: 290px;
  background: #fafafa;
  overflow: hidden;
  border-radius: 1.5rem;
}

.bento-col-7 .th-preview-wrap,
.bento-col-7 .showcase-preview-frame {
  height: 340px;
}

.bento-col-5 .th-preview-wrap,
.bento-col-5 .showcase-preview-frame {
  height: 340px;
}

.th-preview-scale,
.showcase-thumb-scale {
  width: 794px;
  height: 1123px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.26);
  transform-origin: top center;
  pointer-events: none;
  user-select: none;
}

.bento-col-7 .th-preview-scale,
.bento-col-7 .showcase-thumb-scale {
  transform: translateX(-50%) scale(0.33);
}

.bento-col-5 .th-preview-scale,
.bento-col-5 .showcase-thumb-scale {
  transform: translateX(-50%) scale(0.29);
}

/* Accent Palette Bento Card in Step 2 */
.step2-bento-wrap {
  margin-bottom: var(--sp-4);
}

.step2-header {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-accent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.accent-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ==============================================
   ATS PERFORMANCE DASHBOARD BENTO SECTION
   ============================================== */
.ats-dashboard-section {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.dashboard-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ats-score-badge {
  background: #000000 !important;
  color: #ffffff !important;
  font-family: 'Satoshi', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  font-size: 0.82rem !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
}

/* Score Hero Card (Span 4) */
.ats-score-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.ats-score-hero-card .bento-card-header {
  align-items: center;
  width: 100%;
}

.score-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-top: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Parser Benchmarks Breakdown (Span 8) */
.ats-breakdown-card .ats-breakdown-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb !important;
  border: 1px solid #f3f4f6 !important;
  border-radius: 0.85rem !important;
  padding: 10px 14px !important;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937 !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ats-item:hover {
  background: #f3f4f6 !important;
  transform: translateY(-1px);
}

.ats-item.pass .ats-icon {
  background: #ecfdf5 !important;
  color: #059669 !important;
}

.ats-item.fail .ats-icon {
  background: #fef2f2 !important;
  color: #e11d48 !important;
}

.ats-pts {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  color: #000000;
  letter-spacing: -0.02em;
}

/* Job Description Keyword Matcher (Span 7) */
.jd-matcher-card .jd-input {
  width: 100%;
  min-height: 88px;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 0.85rem !important;
  padding: 12px;
  font-size: 0.85rem;
  background: #f9fafb !important;
  color: #0f172a !important;
  resize: vertical;
  margin-top: 6px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jd-matcher-card .jd-input:focus {
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

.jd-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.bento-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-family: 'Satoshi', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  font-size: 0.76rem !important;
  padding: 9px 20px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  border: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bento-btn:hover {
  background: #1f2937 !important;
  transform: translateY(-1px);
}

.jd-meter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.jd-meter-bar {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
}

.jd-meter-fill {
  height: 100%;
  background: #000000;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.jd-chips-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.jd-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 2px;
  text-transform: uppercase;
}

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

.jd-chip.missing {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Action Verb Auditor (Span 5) */
.weak-verbs-card {
  display: flex;
  flex-direction: column;
}

.weak-verbs-clean-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  margin-top: auto;
  margin-bottom: auto;
}

.clean-check-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.clean-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  color: #000000;
  letter-spacing: -0.02em;
  display: block;
}

.btn-suggest {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-suggest:hover {
  background: #374151 !important;
}

/* Tips & Recommendations Box (Span 12) */
.ats-tips-card {
  border-left: 4px solid #000000 !important;
}

.ats-tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ats-tips-list li {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #374151;
  font-weight: 600;
}

/* ==============================================
   BUILDER WIZARD STYLING (LIGHT MODE)
   ============================================== */
.wrap {
  position: relative;
  z-index: 1;
}

.brand h1 {
  color: #0f172a;
}

.brand p {
  color: #64748b;
}

/* Steps Indicator Pill */
nav[aria-label="Progress steps"] {
  display: flex;
  justify-content: center;
}

nav[aria-label="Progress steps"] .steps {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  padding: 6px 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  margin-bottom: var(--sp-5);
}

.dot {
  color: #64748b;
}

.dot.on {
  color: #0f172a;
}

.dot i {
  background: #e2e8f0;
  color: #334155;
}

.dot.on i {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* Cards in Light Mode: clean white, 1px border, 1.5rem radius, soft shadow, magnetic lift on hover */
.card {
  background: #ffffff !important;
  border: 1px solid #f3f4f6 !important;
  border-radius: 1.5rem !important;
  padding: var(--sp-5) !important;
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.03), 0 2px 10px -2px rgba(0, 0, 0, 0.02) !important;
  margin-bottom: var(--sp-4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease !important;
}

.card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.08), 0 6px 18px -4px rgba(0, 0, 0, 0.04) !important;
  border-color: #e5e7eb !important;
}

.card h2 {
  font-family: 'Satoshi', sans-serif !important;
  font-weight: 900 !important;
  color: #000000 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase !important;
  font-size: 1.25rem;
  margin-bottom: var(--sp-3);
}

label.f {
  font-family: 'Satoshi', sans-serif;
  color: #4b5563 !important;
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  display: block;
  margin-bottom: 4px;
}

/* ==============================================
   TEXT INPUT FIELDS (NAME, EXPERIENCE, EDUCATION)
   Transparent background, zero horizontal padding,
   zero box-shadow, bottom border 2px solid #d1d5db.
   On focus: transition bottom border to solid black,
   remove browser outline.
   ============================================== */
#form input[type="text"],
#form input[type="email"],
#form input[type="tel"],
#form input[type="url"],
#form textarea,
.field-group input,
.field-group textarea,
.row input,
.row textarea,
.custom-skill-input {
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 8px !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 2px solid #d1d5db !important;
  border-radius: 0 !important;
  color: #000000 !important;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-bottom-color 0.25s ease !important;
  width: 100%;
}

#form input[type="text"]:focus,
#form input[type="email"]:focus,
#form input[type="tel"]:focus,
#form input[type="url"]:focus,
#form textarea:focus,
.field-group input:focus,
.field-group textarea:focus,
.row input:focus,
.row textarea:focus,
.custom-skill-input:focus {
  outline: none !important;
  border-bottom-color: #000000 !important;
  box-shadow: none !important;
}

#form input::placeholder,
#form textarea::placeholder {
  color: #9ca3af !important;
  font-size: 0.88rem;
}

/* ==============================================
   CATEGORY & SKILL SELECTION TOGGLES
   Pill-shaped buttons transitioning from transparent
   with gray border to solid black with white text when active
   ============================================== */
.skills-toggle-section {
  margin-bottom: var(--sp-3);
}

.skill-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-pill {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-pill:hover {
  border-color: #000000;
  color: #000000;
}

.category-pill.active {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}

.skill-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.skill-toggle-pill {
  background: transparent !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  border-radius: 9999px !important;
  padding: 7px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.skill-toggle-pill:hover {
  border-color: #000000 !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.skill-toggle-pill.active {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.skill-toggle-pill.active::after {
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.custom-skill-adder {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  margin-bottom: 12px;
}

.custom-skill-input {
  flex: 1;
}

/* ==============================================
   PRIMARY CTA BUTTONS & MICRO-ANIMATIONS
   Solid black, fully rounded pills, ample padding (12px 32px),
   magnetic lift (translateY(-4px) scale(1.02)) and enhanced shadow
   ============================================== */
.btn-primary-cta,
.btn.pri,
.btn-generate-cv {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 12px 32px !important;
  border: none !important;
  font-family: 'Satoshi', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary-cta:hover,
.btn.pri:hover,
.btn-generate-cv:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.25), 0 6px 16px -4px rgba(0, 0, 0, 0.15) !important;
  background: #111827 !important;
}

.btn-primary-cta:active,
.btn.pri:active,
.btn-generate-cv:active {
  transform: translateY(-1px) scale(0.99) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

/* ==============================================
   STAGGERED SCROLL FADE-IN-UP REVEALS
   ============================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.btn.sec {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid #cbd5e1;
  color: #334155;
  border-radius: 9999px;
  padding: 12px 20px;
  font-weight: 600;
}

.btn.sec:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.btn.add {
  background: rgba(37, 99, 235, 0.06);
  border: 1.5px dashed rgba(37, 99, 235, 0.4);
  color: #2563eb;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.btn.add:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
}

/* Export Nav & Buttons */
.export-nav {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}

.btn-export {
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color var(--tr-fast), border-color var(--tr-fast), color var(--tr-fast);
}

.btn-export:hover {
  background: #ffffff;
  border-color: #2563eb;
  color: #2563eb;
}

/* CV Preview Stage (Clean White A4 Isolation) */
.stage {
  display: flex;
  justify-content: center;
  width: 100%;
  background: #f8fafc;
  padding: var(--sp-5) 0;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  margin-top: var(--sp-4);
}

.sheet {
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #065f46;
  color: #ecfdf5;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2000;
  display: none;
  animation: toastFadeIn 0.3s ease;
}

.toast-msg.visible {
  display: block;
}

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

/* ==============================================
   STRUCTURED PROFESSIONAL FOOTER COMPONENT
   Standard wide footer, subtle top border (#e5e7eb),
   stark black logo on left, minimalist utility links on right
   ============================================== */
footer,
.app-footer {
  width: 100%;
  border-top: 1px solid #e5e7eb;
  background: transparent;
  padding: 2rem var(--sp-4);
  position: relative;
  z-index: 100;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Far Left: Stark Black Logo / Brand Name */
.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  font-family: 'Satoshi', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo-badge {
  font-size: 1.1rem;
}

/* Far Right: Minimalist Horizontal List of Utility Links */
.footer-nav {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-link {
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em; /* Wide tracking */
  font-size: 0.75rem;     /* Small */
  font-weight: 700;
  font-family: 'Satoshi', 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 4px 0;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #000000;         /* Transitions to solid black on hover */
  outline: none;
}

@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 1.25rem;
  }
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    text-align: center;
  }
  .hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges-row {
    justify-content: center;
  }
  .hero-gallery-wrap {
    height: 430px;
  }
  .hero-3d-scene {
    transform: scale(0.9);
  }

  /* Bento Grid Responsive Collapsing for Tablets */
  .bento-col-12,
  .bento-col-8,
  .bento-col-7,
  .bento-col-6,
  .bento-col-5,
  .bento-col-4,
  .bento-col-3 {
    grid-column: span 12 !important;
  }
  .ats-breakdown-card .ats-breakdown-list {
    grid-template-columns: 1fr;
  }
  .th-preview-wrap,
  .showcase-preview-frame {
    height: 270px !important;
  }
  .th-preview-scale,
  .showcase-thumb-scale {
    transform: translateX(-50%) scale(0.25) !important;
  }
}

@media (max-width: 640px) {
  .hero-display-title {
    font-size: 2.6rem;
  }
  .hero-gallery-wrap {
    height: 360px;
  }
  .hero-3d-scene {
    transform: scale(0.74);
  }
  .nav-container {
    padding: 0 var(--sp-3);
    height: 52px;
  }
  .nav-links {
    gap: var(--sp-1);
  }
  .nav-roll-link {
    padding: 6px 8px;
    font-size: 0.82rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Bento Grid Mobile Adjustments */
  .dashboard-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .bento-card {
    padding: 1.2rem !important;
    border-radius: 1.25rem !important;
  }
  .jd-chips-container {
    grid-template-columns: 1fr;
  }
  .frosted-glass-pill {
    height: 56px !important;
    padding: 0 0.85rem !important;
    bottom: 0.75rem !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
  }
  .pill-title {
    font-size: 0.9rem !important;
  }
  .pill-meta {
    display: none !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .landing-hero-fullscreen {
    transition: opacity 250ms ease !important;
  }
  .landing-hero-fullscreen.hero-fade-out {
    transform: none !important;
  }
  .btn-generate-cv {
    transition: none !important;
  }
  .btn-generate-cv:hover {
    transform: none !important;
  }
  .builder-revealed {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
