/* ==========================================================
   CareerLens AI — style.css
   1. Tokens  2. Reset  3. Typography  4. Layout  5. Buttons
   6. Navigation  7. Hero  8. Sections & cards  9. Steps
   10. Dashboard preview  11. CTA  12. Footer  13. Responsive
   ========================================================== */

/* 1. Design tokens */
:root {
  --bg: #14141a;
  --bg-alt: #1a1a22;
  --surface: #20202a;
  --surface-2: #272733;
  --border: #33333f;
  --text: #f1f1f6;
  --muted: #a6a6b8;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --mint: #34d399;
  --mint-soft: #6ee7b7;
  --grad: linear-gradient(135deg, var(--violet), var(--mint));
  --font:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --header-h: 68px;
  --container: 1120px;
}

/* 2. Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--mint);
  color: #08130e;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* 3. Typography */
h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
}
.eyebrow {
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.accent {
  color: var(--mint);
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 4. Layout */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  display: grid;
  gap: 12px;
}
.section-sub {
  color: var(--muted);
}

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-primary {
  background: var(--grad);
  color: #0b0b10;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(52, 211, 153, 0.25);
}
.btn-outline {
  border-color: var(--border);
  background: var(--surface);
}
.btn-outline:hover {
  border-color: var(--violet-soft);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .card {
    transition: none;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* 6. Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(20, 20, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition:
    transform 0.25s,
    background 0.25s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before {
  top: -6px;
}
.nav-toggle-bars::after {
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* 7. Hero */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(
      600px 300px at 20% 0%,
      rgba(139, 92, 246, 0.22),
      transparent 70%
    ),
    radial-gradient(
      500px 300px at 85% 10%,
      rgba(52, 211, 153, 0.14),
      transparent 70%
    );
}
.hero-inner {
  display: grid;
  justify-items: center;
  gap: 24px;
}
.hero-inner h1 {
  max-width: 860px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-points li::before {
  content: "\2713\00a0";
  color: var(--mint);
  font-weight: 700;
}

/* 8. Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: var(--shadow);
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet-soft);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* 9. Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
}
.step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #0b0b10;
  font-weight: 800;
}

/* 10. Dashboard preview */
.dash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4a5a;
}
.dot:first-child {
  background: #f87171;
}
.dot:nth-child(2) {
  background: #fbbf24;
}
.dot:nth-child(3) {
  background: var(--mint);
}
.dash-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.dash-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 340px;
}
.dash-side {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}
.side-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.side-item.active {
  background: rgba(139, 92, 246, 0.18);
  color: var(--text);
}
.dash-main {
  padding: 20px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  gap: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}
.stat strong {
  font-size: 1.7rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.panel h4 {
  font-size: 0.85rem;
  font-weight: 600;
}
.bar {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.bar i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
}
.w-35 i::after {
  width: 35%;
}
.w-60 i::after {
  width: 60%;
}
.w-70 i::after {
  width: 70%;
}
.w-85 i::after {
  width: 85%;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.tag {
  font-style: normal;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
}
.tag-mint {
  background: rgba(52, 211, 153, 0.15);
  color: var(--mint-soft);
}
.tag-violet {
  background: rgba(139, 92, 246, 0.18);
  color: var(--violet-soft);
}

/* 11. Final CTA */
.cta-box {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 64px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(
      500px 220px at 15% 0%,
      rgba(139, 92, 246, 0.28),
      transparent 70%
    ),
    radial-gradient(
      500px 220px at 90% 100%,
      rgba(52, 211, 153, 0.2),
      transparent 70%
    ),
    var(--surface);
}
.cta-box p {
  color: var(--muted);
  max-width: 520px;
}

/* 12. Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* 13. Responsive */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    gap: 4px;
  }
  .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 1rem;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-actions .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 64px 0;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .dash-body {
    grid-template-columns: 1fr;
  }
  .dash-side {
    display: none;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .dash-panels {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    width: 100%;
  }
}
