/*
   SKILLSCAN — STYLESHEET
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080d14;
  --bg2:         #0d1520;
  --surface:     #111c2d;
  --surface2:    #162035;
  --border:      rgba(99,147,255,0.12);
  --border-mid:  rgba(99,147,255,0.22);
  --blue:        #3b82f6;
  --blue-bright: #60a5fa;
  --purple:      #8b5cf6;
  --purple-light:#a78bfa;
  --cyan:        #06b6d4;
  --green:       #22c55e;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --text:        #e2e8f0;
  --text-mid:    #94a3b8;
  --text-dim:    #475569;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.4);
  --shadow-blue:  0 0 40px rgba(59,130,246,0.15);
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- AMBIENT ORBS ---- */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #1e40af, transparent); top: -200px; left: -200px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #4c1d95, transparent); top: 20%; right: -150px; animation-delay: -6s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #0e7490, transparent); bottom: 10%; left: 30%; animation-delay: -12s; }
@keyframes orb-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.1); } }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8,13,20,0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: #fff;
}
.nav-badge {
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.02em;
}

/* ---- HERO ---- */
.hero {
  position: relative; z-index: 1;
  padding: 160px 2rem 100px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: fade-up 0.6s 0.1s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--purple-light) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  animation: fade-up 0.6s 0.2s ease both;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  box-shadow: 0 0 30px rgba(59,130,246,0.35);
  transition: var(--transition);
  animation: fade-up 0.6s 0.3s ease both;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(59,130,246,0.5);
}

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 3.5rem;
  animation: fade-up 0.6s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.stat-n {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue-bright), var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-l { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.04em; }
.stat-div { width: 1px; height: 32px; background: var(--border-mid); }

/* ---- TOOL SECTION ---- */
.tool-section { position: relative; z-index: 1; padding: 80px 2rem; }
.tool-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

/* ---- INPUT GRID ---- */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ---- PANEL (glass cards) ---- */
.panel {
  background: rgba(17,28,45,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.panel:hover { border-color: var(--border-mid); box-shadow: var(--shadow-blue); }

.panel-header {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.panel-icon {
  width: 32px; height: 32px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright);
}

/* ---- DROP ZONE ---- */
.drop-zone {
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.drop-zone.drag-over {
  border-color: var(--blue);
  background: rgba(59,130,246,0.06);
  box-shadow: inset 0 0 30px rgba(59,130,246,0.08);
}
.drop-icon {
  width: 52px; height: 52px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  margin: 0 auto 1rem;
  transition: var(--transition);
}
.drop-zone:hover .drop-icon { color: var(--blue-bright); border-color: var(--border-mid); }
.drop-title { font-weight: 500; color: var(--text); margin-bottom: 0.3rem; }
.drop-sub { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.drop-link { color: var(--blue-bright); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.drop-note { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.04em; }

.drop-success { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.success-icon { margin-bottom: 0.25rem; }
.success-name { font-weight: 600; color: var(--green); font-size: 0.9rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.success-sub { font-size: 0.8rem; color: var(--text-dim); }
.change-file {
  margin-top: 0.5rem;
  background: none; border: 1px solid var(--border-mid);
  color: var(--text-mid); font-size: 0.78rem;
  padding: 0.3rem 0.9rem; border-radius: 100px;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.change-file:hover { border-color: var(--blue); color: var(--blue-bright); }

/* ---- JD TEXTAREA ---- */
.jd-textarea {
  width: 100%; height: 200px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 1rem 1.1rem;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}
.jd-textarea::placeholder { color: var(--text-dim); }
.jd-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.char-count { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.5rem; text-align: right; }

/* ---- ANALYZE BUTTON ---- */
.analyze-wrap { text-align: center; padding: 1rem 0 0.5rem; }
.analyze-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  border: none; cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  box-shadow: 0 0 35px rgba(59,130,246,0.3), 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
  overflow: hidden;
}
.analyze-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  opacity: 0; transition: opacity 0.3s;
}
.analyze-btn:hover::before { opacity: 1; }
.analyze-btn:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(59,130,246,0.5), 0 8px 30px rgba(0,0,0,0.4); }
.analyze-btn:active { transform: translateY(0); }
.analyze-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-text, .btn-spinner, .btn-arrow { position: relative; z-index: 1; }
.btn-spinner { display: flex; align-items: center; gap: 0.5rem; }
.analyze-note { margin-top: 0.75rem; font-size: 0.78rem; color: var(--text-dim); }

/* ---- SKELETON ---- */
.skeleton-section { position: relative; z-index: 1; padding: 0 2rem 60px; }
.skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.skel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.skel-card.tall { min-height: 260px; }
.skel-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skel-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin: 0 auto;
}
.skel-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.skel-pill { height: 28px; width: 80px; border-radius: 100px; background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- RESULTS SECTION ---- */
.results-section { position: relative; z-index: 1; padding: 0 2rem 80px; }
.results-header { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.reset-btn {
  align-self: flex-start; margin-top: 0.5rem;
  background: none; border: 1px solid var(--border-mid);
  color: var(--text-mid); font-family: var(--font-body);
  font-size: 0.82rem; padding: 0.45rem 1.1rem;
  border-radius: 100px; cursor: pointer; transition: var(--transition);
}
.reset-btn:hover { border-color: var(--blue); color: var(--blue-bright); }

.results-row { margin-bottom: 1.25rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.row-1 { display: grid; grid-template-columns: 1fr; }

/* ---- RESULT CARDS ---- */
.result-card {
  background: rgba(17,28,45,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  animation: fade-up 0.5s ease both;
}
.result-card:hover { border-color: var(--border-mid); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-label {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 0.4rem;
}
.card-desc { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1.25rem; line-height: 1.5; }

/* ---- ATS SCORE ---- */
.card-score { display: flex; flex-direction: column; align-items: center; text-align: center; }
.score-visual { position: relative; width: 140px; height: 140px; margin: 1rem auto; }
.score-ring { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--surface2); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.6));
}
.score-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: row; gap: 1px;
}
.score-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-bright), var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.score-denom { font-size: 0.85rem; color: var(--text-dim); align-self: flex-end; padding-bottom: 6px; }

.score-breakdown { width: 100%; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.breakdown-item { display: flex; flex-direction: column; gap: 0.3rem; }
.breakdown-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-mid); }
.breakdown-val { font-size: 0.75rem; color: var(--blue-bright); font-weight: 500; }
.breakdown-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.breakdown-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ---- MATCHED SKILLS ---- */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  font-size: 0.8rem; font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: var(--transition);
}
.skill-pill:hover { background: rgba(34,197,94,0.18); transform: translateY(-1px); }

/* ---- SKILL GAPS ---- */
.gaps-list { display: flex; flex-direction: column; gap: 0.75rem; }
.gap-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  transition: var(--transition);
}
.gap-item:hover { border-color: var(--border-mid); }
.gap-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.gap-name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.gap-badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.gap-badge.high   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.gap-badge.medium { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.gap-badge.low    { background: rgba(34,197,94,0.1);   color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.gap-reason { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }

/* ---- KEYWORDS ---- */
.keyword-score-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.kw-score-label { font-size: 0.8rem; color: var(--text-mid); }
.kw-score-val {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--blue-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.kw-progress-wrap { margin-bottom: 1.25rem; }
.kw-progress-bar { height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.kw-progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); width: 0; border-radius: 3px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

.kw-section-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 0.6rem; }

.kw-table-wrap { overflow-x: auto; }
.kw-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.kw-table thead tr { border-bottom: 1px solid var(--border); }
.kw-table th { padding: 0.4rem 0.75rem; text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.kw-table td { padding: 0.5rem 0.75rem; color: var(--text); border-bottom: 1px solid var(--border); }
.kw-table tr:last-child td { border-bottom: none; }
.kw-table tr:hover td { background: var(--surface2); }
.kw-imp { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.15rem 0.5rem; border-radius: 100px; }
.kw-imp.high   { background: rgba(239,68,68,0.12);  color: #f87171; }
.kw-imp.medium { background: rgba(245,158,11,0.12); color: #fbbf24; }
.kw-imp.low    { background: rgba(34,197,94,0.1);   color: #4ade80; }

.missing-kw-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.missing-kw-tag {
  font-size: 0.78rem; font-weight: 500;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
  padding: 0.25rem 0.7rem; border-radius: 100px;
}

/* ---- AI REWRITES ---- */
.rewrites-list { display: flex; flex-direction: column; gap: 1.25rem; }
.rewrite-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.rewrite-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow); }
.rewrite-before, .rewrite-after {
  padding: 1rem 1.25rem;
  font-size: 0.875rem; line-height: 1.65;
}
.rewrite-before { background: rgba(239,68,68,0.05); border-bottom: 1px solid var(--border); }
.rewrite-before-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #f87171; margin-bottom: 0.4rem; }
.rewrite-before p { color: var(--text-mid); }
.rewrite-arrow {
  padding: 0.5rem 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface);
  color: var(--text-dim); font-size: 0.75rem;
}
.rewrite-after { background: rgba(34,197,94,0.05); }
.rewrite-after-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #4ade80; margin-bottom: 0.4rem; }
.rewrite-after p { color: var(--text); font-weight: 500; }
.rewrite-reason {
  padding: 0.85rem 1.25rem;
  background: rgba(59,130,246,0.07);
  border-top: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 0.6rem;
  line-height: 1.6;
}
.rewrite-reason-label { color: var(--blue-bright); font-weight: 700; white-space: nowrap; font-size: 0.88rem; }

/* ---- SUMMARY ---- */
.card-summary { border-color: rgba(99,147,255,0.2); background: rgba(17,28,45,0.95); }
.card-summary::before {
  content: '';
  display: block; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  border-radius: 3px 3px 0 0;
  margin: -1.75rem -1.75rem 1.75rem;
  width: calc(100% + 3.5rem);
}
.summary-body {
  font-size: 1rem; line-height: 1.8;
  color: var(--text-mid);
}
.summary-body strong { color: var(--text); }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem; color: #f87171;
  box-shadow: var(--shadow);
  animation: slide-up 0.3s ease;
}
@keyframes slide-up { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---- UTILITIES ---- */
.hidden { display: none !important; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SVG GRADIENT DEF ---- */
body::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
}

/* ---- SPIN ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 130px 1.5rem 70px; }
  .hero-stats { gap: 1.25rem; }
  .tool-section, .results-section, .skeleton-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .input-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .nav-badge { display: none; }
}