/* ============================================================
   NextCV – "AI Career Copilot" Premium Visual System
   Loaded by index.html and, optionally, other AI-focused landing
   pages (currently also free-ai-resume-generator.html) on top of
   assets/css/style.css.

   Scoping rule: style.css section classes (.hero, .stats-section,
   .features-section, .ats-section, .how-section, .templates-section,
   .screenshots-section, .compare-section, .faq-section, .cta-section,
   .footer, .header, .nav) are shared with other landing pages
   (ats-score.html, resume-maker-online.html, free-ai-resume-generator.html,
   ats-resume-generator.html). Every rule below is either:
     a) keyed to a "--copilot"/new BEM modifier class that only exists
        in index.html's markup, so the shared pages are never touched, or
     b) a brand-new, homepage-only class (ai-demo-*, bento-*, job-match-*,
        coach-*, pricing-*, value-props-*) with no shared-page collision.
   ============================================================ */

:root {
  /* Brand-true AI accents — pulled from the real ResumeNova design
     system (lib/core/theme in the Flutter app), not invented purple. */
  --ai-primary:   #004AC6;
  --ai-secondary: #4B41E1;
  --ai-teal:      #0D9488;
  --ai-navy-950:  #05070D;
  --ai-navy-900:  #0A0E1C;
  --ai-navy-800:  #10152A;
  --ai-surface:   rgba(255,255,255,.045);
  --ai-surface-hi:rgba(255,255,255,.07);
  --ai-border:    rgba(255,255,255,.09);
  --ai-text:      #F5F6FA;
  --ai-text-dim:  #9CA3AF;
  --ai-gradient:  linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
}

/* ── Shared helpers (new, unused elsewhere) ─────────────────── */
.gradient-text--copilot {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-tag--copilot {
  background: rgba(75,65,225,.12);
  color: #6B5CFF;
}
.ats-section .section-tag--copilot,
.job-match-content .section-tag--copilot {
  background: rgba(255,255,255,.1);
  color: #C7CCFF;
}

@media (prefers-reduced-motion: reduce) {
  .ai-scan-card *, .bento-card, .coach-card, .pricing-card,
  .job-match-card, .value-card { animation: none !important; transition: none !important; }
}

/* ═════════════════════════════════════════════════════════
   NAV — floating glass upgrade (homepage only)
═════════════════════════════════════════════════════════ */
.header--copilot {
  background: rgba(5,7,13,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header--copilot.scrolled {
  background: rgba(5,7,13,.82);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.header--copilot .nav__logo,
.header--copilot .logo-accent { color: #fff; }
.header--copilot .nav__link { color: rgba(255,255,255,.72); }
.header--copilot .nav__link:hover,
.header--copilot .nav__link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.header--copilot .nav__toggle span { background: #fff; }
@media (max-width: 768px) {
  .header--copilot .nav__menu {
    background: rgba(5,7,13,.97);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .header--copilot .nav__link { color: rgba(255,255,255,.8); }
}

/* ═════════════════════════════════════════════════════════
   HERO — deep navy + AI scan panel
═════════════════════════════════════════════════════════ */
.hero--copilot {
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(75,65,225,.35) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 85%, rgba(0,74,198,.30) 0%, transparent 60%),
    linear-gradient(160deg, var(--ai-navy-950) 0%, var(--ai-navy-900) 55%, var(--ai-navy-800) 100%);
}
.hero--copilot .hero-badge {
  background: var(--ai-surface-hi);
  border-color: var(--ai-border);
}
.hero--copilot .hero-badge i { color: #8B9CFF; }

.hero-mockup-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
}

/* AI scan card */
.ai-scan-card {
  width: 240px;
  flex-shrink: 0;
  background: rgba(13,16,28,.75);
  border: 1px solid var(--ai-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  position: relative;
  z-index: 2;
  animation: gentle-float 5.5s ease-in-out infinite .3s;
}
.ai-scan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  color: #fff;
  margin-bottom: 14px;
}
.ai-scan-head i {
  color: #8B9CFF;
  animation: sparkle-pulse 2.2s ease-in-out infinite;
}
@keyframes sparkle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.15); }
}
.ai-scan-role {
  font-size: .6875rem;
  color: var(--ai-text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.ai-scan-role strong { display: block; color: #fff; font-size: .875rem; letter-spacing: 0; text-transform: none; margin-top: 2px; }
.ai-scan-divider { height: 1px; background: var(--ai-border); margin: 14px 0; }

.ai-scan-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: #C7CCFF;
  margin-bottom: 12px;
}
.ai-scan-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8B9CFF;
  animation: sparkle-pulse 1.4s ease-in-out infinite;
}

.ai-scan-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ai-scan-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.85);
  opacity: 0;
  animation: check-in .5s ease forwards;
}
.ai-scan-check i { color: #34D399; font-size: .75rem; }
.ai-scan-check:nth-child(1) { animation-delay: .3s; }
.ai-scan-check:nth-child(2) { animation-delay: .8s; }
.ai-scan-check:nth-child(3) { animation-delay: 1.3s; }
.ai-scan-check:nth-child(4) { animation-delay: 1.8s; }
@keyframes check-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ai-scan-match-label {
  display: flex;
  justify-content: space-between;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--ai-text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.ai-scan-match-label span:last-child { color: #34D399; }
.ai-scan-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 16px;
}
.ai-scan-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--ai-primary), var(--ai-secondary));
  width: 0%;
  animation: fill-match 1.4s ease 2.1s forwards;
}
@keyframes fill-match { to { width: 92%; } }

.ai-scan-btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--ai-gradient);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  opacity: 0;
  animation: check-in .5s ease 2.6s forwards;
}

@media (max-width: 1024px) {
  .hero-mockup-stack { flex-direction: column-reverse; gap: 20px; }
  .ai-scan-card { width: 100%; max-width: 320px; }
}
@media (max-width: 480px) {
  .ai-scan-card { display: none; } /* keep hero light & fast on small phones */
}

/* ═════════════════════════════════════════════════════════
   TRUST STRIP (inside stats-section, homepage only)
═════════════════════════════════════════════════════════ */
.trust-strip {
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.trust-strip-title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-lt);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.trust-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-pill {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

/* ═════════════════════════════════════════════════════════
   AI DEMO (before / after)
═════════════════════════════════════════════════════════ */
.ai-demo-section { background: #fff; }
.ai-demo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}
.ai-demo-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
}
.ai-demo-before { background: var(--bg); }
.ai-demo-after {
  background: linear-gradient(160deg, #F5F4FF 0%, #EEF1FF 100%);
  border-color: #DAD9FF;
  position: relative;
}
.ai-demo-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-xlt);
  margin-bottom: 12px;
}
.ai-demo-label--ai {
  color: var(--ai-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-demo-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-md);
}
.ai-demo-after p { color: var(--text); font-weight: 500; }
.ai-demo-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ai-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(75,65,225,.35);
  justify-self: center;
}
.ai-demo-cta { display: flex; justify-content: center; margin-top: 40px; }
.ai-demo-cta .btn-primary {
  background: var(--ai-gradient);
  box-shadow: 0 8px 24px rgba(75,65,225,.35);
}
.ai-demo-cta .btn-primary:hover { filter: brightness(1.08); }

@media (max-width: 768px) {
  .ai-demo-grid { grid-template-columns: 1fr; }
  .ai-demo-arrow { transform: rotate(90deg); }
}

/* ═════════════════════════════════════════════════════════
   FEATURES — bento grid (homepage only)
═════════════════════════════════════════════════════════ */
.features-section--copilot { background: var(--bg); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #C9CBFF;
}
.bento-card--lg { grid-column: span 2; }
.bento-card--dark {
  background: var(--ai-navy-900);
  border-color: rgba(255,255,255,.08);
}
.bento-card--dark h3 { color: #fff; }
.bento-card--dark p  { color: var(--ai-text-dim); }

.bento-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-size: 1.15rem;
  margin-bottom: 18px;
  background: var(--ai-gradient);
  color: #fff;
}
.bento-icon--teal { background: linear-gradient(135deg, var(--ai-teal), #14B8A6); }
.bento-icon--outline {
  background: var(--blue-light);
  color: var(--ai-primary);
}
.bento-card h3 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.bento-card p {
  font-size: .875rem;
  color: var(--text-lt);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--lg { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--lg { grid-column: span 1; }
}

/* ═════════════════════════════════════════════════════════
   JOB MATCHING
═════════════════════════════════════════════════════════ */
.job-match-section {
  background: linear-gradient(160deg, var(--ai-navy-950) 0%, var(--ai-navy-900) 100%);
  position: relative;
  overflow: hidden;
}
.job-match-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.job-match-content .section-title { color: #fff; margin-bottom: 18px; }
.job-match-content > p {
  color: rgba(255,255,255,.68);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}
.job-match-content .ats-list li { color: rgba(255,255,255,.85); }

.job-match-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ai-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.job-match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.job-match-role { font-weight: 700; color: #fff; font-size: 1.0625rem; }
.job-match-role-sub { font-size: .75rem; color: var(--ai-text-dim); }
.job-match-score-badge {
  text-align: right;
}
.job-match-score-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: #34D399;
  line-height: 1;
}
.job-match-score-lbl { font-size: .6875rem; color: var(--ai-text-dim); }

.job-match-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.job-match-bar-row { font-size: .8125rem; color: rgba(255,255,255,.8); }
.job-match-bar-row-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.job-match-bar-row-top span:last-child { font-weight: 700; color: #fff; }
.job-match-bar-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.job-match-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--ai-primary), var(--ai-secondary));
  width: var(--w);
}

.job-match-missing-title {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--ai-text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.job-match-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.job-match-chip {
  font-size: .75rem;
  font-weight: 600;
  color: #FCA5A5;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.25);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

@media (max-width: 1024px) {
  .job-match-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .job-match-content .ats-list { align-items: center; }
}

/* ═════════════════════════════════════════════════════════
   AI RESUME COACH (insight cards — not a chat mockup, matches
   the app's real "prioritized coaching tips" feature)
═════════════════════════════════════════════════════════ */
.coach-section { background: #fff; }
.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.coach-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--bg);
  border-left: 4px solid var(--text-xlt);
}
.coach-card-critical    { border-left-color: var(--red); }
.coach-card-recommended { border-left-color: var(--orange); }
.coach-card-polish      { border-left-color: var(--ai-secondary); }
.coach-card-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.coach-card-critical .coach-card-tag    { color: var(--red);    background: var(--red-lt); }
.coach-card-recommended .coach-card-tag { color: var(--orange); background: var(--orange-lt); }
.coach-card-polish .coach-card-tag      { color: var(--ai-secondary); background: rgba(75,65,225,.1); }
.coach-card h3 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.coach-card p { font-size: .875rem; color: var(--text-lt); line-height: 1.65; }

@media (max-width: 1024px) { .coach-grid { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════════
   WORKFLOW — connecting glow line (how-section, homepage only)
═════════════════════════════════════════════════════════ */
.steps-row--copilot { position: relative; }
.steps-row--copilot::before {
  content: '';
  position: absolute;
  top: 78px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ai-secondary) 15%, var(--ai-primary) 50%, var(--ai-secondary) 85%, transparent);
  opacity: .35;
  z-index: 0;
}
.steps-row--copilot .step-card { position: relative; z-index: 1; }
.steps-row--copilot .step-icon { background: var(--ai-gradient); box-shadow: 0 8px 20px rgba(75,65,225,.3); }
@media (max-width: 768px) { .steps-row--copilot::before { display: none; } }

/* ═════════════════════════════════════════════════════════
   VALUE PROPS (replaces unverifiable testimonials)
═════════════════════════════════════════════════════════ */
.value-props-section { background: linear-gradient(135deg, var(--bg) 0%, #EFF3FF 100%); }
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: left;
  transition: all var(--trans);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--ai-gradient);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.value-card h3 { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: .9rem; color: var(--text-lt); line-height: 1.65; }

@media (max-width: 1024px) { .value-props-grid { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════════
   PRICING
═════════════════════════════════════════════════════════ */
.pricing-section { background: #fff; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin-inline: auto;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card-pro {
  background: var(--ai-navy-900);
  border-color: rgba(255,255,255,.1);
}
.pricing-badge {
  position: absolute;
  top: -14px; right: 28px;
  background: var(--ai-gradient);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.pricing-plan {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.pricing-card-pro .pricing-plan { color: #fff; }
.pricing-desc { font-size: .875rem; color: var(--text-lt); margin-bottom: 24px; }
.pricing-card-pro .pricing-desc { color: var(--ai-text-dim); }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-md);
  line-height: 1.5;
}
.pricing-card-pro .pricing-features li { color: rgba(255,255,255,.82); }
.pricing-features li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.pricing-card-pro .pricing-features li i { color: #34D399; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  justify-content: center;
}
.btn-outline:hover { background: var(--bg); transform: translateY(-2px); }
.pricing-card-pro .btn-primary {
  background: var(--ai-gradient);
  justify-content: center;
}
.pricing-note {
  font-size: .75rem;
  color: var(--ai-text-dim);
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════════
   FINAL CTA — small copy-only refinements share .cta-section;
   no visual overrides needed (already dark/premium).
═════════════════════════════════════════════════════════ */
