/* =========================================================
   HireLens AI — Liquid Glass Design System
   ========================================================= */
:root {
  --bg-base: #eef2f9;
  --bg-mesh-1: rgba(99, 102, 241, 0.22);
  --bg-mesh-2: rgba(14, 165, 233, 0.22);
  --bg-mesh-3: rgba(236, 72, 153, 0.14);

  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-hover: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 12px 40px -10px rgba(31, 38, 135, 0.12);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --pill-bg: rgba(255, 255, 255, 0.65);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

[data-theme="dark"] {
  --bg-base: #070b14;
  --bg-mesh-1: rgba(99, 102, 241, 0.24);
  --bg-mesh-2: rgba(6, 182, 212, 0.18);
  --bg-mesh-3: rgba(168, 85, 247, 0.16);

  --glass-bg: rgba(17, 25, 40, 0.58);
  --glass-bg-hover: rgba(24, 35, 56, 0.76);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.26);
  --glass-shadow: 0 18px 48px -12px rgba(0, 0, 0, 0.55);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.16);
  --pill-bg: rgba(30, 41, 59, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient Liquid Orbs */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -100px;
  background: var(--bg-mesh-1);
}

.orb-2 {
  width: 520px;
  height: 520px;
  top: 28%;
  right: -140px;
  background: var(--bg-mesh-2);
  animation-delay: -6s;
}

.orb-3 {
  width: 420px;
  height: 420px;
  bottom: -100px;
  left: 25%;
  background: var(--bg-mesh-3);
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* Core Liquid Glass Surface */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-highlight);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto 0;
  max-width: 1120px;
  padding: 0 20px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--pill-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  border: 1px solid var(--glass-border);
  background: var(--pill-bg);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.theme-btn:hover {
  transform: translateY(-1px);
  background: var(--glass-bg-hover);
}

/* Hero Section */
.hero {
  padding: 52px 0 32px;
}

.hero-card {
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 18px;
  border: 1px solid var(--glass-border);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin: 0 auto 16px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.glass-input {
  flex: 1 1 240px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--pill-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(12px);
}

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

.glass-input:focus {
  border-color: var(--accent);
}

.btn-primary {
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Filter & Search Bar */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 28px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--pill-bg);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.pill-btn:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.pill-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.search-box {
  min-width: 240px;
}

/* Articles Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.post-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tag-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  font-size: 0.78rem;
}

.post-card h2 {
  font-size: 1.24rem;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.post-card h2 a {
  text-decoration: none;
  color: var(--text-primary);
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.read-more {
  text-decoration: none;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Digital Product Spotlight */
.kit-banner {
  padding: 36px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.kit-list {
  list-style: none;
  margin: 16px 0 24px;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.kit-box {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--pill-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.price-tag {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0;
}

/* Content Pages (About / Privacy / Articles) */
.page-card {
  padding: 42px;
  margin: 36px 0 48px;
}

.page-card h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.page-card h2 {
  font-size: 1.35rem;
  margin: 28px 0 10px;
}

.page-card p,
.page-card li {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.page-card ul {
  padding-left: 20px;
}

/* Footer */
.site-footer {
  padding: 28px 0 44px;
}

.footer-inner {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-inner {
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links, .nav-actions {
    justify-content: center;
  }
  .hero-card, .page-card {
    padding: 28px 20px;
  }
  .kit-banner {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }
}