/* ═══════════════════════════════════════════════════════════════════════════
   landing.css — ResumeAI landing page (v4 rebuild)
   Depends on app.css design tokens.
   ═══════════════════════════════════════════════════════════════════════════ */

body.landing { overflow-x: hidden; }

/* ── Ambient background ───────────────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(110px); opacity: 0.18;
}
.bg-glow-1 { width: 560px; height: 560px; top: -200px; right: -120px; background: var(--brand-1); }
.bg-glow-2 { width: 480px; height: 480px; top: 35%; left: -200px; background: var(--brand-3); opacity: 0.10; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 1.5rem);
}
.site-nav-links { display: flex; align-items: center; gap: 1.7rem; }
.site-nav-links a {
  color: var(--text-soft); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.site-nav-links a:hover { color: var(--text); }
.nav-link-login { color: var(--text) !important; font-weight: 600 !important; }
.site-nav-links a.nav-cta-mobile { color: #fff; font-weight: 600; }
.site-nav-links a.nav-cta-mobile:hover { background: var(--brand-grad); }
.site-nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.nav-cta-mobile { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(7rem, 14vh, 9.5rem) 1.5rem clamp(3rem, 7vh, 5rem); }
.hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-badge { animation: fadeUp 0.7s ease both; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 700; margin: 1.1rem 0 1.2rem;
  animation: fadeUp 0.7s 0.08s ease both;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.06rem; color: var(--text-soft); max-width: 33rem; line-height: 1.7;
  animation: fadeUp 0.7s 0.16s ease both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.8rem 0 2rem; animation: fadeUp 0.7s 0.24s ease both; }

.hero-proof { display: flex; align-items: center; gap: 0.9rem; animation: fadeUp 0.7s 0.32s ease both; }
.hero-proof p { font-size: 0.86rem; color: var(--text-muted); }
.hero-proof strong { color: var(--text-soft); }
.avatars { display: flex; }
.av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--av, var(--brand-1));
  color: #fff; font-size: 0.74rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.avatars .av + .av { margin-left: -9px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Hero visual ──────────────────────────────────────────────────────────── */
.hero-visual { position: relative; min-height: 420px; animation: fadeUp 0.8s 0.2s ease both; }

.mock-resume {
  position: relative; margin-left: auto;
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.mr-head { margin-bottom: 1.2rem; }
.mr-name { height: 16px; width: 55%; border-radius: 5px; background: var(--text-soft); opacity: 0.85; margin: 0 auto 8px; }
.mr-contact { height: 8px; width: 75%; border-radius: 4px; background: var(--surface-3); margin: 0 auto; }
.mr-section { margin-bottom: 1.1rem; }
.mr-title { height: 10px; width: 38%; border-radius: 4px; background: var(--brand-1); opacity: 0.8; margin-bottom: 9px; }
.mr-line { height: 7px; border-radius: 4px; background: var(--surface-3); margin-bottom: 7px; }
.mr-line.hl { background: linear-gradient(90deg, rgba(124, 92, 252, 0.5), rgba(56, 189, 248, 0.4)); }
.w-95 { width: 95%; } .w-92 { width: 92%; } .w-90 { width: 90%; }
.w-88 { width: 88%; } .w-85 { width: 85%; } .w-70 { width: 70%; } .w-60 { width: 60%; }
.mr-chiprow { display: flex; gap: 6px; flex-wrap: wrap; }
.mr-chip { height: 16px; width: 52px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border); }
.mr-chip.wide { width: 74px; }

.ats-float {
  position: absolute; top: -28px; left: -8px;
  width: 132px; padding: 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}
.ats-float-donut { width: 100%; }
.donut-arc { animation: drawArc 1.6s 0.5s cubic-bezier(0.3, 0.8, 0.3, 1) both; }
@keyframes drawArc { from { stroke-dasharray: 0 264; } to { stroke-dasharray: 240 264; } }
.ats-float-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.ats-float-num strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--success); line-height: 1; }
.ats-float-num span { font-size: 0.58rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.kw-float {
  position: absolute;
  font-size: 0.76rem; font-weight: 600; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 99px; padding: 0.4rem 0.85rem;
  box-shadow: var(--shadow-md);
  animation: floatY 6s ease-in-out infinite;
}
.kw-float::first-letter { color: var(--success); }
.kw-1 { bottom: 24%; left: -14px; animation-delay: 0.8s; }
.kw-2 { bottom: 8%; right: 6%; animation-delay: 1.6s; }
.kw-3 { top: 16%; right: -10px; animation-delay: 2.4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Stats strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-evenly; flex-wrap: wrap; gap: 1.2rem;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; display: block; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 0.82rem; color: var(--text-muted); }
.stat-div { width: 1px; height: 38px; background: var(--border); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 9vh, 6.5rem) 1.5rem 0; }
.section-head { text-align: center; margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin-top: 1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(124, 92, 252, 0.4); box-shadow: var(--shadow-md); }
.step-num {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-grad); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 14px -2px rgba(124, 92, 252, 0.5);
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.step p { font-size: 0.91rem; color: var(--text-soft); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(124, 92, 252, 0.4); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.89rem; color: var(--text-soft); }

/* ── Showcase ─────────────────────────────────────────────────────────────── */
.showcase-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-md);
}
.showcase-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 1rem 0 0.9rem; }
.showcase-copy p { color: var(--text-soft); font-size: 0.96rem; }
.check-list { list-style: none; margin: 1.3rem 0 1.7rem; display: grid; gap: 0.55rem; }
.check-list li { font-size: 0.93rem; color: var(--text-soft); padding-left: 1.7rem; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--success); font-weight: 800;
}

.showcase-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
}
.sp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.sp-title { font-weight: 700; font-size: 0.95rem; }
.sp-grade {
  font-family: var(--font-display); font-weight: 700; color: var(--success);
  background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px; padding: 0.15rem 0.6rem; font-size: 0.9rem;
}
.sp-body { display: flex; gap: 1.4rem; align-items: center; }
.sp-donut { width: 110px; flex-shrink: 0; }
.sp-rows { flex: 1; display: grid; gap: 0.7rem; min-width: 0; }
.sp-row { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 0.6rem; font-size: 0.76rem; }
.sp-row span { color: var(--text-muted); white-space: nowrap; }
.sp-row b { color: var(--text-soft); font-size: 0.74rem; }
.sp-bar { height: 6px; background: var(--ats-track); border-radius: 99px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--success); border-radius: 99px; }
.sp-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.sp-tag {
  font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 99px;
  background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3);
}
.sp-tag.ok { background: rgba(16, 185, 129, 0.1); color: var(--success); border-color: rgba(16, 185, 129, 0.3); }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.quote-stars { color: var(--warning); font-size: 0.85rem; letter-spacing: 2px; }
.quote blockquote { font-size: 0.94rem; color: var(--text-soft); line-height: 1.65; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 0.75rem; }
.quote figcaption .av { border-color: var(--surface); width: 38px; height: 38px; font-size: 0.85rem; }
.quote figcaption strong { display: block; font-size: 0.88rem; }
.quote figcaption span:last-child { font-size: 0.78rem; color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 1.3rem;
  transition: border-color 0.2s;
}
.faq-list details[open] { border-color: rgba(124, 92, 252, 0.4); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: 0.97rem;
  padding: 1.05rem 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--text-muted); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-list details[open] .faq-chevron { transform: rotate(180deg); }
.faq-list details p { padding: 0 0 1.15rem; color: var(--text-soft); font-size: 0.91rem; }

/* ── Final CTA ────────────────────────────────────────────────────────────── */
.final-cta {
  max-width: 1180px; margin: clamp(4rem, 9vh, 6.5rem) auto 0; padding: clamp(3rem, 7vh, 5rem) 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(124, 92, 252, 0.22), transparent),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.final-cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.final-cta p { color: var(--text-muted); margin-bottom: 1.8rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { max-width: 1180px; margin: 0 auto; padding: clamp(3rem, 7vh, 4.5rem) 1.5rem 2rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 0.86rem; color: var(--text-muted); margin-top: 0.9rem; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--text-soft); font-size: 0.89rem; padding: 0.28rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.6rem; font-size: 0.8rem; color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 2.5rem; max-width: 460px; }
  .mock-resume { margin: 0 auto; }
  .steps, .feature-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .showcase-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-nav-links {
    position: fixed; top: 60px; left: 0.8rem; right: 0.8rem;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .site-nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav-links a { padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); }
  .site-nav-links a:hover { background: var(--surface-2); }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 0.4rem; }
  .hamburger { display: flex; }

  .steps, .feature-grid, .quote-grid { grid-template-columns: 1fr; }
  .stat-div { display: none; }
  .stats-strip { gap: 1.5rem 2.2rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .sp-body { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}
