/* =============================================
   RESUMEAI — GLOBAL STYLES
   Theme: Purple & Dark (Modern/Techy)
   Fonts: Space Grotesk (display) + Inter (body)
============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:        #0d0d14;
  --bg-surface:     #13131f;
  --bg-card:        #1a1a2e;
  --bg-card-hover:  #1f1f38;
  --purple-bright:  #a855f7;
  --purple-mid:     #7c3aed;
  --purple-soft:    #6d28d9;
  --purple-glow:    rgba(168, 85, 247, 0.15);
  --purple-border:  rgba(168, 85, 247, 0.25);
  --text-primary:   #f1f0ff;
  --text-secondary: #a09cc0;
  --text-muted:     #6b6890;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(168, 85, 247, 0.4);
  --gradient:       linear-gradient(135deg, #a855f7, #7c3aed);
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--purple-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: #c084fc; }

input, select, textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
select option { background: var(--bg-card); }
textarea { resize: vertical; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--purple-bright);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--purple-border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover {
  background: var(--purple-glow);
  border-color: var(--purple-bright);
  color: var(--purple-bright);
}

.btn-full { width: 100%; text-align: center; }

/* --- NAVBAR --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.btn-nav {
  background: var(--gradient);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem !important;
}
.btn-nav:hover { opacity: 0.88; }

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  padding: 1rem 2rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--text-primary); background: var(--bg-card); }
.mobile-menu.open { display: flex; }

/* --- HERO --- */
.hero {
  text-align: center;
  padding: 6rem 2rem 5rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  color: var(--purple-bright);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-bright);
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* --- SECTION SHARED --- */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-bright);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* --- FEATURES --- */
.features {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.feature-card--highlight {
  border-color: var(--purple-border);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,0.08) 100%);
}
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* --- HOW IT WORKS --- */
.how-it-works {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: left;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple-bright);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.88rem; color: var(--text-secondary); }
.step-arrow { font-size: 1.5rem; color: var(--text-muted); }

/* --- CTA --- */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; }

/* --- PAGE HEADER (inner pages) --- */
.page-header {
  text-align: center;
  padding: 3.5rem 2rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.page-sub { color: var(--text-secondary); font-size: 1rem; }

/* --- FORM SHARED --- */
.form-section { margin-bottom: 2rem; }
.form-section-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* --- EMPTY & LOADING STATES --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  color: var(--text-secondary);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state p { font-size: 0.95rem; line-height: 1.6; }
.empty-sub { font-size: 0.82rem !important; color: var(--text-muted); margin-top: 0.4rem; }

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 1.25rem;
  color: var(--text-secondary);
}
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-credit { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.footer-links { font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--purple-bright); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .navbar { padding: 1rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .features, .how-it-works { padding: 3rem 1.5rem; }
  .steps { flex-direction: column; align-items: stretch; }
  .step { max-width: 100%; }
  .step-arrow { transform: rotate(90deg); }
}
