/* ============================================================
   SetPlaced — Design System
   Tokens → reset → components → utilities → accessibility → motion
   Backwards-compatible: all pre-existing class names (.card, .btn,
   .btn-primary, .badge-pro, .nav-link, .toast, etc.) keep working.
   ============================================================ */

/* ---------- Tokens (light theme is the default) ---------- */
:root {
  /* Brand */
  --brand-50: #eef4ff;
  --brand-100: #d8e6ff;
  --brand-500: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --accent: #06b6d4;

  /* Surfaces / text */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Semantic */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radius scale */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows (cumulative softness) */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.03);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 24px rgba(15,23,42,0.10);
  --shadow-xl: 0 20px 40px rgba(15,23,42,0.14);
  --shadow-focus: 0 0 0 3px rgba(79,70,229,0.30);

  /* z-index scale (use these instead of magic numbers) */
  --z-base: 1;
  --z-sticky: 50;
  --z-drawer: 200;
  --z-modal: 800;
  --z-toast: 1000;
  --z-tooltip: 1100;

  /* Motion */
  --t-fast: 0.12s ease;
  --t-base: 0.18s ease;
  --t-slow: 0.32s ease;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

/* ---------- Accessibility: focus rings ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Skip-to-content link — visible only when keyboard-focused */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  background: var(--brand-600);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  z-index: var(--z-tooltip);
  text-decoration: none;
  transition: transform var(--t-base);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Gradient surface + text ---------- */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #06b6d4, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   GLASS + 3D UI KIT (Phase 4 — strategic glassmorphism)
   Namespaced --sp-* tokens so we never clobber the existing design
   system (--accent, --neon-blue, .gradient-text all stay as-is).
   Performance-first: blur is reduced on mobile (see media query at
   the very bottom of this file), 3D tilts are hover-only (no touch).
   ============================================================ */
.glass {
  /* Dark glass — the landing/app run on body.dark-page. */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s, box-shadow 0.3s;
}
.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.30);
  box-shadow: 0 16px 48px rgba(56,189,248,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Glass + 3D tilt — for pricing cards. transform-style preserve-3d so
   child layers get real perspective depth. */
.glass-3d { transform-style: preserve-3d; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-3d:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-6px);
  box-shadow: 0 20px 60px rgba(56,189,248,0.25);
}
/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  color: var(--text);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
  text-decoration: none;
  min-height: 44px;  /* a11y: touch target */
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #0891b2; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(1.05); }

/* small variant — escapes the 44px min-height since these are secondary actions */
.btn.small, .small-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-md);
  min-height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.small-btn:hover { background: var(--surface-2); }
.small-btn.danger { color: var(--danger); border-color: rgba(239,68,68,0.3); }
.small-btn.danger:hover { background: #fee2e2; color: #7f1d1d; }

/* ---------- Inputs ---------- */
.input, .textarea, .select, input.edu-degree, input.edu-inst, input.edu-year,
input.edu-branch, input.edu-cgpa {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 44px;
}
.input:focus, .textarea:focus, .select:focus,
input.edu-degree:focus, input.edu-inst:focus, input.edu-year:focus,
input.edu-branch:focus, input.edu-cgpa:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--shadow-focus);
}
.textarea { resize: vertical; min-height: 110px; }

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-free { background: #dbeafe; color: #1e40af; }
.badge-pro { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }
.badge-locked { background: #fee2e2; color: #991b1b; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #cffafe; color: #155e75; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.95rem;
  /* Rectangular button look — replaces the borderless pill with a hairline outline so each item reads as a chip. */
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover {
  color: var(--brand-600);
  border-color: var(--brand-500);
  background: var(--brand-50);
}
.nav-link.active {
  color: var(--brand-600);
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.15);
}

/* Full-width page layout — overrides per-page max-width:1200px on <main> */
main { max-width: none !important; }

/* ---------- Profile avatar + dropdown ---------- */
.profile-menu { position: relative; }
.profile-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent));
  color: white;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  flex-shrink: 0;
}
.profile-avatar:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(79,70,229,0.35); }
.profile-avatar-lg { width: 52px; height: 52px; font-size: 1.4rem; }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: var(--z-drawer);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.profile-menu.open .profile-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.profile-dropdown-header {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2);
}
.profile-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-email {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  min-height: auto;
}
.profile-dropdown-item:hover, .profile-dropdown-item.active {
  background: var(--brand-50);
  color: var(--brand-600);
}
.profile-dropdown-item.profile-dropdown-danger {
  color: var(--danger);
}
.profile-dropdown-item.profile-dropdown-danger:hover {
  background: #fee2e2;
}
.profile-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) 0;
}

/* Mobile drawer profile block */
.drawer-profile {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

/* ---------- Mobile nav drawer ---------- */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: var(--z-drawer);
}
.nav-drawer-backdrop.open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(82vw, 320px);
  background: var(--surface);
  z-index: calc(var(--z-drawer) + 1);
  padding: var(--space-6) var(--space-5);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .drawer-close {
  align-self: flex-end;
  margin-bottom: var(--space-4);
}
.nav-drawer a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav-drawer a:hover, .nav-drawer a.active {
  background: var(--brand-50);
  color: var(--brand-600);
}
.nav-drawer .drawer-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-3) 0;
}

/* ---------- Feature icon ---------- */
.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

/* ---------- Spinner ---------- */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.spinner-dark { border-color: rgba(15,23,42,0.15); border-top-color: var(--brand-500); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast (new design — backwards-compat for old .toast .toast.show usage) ---------- */
.toast-stack {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
  max-width: 380px;
}
.toast {
  position: relative;
  padding: 0.85rem 2.2rem 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--text);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--t-base), transform var(--t-base);
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.4;
}
/* legacy single-toast usage: position fixed to top-right when not inside a stack */
.toast:not(.toast-stack > .toast) {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warn   { background: var(--warning); }
.toast .toast-icon { font-size: 1.05rem; line-height: 1; margin-top: 1px; }
.toast .toast-close {
  position: absolute;
  top: 6px; right: 6px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  font-size: 0.95rem;
  min-height: auto;
}
.toast .toast-close:hover { background: rgba(255,255,255,0.15); }

/* ---------- Score ring ---------- */
.score-ring {
  --p: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-500) calc(var(--p) * 1%), var(--border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--surface);
  border-radius: 50%;
}
.score-ring span {
  position: relative;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-600);
}

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  margin: 0.2rem 0.25rem 0.2rem 0;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
}
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-success { background: #d1fae5; color: #065f46; }

/* ---------- Locked overlay ---------- */
.locked-overlay {
  position: relative;
}
.locked-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty-state h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  color: var(--text);
}
.empty-state p { margin: 0 0 var(--space-4); font-size: 0.9rem; }

/* Skeleton loader — apply `.skeleton skeleton-line` or `.skeleton skeleton-card` */
.skeleton {
  background: linear-gradient(90deg,
    var(--border) 0%,
    var(--surface-2) 50%,
    var(--border) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
  border-radius: var(--radius-md);
  display: block;
  color: transparent !important;
}
.skeleton-line { height: 1em; margin: 0.3rem 0; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-card { height: 120px; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Animations ---------- */
.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.slide-up { animation: slideUp 0.42s cubic-bezier(.21,.81,.27,.99) both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Stagger children: add data-stagger to a container; children get delays */
[data-stagger] > *:nth-child(1) { animation-delay: 0.04s; }
[data-stagger] > *:nth-child(2) { animation-delay: 0.08s; }
[data-stagger] > *:nth-child(3) { animation-delay: 0.12s; }
[data-stagger] > *:nth-child(4) { animation-delay: 0.16s; }
[data-stagger] > *:nth-child(5) { animation-delay: 0.20s; }
[data-stagger] > *:nth-child(6) { animation-delay: 0.24s; }

/* ---------- Form atoms used in onboarding/resume editor (kept for backwards-compat) ---------- */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; }
.row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 768px) {
  .nav-links-desktop { display: none !important; }
  .nav-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (min-width: 769px) {
  .nav-mobile-toggle, .nav-drawer, .nav-drawer-backdrop { display: none !important; }
}

/* ============================================================
   AI-NATIVE DESIGN LAYER (Linear / Vercel / Perplexity flavor)
   New components — all opt-in via class, none of the existing
   light-theme components are affected.
   ============================================================ */

:root {
  /* Dark surface palette for hero / AI panels */
  --ink-900: #0b1020;
  --ink-800: #0f172a;
  --ink-700: #1a2342;
  --ink-600: #243152;
  --line-faint: rgba(148, 163, 184, 0.12);
  --line-soft:  rgba(148, 163, 184, 0.22);

  /* Brand accent extras */
  --neon-blue: #5b8cff;
  --neon-cyan: #22d3ee;
  --neon-violet: #a78bfa;
  --neon-magenta: #f472b6;

  /* AI-flavor gradients */
  --grad-aurora: linear-gradient(135deg, #5b8cff 0%, #a78bfa 45%, #22d3ee 100%);
  --grad-ink:    linear-gradient(135deg, #0b1020 0%, #1a2342 100%);
  --grad-text-hero: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #a78bfa 100%);
}

/* ---------- Dark hero shell ---------- */
.hero-shell {
  position: relative;
  background: var(--grad-ink);
  color: #e2e8f0;
  overflow: hidden;
  isolation: isolate;
}
.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}
.hero-shell::before { top: -260px; left: -200px;  background: radial-gradient(circle, rgba(91,140,255,0.55), transparent 60%); }
.hero-shell::after  { bottom: -300px; right: -240px; background: radial-gradient(circle, rgba(167,139,250,0.50), transparent 60%); }

/* subtle moving stars in the back */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(rgba(148,163,184,0.10) 1px, transparent 1px),
    radial-gradient(rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 36px 36px, 72px 72px;
  background-position: 0 0, 18px 18px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* ---------- Hero typography ---------- */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(91, 140, 255, 0.10);
  border: 1px solid rgba(91, 140, 255, 0.30);
  color: #cbd5e1;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulse-soft 1.6s ease-in-out infinite;
}
@keyframes pulse-soft { 0%,100% { opacity: 1 } 50% { opacity: 0.45 } }

.hero-title-xl {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  background: var(--grad-text-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-xl em {
  font-style: normal;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub-xl {
  margin: 1.1rem 0 0;
  color: #94a3b8;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  max-width: 540px;
}

/* ---------- Premium buttons (dark hero) ---------- */
.btn-aurora {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-weight: 700; font-size: 0.98rem;
  color: white;
  background: var(--grad-aurora);
  border: none; border-radius: 12px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 22px rgba(91,140,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-aurora:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(91,140,255,0.50); filter: brightness(1.05); }
.btn-aurora:active { transform: translateY(0); }

.btn-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-weight: 600; font-size: 0.96rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  cursor: pointer; text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-glass:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

/* ---------- Glass cards (re-usable) ---------- */
.glass-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 18px;
  color: #e2e8f0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   LIVE AI INTERVIEWER WIDGET — the centerpiece
   ============================================================ */
.ai-stage {
  position: relative;
  /* Extra top + bottom padding so the floating chips (AI confidence model /
     Voice + text · GPT-4o) sit inside the rounded box without overlapping
     the call-bar or the analytics tiles. */
  padding: 3.2rem 1.1rem 3.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  max-width: 560px;
  margin-left: auto;
}
.ai-stage::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 200px at 50% -50px, rgba(91,140,255,0.20), transparent 60%),
    radial-gradient(400px 200px at 100% 50%, rgba(167,139,250,0.15), transparent 60%);
  pointer-events: none;
}
.ai-stage > * { position: relative; z-index: 1; }

/* Call header */
.ai-callbar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
}
.ai-callbar .live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: #f43f5e; font-weight: 700; letter-spacing: 0.06em;
}
.ai-callbar .live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #f43f5e; animation: pulse-soft 1.2s infinite; }
.ai-callbar .meta { color: #94a3b8; }
.ai-callbar .ts { margin-left: auto; font-variant-numeric: tabular-nums; color: #94a3b8; }

/* Avatar area */
.ai-stage-body {
  display: grid; grid-template-columns: 168px 1fr; gap: 1rem;
  margin-top: 0.9rem;
}
@media (max-width: 520px) {
  .ai-stage-body { grid-template-columns: 1fr; }
}
.ai-avatar-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(91,140,255,0.10), rgba(15,23,42,0.6));
  border: 1px solid rgba(148, 163, 184, 0.20);
  padding: 0.9rem 0.7rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.ai-avatar-ring {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ai-avatar-ring::before,
.ai-avatar-ring::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(91,140,255,0.55);
  opacity: 0;
}
.ai-avatar-ring.speaking::before { animation: ring-pulse 1.6s cubic-bezier(.21,.81,.27,.99) infinite; }
.ai-avatar-ring.speaking::after  { animation: ring-pulse 1.6s cubic-bezier(.21,.81,.27,.99) 0.55s infinite; }
@keyframes ring-pulse {
  0% { transform: scale(0.92); opacity: 0.85; border-color: rgba(91,140,255,0.55); }
  100% { transform: scale(1.45); opacity: 0; border-color: rgba(34,211,238,0.10); }
}
.ai-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(91,140,255,0.65);
  box-shadow: 0 0 24px rgba(91,140,255,0.45), 0 0 1px rgba(255,255,255,0.4);
  background: #0b1020;
}
.ai-avatar.blink { animation: blink 4.2s infinite; }
@keyframes blink {
  0%, 92%, 100% { filter: brightness(1) saturate(1); }
  94%, 98%      { filter: brightness(0.55) saturate(0.6); }
}
.ai-name {
  font-weight: 700; color: #e2e8f0; font-size: 0.92rem; letter-spacing: -0.01em; margin: 0;
}
.ai-role { color: #94a3b8; font-size: 0.75rem; margin: 0; }

/* State pill (speaking / listening / thinking) */
.ai-state {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 999px;
  background: rgba(91,140,255,0.15);
  color: #93c5fd;
  border: 1px solid rgba(91,140,255,0.35);
  text-transform: uppercase;
}
.ai-state .ai-state-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse-soft 0.9s infinite;
}
.ai-state.listening { background: rgba(34,211,238,0.12); color: #67e8f9; border-color: rgba(34,211,238,0.30); }
.ai-state.thinking  { background: rgba(167,139,250,0.12); color: #c4b5fd; border-color: rgba(167,139,250,0.30); }

/* Transcript area */
.ai-transcript {
  background: rgba(8, 13, 32, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  min-height: 138px;
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.85rem; line-height: 1.55;
  color: #e2e8f0;
}
.ai-transcript .line { display: flex; gap: 0.55rem; align-items: flex-start; opacity: 0.95; }
.ai-transcript .who {
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #94a3b8; padding-top: 2px;
  min-width: 46px;
}
.ai-transcript .line.you .who { color: var(--neon-cyan); }
.ai-transcript .line.ai .who { color: var(--neon-violet); }
.ai-transcript .text { color: #e2e8f0; }
.ai-transcript .caret { display: inline-block; width: 8px; height: 1em; background: var(--neon-cyan); margin-left: 2px; vertical-align: text-bottom; animation: caret 1s steps(2) infinite; border-radius: 1px; }
@keyframes caret { 50% { opacity: 0; } }

/* Bottom analysis row */
.ai-analytics {
  margin-top: 0.85rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
@media (max-width: 520px) { .ai-analytics { grid-template-columns: 1fr; } }
.ai-metric {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}
.ai-metric .label { font-size: 0.7rem; color: #94a3b8; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.ai-metric .value { font-size: 1.25rem; font-weight: 800; color: #e2e8f0; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ai-metric .bar { height: 4px; border-radius: 2px; background: rgba(148,163,184,0.18); margin-top: 6px; overflow: hidden; }
.ai-metric .bar > span { display: block; height: 100%; border-radius: 2px; background: var(--grad-aurora); transition: width 0.5s cubic-bezier(.21,.81,.27,.99); }

/* Floating accent badges on the stage */
.ai-stage .float-badge {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.30);
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  animation: float-y 4.5s ease-in-out infinite;
}
/* Badges sit INSIDE the stage (not hanging off the edges) so the overflow:hidden
   clip on .ai-stage doesn't crop them. Keep a comfortable inset so they read
   as floating chips rather than UI labels. */
.ai-stage .float-badge.tl { top: 14px; left: 14px; }
.ai-stage .float-badge.br { bottom: 14px; right: 18px; animation-delay: 1.4s; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Trust strip below hero */
.trust-strip {
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  flex-wrap: wrap;
  color: #94a3b8; font-size: 0.78rem;
}
.trust-strip .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: #475569; }

/* Hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 1.8rem) clamp(3rem, 6vw, 5rem);
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub-xl { margin-left: auto; margin-right: auto; }
  .ai-stage { margin: 0 auto; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ai-avatar-ring.speaking::before,
  .ai-avatar-ring.speaking::after,
  .ai-avatar.blink,
  .ai-state .ai-state-dot,
  .hero-eyebrow .dot,
  .ai-callbar .live .live-dot,
  .ai-transcript .caret,
  .ai-stage .float-badge { animation: none !important; }
}

/* ============================================================
   DARK PAGE — body.dark-page makes the navbar match the dark
   AI-native hero. Opt-in via class on <body> so other pages
   (dashboard, pricing, auth) keep their existing light nav.
   ============================================================ */
body.dark-page {
  background: var(--ink-900);
  color: #e2e8f0;
  /* min-height: 100vh so dark pages with short content (e.g. PM dashboard:
     header + 3 tiles, no upgrade banner) still cover the viewport. Without
     this, the <html> element's default `var(--bg)` (#f8fafc light) leaks
     through below the body, showing as a thin white strip at the page bottom. */
  min-height: 100vh;
  /* Flip the design-system tokens themselves on dark pages so any inline
     style like `color:var(--text)` / `background:var(--surface)` / etc.
     automatically becomes legible — without needing every page to override
     each token individually. Resume-canvas + other elements that MUST stay
     light use literal colors (#1f2937, white) and are unaffected. */
  --text: #e2e8f0;
  --muted: #94a3b8;
  --surface: rgba(15, 23, 42, 0.55);
  --surface-2: rgba(11, 16, 32, 0.7);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.30);
}

/* Navbar — translucent dark glass */
body.dark-page .navbar {
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Brand wordmark — keep the gradient text intact */
body.dark-page .navbar .gradient-text {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav-link chips — outlined dark pills with cyan hover/active accents */
body.dark-page .nav-link {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
body.dark-page .nav-link:hover {
  color: #ffffff;
  background: rgba(91, 140, 255, 0.12);
  border-color: rgba(91, 140, 255, 0.45);
}
body.dark-page .nav-link.active {
  color: #ffffff;
  background: rgba(91, 140, 255, 0.20);
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 1px 4px rgba(91, 140, 255, 0.30);
}

/* Lock indicator next to pro nav-links — needs to be visible on dark */
body.dark-page .nav-link span[aria-label="Pro only"] { filter: brightness(1.4); }

/* Get-Started / Log-in buttons in nav (unauth state) */
body.dark-page .navbar .btn-ghost {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.30);
  background: rgba(255, 255, 255, 0.04);
}
body.dark-page .navbar .btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.40);
}
body.dark-page .navbar .btn-primary {
  background: var(--grad-aurora);
  border: none;
  box-shadow: 0 4px 14px rgba(91, 140, 255, 0.35);
}
body.dark-page .navbar .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(91, 140, 255, 0.50);
}

/* Profile avatar — keep the gradient but soften its edge against dark glass */
body.dark-page .profile-avatar {
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30);
}

/* Mobile drawer hamburger — needs visibility on dark */
body.dark-page .nav-mobile-toggle {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

/* The activity ticker on hero is already styled inline for dark in the hero
   markup, but the auto-fallback CSS for .ticker (white bg) leaks into mobile
   stack — override here so the ticker stays in theme on dark pages. */
body.dark-page .ticker {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}

/* ============================================================
   DARK-PAGE — common component overrides
   Every page with class="dark-page" on <body> inherits these.
   Light-theme pages are unaffected.
   ============================================================ */

/* Default text + headings inside dark pages */
body.dark-page h1,
body.dark-page h2,
body.dark-page h3,
body.dark-page h4 { color: #f1f5f9; }
body.dark-page p { color: #cbd5e1; }
body.dark-page small { color: #94a3b8; }
body.dark-page a { color: #93c5fd; }
body.dark-page a:hover { color: #c7d2fe; }

/* The shared .card primitive — used across dashboard, resume, interview, etc.
   Inline-styled cards (gradient hero cards on dashboard) override this with
   their own style attr, so they keep working. */
body.dark-page .card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.40);
}
body.dark-page .card h3,
body.dark-page .card h4 { color: #f1f5f9; }
body.dark-page .card-hover { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
body.dark-page .card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 24px 50px -15px rgba(91, 140, 255, 0.25);
}

/* Form atoms (.input / .textarea / .label / select) — used by resume builder,
   interview setup, profile, etc. */
body.dark-page .input,
body.dark-page .textarea,
body.dark-page select,
body.dark-page input[type="text"],
body.dark-page input[type="email"],
body.dark-page input[type="password"],
body.dark-page input[type="number"],
body.dark-page input[type="tel"],
body.dark-page input[type="search"],
body.dark-page input[type="url"],
body.dark-page input[type="file"],
body.dark-page textarea {
  background: rgba(8, 13, 32, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}
body.dark-page .input:focus,
body.dark-page .textarea:focus,
body.dark-page select:focus,
body.dark-page input:focus,
body.dark-page textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
}
body.dark-page .label { color: #94a3b8; }
body.dark-page ::placeholder { color: #64748b; }

/* Native <select> dropdown list — Chrome/Edge honour option/optgroup colours.
   Gives the open list a dark-glass look with branded group headers instead of
   the flat default popup. */
body.dark-page select {
  accent-color: var(--neon-blue);
}
body.dark-page select optgroup {
  background: #0a1024;
  color: var(--neon-blue);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
}
body.dark-page select option {
  background: #0e1633;
  color: #e2e8f0;
  padding: 8px 10px;
  font-weight: 500;
}
body.dark-page select option:checked,
body.dark-page select option:hover {
  background: #1e3a8a;
  color: #ffffff;
}

/* Pill groups (used by interview setup, gd setup) */
body.dark-page .pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}
body.dark-page .pill:hover { border-color: rgba(91, 140, 255, 0.45); color: #e2e8f0; }
body.dark-page .pill.active {
  background: rgba(91, 140, 255, 0.20);
  border-color: rgba(91, 140, 255, 0.55);
  color: #ffffff;
}

/* Feature-icon tiles (dashboard) — tone the bright backgrounds down on dark */
body.dark-page .feature-icon {
  background: rgba(91, 140, 255, 0.15) !important;
  border: 1px solid rgba(91, 140, 255, 0.25);
  color: #e2e8f0;
}

/* Badges */
body.dark-page .badge-free {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.30);
}
body.dark-page .badge-pro {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.40);
}

/* Section backgrounds — old sections that used var(--surface) and var(--border)
   to create a "light strip between dark sections" effect look broken in dark
   mode. Re-skin those generic blocks. */
body.dark-page section[style*="background:var(--surface)"],
body.dark-page section[style*="background: var(--surface)"] {
  background: transparent !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}

/* FAQ — landing page list */
body.dark-page .faq-item {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  margin-bottom: 0.6rem;
}
body.dark-page .faq-item .faq-q {
  color: #f1f5f9;
  background: transparent;
}
body.dark-page .faq-item .faq-q:hover { background: rgba(91, 140, 255, 0.08); }
body.dark-page .faq-item .faq-a { color: #cbd5e1; }
body.dark-page .faq-item .chev { color: #94a3b8; }

/* Footer — switch from var(--surface) (white) to dark glass */
body.dark-page footer {
  background: rgba(11, 16, 32, 0.85) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
  color: #94a3b8 !important;
}
body.dark-page footer a { color: #94a3b8 !important; }
body.dark-page footer a:hover { color: #cbd5e1 !important; }
body.dark-page footer div[style*="color:var(--text)"] { color: #f1f5f9 !important; }

/* Pain cards / fail cards — dark variants already exist as .fail-card; the
   legacy .pain-card on light pages keeps working unchanged. */
body.dark-page .pain-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
body.dark-page .pain-card .pain-a { color: #94a3b8; }

/* Testimonial cards (legacy class) */
body.dark-page .testimonial-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}
body.dark-page .testimonial-quote { color: #e2e8f0; }

/* gradient-text in dark mode keeps its existing gradient — explicitly retain it
   for safety in case the body bg darkens further. */
body.dark-page .gradient-text {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons inside dark-page content area (not just nav) */
body.dark-page .btn-primary {
  background: var(--grad-aurora);
  border: none;
  color: white;
}
body.dark-page .btn-primary:hover { filter: brightness(1.07); }
body.dark-page .btn-ghost {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
body.dark-page .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Company logo cards on dashboard / etc */
body.dark-page .company-logo-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}
body.dark-page .company-logo-card:hover {
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 16px 28px -10px rgba(91, 140, 255, 0.22);
}
body.dark-page .company-logo-card .clogo {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.20);
}

/* Hr separator */
body.dark-page hr { border-color: rgba(148, 163, 184, 0.18); }

/* Toast (dark mode) — already dark, but bump contrast against the new bg */
body.dark-page .toast {
  background: rgba(11, 16, 32, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

/* ============================================================
   LANDING-PAGE PRIMITIVES (dark theme — applied on body.dark-page sections)
   Used by index.html. Self-contained components.
   ============================================================ */

/* Section scaffolding */
body.dark-page section { color: #e2e8f0; }
.section-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 1.8rem);
}
.section-shell-tight {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1rem, 3vw, 1.8rem);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: #f1f5f9;
}
.section-title em {
  font-style: normal;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: #94a3b8;
  margin: 0 0 2rem;
  max-width: 640px;
  line-height: 1.6;
}
.section-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.6rem;
}
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* Soft divider between sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.20), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

/* ============================================================
   TRUST METRICS — big numbers across hero / mid-page
   ============================================================ */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.metric-tile {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.metric-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 16px 32px -10px rgba(91, 140, 255, 0.25);
}
.metric-tile .metric-num {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-tile .metric-label {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ============================================================
   COMPANY LOGO MARQUEE — auto-scrolling
   ============================================================ */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item img {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: white;
  padding: 2px;
}

/* ============================================================
   STEP CARDS — "How SetPlaced works" 3-step row
   ============================================================ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.step-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 24px 50px -15px rgba(91, 140, 255, 0.22);
}
.step-card .step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.15);
  border: 1px solid rgba(91, 140, 255, 0.30);
  color: #93c5fd;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: #f1f5f9;
  font-weight: 700;
}
.step-card p { margin: 0; color: #94a3b8; font-size: 0.92rem; line-height: 1.55; }

/* ============================================================
   COMPANY SIMULATOR CARDS — premium feel
   ============================================================ */
.simulator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.sim-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.sim-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.50);
  box-shadow: 0 18px 40px -12px rgba(91, 140, 255, 0.30);
}
.sim-card-head {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.sim-card-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: white;
  padding: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sim-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.sim-card-name {
  font-weight: 700; font-size: 1rem; color: #f1f5f9; letter-spacing: -0.01em;
}
.sim-card-sub {
  font-size: 0.78rem; color: #94a3b8; margin-top: 1px;
}
.sim-card .sim-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-top: 0.6rem;
}
.sim-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.10);
  border: 1px solid rgba(91, 140, 255, 0.25);
  color: #93c5fd;
  font-weight: 600;
}
.sim-tag.hard { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.30); color: #fda4af; }
.sim-tag.medium { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.30); color: #fcd34d; }
.sim-tag.easy { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.30); color: #6ee7b7; }
.sim-card .sim-ctc {
  font-size: 0.78rem; color: #cbd5e1; margin-top: 0.65rem;
  font-weight: 600;
}
.sim-card .sim-ctc span { color: #94a3b8; font-weight: 500; }

/* ============================================================
   AI FEEDBACK DASHBOARD MOCK
   ============================================================ */
.dashboard-mock {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 40px 80px -25px rgba(0, 0, 0, 0.55);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
}
.dash-tile {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.dash-tile-label {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

/* Score ring (used for confidence + ATS) */
.score-ring {
  --p: 78;
  --size: 110px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background:
    conic-gradient(var(--neon-cyan) calc(var(--p) * 1%), rgba(148, 163, 184, 0.18) 0);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.score-ring::before {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: #0b1020;
}
.score-ring-num {
  position: relative;
  font-size: 1.55rem;
  font-weight: 800;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.score-ring-num small {
  font-size: 0.7rem; color: #94a3b8; font-weight: 500;
  margin-left: 2px;
}

/* Voice waveform — 12 animated bars */
.voice-wave {
  display: flex; align-items: center; gap: 4px;
  height: 56px;
}
.voice-wave .bar {
  width: 5px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-blue));
  border-radius: 3px;
  animation: voice-bar 1.3s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes voice-bar {
  0%, 100% { height: 25%; }
  50% { height: 95%; }
}
.voice-wave .bar:nth-child(1)  { animation-delay: 0.00s; }
.voice-wave .bar:nth-child(2)  { animation-delay: 0.08s; }
.voice-wave .bar:nth-child(3)  { animation-delay: 0.16s; }
.voice-wave .bar:nth-child(4)  { animation-delay: 0.24s; }
.voice-wave .bar:nth-child(5)  { animation-delay: 0.32s; }
.voice-wave .bar:nth-child(6)  { animation-delay: 0.40s; }
.voice-wave .bar:nth-child(7)  { animation-delay: 0.48s; }
.voice-wave .bar:nth-child(8)  { animation-delay: 0.56s; }
.voice-wave .bar:nth-child(9)  { animation-delay: 0.64s; }
.voice-wave .bar:nth-child(10) { animation-delay: 0.72s; }
.voice-wave .bar:nth-child(11) { animation-delay: 0.80s; }
.voice-wave .bar:nth-child(12) { animation-delay: 0.88s; }

/* Mini bar chart for "communication breakdown" */
.bar-row { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; }
.bar-row .label { font-size: 0.78rem; color: #cbd5e1; min-width: 88px; }
.bar-row .bar { flex: 1; height: 6px; background: rgba(148, 163, 184, 0.16); border-radius: 3px; overflow: hidden; }
.bar-row .bar > span { display: block; height: 100%; background: var(--grad-aurora); border-radius: 3px; }
.bar-row .num { font-variant-numeric: tabular-nums; font-size: 0.82rem; color: #f1f5f9; font-weight: 700; min-width: 32px; text-align: right; }

/* Heatmap — 7×5 grid of cells showing consistency */
.heatmap {
  display: grid; gap: 4px;
  grid-template-columns: repeat(7, 1fr);
}
.heatmap > span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(91, 140, 255, var(--h, 0.08));
}

/* ============================================================
   GD SIMULATOR FEATURE BLOCK
   ============================================================ */
.gd-card {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.30);
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: center;
}
@media (max-width: 820px) { .gd-card { grid-template-columns: 1fr; } }
.gd-participants {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gd-participant {
  display: flex; align-items: center; gap: 0.55rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}
.gd-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: white;
  font-size: 0.85rem;
}
.gd-meta { line-height: 1.2; }
.gd-name { font-size: 0.85rem; font-weight: 700; color: #f1f5f9; }
.gd-role { font-size: 0.7rem; color: #94a3b8; }
.gd-participant.speaking {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.gd-participant.speaking::after {
  content: "speaking";
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* ============================================================
   PROFILE / TESTIMONIAL CARDS — LinkedIn-style
   ============================================================ */
.story-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}
.story-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.2rem;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.40);
  box-shadow: 0 20px 40px -12px rgba(91, 140, 255, 0.22);
}
.story-quote {
  color: #e2e8f0;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.story-author { display: flex; align-items: center; gap: 0.7rem; }
.story-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--neon-cyan));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 140, 255, 0.25);
}
.story-author-info { line-height: 1.3; min-width: 0; }
.story-name { font-weight: 700; font-size: 0.93rem; color: #f1f5f9; }
.story-college { font-size: 0.78rem; color: #94a3b8; margin-top: 1px; }
.story-placed {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: #6ee7b7;
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}
.story-placed::before { content: "✓"; font-weight: 800; }

/* ============================================================
   WHY-FAIL pain cards (dark variant)
   ============================================================ */
.fail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.fail-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-left: 3px solid #ef4444;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.fail-card .q {
  font-style: italic;
  color: #fda4af;
  font-weight: 700;
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}
.fail-card .a { color: #94a3b8; margin: 0; font-size: 0.88rem; line-height: 1.55; }

/* ============================================================
   FINAL CTA — big gradient panel
   ============================================================ */
.final-cta {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #0b1020 70%);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final-cta::before, .final-cta::after {
  content: "";
  position: absolute; z-index: -1;
  width: 520px; height: 520px; border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  pointer-events: none;
}
.final-cta::before { top: -200px; left: -150px;  background: radial-gradient(circle, rgba(91,140,255,0.45), transparent 60%); }
.final-cta::after  { bottom: -240px; right: -200px; background: radial-gradient(circle, rgba(167,139,250,0.40), transparent 60%); }
.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  background: var(--grad-text-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-cta p { color: #cbd5e1; margin: 0 0 1.6rem; }

/* ============================================================
   FOUNDER / TEAM SECTION
   ============================================================ */
.founder-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  max-width: 720px; margin: 0 auto;
}
.founder-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--neon-cyan));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(91, 140, 255, 0.30);
}
.founder-name { font-weight: 700; color: #f1f5f9; font-size: 1rem; }
.founder-role { color: #94a3b8; font-size: 0.82rem; margin-top: 2px; }
.founder-note { color: #cbd5e1; font-size: 0.92rem; line-height: 1.55; margin-top: 0.55rem; }

/* ============================================================
   STICKY MOBILE CTA — bottom-fixed bar on small screens
   ============================================================ */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px;
  bottom: 12px;
  z-index: var(--z-sticky);
  padding: 0.85rem 1rem;
  background: rgba(11, 16, 32, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.30);
  align-items: center;
  gap: 0.8rem;
}
@media (max-width: 720px) {
  .sticky-mobile-cta { display: flex; }
  body.dark-page { padding-bottom: 84px; }
}
.sticky-mobile-cta .sm-msg { flex: 1; min-width: 0; }
.sticky-mobile-cta .sm-title { font-weight: 700; color: #f1f5f9; font-size: 0.9rem; }
.sticky-mobile-cta .sm-sub { font-size: 0.75rem; color: #94a3b8; }
.sticky-mobile-cta .sm-go {
  background: var(--grad-aurora);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(91, 140, 255, 0.35);
}

/* ============================================================
   REVEAL ON SCROLL — subtle fade-up
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(.21,.81,.27,.99), transform 0.6s cubic-bezier(.21,.81,.27,.99);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DARK-PAGE — PER-PAGE OVERRIDES
   Each subpage (pricing, company-mock, interview, resume, profile,
   jobs) ships its own inline <style> block with white panels.
   Those rules load AFTER this stylesheet, so we use !important
   here to win the cascade and keep the dark aesthetic consistent.
   ============================================================ */

/* ---------- pricing.html ---------- */
body.dark-page .tier-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.45) !important;
}
body.dark-page .tier-card.featured {
  border: 1.5px solid rgba(91, 140, 255, 0.55) !important;
  box-shadow: 0 22px 54px -18px rgba(91, 140, 255, 0.35) !important;
}
body.dark-page .tier-name { color: #f1f5f9; }
body.dark-page .tier-tagline { color: #94a3b8; }
body.dark-page .tier-price { color: #f1f5f9; }
body.dark-page .tier-unit,
body.dark-page .tier-gst { color: #94a3b8; }
body.dark-page .tier-features li { color: #cbd5e1; }
body.dark-page .card-period-toggle {
  background: rgba(11, 16, 32, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}
body.dark-page .card-period-btn { color: #94a3b8 !important; }
body.dark-page .card-period-btn.active {
  background: rgba(91, 140, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.dark-page .compare-table {
  background: rgba(15, 23, 42, 0.55) !important;
  color: #e2e8f0;
}
body.dark-page .compare-table th {
  background: rgba(11, 16, 32, 0.85) !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}
body.dark-page .compare-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  color: #cbd5e1;
}
body.dark-page .compare-table td.x { color: rgba(148, 163, 184, 0.45) !important; }
body.dark-page .compare-table td.check { color: #34d399 !important; }
body.dark-page .policy-note {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #cbd5e1 !important;
}
body.dark-page .social-proof {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(244, 114, 22, 0.14)) !important;
  border: 1px solid rgba(245, 158, 11, 0.30) !important;
}
body.dark-page .proof-stat-num { color: #fcd34d !important; }
body.dark-page .proof-stat-label { color: #fde68a !important; }

/* ---------- company-mock.html ---------- */
body.dark-page .company-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
}
body.dark-page .company-card:hover {
  border-color: rgba(91, 140, 255, 0.45) !important;
  box-shadow: 0 16px 32px -10px rgba(91, 140, 255, 0.22) !important;
}
body.dark-page .company-card.active {
  background: rgba(91, 140, 255, 0.18) !important;
  border-color: rgba(91, 140, 255, 0.55) !important;
  color: #ffffff !important;
}
body.dark-page .company-card.locked { opacity: 0.55; }
body.dark-page .company-logo-box {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(148, 163, 184, 0.20) !important;
}
body.dark-page .company-name { color: #f1f5f9; }
body.dark-page .company-tag { color: #94a3b8 !important; }
body.dark-page .filter-tab {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}
body.dark-page .filter-tab:hover {
  border-color: rgba(91, 140, 255, 0.45) !important;
  color: #e2e8f0 !important;
}
body.dark-page .filter-tab.active {
  background: rgba(91, 140, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(91, 140, 255, 0.55) !important;
}

/* ---------- interview.html / gd-mock.html (page-level .pill) ---------- */
body.dark-page .pill {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  border: 2px solid rgba(148, 163, 184, 0.22) !important;
}
body.dark-page .pill:hover {
  border-color: rgba(91, 140, 255, 0.45) !important;
  color: #e2e8f0 !important;
}
body.dark-page .pill.active {
  background: rgba(91, 140, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(91, 140, 255, 0.55) !important;
}

/* ---------- shared form atoms (.field used by profile.html) ---------- */
body.dark-page .field label { color: #94a3b8 !important; }
body.dark-page .field input,
body.dark-page .field textarea {
  background: rgba(8, 13, 32, 0.7) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #e2e8f0 !important;
}
body.dark-page .small-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #cbd5e1 !important;
}
body.dark-page .small-btn:hover {
  border-color: rgba(91, 140, 255, 0.45) !important;
  color: #c7d2fe !important;
}

/* ---------- profile.html ---------- */
body.dark-page .panel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
}

/* ---------- jobs.html ---------- */
body.dark-page .match-card,
body.dark-page .side-card,
body.dark-page .cover-letter {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
}
body.dark-page .match-logo-box {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.20) !important;
}
body.dark-page .pref-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}
body.dark-page .pref-chip.active {
  background: rgba(91, 140, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(91, 140, 255, 0.55) !important;
}

/* ============================================================
   PHASE 4 — GLASS + 3D KIT (continued): premium button, hero orbs,
   GD 3D depth, glow. Literal colors (not --accent etc.) so this block
   is fully self-contained and collision-free.
   ============================================================ */

/* ----- Premium CTA button: gradient + sheen sweep on hover ----- */
.btn-premium {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(14,165,233,0.30), inset 0 1px 0 rgba(255,255,255,0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.50);
}
.btn-premium::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn-premium:hover::before { left: 100%; }

/* ----- Glow utility for key CTAs ----- */
.glow { box-shadow: 0 0 20px rgba(56,189,248,0.30), 0 0 40px rgba(56,189,248,0.15); }

/* ----- Hero floating orbs (pure-CSS depth, no JS) -----
   Attach .hero-orbs to a positioned wrapper inside the hero; it sits BEHIND
   content (z-index 0). Hero content must be z-index 1. */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-orbs::before, .hero-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.30;
  animation: floatOrb 22s ease-in-out infinite;
}
.hero-orbs::before { width: 420px; height: 420px; background: #38bdf8; top: -120px; left: -100px; }
.hero-orbs::after  { width: 320px; height: 320px; background: #8b5cf6; bottom: -80px; right: -60px; animation-delay: -11s; }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(40px,-40px); }
  66% { transform: translate(-30px,30px); }
}

/* ----- GD / panel participant cards: layered 3D depth on hover ----- */
.gd-participant {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}
.gd-participant:hover {
  transform: perspective(800px) rotateY(-6deg) translateZ(20px);
  box-shadow: -10px 12px 44px rgba(56,189,248,0.22);
  border-color: rgba(56,189,248,0.40);
}

/* ============================================================
   PHASE 6 — MOBILE PERFORMANCE SAFEGUARDS (CRITICAL)
   90% of users are on budget Android phones. Heavy blur + 3D tilt +
   orb animation are the expensive bits — throttle them on small screens.
   ============================================================ */
@media (max-width: 768px) {
  .glass, .glass-3d, .gd-participant {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .glass:hover, .glass-3d:hover, .gd-participant:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .hero-orbs::before, .hero-orbs::after { animation: none; opacity: 0.18; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbs::before, .hero-orbs::after,
  .btn-premium, .btn-premium::before,
  .glass, .glass-3d, .gd-participant { animation: none !important; transition: none !important; }
}

/* ============================================================
   PREMIUM GLASS v2 — site-wide cohesive glassmorphism + depth.
   Goal: make the ENTIRE dark UI read as one polished glass system,
   not a few patched cards. Applies to every major card primitive on
   body.dark-page. Vibrant sky→violet accent woven into borders + glow.
   Mobile-safe: blur throttled + tilts killed in the @media block below.
   ============================================================ */

/* Vibrant ambient mesh behind dark pages — layered straight into the body
   background (gradients composite over the solid ink base). No pseudo-element
   z-index games → bulletproof, content always sits above it. Fixed attachment
   so it doesn't scroll-shift. Near-zero perf cost. */
body.dark-page {
  background:
    radial-gradient(42% 52% at 10% 6%, rgba(56,189,248,0.12), transparent 70%),
    radial-gradient(40% 48% at 90% 12%, rgba(139,92,246,0.14), transparent 70%),
    radial-gradient(55% 55% at 50% 108%, rgba(14,165,233,0.09), transparent 70%),
    var(--ink-900) !important;
  background-attachment: fixed, fixed, fixed, fixed;
}

/* The shared .card primitive — the workhorse across the app. Richer glass:
   deeper blur, a faint sky-tinted hairline, layered shadow + inner highlight. */
body.dark-page .card {
  background: linear-gradient(160deg, rgba(30,41,59,0.62), rgba(15,23,42,0.74)) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(148,163,184,0.16) !important;
  box-shadow: 0 18px 44px -20px rgba(0,0,0,0.55),
              inset 0 1px 0 rgba(255,255,255,0.07) !important;
}

/* Hover-lift + subtle perspective tilt for the big card grids (DESKTOP).
   Targets the landing primitives + any .card-hover. Mobile kills this. */
body.dark-page .card-hover,
body.dark-page .metric-tile,
body.dark-page .sim-card,
body.dark-page .story-card,
body.dark-page .dash-tile,
body.dark-page .company-logo-card {
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
body.dark-page .card-hover:hover,
body.dark-page .metric-tile:hover,
body.dark-page .sim-card:hover,
body.dark-page .story-card:hover,
body.dark-page .dash-tile:hover {
  transform: perspective(900px) translateY(-6px) rotateX(2.5deg) rotateY(-2.5deg);
  border-color: rgba(56,189,248,0.42) !important;
  box-shadow: 0 26px 60px -22px rgba(56,189,248,0.34),
              inset 0 1px 0 rgba(255,255,255,0.14) !important;
}

/* Metric / stat numbers: vivid sky→violet gradient TEXT for pop.
   IMPORTANT: use background-image (not the `background` shorthand) — the
   shorthand would reset background-clip to border-box, and with !important
   that reset wins over our `background-clip: text`, turning the number into a
   solid gradient bar instead of clipping to the glyphs. background-image
   leaves background-clip untouched. clip + fill are !important to beat the
   pre-existing .metric-num rule. */
body.dark-page .metric-tile .metric-num,
body.dark-page .stat-num,
body.dark-page .dash-num {
  background-image: linear-gradient(135deg, #38bdf8, #8b5cf6) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Section titles get a soft glow so the page feels lit, not flat. */
body.dark-page .section-title,
body.dark-page .section-title em {
  text-shadow: 0 0 32px rgba(56,189,248,0.18);
}
body.dark-page .section-title em {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* GD section card + simulator cards + dashboard mock: unify the glass look. */
body.dark-page .gd-card,
body.dark-page .dashboard-mock,
body.dark-page .pain-card,
body.dark-page .fail-card {
  background: linear-gradient(160deg, rgba(30,41,59,0.55), rgba(15,23,42,0.72)) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(148,163,184,0.15) !important;
}

/* Company logo marquee chips → light glass pills. */
body.dark-page .marquee-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
}

/* Pricing featured card: a vivid aurora ring so the recommended plan pops. */
body.dark-page .tier-card.featured {
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(160deg, rgba(30,41,59,0.62), rgba(15,23,42,0.78)) padding-box,
    linear-gradient(135deg, #38bdf8, #8b5cf6) border-box !important;
  box-shadow: 0 24px 70px -24px rgba(56,189,248,0.45) !important;
}

/* Mobile: kill the perspective tilts (no hover on touch + cheaper paint)
   and drop blur for the new primitives. Mirrors the Phase-6 block. */
@media (max-width: 768px) {
  body.dark-page .card,
  body.dark-page .gd-card,
  body.dark-page .dashboard-mock {
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }
  body.dark-page .card-hover:hover,
  body.dark-page .metric-tile:hover,
  body.dark-page .sim-card:hover,
  body.dark-page .story-card:hover,
  body.dark-page .dash-tile:hover {
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.dark-page { background-attachment: scroll, scroll, scroll, scroll; }
  body.dark-page .card-hover, body.dark-page .metric-tile, body.dark-page .sim-card,
  body.dark-page .story-card, body.dark-page .dash-tile { transition: none !important; }
}

/* ============================================================
   FIX: white strip at page bottom + transparent profile menu
   ============================================================ */

/* The <html> element keeps the light default background (var(--bg)). On a
   dark page, any area beyond the body box — overscroll/rubber-band at the
   bottom, or a short page — shows that light bg as a white strip. Paint the
   root dark whenever a dark-page body is present. :has() is supported in all
   current browsers (Chrome 105+, Safari 15.4+, Firefox 121+). The plain
   `html` fallback keeps the strip dark even if :has is unavailable, since
   every user-facing page is dark now. */
html { background: var(--ink-900); }
html:has(body.dark-page) { background: var(--ink-900); }
/* Stop the rubber-band/overscroll area from flashing a different colour. */
body.dark-page { overscroll-behavior: none; }

/* Profile dropdown menu must be SOLID (not the translucent --surface we use
   for cards) — a floating menu over page content needs to be fully readable. */
body.dark-page .profile-dropdown {
  background: #0d1426 !important;
  border: 1px solid rgba(148,163,184,0.22) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.7) !important;
}
body.dark-page .profile-dropdown-header { border-bottom-color: rgba(148,163,184,0.16) !important; }
body.dark-page .profile-dropdown-divider { background: rgba(148,163,184,0.16) !important; }
body.dark-page .profile-name { color: #f1f5f9 !important; }
body.dark-page .profile-email { color: #94a3b8 !important; }
body.dark-page .profile-dropdown-item { color: #cbd5e1 !important; }
body.dark-page .profile-dropdown-item:hover,
body.dark-page .profile-dropdown-item.active {
  background: rgba(91,140,255,0.14) !important;
  color: #ffffff !important;
}
body.dark-page .profile-dropdown-item.profile-dropdown-danger { color: #fca5a5 !important; }
body.dark-page .profile-dropdown-item.profile-dropdown-danger:hover {
  background: rgba(239,68,68,0.14) !important;
}

/* Mobile slide-out nav drawer — same fix: must be solid, not translucent,
   so menu links are readable over whatever page is behind it. */
body.dark-page .nav-drawer {
  background: #0d1426 !important;
  border-left: 1px solid rgba(148,163,184,0.16);
}

/* ============================================================
   GOOGLE-MEET-STYLE REALTIME STAGE (avatar video tile)
   ============================================================ */
.meet-stage { max-width: 760px; margin: 0 auto; }
.meet-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #1b2440 0%, #0b1020 60%),
    #0b1020;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
/* Active-speaker glow — toggled via .speaking when the AI is talking. */
.meet-tile.speaking {
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 0 0 2px rgba(56,189,248,0.6), 0 24px 70px -20px rgba(56,189,248,0.45);
}
.meet-avatar { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Name pill — bottom-left, like a Meet participant label. */
.meet-namebar {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(11,16,32,0.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(148,163,184,0.18);
  padding: 0.35rem 0.7rem; border-radius: 10px;
  color: #f1f5f9; font-size: 0.85rem; font-weight: 600;
}
.meet-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.meet-rt-badge {
  font-size: 0.58rem; letter-spacing: 0.05em; font-weight: 800;
  background: rgba(56,189,248,0.22); border: 1px solid rgba(56,189,248,0.45);
  color: #cbe2ff; padding: 0.1rem 0.36rem; border-radius: 5px; margin-left: 0.2rem;
}
/* Status chip — top-right ("Connecting…", "Your turn…"). */
.meet-status-chip {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(11,16,32,0.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(148,163,184,0.18);
  padding: 0.3rem 0.7rem; border-radius: 999px;
  color: #cbd5e1; font-size: 0.78rem;
}
/* You PiP — small self-tile bottom-right (no camera in realtime → initial). */
.meet-pip {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 110px; height: 80px; border-radius: 12px;
  background: linear-gradient(135deg, #5b8cff, #a78bfa);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.meet-pip-initial { font-size: 2rem; font-weight: 800; color: #fff; }
.meet-pip-label {
  position: absolute; left: 6px; bottom: 6px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(11,16,32,0.6); padding: 2px 6px; border-radius: 6px;
  color: #fff; font-size: 0.62rem; font-weight: 600;
}
.meet-mic-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
@media (max-width: 600px) {
  .meet-pip { width: 84px; height: 62px; }
  .meet-pip-initial { font-size: 1.5rem; }
}

