/* AI Resume Builder — landing page styles.
   Hand-written CSS, no framework, no JavaScript. Colours are the
   product's own tokens (app/lib/core/theme/app_tokens.dart):
   ink #0B1220 → #14295E → primary #1F4FD8, teal #14B8A6. */

:root {
  --ink: #0B1220;
  --ink-mid: #14295E;
  --ink-surface: #16213B;
  --primary: #1F4FD8;
  --primary-dark: #1A41B4;
  --teal: #14B8A6;
  --maroon: #5D2A35;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --on-ink: #F1F5F9;
  --on-ink-muted: #B9C6DA;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(11, 18, 32, 0.10);
  --shadow-lift: 0 24px 60px rgba(11, 18, 32, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 79, 216, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-ink);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-large { padding: 14px 28px; font-size: 16px; }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.brand img { border-radius: 8px; }
.brand-light { color: var(--on-ink); }
.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--primary); }
.site-header .btn { margin-left: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-ink);
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-mid) 55%, var(--primary) 130%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -160px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35) 0%, rgba(20, 184, 166, 0) 65%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  left: -260px; bottom: -420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 79, 216, 0.5) 0%, rgba(31, 79, 216, 0) 65%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--on-ink-muted);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--on-ink-muted); }

/* CSS-only Maroon Sidebar preview */
.hero-visual { position: relative; justify-self: center; }
.cv-mock {
  display: flex;
  width: 340px;
  height: 440px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
}
.cv-side {
  width: 34%;
  background: #EFE3E6;
  border-left: 5px solid var(--maroon);
  padding: 26px 16px;
}
.cv-main { flex: 1; padding: 28px 22px; }
.cv-photo {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(140deg, #C9A7B0, var(--maroon));
  margin-bottom: 16px;
}
.cv-name {
  height: 20px; width: 78%; border-radius: 4px;
  background: var(--maroon); margin-bottom: 10px;
}
.cv-line { height: 7px; border-radius: 4px; background: #D8DEE9; margin-bottom: 9px; }
.cv-line.light { background: #D9C6CC; }
.cv-line.accent { background: var(--maroon); opacity: 0.75; height: 9px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w45 { width: 45%; }
.w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w65 { width: 65%; } .w70 { width: 70%; } .w80 { width: 80%; }
.w85 { width: 85%; } .w88 { width: 88%; } .w90 { width: 90%; }
.w92 { width: 92%; } .w95 { width: 95%; }
.cv-gap { height: 14px; }
.cv-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.cv-dots span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--maroon);
}
.cv-dots span.off { background: #D9C6CC; }
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-ink);
  background: rgba(22, 33, 59, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.chip-check { left: -38px; bottom: 74px; }
.chip-ai { right: -22px; top: 52px; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: #22C55E; }
.dot-teal { background: var(--teal); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); font-size: 17px; max-width: 46em; margin-top: 14px; }
.section h2 { max-width: 22em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--ink-mid), var(--primary));
  color: #fff;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

/* templates */
.tpl-card { position: relative; }
.tpl-flagship { border-color: var(--maroon); box-shadow: 0 6px 20px rgba(93, 42, 53, 0.14); }
.tpl-europass { border-color: var(--primary); }
.tpl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.tag-ats { background: #E8F5E9; color: #15803D; }
.tag-design { background: #F3E8EE; color: var(--maroon); }
.tag-eu { background: #E3EBFD; color: var(--primary); }
.tag-flag { background: var(--maroon); color: #fff; }
.tag-free { background: #E6F7F4; color: #0B7A6C; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-num {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* pricing */
.section-dark {
  color: var(--on-ink);
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-mid) 60%, var(--primary) 140%);
}
.section-dark h2 { margin-bottom: 16px; }
.pricing-inner { max-width: 760px; }
.pricing-copy {
  color: var(--on-ink-muted);
  font-size: 17px;
  max-width: 42em;
  margin-bottom: 30px;
}

/* faq */
.faq-wrap { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 16px; max-width: 46em; }

/* final cta */
.cta-band { padding: 72px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { margin: 0 auto 26px; }

/* footer */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding: 56px 0 34px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p { margin-top: 14px; max-width: 30em; font-size: 15px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--on-ink-muted); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-legal { padding-top: 22px; font-size: 13.5px; }
.footer-legal p { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 76px; gap: 48px; }
  .hero h1 { font-size: 38px; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .chip-check { left: 0; }
  .chip-ai { right: 0; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-inner { gap: 14px; }
  .site-header .btn { margin-left: auto; }
  h2 { font-size: 27px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cv-mock { width: 300px; height: 390px; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover, .btn-primary:hover { transform: none; }
}
