/* ==========================================================================
   ALTIORA — AI-Powered Recruitment & Talent Intelligence Platform
   Premium Enterprise SaaS Stylesheet
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --altiora-navy-950: #060d1f;
  --altiora-navy-900: #0b152d;
  --altiora-navy-800: #122146;
  --altiora-navy-700: #1e3364;
  
  --altiora-indigo-900: #191c4d;
  --altiora-indigo-800: #262973;
  --altiora-indigo-600: #3f47c7;
  
  --altiora-blue-700: #2f5b79;
  --altiora-blue-600: #3d6f91;
  --altiora-blue-500: #4f7fa1;
  --altiora-blue-400: #6b8ead;
  
  --altiora-electric-600: #3d6f91;
  --altiora-electric-500: #5d87a5;
  
  --altiora-cyan-600: #4f7fa1;
  --altiora-cyan-500: #6b8ead;
  --altiora-cyan-400: #89a8bf;
  
  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-subtle: #f1f5f9;
  --bg-blue-tint: #eef4f7;
  --bg-blue-subtle: #e2edf2;
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Borders */
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #a4bdcc;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-bento: 24px;
  --radius-bento-inner: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-bento: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-bento-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-bento-dark: 0 20px 25px -5px rgba(15, 23, 42, 0.35);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-primary-btn: 0 10px 20px -3px rgba(37, 99, 235, 0.3);
}

/* Match Tailwind accents to the Altiora logo palette. */
.altiora-logo {
  width: 8.5rem;
  height: auto;
  display: block;
}

.altiora-footer-logo {
  width: 8.5rem;
  height: auto;
  display: block;
}

.bg-blue-50, .bg-blue-100, .bg-blue-200, .bg-blue-300, .bg-blue-400,
.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-blue-800, .bg-blue-900,
.bg-blue-950, .bg-blue-50\/60, .bg-blue-950\/80 {
  background-color: var(--altiora-blue-600) !important;
}

.bg-blue-50, .bg-blue-100, .bg-blue-50\/60 {
  background-color: var(--bg-blue-subtle) !important;
}

.bg-blue-200, .bg-blue-300 {
  background-color: var(--altiora-blue-400) !important;
}

.bg-blue-400, .bg-blue-500 {
  background-color: var(--altiora-blue-500) !important;
}

.bg-blue-700, .bg-blue-800, .bg-blue-900, .bg-blue-950, .bg-blue-950\/80 {
  background-color: var(--altiora-blue-700) !important;
}

.text-blue-300, .text-blue-400, .text-blue-500, .text-blue-600,
.text-blue-700, .text-blue-800, .text-blue-900 {
  color: var(--altiora-blue-600) !important;
}

.text-blue-700, .text-blue-800, .text-blue-900 {
  color: var(--altiora-blue-700) !important;
}

.border-blue-100, .border-blue-200, .border-blue-800\/60 {
  border-color: var(--border-focus) !important;
}

/* Base Reset & Setup */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-secondary);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Navbar */
.altiora-navbar {
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  z-index: 1040;
}

.altiora-navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-bottom-color: var(--border-light);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--altiora-blue-600) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--altiora-blue-600);
  border-radius: 2px;
}

/* Buttons */
.btn-primary-altiora {
  background-color: var(--altiora-blue-600);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.65rem;
  border-radius: 0.75rem;
  border: 1px solid var(--altiora-blue-700);
  box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary-altiora:hover {
  background-color: var(--altiora-blue-700);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -3px rgba(37, 99, 235, 0.4);
}

.btn-primary-altiora:active {
  transform: translateY(0);
}

.btn-dark-altiora {
  background-color: #0f172a;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
}

.btn-dark-altiora:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-secondary-altiora {
  background-color: #ffffff;
  color: var(--text-primary) !important;
  font-weight: 700;
  padding: 0.75rem 1.65rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
}

.btn-secondary-altiora:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--altiora-blue-700) !important;
  transform: translateY(-1px);
}

.btn-ghost-altiora {
  color: var(--text-secondary) !important;
  font-weight: 600;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
  text-decoration: none;
}

.btn-ghost-altiora:hover {
  color: var(--altiora-blue-600) !important;
}

/* Badges & Pills */
.badge-altiora-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-blue-subtle);
  color: var(--altiora-blue-700);
  border: 1px solid rgba(147, 197, 253, 0.6);
  letter-spacing: 0.02em;
}

.ai-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e9f5fb !important;
  background: linear-gradient(135deg, var(--altiora-blue-700), var(--altiora-blue-500)) !important;
  border: 1px solid var(--altiora-blue-400) !important;
  box-shadow: 0 0 0 1px rgba(137, 168, 191, 0.2), 0 0 16px rgba(79, 127, 161, 0.35);
  letter-spacing: 0.08em;
}

.ai-highlight-badge svg {
  color: #c6e4f2;
  animation: ai-spark 2.2s ease-in-out infinite;
}

@keyframes ai-spark {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--altiora-cyan-500);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

/* Floating Animations */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.float-card-1 {
  animation: float-gentle 4.5s ease-in-out infinite;
}

.float-card-2 {
  animation: float-delayed 5.2s ease-in-out infinite;
}

.float-card-3 {
  animation: float-gentle 6s ease-in-out infinite 0.5s;
}

/* Enterprise Bento Grid Cards */
.altiora-card, .bento-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-bento);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.altiora-card:hover, .bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-bento-hover);
  border-color: #cbd5e1;
}

.bento-card-dark {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-bento);
  color: #ffffff;
  box-shadow: var(--shadow-bento-dark);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 30px -5px rgba(15, 23, 42, 0.45);
}

.bento-inner {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-bento-inner);
  padding: 1rem;
}

.bento-glow-orb {
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
}

/* Scroll Reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section Spacing */
.section-padding {
  padding: 5.5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

/* Hero Section */
.hero-wrapper {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-blue-tint) 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  padding-top: 7.5rem;
  padding-bottom: 4.5rem;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}

/* Hero Dashboard Mockup */
.hero-mockup-frame {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  position: relative;
}

.mockup-header-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Workflow Step Animation */
.workflow-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
}

.workflow-line {
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 3px;
  background: var(--border-light);
  transform: translateY(-50%);
  z-index: 1;
}

.workflow-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--altiora-blue-600), var(--altiora-cyan-500));
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-node {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 105px;
}

.workflow-node.active, .workflow-node:hover {
  border-color: var(--altiora-blue-600);
  background: var(--bg-blue-tint);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.workflow-node.active .node-label {
  color: var(--altiora-blue-700);
  font-weight: 700;
}

@media (max-width: 992px) {
  .workflow-track {
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }
  .workflow-line {
    top: 4%;
    bottom: 4%;
    left: 28px;
    width: 3px;
    height: auto;
    transform: none;
  }
  .workflow-line-progress {
    width: 100%;
    height: 0%;
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .workflow-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    margin-left: 14px;
  }
}

/* Kanban Board */
.kanban-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.25rem 1.5rem;
  scrollbar-width: thin;
}

.kanban-col {
  flex: 0 0 280px;
  background: var(--bg-surface);
  border-radius: var(--radius-bento-inner);
  border: 1px solid var(--border-light);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kanban-candidate-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 1rem;
  box-shadow: var(--shadow-bento);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.kanban-candidate-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-bento-hover);
}

/* Candidate Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-bento);
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-shadow: var(--shadow-bento);
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

.progress-bar-custom {
  height: 8px;
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  direction: ltr;
  transform-origin: left center;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--altiora-blue-600), var(--altiora-cyan-500));
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

/* Product Tabs */
.product-tab-btn {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.product-tab-btn:hover {
  color: var(--altiora-blue-600);
}

.product-tab-btn.active {
  color: var(--altiora-blue-600);
  border-bottom-color: var(--altiora-blue-600);
  background-color: var(--bg-blue-tint);
}

/* Human + AI Split Screen */
.human-ai-container {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f7ff 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.human-ai-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--border-subtle) 20%, var(--altiora-blue-500) 50%, var(--border-subtle) 80%, transparent 100%);
  z-index: 2;
}

.human-ai-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #ffffff;
  border: 2px solid var(--altiora-blue-600);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-weight: 700;
  color: var(--altiora-blue-700);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .human-ai-divider {
    display: none;
  }
  .human-ai-badge {
    position: static;
    transform: none;
    margin: 1.5rem auto;
    display: table;
  }
}

/* Mini CSS Bar Chart */
.css-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 120px;
  padding-top: 1rem;
}

.css-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.css-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--altiora-blue-500), var(--altiora-blue-700));
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  height: 0;
}

.css-bar.cyan {
  background: linear-gradient(180deg, var(--altiora-cyan-400), var(--altiora-cyan-600));
}

.css-bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Interactive Candidate Panel */
.candidate-pill {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
}

.candidate-pill:hover, .candidate-pill.active {
  border-color: var(--altiora-blue-500);
  background-color: var(--bg-blue-tint) !important;
}

/* Trust Strip */
.trust-strip-tag {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.trust-strip-tag:hover {
  border-color: var(--altiora-blue-400);
  color: var(--altiora-blue-600);
  transform: translateY(-1px);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .progress-bar-fill {
    transition: none !important;
  }
}
