/* ============================================================
   MSPHire — Responsive Stylesheet
   Mobile-first. Breakpoints: 480px, 600px, 640px, 768px, 1024px
   ============================================================ */

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #080f1e;
  --navy-mid:   #0d1830;
  --navy-card:  #111d33;
  --navy-light: #162240;
  --cyan:       #00e5ff;
  --cyan-dim:   #00b8cc;
  --cyan-glow:  rgba(0,229,255,0.12);
  --white:      #ffffff;
  --off-white:  #e8edf5;
  --muted:      #6b7fa3;
  --muted-2:    #3d4f6e;
  --green:      #00e5a0;
  --amber:      #ffb547;
  --red:        #ff5c5c;
  --border:     rgba(255,255,255,0.07);
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-mono:  'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,229,255,0.3); }
  70%  { box-shadow: 0 0 0 12px rgba(0,229,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.7s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.3s  ease both; }
.fade-up-4 { animation: fadeUp 0.7s 0.45s ease both; }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 480px)  { .container { padding: 0 20px; } }
@media (min-width: 768px)  { .container { padding: 0 24px; } }

/* ─── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,15,30,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
@media (min-width: 768px) { .nav-inner { height: 60px; } }

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 201;
  position: relative;
}
.logo-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-ring 2.5s infinite;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: #33ecff !important; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  padding: 7px;
  z-index: 201;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Mobile drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 16px;
  gap: 2px;
  animation: slideDown 0.2s ease both;
}
.nav-mobile.open { display: flex; }
@media (min-width: 768px) { .nav-mobile { display: none !important; } }

.nav-mobile a {
  color: var(--off-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile a:hover { background: var(--navy-light); color: var(--white); }
.nav-mobile .nav-cta-mobile {
  background: var(--cyan);
  color: var(--navy) !important;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
  border-radius: 9px;
}
.nav-mobile .nav-cta-mobile:hover { background: #33ecff; }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}
@media (min-width: 768px)  { .hero { padding: 80px 0 64px; } }
@media (min-width: 1024px) { .hero { padding: 100px 0 80px; } }

.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
@media (min-width: 768px) { .hero-badge { font-size: 11.5px; padding: 5px 14px; margin-bottom: 28px; } }
.hero-badge span { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; flex-shrink: 0; }

h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 9vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 16px;
}
@media (min-width: 768px) { h1 { letter-spacing: -2px; margin-bottom: 22px; } }

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan) 0%, #7df9ff 50%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero-sub { font-size: 17px; margin-bottom: 44px; } }

/* ─── SEARCH BAR ──────────────────────────────────────────── */
.search-wrap {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,255,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
@media (min-width: 600px) {
  .search-wrap {
    flex-direction: row;
    align-items: center;
    padding: 6px 6px 6px 20px;
    border-radius: 14px;
    gap: 0;
  }
}
.search-wrap:focus-within {
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 3px rgba(0,229,255,0.08);
}

.search-icon { display: none; }
@media (min-width: 600px) {
  .search-icon {
    display: block;
    color: var(--muted);
    flex-shrink: 0;
    font-size: 16px;
    margin-right: 8px;
  }
}

.search-input {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
}
@media (min-width: 600px) {
  .search-input {
    flex: 1;
    background: none;
    border: none;
    border-radius: 0;
    padding: 8px 0;
  }
}
.search-input::placeholder { color: var(--muted); }

.search-divider { display: none; }
@media (min-width: 600px) {
  .search-divider {
    display: block;
    width: 1px; height: 28px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 4px;
  }
}

.search-location {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  cursor: pointer;
}
@media (min-width: 600px) {
  .search-location {
    flex-shrink: 0;
    width: auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 8px 10px;
  }
}

.search-btn {
  width: 100%;
  background: var(--cyan);
  color: var(--navy);
  border: none;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
@media (min-width: 600px) {
  .search-btn { width: auto; border-radius: 9px; padding: 12px 22px; }
}
.search-btn:hover { background: #33ecff; transform: translateY(-1px); }

.search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.search-tags span { color: var(--muted); font-size: 12px; }
.tag-pill {
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--off-white);
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.tag-pill:hover { border-color: var(--cyan-dim); color: var(--cyan); }

.captcha-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: var(--navy-mid);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  text-align: center;
  padding: 16px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 639px) {
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
}
@media (min-width: 640px) {
  .stat-item { padding: 20px 24px; border-bottom: none; }
  .stat-item:last-child { border-right: none; }
}

.stat-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  display: block;
}
@media (min-width: 640px) { .stat-num { font-size: 26px; } }
.stat-num .accent { color: var(--cyan); }
.stat-label {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}
@media (min-width: 640px) { .stat-label { font-size: 12px; } }

/* ─── SECTION HEADERS ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 5vw, 38px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 12px;
}
@media (min-width: 768px) { .section-title { letter-spacing: -1px; margin-bottom: 14px; } }
.section-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.65;
}
@media (min-width: 768px) { .section-sub { font-size: 15px; } }

/* ─── FILTER BAR ──────────────────────────────────────────── */
.filter-section { padding: 28px 0 0; }
@media (min-width: 768px) { .filter-section { padding: 48px 0 0; } }

.filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.filter-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .filter-row { flex-wrap: wrap; overflow-x: visible; margin-bottom: 32px; gap: 8px; }
}

.filter-label {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.filter-btn {
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 768px) { .filter-btn { font-size: 13px; padding: 7px 15px; } }
.filter-btn:hover, .filter-btn.active {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.3);
  color: var(--cyan);
}
.filter-btn .count {
  background: var(--navy-light);
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 100px;
}
.filter-btn.active .count {
  background: rgba(0,229,255,0.15);
  color: var(--cyan);
}

/* ─── JOB LISTINGS ────────────────────────────────────────── */
.jobs-section { padding: 0 0 56px; }
@media (min-width: 768px) { .jobs-section { padding: 0 0 80px; } }

.jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.jobs-count {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.jobs-count strong { color: var(--white); font-weight: 500; }
.sort-select {
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 7px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── JOB CARD ────────────────────────────────────────────── */
.job-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .job-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto;
    column-gap: 16px;
    align-items: start;
    padding: 20px 20px;
  }
}
@media (min-width: 768px) {
  .job-card {
    grid-template-columns: 52px 1fr auto;
    column-gap: 18px;
    padding: 22px 24px;
  }
}

.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
  border-radius: 12px 0 0 12px;
}
.job-card:hover {
  border-color: rgba(255,255,255,0.13);
  background: var(--navy-light);
  transform: translateY(-1px);
}
.job-card:hover::before { background: var(--cyan); }
.job-card.featured {
  border-color: rgba(0,229,255,0.2);
  background: linear-gradient(135deg, rgba(0,229,255,0.04) 0%, var(--navy-card) 60%);
}
.job-card.featured::before { background: var(--cyan); }

/* Mobile: logo + title/company in a row */
.job-card-top-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
@media (min-width: 640px) { .job-card-top-row { display: contents; } }

.company-logo {
  width: 44px; height: 44px;
  border-radius: 9px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--cyan);
  flex-shrink: 0;
  letter-spacing: -0.5px;
  align-self: flex-start;
}
@media (min-width: 640px) { .company-logo { width: 48px; height: 48px; font-size: 15px; } }
@media (min-width: 768px) { .company-logo { width: 52px; height: 52px; font-size: 16px; border-radius: 10px; } }

.job-main { min-width: 0; flex: 1; }

.job-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.job-title {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
  line-height: 1.3;
}
@media (min-width: 480px) { .job-title { font-size: 15px; } }
@media (min-width: 768px) { .job-title { font-size: 16px; letter-spacing: -0.3px; } }

.job-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
@media (min-width: 768px) { .job-badge { font-size: 10px; } }
.badge-featured {
  background: rgba(0,229,255,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.2);
}
.badge-new {
  background: rgba(0,229,160,0.12);
  color: var(--green);
  border: 1px solid rgba(0,229,160,0.2);
}
.badge-remote {
  background: rgba(255,181,71,0.1);
  color: var(--amber);
  border: 1px solid rgba(255,181,71,0.2);
}

.job-company {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.4;
}
@media (min-width: 768px) { .job-company { font-size: 13.5px; } }
.job-company strong { color: var(--off-white); font-weight: 500; }

.job-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.job-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
}
@media (min-width: 768px) { .job-tag { font-size: 11px; padding: 3px 9px; } }

/* Job meta row — horizontal on mobile, vertical on desktop */
.job-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .job-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 110px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}
@media (min-width: 768px) { .job-meta { min-width: 130px; gap: 8px; } }

.job-salary {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
@media (min-width: 768px) { .job-salary { font-size: 15px; } }

.job-location {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.job-posted {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
}
.msp-score {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--cyan-dim);
}
.score-bar {
  width: 30px; height: 3px;
  background: var(--navy-light);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
}
.source-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  background: rgba(255,255,255,0.03);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ─── LOAD MORE ───────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 24px; }
.load-more-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover {
  border-color: rgba(0,229,255,0.2);
  color: var(--cyan);
  background: rgba(0,229,255,0.04);
}

/* ─── TOOLS SECTION ───────────────────────────────────────── */
.tools-section {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .tools-section { padding: 72px 0; } }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}
@media (min-width: 480px) { .tools-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 40px; } }

.tool-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 768px) { .tool-card { padding: 18px 14px; } }
.tool-card:hover {
  border-color: rgba(0,229,255,0.25);
  background: var(--navy-light);
  transform: translateY(-2px);
}
.tool-icon { font-size: 20px; margin-bottom: 6px; display: block; }
@media (min-width: 768px) { .tool-icon { font-size: 22px; margin-bottom: 8px; } }
.tool-name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--off-white);
  font-weight: 500;
  line-height: 1.3;
}
@media (min-width: 768px) { .tool-name { font-size: 11px; } }
.tool-count {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}
@media (min-width: 768px) { .tool-count { font-size: 11px; } }

/* ─── HOW IT WORKS ────────────────────────────────────────── */
.how-section {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  background: var(--navy-mid);
}
@media (min-width: 768px) { .how-section { padding: 72px 0; } }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 768px) {
  .steps-grid {
    gap: 24px;
    margin-top: 48px;
    position: relative;
  }
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
  }
}

.step-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  position: relative;
}
@media (min-width: 768px) { .step-card { padding: 32px 28px; border-radius: 14px; } }

.step-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: rgba(0,229,255,0.07);
  position: absolute;
  top: 14px; right: 16px;
  letter-spacing: -2px;
  line-height: 1;
}
@media (min-width: 768px) { .step-num { font-size: 42px; top: 16px; right: 20px; } }

.step-icon {
  width: 42px; height: 42px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  .step-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; margin-bottom: 20px; }
}

.step-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
@media (min-width: 768px) { .step-title { font-size: 18px; margin-bottom: 10px; } }
.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
@media (min-width: 768px) { .step-desc { font-size: 14px; } }

/* ─── EMAIL SIGNUP ────────────────────────────────────────── */
.signup-section {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .signup-section { padding: 80px 0; } }

.signup-card {
  background: var(--navy-card);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 480px) { .signup-card { padding: 44px 32px; } }
@media (min-width: 768px) { .signup-card { padding: 60px 48px; border-radius: 20px; } }

.signup-card::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.signup-card .section-title { margin-bottom: 10px; }
.signup-card .section-sub   { margin: 0 auto 24px; }
@media (min-width: 768px) { .signup-card .section-sub { margin-bottom: 36px; } }

.email-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 12px;
}
@media (min-width: 480px) { .email-row { flex-direction: row; } }

.email-input {
  flex: 1;
  background: var(--navy-light);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 16px;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s;
}
.email-input:focus { border-color: rgba(0,229,255,0.35); }
.email-input::placeholder { color: var(--muted); }

.email-btn {
  background: var(--cyan);
  color: var(--navy);
  border: none;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.email-btn:hover { background: #33ecff; transform: translateY(-1px); }
.signup-note {
  font-size: 11.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
  background: var(--navy-mid);
}
@media (min-width: 768px) { footer { padding: 48px 0 32px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
}

.footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-brand { grid-column: auto; } }

.footer-brand .logo { margin-bottom: 12px; display: inline-flex; }
.footer-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 300px;
}
@media (min-width: 768px) { .footer-desc { max-width: 240px; font-size: 13.5px; } }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
@media (min-width: 768px) { .footer-col h4 { margin-bottom: 16px; } }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--off-white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
@media (min-width: 480px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-copy {
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  font-size: 12px;
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-mono);
}
.footer-links a:hover { color: var(--muted); }