/* ========================================
   altfactor.ro — Premium Custom CSS
   ======================================== */

:root {
  --brand-blue: #2ea3f2;
  --brand-dark: #293467;
  --brand-red: #E34335;
  --text-dark: #1a1a2e;
  --text-body: #555568;
  --bg-light: #f7f8fc;
  --border-subtle: #e2e5ee;
  --radius-button: 30px;
  --radius-card: 12px;
  --font-main: 'Open Sans', Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  background: #fff;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background-color: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

.nav-link {
  position: relative;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--brand-blue); }
.nav-link:hover::after { width: 100%; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  background: linear-gradient(135deg, #E34335, #c7352a);
  color: #fff;
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 67, 53, 0.3);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s ease;
}

.btn-secondary:hover {
  gap: 12px;
  color: #1a8fd8;
}

/* ========================================
   HERO
   ======================================== */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46,163,242,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41,52,103,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(46,163,242,0.08);
  border: 1px solid rgba(46,163,242,0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  animation: pulse-dot 2s infinite;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-pill svg { flex-shrink: 0; }

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-delay { transition-delay: 0ms; }
  .preview-card * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   PREVIEW CARD — App Window Style
   ======================================== */
.preview-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.preview-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* macOS-style title bar */
.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8f9fb, #f0f1f5);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #febc2e; }
.preview-dot.green { background: #28c840; }

.preview-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #8e8e93;
  letter-spacing: 0.02em;
}

.preview-content {
  padding: 0;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ========================================
   CATEGORY TAG & DIVIDER
   ======================================== */
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-blue);
  margin-bottom: 14px;
}

.category-tag::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}

.category-divider {
  text-align: center;
  padding: 70px 0 20px;
}

.category-divider h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--brand-blue);
  position: relative;
  display: inline-block;
}

.category-divider h3::before,
.category-divider h3::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.category-divider h3::before {
  right: calc(100% + 16px);
  background: linear-gradient(270deg, var(--border-subtle), transparent);
}

.category-divider h3::after { left: calc(100% + 16px); }

/* ========================================
   FEATURE LIST
   ======================================== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.5;
}

.feature-list .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

/* ========================================
   HOW WE WORK — Steps
   ======================================== */
.step-card {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  text-align: center;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step-connector-line {
  display: none;
}

@media (min-width: 768px) {
  .step-connector-line {
    display: block;
    position: absolute;
    top: 50px;
    left: 100%;
    width: calc(100% - 48px);
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), rgba(46,163,242,0.2));
    z-index: 0;
    transform: translateX(-50%);
  }
}

/* ========================================
   FINAL CTA
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, #293467 0%, #1a2247 50%, #293467 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46,163,242,0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(227,67,53,0.1) 0%, transparent 60%);
  border-radius: 50%;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #fafbfd;
}

/* ========================================
   MOBILE NAV
   ======================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-link { font-size: 1.25rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 3000;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .navbar .desktop-nav { display: none !important; }
}

/* ========================================
   HERO PREVIEW STRIP
   ======================================== */
.hero-strip {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

.hero-mini-preview {
  width: 160px;
  height: 100px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-mini-preview:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   CONTAINER
   ======================================== */
.container-main {
  width: 80%;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 1024px) { .container-main { width: 90%; } }
@media (max-width: 768px) {
  .container-main { width: 92%; }
  .preview-card { min-height: 300px; }
  .hero-strip { flex-wrap: wrap; gap: 10px; }
  .hero-mini-preview { width: 100px; height: 65px; }
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes scanDown {
  0% { top: 0; }
  100% { top: 100%; }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeInArea {
  to { opacity: 0.12; }
}

@keyframes pulseAnomaly {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 8; opacity: 0.5; }
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   PREVIEW COMPONENT STYLES
   ======================================== */

/* --- Shared app-like preview internals --- */
.preview-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: #333;
  background: #fff;
}

.preview-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid #f0f1f4;
  background: #fafbfd;
  flex-shrink: 0;
}

.preview-app-header .app-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-app-header .app-status {
  font-size: 10px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-app-header .app-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.preview-app-body {
  flex: 1;
  overflow: hidden;
  padding: 12px;
}

/* --- Chat Preview --- */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

.chat-message {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  animation: messageIn 0.3s ease-out;
}

.chat-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2ea3f2, #1a8fd8);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  align-self: flex-start;
  background: #f0f3f8;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.chat-message .source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 10px;
  background: linear-gradient(135deg, #e8f4fd, #d6ecfa);
  color: var(--brand-blue);
  border-radius: 10px;
  font-weight: 600;
}

.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: #f0f3f8;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 7px 14px;
  border: 1px solid #e2e5ee;
  border-radius: 20px;
  font-size: 11.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  outline: none;
  background: #fafbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(46,163,242,0.1);
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2ea3f2, #1a8fd8);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(46,163,242,0.3);
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  flex-shrink: 0;
}

.suggested-btn {
  padding: 4px 10px;
  font-size: 10px;
  border: 1px solid #e2e5ee;
  border-radius: 14px;
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.2s;
}

.suggested-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(46,163,242,0.04);
}

/* --- Document Scanner --- */
.doc-scanner { display: flex; gap: 10px; height: 100%; }

.doc-left {
  flex: 1;
  position: relative;
  background: #fafbfd;
  border: 1px solid #e8eaf0;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  overflow: hidden;
}

.doc-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
  opacity: 0;
  z-index: 2;
}

.scan-line.active {
  opacity: 1;
  animation: scanDown 2s ease-in-out;
}

.extracted-field {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 8px;
  font-size: 11px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.extracted-field.visible { opacity: 1; transform: translateX(0); }

.extracted-field .field-label {
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.extracted-field .field-value { color: var(--text-dark); margin-top: 1px; }

.extract-btn {
  padding: 7px 18px;
  background: linear-gradient(135deg, #2ea3f2, #1a8fd8);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}

.extract-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,163,242,0.25); }
.extract-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Forecast Chart --- */
.chart-line {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.animated {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease forwards;
}

.chart-area { opacity: 0; animation: fadeInArea 1s ease 1.5s forwards; }

.chart-tooltip {
  position: absolute;
  padding: 5px 10px;
  background: rgba(26,26,46,0.92);
  color: #fff;
  font-size: 10.5px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.chart-tooltip.visible { opacity: 1; }
.anomaly-point { animation: pulseAnomaly 2s infinite; }

/* --- Vision --- */
.vision-container { position: relative; width: 100%; height: 100%; }

.vision-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #dfe3ea 0%, #c5ccd6 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.bbox {
  position: absolute;
  border: 2px solid;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(1px);
}

.bbox.visible { opacity: 1; transform: scale(1); }

.bbox-label {
  position: absolute;
  top: -20px;
  left: -1px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* --- Workflow --- */
.workflow-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.workflow-node {
  width: 72px;
  height: 72px;
  border: 2px solid #e8eaf0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-body);
  background: #fff;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.workflow-node.active {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, #eef7fe, #dbeffe);
  color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(46,163,242,0.1);
}

.workflow-node.completed {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
}

.workflow-connector {
  width: 16px;
  height: 2px;
  background: #e8eaf0;
  border-radius: 1px;
  transition: background 0.3s;
}

.workflow-connector.active { background: var(--brand-blue); }

/* --- Meeting Transcript --- */
.transcript-line {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  font-size: 11px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s;
}

.transcript-line.visible { opacity: 1; transform: translateY(0); }
.transcript-speaker { font-weight: 700; flex-shrink: 0; width: 42px; }
.transcript-text { flex: 1; line-height: 1.5; }

.highlight-decision { background: #dcfce7; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.highlight-action { background: #dbeafe; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.highlight-deadline { background: #fef3c7; padding: 1px 4px; border-radius: 3px; font-weight: 600; }

.meeting-sidebar {
  border-left: 2px solid #e8eaf0;
  padding-left: 10px;
  font-size: 10px;
}

.sidebar-item { padding: 3px 0; opacity: 0; transition: opacity 0.3s; }
.sidebar-item.visible { opacity: 1; }

/* --- Proposal Generator --- */
.proposal-form { display: flex; flex-direction: column; gap: 6px; }

.proposal-field {
  padding: 6px 10px;
  border: 1px solid #e8eaf0;
  border-radius: 6px;
  font-size: 11px;
  background: #fafbfd;
  color: var(--text-dark);
}

.proposal-output {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 8px;
  padding: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  box-shadow: var(--shadow-sm);
}

.proposal-output.visible { transform: translateX(0); opacity: 1; }

.proposal-section {
  padding: 5px 0;
  border-bottom: 1px solid #f4f5f7;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.3s;
}

.proposal-section.visible { opacity: 1; }

.proposal-section-title {
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* --- Course Builder --- */
.course-module {
  margin-bottom: 6px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.course-module.visible { opacity: 1; transform: translateX(0); }

.module-title {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f7f8fc;
  border-radius: 6px;
  margin-bottom: 3px;
}

.lesson-item {
  padding: 3px 0 3px 28px;
  font-size: 10.5px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quiz-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 600;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-radius: 10px;
}

/* --- Candidate Cards --- */
.candidate-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.candidate-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 2px 12px rgba(46,163,242,0.1);
}

.candidate-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.candidate-name { font-weight: 700; font-size: 11.5px; color: var(--text-dark); }
.candidate-role { font-size: 10px; color: var(--text-body); }

.match-bar { width: 60px; height: 5px; background: #e8eaf0; border-radius: 3px; overflow: hidden; }
.match-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.candidate-details { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.candidate-details.open { max-height: 200px; }

.skill-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 9px;
  border-radius: 10px;
  margin: 2px;
  font-weight: 600;
}

/* --- Itinerary --- */
.itinerary-map {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #e0ecfb, #cdddf5);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -100%);
  transition: transform 0.2s;
  cursor: pointer;
}

.map-pin.active { transform: translate(-50%, -100%) scale(1.4); }

.day-tab {
  padding: 5px 14px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid #e8eaf0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.day-tab.active {
  background: linear-gradient(135deg, #2ea3f2, #1a8fd8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(46,163,242,0.25);
}

.itinerary-item {
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.itinerary-item:hover, .itinerary-item.active { background: #eef7fe; }

/* --- Grant --- */
.grant-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.eligibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 11px;
  color: var(--text-body);
}

.checklist-check {
  width: 18px;
  height: 18px;
  border: 2px solid #e2e5ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.checklist-check.checked { border-color: #22c55e; background: #22c55e; }

/* --- Tutor --- */
.tutor-content {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dark);
  padding: 10px;
  background: #fafbfd;
  border-radius: 8px;
  border: 1px solid #e8eaf0;
}

.tutor-fab {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ea3f2, #1a8fd8);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(46,163,242,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tutor-fab:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(46,163,242,0.4); }

.tutor-panel {
  position: absolute;
  bottom: 56px;
  right: 6px;
  width: 230px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: scale(0.8) translateY(10px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  pointer-events: none;
  overflow: hidden;
}

.tutor-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   PREMIUM PREVIEW ENHANCEMENTS
   ======================================== */

/* --- KPI Cards (Forecast, Vision results, etc.) --- */
.kpi-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.kpi-card {
  flex: 1;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #f0f1f4;
  border-radius: 6px;
  text-align: center;
}

.kpi-card .kpi-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.kpi-card .kpi-label {
  font-size: 9px;
  color: #8e8e93;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* --- Filter bar (Candidate, etc.) --- */
.preview-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f7f8fc;
  border-bottom: 1px solid #f0f1f4;
  font-size: 10px;
  color: #8e8e93;
  flex-shrink: 0;
}

.preview-filter-bar .filter-tag {
  padding: 2px 7px;
  background: #fff;
  border: 1px solid #e2e5ee;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- Toolbar (Vision, etc.) --- */
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 10px;
  background: #f7f8fc;
  border-bottom: 1px solid #f0f1f4;
  font-size: 9.5px;
  color: #8e8e93;
  flex-shrink: 0;
}

.preview-toolbar span { white-space: nowrap; }

/* --- Results summary bar --- */
.results-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #fafbfd;
  border: 1px solid #f0f1f4;
  border-radius: 8px;
  font-size: 10px;
  margin-top: 8px;
}

.results-bar .result-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.results-bar .result-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Progress bar --- */
.preview-progress {
  width: 100%;
  height: 3px;
  background: #f0f1f4;
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0;
}

.preview-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #2ea3f2, #1a8fd8);
  transition: width 0.4s ease;
}

/* --- Success card (workflow completion, etc.) --- */
.success-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #166534;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.success-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mini action toolbar --- */
.mini-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  background: #fafbfd;
  border: 1px solid #f0f1f4;
  border-radius: 6px;
  margin-top: 8px;
}

.mini-toolbar button {
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 600;
  color: var(--brand-blue);
  background: none;
  border: none;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-radius: 4px;
  transition: background 0.2s;
}

.mini-toolbar button:hover { background: #eef7fe; }

.mini-toolbar .toolbar-sep {
  width: 1px;
  height: 12px;
  background: #e2e5ee;
  margin: 0 2px;
}

/* --- Avatar circles --- */
.preview-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* --- FAB pulse ring --- */
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.tutor-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(46,163,242,0.3);
  animation: fabPulse 2s ease-out infinite;
  pointer-events: none;
}

/* --- Confidence badge --- */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef7fe, #d6ecfa);
  color: var(--brand-blue);
}

/* --- Shimmer loading --- */
.shimmer-loading {
  background: linear-gradient(90deg, transparent 0%, rgba(46,163,242,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ========================================
   WHY ALTFACTOR SECTION
   ======================================== */
.why-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(46,163,242,0.08);
  border: 1px solid rgba(46,163,242,0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.why-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  animation: pulse-dot 2s infinite;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.why-stat {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.why-stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.why-stat-desc {
  font-size: 0.8125rem;
  color: var(--text-body);
  line-height: 1.5;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.why-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  border-left: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--brand-blue);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(46,163,242,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand-blue);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

.why-tech {
  text-align: center;
}

.why-tech-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.why-tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tech-logo-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tech-logo-pill:hover {
  background: rgba(46,163,242,0.06);
  border-color: rgba(46,163,242,0.3);
}

@media (max-width: 1024px) {
  .why-stats { grid-template-columns: repeat(2, 1fr); }
  .why-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .why-stats { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr; }
  .why-stat-number { font-size: 2rem; }
}
