/* ═══════════════════════════════════════════════
   ATS Resume Checker — Design System
   Premium SaaS Career Tool Aesthetic
   ═══════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Primary Palette — Jobscan Blue */
  --primary-50: #e6f0fd;
  --primary-100: #cce1fb;
  --primary-200: #99c3f7;
  --primary-300: #4d94e8;
  --primary-400: #1a75d4;
  --primary-500: #0066d0;
  --primary-600: #0052a6;
  --primary-700: #003d7d;
  --primary-800: #002953;
  --primary-900: #001a35;

  /* Accent — Success Green */
  --accent-400: #26ae60;
  --accent-500: #1e9c54;
  --accent-600: #178a48;

  /* Warning */
  --warning-400: #f3a712;
  --warning-500: #f39c12;

  /* Danger */
  --danger-400: #e74c3c;
  --danger-500: #c0392b;

  /* Neutrals — Jobscan Grays */
  --gray-50: #fafbfc;
  --gray-100: #f5f8fa;
  --gray-200: #e8eef3;
  --gray-300: #d1dce5;
  --gray-400: #9aabb8;
  --gray-500: #6d8291;
  --gray-600: #5e6d75;
  --gray-700: #3d4f5f;
  --gray-800: #273a46;
  --gray-900: #1a3353;
  --gray-950: #0d1b2a;

  /* Surfaces — Clean White */
  --surface-bg: #ffffff;
  --surface-card: #ffffff;
  --surface-card-hover: #f5f8fa;
  --surface-border: #d1dce5;
  --surface-glass: rgba(255, 255, 255, 0.9);

  /* Text — Dark Navy */
  --text-primary: #1a3353;
  --text-secondary: #5e6d75;
  --text-muted: #9aabb8;
  --text-accent: #0066d0;

  /* Gradients — Jobscan Blue */
  --gradient-primary: linear-gradient(135deg, #0066d0 0%, #0052a6 100%);
  --gradient-accent: linear-gradient(135deg, #26ae60 0%, #1e9c54 100%);
  --gradient-surface: linear-gradient(180deg, #e6f0fd 0%, #ffffff 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(0, 102, 208, 0.08) 0%, transparent 70%);
  --gradient-hero: linear-gradient(180deg, #e6f0fd 0%, #f5f8fa 40%, #ffffff 100%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows — Clean Light */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 4px 20px rgba(0, 102, 208, 0.15);
  --shadow-glow-lg: 0 8px 40px rgba(0, 102, 208, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Max content width */
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #e6f0fd 0%, #ffffff 600px) no-repeat #ffffff;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-300);
}

a:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: #0066d0;
  color: white;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

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

.text-accent { color: var(--accent-500); }
.text-muted { color: var(--text-muted); }

/* ── Layout ── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

/* ══════════════════════════════════
   NAVIGATION
   ══════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid #e8eef3;
  transition: box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav__link {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: #0066d0;
  background: rgba(0, 102, 208, 0.06);
}

.nav__cta {
  padding: var(--space-sm) var(--space-lg);
  background: var(--gradient-primary);
  color: white !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 102, 208, 0.25);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    gap: var(--space-xs);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1rem;
    padding: var(--space-md) var(--space-lg);
    width: 100%;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ══════════════════════════════════
   HERO SECTION
   ══════════════════════════════════ */
.hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 208, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 102, 208, 0.08);
  border: 1px solid rgba(0, 102, 208, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0066d0;
  margin-bottom: var(--space-lg);
}

.hero__badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

/* ══════════════════════════════════
   TOOL CARD — ATS CHECKER
   ══════════════════════════════════ */
.tool-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-400), transparent);
  opacity: 0.5;
}

.tool-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--surface-border);
}

.tool-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tool-card__dot--red { background: #ef4444; }
.tool-card__dot--yellow { background: #f59e0b; }
.tool-card__dot--green { background: #10b981; }

.tool-card__body {
  padding: var(--space-xl);
}

/* ── Upload Area ── */
.upload-area {
  border: 2px dashed rgba(0, 102, 208, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  background: rgba(0, 102, 208, 0.02);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #0066d0;
  background: rgba(0, 102, 208, 0.04);
  box-shadow: var(--shadow-glow);
}

.upload-area__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 208, 0.08);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
}

.upload-area__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.upload-area__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surface-border);
}

/* ── Textarea ── */
.textarea-wrap {
  position: relative;
}

.textarea {
  width: 100%;
  min-height: 160px;
  padding: var(--space-md) var(--space-lg);
  background: #ffffff;
  border: 1px solid #d1dce5;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.textarea:focus {
  outline: none;
  border-color: #0066d0;
  box-shadow: 0 0 0 3px rgba(0, 102, 208, 0.1);
}

.textarea::placeholder {
  color: var(--text-muted);
}

.textarea--sm {
  min-height: 100px;
}

/* ── Labels ── */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.label__optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: #0066d0;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 208, 0.25);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #0052a6;
  box-shadow: 0 6px 25px rgba(0, 102, 208, 0.3);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn--secondary {
  background: #ffffff;
  color: #0066d0;
  border: 1px solid #0066d0;
}

.btn--secondary:hover:not(:disabled) {
  background: rgba(0, 102, 208, 0.06);
  border-color: #0052a6;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(0, 102, 208, 0.04);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

.btn--full {
  width: 100%;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Spinner ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════
   RESULTS PANEL
   ══════════════════════════════════ */
.results {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.results.show {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Score Circle ── */
.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl) 0;
}

.score-ring {
  position: relative;
  width: 180px;
  height: 180px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring__bg {
  fill: none;
  stroke: #e8eef3;
  stroke-width: 8;
}

.score-ring__fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 0.5s ease;
}

.score-ring__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring__number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.score-ring__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: var(--space-xs);
}

.score--excellent .score-ring__number { color: var(--accent-400); }
.score--good .score-ring__number { color: #34d399; }
.score--fair .score-ring__number { color: var(--warning-400); }
.score--poor .score-ring__number { color: var(--danger-400); }

/* ── Score Breakdown Grid ── */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.score-item {
  background: #ffffff;
  border: 1px solid #d1dce5;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
}

.score-item:hover {
  border-color: #0066d0;
  background: #f5f8fa;
}

.score-item__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-item__value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.score-item__bar {
  height: 4px;
  background: #e8eef3;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-item__bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Issues & Suggestions ── */
.issues-list {
  list-style: none;
}

.issue {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.issue:hover {
  background: #f5f8fa;
}

.issue__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-top: 2px;
}

.issue--error .issue__icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-400);
}

.issue--warning .issue__icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning-400);
}

.issue--success .issue__icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-400);
}

.issue--info .issue__icon {
  background: rgba(0, 102, 208, 0.1);
  color: var(--primary-400);
}

.issue__content {
  flex: 1;
}

.issue__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.issue__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Keywords ── */
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.keyword-tag {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.keyword-tag--found {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-400);
}

.keyword-tag--missing {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger-400);
}

/* ── Section Tabs ── */
.result-tabs {
  display: flex;
  gap: 2px;
  background: #f5f8fa;
  border-radius: var(--radius-lg);
  padding: 3px;
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}

.result-tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.result-tab:hover {
  color: var(--text-secondary);
}

.result-tab.active {
  background: #0066d0;
  color: #ffffff;
}

.result-panel {
  display: none;
}

.result-panel.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* ══════════════════════════════════
   FEATURES ROW
   ══════════════════════════════════ */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.feature-badge:hover {
  border-color: #0066d0;
  transform: translateY(-2px);
}

.feature-badge__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-badge__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ══════════════════════════════════
   CONTENT SECTIONS  
   ══════════════════════════════════ */
.content-section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--surface-border);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cards ── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(0, 102, 208, 0.2);
  background: var(--surface-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 208, 0.08);
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-xl);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
  color: white;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.step__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Examples ── */
.example-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.example-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.example-card:hover {
  border-color: rgba(0, 102, 208, 0.2);
}

.example-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.example-card__score {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.example-card__score-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.example-card__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── FAQ ── */
.faq-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--surface-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--primary-300);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question::after {
  content: '−';
  color: var(--primary-400);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer__inner {
  padding-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Related Tools ── */
.tool-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.tool-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.tool-link:hover {
  border-color: rgba(0, 102, 208, 0.2);
  color: #0066d0;
  background: var(--surface-card-hover);
  transform: translateX(4px);
}

.tool-link__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--surface-border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════
   CONTENT PAGES
   ══════════════════════════════════ */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--surface-border);
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary-300);
}

.breadcrumb__sep {
  color: var(--gray-600);
}

/* ── Article Content ── */
.article {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
  z-index: 1;
}

.article h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface-border);
}

.article h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.article ul, .article ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.article li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.article strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article a {
  color: var(--primary-400);
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 208, 0.3);
  text-underline-offset: 3px;
}

.article a:hover {
  text-decoration-color: var(--primary-400);
}

/* ── Callout ── */
.callout {
  padding: var(--space-lg) var(--space-xl);
  background: rgba(0, 102, 208, 0.04);
  border-left: 3px solid var(--primary-500);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-xl) 0;
}

.callout p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.callout--warning {
  background: rgba(245, 158, 11, 0.06);
  border-left-color: var(--warning-500);
}

.callout--success {
  background: rgba(16, 185, 129, 0.06);
  border-left-color: var(--accent-500);
}

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f5f8fa;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--surface-border);
}

td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid #e8eef3;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(0, 102, 208, 0.02);
}

/* ── Internal Links Section ── */
.internal-links {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.internal-links h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.internal-links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.internal-links li a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.internal-links li a:hover {
  background: rgba(0, 102, 208, 0.06);
  color: #0066d0;
}

.internal-links li a::before {
  content: '→';
  color: var(--primary-400);
  font-size: 0.75rem;
}

/* ── Checklist visual ── */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-400);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ── File Name Tag ── */
.file-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 102, 208, 0.06);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--primary-300);
}

/* ── Contact Form ── */
.form-group {
  margin-bottom: var(--space-lg);
}

.input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(0, 102, 208, 0.1);
}

.input::placeholder {
  color: var(--text-muted);
}

/* ══════════════════════════════════
   UTILITIES
   ══════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }
.mt-2xl { margin-top: var(--space-2xl) !important; }
.text-center { text-align: center; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .tool-card__body {
    padding: var(--space-lg);
  }

  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .features-row {
    grid-template-columns: 1fr;
  }
}

/* ── Print ── */
@media print {
  body::before,
  .nav,
  .footer,
  .upload-area,
  .btn-group { display: none; }

  body {
    background: white;
    color: #111;
  }
}
