/**
 * ForgCV by Vixfor — Home Page Styles
 */

/* ════════ HERO ════════ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,87,255,0.35) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%);
  top: 40%; right: 25%;
  animation-delay: -6s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,87,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,87,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* Hero Content */
.hero-content { max-width: 580px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(91,87,255,0.08);
  border: 1px solid rgba(91,87,255,0.2);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--clr-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.1s var(--ease-out) both;
}

.hero-title .line-accent {
  background: linear-gradient(135deg, #5B57FF 0%, #8B5CF6 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--clr-text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
  animation: fadeInUp 0.6s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s var(--ease-out) both;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fadeInUp 0.6s 0.4s var(--ease-out) both;
}

.avatars {
  display: flex;
}

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--clr-bg);
  margin-left: -8px;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-surface-2);
  font-weight: 700;
  color: var(--clr-accent);
}

.avatar:first-child { margin-left: 0; }

.social-proof-text {
  font-size: 0.8125rem;
  color: var(--clr-text-2);
  font-weight: 500;
}

.social-proof-text strong {
  color: var(--clr-text);
  font-weight: 700;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.8s 0.3s var(--ease-out) both;
}

.cv-mockup-container {
  position: relative;
  width: 380px;
  animation: float 6s ease-in-out infinite;
}

.cv-mockup {
  background: white;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-smooth);
}

.cv-mockup:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.mockup-header {
  height: 48px;
  background: linear-gradient(135deg, #5B57FF 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.mockup-body {
  padding: 20px;
  background: white;
}

.mockup-line {
  height: 10px;
  background: var(--clr-surface-2);
  border-radius: 5px;
  margin-bottom: 8px;
}

.mockup-line.w-80 { width: 80%; }
.mockup-line.w-60 { width: 60%; }
.mockup-line.w-40 { width: 40%; }
.mockup-line.w-90 { width: 90%; }
.mockup-line.w-70 { width: 70%; }
.mockup-line.accent { background: rgba(91,87,255,0.15); }
.mockup-line.thick { height: 16px; }
.mockup-divider { height: 1px; background: #F0F0F8; margin: 14px 0; }
.mockup-tags { display: flex; gap: 6px; margin-top: 12px; }
.mockup-tag {
  height: 22px; border-radius: 11px;
  background: rgba(91,87,255,0.1);
}
.mockup-tag.w-50 { width: 50px; }
.mockup-tag.w-70 { width: 70px; }
.mockup-tag.w-60 { width: 60px; }

/* Floating badges around mockup */
.badge-float {
  position: absolute;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--r-xl);
  padding: 0.5rem 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--clr-text);
}

.badge-float-1 {
  top: -16px; right: -32px;
  animation: float 5s 1s ease-in-out infinite;
}

.badge-float-2 {
  bottom: 32px; left: -40px;
  animation: float 5s 2s ease-in-out infinite;
}

.badge-float-3 {
  bottom: -16px; right: 16px;
  animation: float 5s 3s ease-in-out infinite;
}

.badge-float-icon { font-size: 16px; }

/* ════════ STATS ════════ */
.stats-section {
  padding-block: 3rem;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--clr-text);
  margin-bottom: 0.25rem;
  background: var(--clr-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.875rem; color: var(--clr-text-2); font-weight: 500; }

/* ════════ HOW IT WORKS ════════ */
.how-section { background: var(--clr-bg); }

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
}

.how-arrow {
  display: flex;
  align-items: center;
  padding-top: 2rem;
  color: var(--clr-text-3);
  opacity: 0.5;
}

.how-step { text-align: center; padding: 2rem 1.5rem; }

.how-step-num {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(91,87,255,0.08);
  border: 1px solid rgba(91,87,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-accent);
  margin: 0 auto 1.25rem;
  transition: all var(--dur-base) var(--ease-spring);
}

.how-step:hover .how-step-num {
  background: var(--clr-grad);
  border-color: transparent;
  transform: scale(1.08);
  color: white;
  box-shadow: 0 8px 24px rgba(91,87,255,0.3);
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.how-step p {
  font-size: 0.875rem;
  color: var(--clr-text-2);
  line-height: 1.6;
}

/* ════════ FEATURES ════════ */
.features-section { background: var(--clr-surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--r-2xl);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91,87,255,0.15);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-xl);
  background: rgba(91,87,255,0.08);
  border: 1px solid rgba(91,87,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
  transition: all var(--dur-base) var(--ease-spring);
}
.feature-icon svg { transition: all var(--dur-base) var(--ease-spring); }

.feature-card:hover .feature-icon {
  background: var(--clr-grad);
  border-color: transparent;
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(91,87,255,0.25);
  color: white;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--clr-text-2);
  line-height: 1.65;
}

/* ════════ TEMPLATES PREVIEW ════════ */
.templates-section { background: var(--clr-bg-2); }

.templates-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tpl-showcase-card {
  aspect-ratio: 3/4;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--dur-base) var(--ease-smooth);
}

.tpl-showcase-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.tpl-showcase-card .tpl-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0;
  transition: opacity var(--dur-base);
}

.tpl-showcase-card:hover .tpl-overlay { opacity: 1; }

.tpl-overlay-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
}

/* Template colors */
.tpl-showcase-classic   { background: linear-gradient(135deg, #EEF0FF 0%, #D8D6FF 100%); }
.tpl-showcase-modern    { background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%); }
.tpl-showcase-minimal   { background: linear-gradient(135deg, #ECFDF5 0%, #A7F3D0 100%); }
.tpl-showcase-executive { background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4A 100%); }

.tpl-mini {
  position: absolute;
  inset: 12px;
  background: white;
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.tpl-mini-line {
  height: 7px;
  background: #F0F0F8;
  border-radius: 4px;
  margin-bottom: 5px;
}

.tpl-mini-line.accent { background: rgba(91,87,255,0.25); width: 60%; }
.tpl-mini-line.w-75 { width: 75%; }
.tpl-mini-line.w-50 { width: 50%; }
.tpl-mini-line.w-85 { width: 85%; }
.tpl-mini-line.w-40 { width: 40%; }

/* ════════ TESTIMONIALS ════════ */
.testimonials-section { background: var(--clr-surface); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91,87,255,0.15);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.star { color: #F59E0B; font-size: 14px; }

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--clr-text-2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.author-role {
  font-size: 0.75rem;
  color: var(--clr-text-3);
}

.testimonial-flag { font-size: 18px; margin-left: auto; }

/* ════════ CTA SECTION ════════ */
.cta-section {
  background: var(--clr-bg-2);
  padding-block: 5rem;
}

.cta-box {
  background: var(--clr-grad);
  border-radius: var(--r-3xl);
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  top: -300px; right: -200px;
}

.cta-box::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -200px; left: -100px;
}

.cta-box * { position: relative; z-index: 1; }

.cta-box h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn-white {
  background: white;
  color: var(--clr-accent);
  border-color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-arrow { display: none; }
  .templates-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 3rem 1.5rem; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .templates-showcase { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════
   HOME PAGE ENHANCEMENTS — v2
   Pure visual polish. Builder = main product.
════════════════════════════════════════════ */

/* ── Hero — stronger CTA, better typography ── */
.hero-title {
  letter-spacing: -0.045em;
  line-height: 1.06;
}
.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--clr-text-2);
}
.hero-actions { gap: 0.75rem; }
.hero-actions .btn-xl {
  min-height: 54px;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 1.875rem;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 24px rgba(91,87,255,0.35);
}
.hero-actions .btn-xl:hover {
  box-shadow: 0 10px 36px rgba(91,87,255,0.45);
  transform: translateY(-3px);
}
.hero-actions .btn-secondary { min-height: 54px; font-size: 0.9375rem; }

/* ── CV Mockup — more dramatic ── */
.cv-mockup {
  box-shadow: 0 40px 100px rgba(0,0,0,0.18), 0 12px 32px rgba(0,0,0,0.09);
}
.cv-mockup-container { width: 400px; }

/* ── Feature cards — tighter, more premium ── */
.feature-card {
  padding: 1.75rem;
  border-radius: var(--r-2xl);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 50px; height: 50px; border-radius: var(--r-xl);
  font-size: 23px;
}
.feature-card h3 { letter-spacing: -0.025em; }

/* ── CTA box — punchier ── */
.cta-box {
  border-radius: 24px;
}
.cta-box h2 {
  letter-spacing: -0.04em; line-height: 1.1;
}

/* ── Stats — cleaner numbers ── */
.stat-number {
  letter-spacing: -0.04em; line-height: 1;
}

/* ── Social proof ── */
.social-proof-text { font-size: 0.8125rem; font-weight: 600; }

/* ── Mobile hero ── */
@media (max-width: 640px) {
  .hero-actions .btn-xl {
    width: 100%; min-height: 52px;
    justify-content: center;
  }
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; gap: 0.625rem; }
}

/* ── 480px home ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 5rem 0 3rem; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .hero-subtitle { font-size: .875rem; }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-social-proof { flex-direction: column; gap: .5rem; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { margin: 0; }
  .stats-grid, .numbers-grid { grid-template-columns: 1fr 1fr; gap: .875rem; }
  .final-cta-band { padding: 3rem 0; }
  .final-cta-band h2 { font-size: 1.5rem; }
}
