/* FlexResume AI — website styles. Palette pulled from the brand logo: deep
   navy + gold/amber, silver accents. */

:root {
  --navy-950: #060910;
  --navy-900: #0b0f1a;
  --navy-800: #111629;
  --navy-700: #182140;
  --navy-600: #232f52;
  --gold-500: #d4af37;
  --gold-400: #e9c869;
  --gold-300: #f3dc9a;
  --silver-200: #e7e9ee;
  --white: #ffffff;
  --text-muted: #9aa3b8;
  --text-body: #2a3142;
  --bg-page: #ffffff;
  --bg-soft: #f6f7fb;
  --border-soft: #e4e6ee;
  --success: #2e9e5b;
  --danger: #d0483f;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 8px 30px rgba(11, 15, 26, 0.08);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.35);
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 0.5em; color: var(--navy-900); }
p { line-height: 1.6; margin: 0 0 1em; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.gold-text { color: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--border-soft);
}
.btn--ghost:hover:not(:disabled) { border-color: var(--gold-500); color: var(--navy-950); }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 9, 16, 0.92); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; }
.brand-logo { height: 44px; display: block; }
.header-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-link { color: var(--silver-200); text-decoration: none; font-weight: 500; font-size: 14px; opacity: 0.85; }
.nav-link:hover { opacity: 1; color: var(--gold-400); }
.nav-link--whatsapp { color: var(--gold-400); }
@media (max-width: 800px) { .header-nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 20%, var(--navy-700), var(--navy-950) 70%);
  color: var(--white);
  padding: 90px 0 100px;
  text-align: center;
}
.eyebrow {
  color: var(--gold-400);
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 { font-size: 52px; line-height: 1.12; letter-spacing: -1px; color: var(--white); }
.hero-sub { max-width: 620px; margin: 24px auto 34px; color: var(--silver-200); font-size: 17px; opacity: 0.9; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-note { color: var(--text-muted); font-size: 13px; }
@media (max-width: 640px) { .hero h1 { font-size: 36px; } }

/* ---------- How it works ---------- */
.how-it-works { padding: 80px 0; background: var(--bg-soft); }
.section-title { text-align: center; font-size: 32px; }
.section-sub { text-align: center; color: var(--text-muted); margin-top: -6px; margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow-card); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950); font-weight: 700; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; }
.step-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Templates ---------- */
.templates { padding: 80px 0; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
@media (max-width: 900px) { .template-grid { grid-template-columns: 1fr; } }
.template-card {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.template-card:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.template-card.is-selected { border-color: var(--gold-500); box-shadow: var(--shadow-gold); }
.template-thumb {
  height: 160px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.thumb-line { height: 6px; border-radius: 3px; background: var(--border-soft); }
.thumb-line.w60 { width: 60%; }
.thumb-line.w80 { width: 80%; }
.thumb-line.w40 { width: 40%; }
.thumb-line.accent { background: var(--gold-500); height: 8px; width: 45%; margin-bottom: 4px; }
.template-card h3 { font-size: 19px; margin-bottom: 0; }
.template-price { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 20px; }
.template-price small { font-weight: 500; color: var(--text-muted); font-size: 13px; }
.template-desc { color: var(--text-muted); font-size: 14px; margin: 0; flex: 1; }

/* ---------- Builder ---------- */
.builder { padding: 60px 0 90px; background: var(--bg-soft); }
.builder-progress { max-width: 640px; margin: 0 auto 40px; }
.progress-track { height: 6px; background: var(--border-soft); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); width: 20%; transition: width 0.3s ease; }
.progress-steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.progress-steps span.is-active { color: var(--gold-500); }

.builder-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: flex-start; }
@media (max-width: 900px) { .builder-layout { grid-template-columns: 1fr; } }

.builder-form { background: var(--white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.form-step h2 { font-size: 22px; margin-bottom: 22px; }
.builder-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-800); margin-bottom: 16px; }
.builder-form .optional { font-weight: 400; color: var(--text-muted); }
.builder-form input, .builder-form textarea {
  display: block; width: 100%; margin-top: 6px;
  border: 1.5px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 11px 13px; font-size: 14px; font-family: var(--font-body); color: var(--text-body);
}
.builder-form input:focus, .builder-form textarea:focus { outline: none; border-color: var(--gold-500); }
.builder-form textarea { min-height: 80px; resize: vertical; }
.field-divider { border: none; border-top: 1px solid var(--border-soft); margin: 22px 0; }
.added-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.added-item {
  background: var(--bg-soft); border-radius: var(--radius-md); padding: 10px 14px;
  font-size: 13px; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center;
}
.form-nav { display: flex; justify-content: space-between; margin-top: 28px; }

.builder-preview {
  background: var(--navy-950); border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 90px;
}
.builder-preview h3 { color: var(--gold-400); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.preview-frame-wrap { background: var(--white); border-radius: var(--radius-md); overflow: hidden; height: 520px; }
.preview-frame-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---------- Payment ---------- */
.payment { padding: 80px 0; }
.payment-inner { max-width: 640px; }
.payment-methods { display: flex; align-items: stretch; gap: 20px; margin-top: 30px; }
@media (max-width: 640px) { .payment-methods { flex-direction: column; } }
.payment-method {
  flex: 1; border: 1.5px solid var(--border-soft); border-radius: var(--radius-lg); padding: 26px; text-align: center;
}
.payment-method h3 { font-size: 17px; }
.payment-method input { width: 100%; border: 1.5px solid var(--border-soft); border-radius: var(--radius-md); padding: 11px 13px; margin: 10px 0 16px; font-size: 14px; text-align: center; }
.payment-divider { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.payment-status { font-size: 13px; margin-top: 12px; min-height: 18px; color: var(--text-muted); }
.payment-status.is-error { color: var(--danger); }
.payment-status.is-success { color: var(--success); }

/* ---------- Success ---------- */
.success { padding: 100px 0; text-align: center; background: var(--bg-soft); }
.success-inner .btn { margin: 8px; }
.success-downloads { display: flex; flex-wrap: wrap; justify-content: center; }
.success h2 { font-size: 30px; }

/* ---------- Pricing (marketing) ---------- */
.pricing { padding: 80px 0; background: var(--navy-950); color: var(--white); }
.pricing .section-title, .pricing .section-sub { color: var(--white); }
.pricing .section-sub { color: var(--text-muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { background: var(--navy-800); border-radius: var(--radius-lg); padding: 30px; text-align: center; border: 1.5px solid var(--navy-600); }
.pricing-card h3 { color: var(--white); }
.pricing-card .price { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--gold-400); margin: 10px 0; }
.pricing-card .price small { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; margin: 18px 0 0; color: var(--silver-200); font-size: 14px; text-align: left; }
.pricing-card li { padding: 6px 0; border-top: 1px solid var(--navy-600); }
.pricing-card li:first-child { border-top: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-muted); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; }
.footer-logo { height: 30px; opacity: 0.9; }
.site-footer a { color: var(--gold-400); text-decoration: none; }

/* ---------- Utility ---------- */
[hidden] { display: none !important; }
