/* Hyrion AI - Brand colors from PPT */
:root {
  --hyrion-navy: #0A2463;
  --hyrion-blue: #1E5BC6;
  --hyrion-deep: #13357A;
  --hyrion-light: #F1F5F9;
  --hyrion-slate: #64748B;
  --hyrion-dark: #0F172A;
  --hyrion-border: #CBD5E1;
  --hyrion-soft: #E2E8F0;
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #FAFBFC;
  color: var(--hyrion-dark);
}

.bg-hyrion-navy { background-color: var(--hyrion-navy); }
.bg-hyrion-blue { background-color: var(--hyrion-blue); }
.bg-hyrion-deep { background-color: var(--hyrion-deep); }
.bg-hyrion-light { background-color: var(--hyrion-light); }
.text-hyrion-navy { color: var(--hyrion-navy); }
.text-hyrion-blue { color: var(--hyrion-blue); }
.text-hyrion-slate { color: var(--hyrion-slate); }
.text-hyrion-dark { color: var(--hyrion-dark); }
.border-hyrion-navy { border-color: var(--hyrion-navy); }
.border-hyrion-blue { border-color: var(--hyrion-blue); }
.border-hyrion-light { border-color: var(--hyrion-border); }

/* Hero gradient */
.hyrion-gradient {
  background: linear-gradient(135deg, #0A2463 0%, #13357A 50%, #1E5BC6 100%);
}

.hyrion-gradient-soft {
  background: linear-gradient(135deg, #F1F5F9 0%, #FFFFFF 100%);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 91, 198, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(30, 91, 198, 0); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.fade-in { animation: fadeIn 0.5s ease-out; }
.slide-in { animation: slideIn 0.4s ease-out; }
.pulse-blue { animation: pulse-blue 2s infinite; }

.shimmer {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Sidebar items */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.sidebar-item:hover {
  background: #F1F5F9;
  color: var(--hyrion-navy);
}
.sidebar-item.active {
  background: linear-gradient(90deg, #0A2463 0%, #1E5BC6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(10, 36, 99, 0.25);
}
.sidebar-item i { width: 18px; text-align: center; }

/* Page tab */
.tab-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.tab-btn:hover { color: var(--hyrion-navy); }
.tab-btn.active {
  color: var(--hyrion-navy);
  background: white;
  border-color: var(--hyrion-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Cards */
.hyrion-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.hyrion-card:hover {
  box-shadow: 0 4px 16px rgba(10,36,99,0.08);
  border-color: #CBD5E1;
}

/* Phase chip */
.phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Buttons */
.btn-primary {
  background: var(--hyrion-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--hyrion-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10,36,99,0.25);
}
.btn-primary:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: var(--hyrion-navy);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.2s;
  border: 1px solid var(--hyrion-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--hyrion-navy);
  background: #F8FAFC;
}

/* Input */
.hyrion-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 13.5px;
  background: white;
  transition: all 0.15s;
}
.hyrion-input:focus {
  outline: none;
  border-color: var(--hyrion-blue);
  box-shadow: 0 0 0 3px rgba(30,91,198,0.15);
}

/* Drag-drop zone */
.drop-zone {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: #FAFBFC;
  transition: all 0.2s;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--hyrion-blue);
  background: #F1F5F9;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-interview { background: var(--hyrion-navy); color: white; }
.badge-evaluate { background: var(--hyrion-blue); color: white; }
.badge-drop { background: var(--hyrion-slate); color: white; }
.badge-irrelevant { background: var(--hyrion-soft); color: var(--hyrion-slate); }
.badge-ready { background: var(--hyrion-blue); color: white; }
.badge-success { background: #10B981; color: white; }

/* Fit bar */
.fit-bar {
  width: 100%;
  height: 6px;
  background: var(--hyrion-soft);
  border-radius: 999px;
  overflow: hidden;
}
.fit-bar > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease-out;
}

/* Login background */
.login-bg {
  background:
    radial-gradient(circle at 20% 20%, rgba(30,91,198,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(10,36,99,0.18) 0%, transparent 40%),
    linear-gradient(135deg, #0A2463 0%, #13357A 50%, #1E5BC6 100%);
}

.glass {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Workflow phase pill */
.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(30,91,198,0.1);
  color: var(--hyrion-blue);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--hyrion-blue); }

/* Toggle switch */
.toggle {
  position: relative;
  width: 38px;
  height: 22px;
  background: #CBD5E1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle.on { background: var(--hyrion-blue); }
.toggle.on::after { left: 18px; }

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Spinner */
.spinner {
  border: 3px solid #E2E8F0;
  border-top-color: var(--hyrion-blue);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,36,99,0.55);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Phase step circle */
.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--hyrion-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--hyrion-navy);
}

/* Logo styling */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0A2463 0%, #1E5BC6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 10px rgba(10,36,99,0.25);
}

/* ===== A.T.L.A.S Hero Wordmark — advanced animated brand ===== */
.atlas-hero {
  position: relative;
  display: inline-block;
  padding: 8px 0;
}

.atlas-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(
    100deg,
    #E8F1FF 0%,
    #ffffff 35%,
    #BFD7FF 55%,
    #ffffff 80%,
    #E8F1FF 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: atlasShine 8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(127, 176, 255, 0.20));
}

.atlas-wordmark .dot {
  display: inline-block;
  font-weight: 700;
  color: #7FB0FF;
  -webkit-text-fill-color: #7FB0FF;
  text-shadow:
    0 0 4px rgba(127,176,255,0.65),
    0 0 10px rgba(127,176,255,0.35);
  animation: atlasDotPulse 3.2s ease-in-out infinite;
  margin: 0 0.04em;
  transform: translateY(-0.04em);
  font-size: 0.7em;
  opacity: 0.85;
}
.atlas-wordmark .dot:nth-child(2) { animation-delay: 0.4s; }
.atlas-wordmark .dot:nth-child(4) { animation-delay: 0.8s; }
.atlas-wordmark .dot:nth-child(6) { animation-delay: 1.2s; }
.atlas-wordmark .dot:nth-child(8) { animation-delay: 1.6s; }

@keyframes atlasShine {
  0%   { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}
@keyframes atlasDotPulse {
  0%, 100% {
    transform: translateY(-0.04em) scale(1);
    opacity: 0.7;
    text-shadow:
      0 0 4px rgba(127,176,255,0.55),
      0 0 10px rgba(127,176,255,0.30);
  }
  50% {
    transform: translateY(-0.04em) scale(1.08);
    opacity: 1;
    text-shadow:
      0 0 6px  rgba(191,215,255,0.85),
      0 0 14px rgba(127,176,255,0.55),
      0 0 22px rgba(30,91,198,0.35);
  }
}

/* Glow halo behind the wordmark — subtle */
.atlas-glow {
  position: absolute;
  inset: -40% -4%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(127,176,255,0.16) 0%, transparent 60%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
  animation: atlasGlowDrift 9s ease-in-out infinite alternate;
}
@keyframes atlasGlowDrift {
  0%   { transform: translateX(-3%) scale(1);    opacity: 0.7; }
  100% { transform: translateX( 3%) scale(1.04); opacity: 1; }
}

/* Full-form tagline */
.atlas-fullform {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(191,215,255,0.7);
  position: relative;
}
.atlas-fullform::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,176,255,0.5));
}
.atlas-fullform .by {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.25em;
}
.atlas-fullform .noventis {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  letter-spacing: 0.28em;
}

/* Sub-tagline (was the giant Smart hiring headline) */
.atlas-subtag {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.01em;
  line-height: 1.55;
  max-width: 540px;
}
.atlas-subtag .accent {
  color: #ffffff;
  font-weight: 700;
}

/* Orbital ring + scanning beam (advanced-tool feel) */
.atlas-ring {
  position: absolute;
  border: 1px solid rgba(127,176,255,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.atlas-ring.r1 { width: 620px; height: 620px; top: -180px; left: -160px; animation: atlasSpin 48s linear infinite; border-color: rgba(127,176,255,0.07); }
.atlas-ring.r2 { width: 880px; height: 880px; top: -320px; left: -300px; animation: atlasSpin 72s linear infinite reverse; border-color: rgba(127,176,255,0.05); }
.atlas-ring::before {
  content: '';
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(127,176,255,0.6);
  border-radius: 50%;
  top: -1.5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(127,176,255,0.5);
}
@keyframes atlasSpin {
  to { transform: rotate(360deg); }
}

/* Floating particle dots */
.atlas-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.atlas-particles span {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(191,215,255,0.6);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(191,215,255,0.4);
  opacity: 0;
  animation: atlasFloat 11s linear infinite;
}
@keyframes atlasFloat {
  0%   { transform: translateY(20px) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(-120px) translateX(20px); opacity: 0; }
}

/* Feature chips (the 4 small cards) */
.atlas-chip {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(127,176,255,0.22);
  padding: 13px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.atlas-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(127,176,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.atlas-chip:hover {
  border-color: rgba(127,176,255,0.55);
  background: rgba(127,176,255,0.10);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30,91,198,0.35);
}
.atlas-chip:hover::before { transform: translateX(100%); }
.atlas-chip i {
  font-size: 16px;
  color: #BFD7FF;
  text-shadow: 0 0 10px rgba(127,176,255,0.7);
}
