:root {
  --color-bg: #040810;
  --color-bg-alt: #0a0f1d;
  --color-surface: #0f172a;
  --color-surface-hover: #1e293b;
  --color-border: rgb(255 255 255 / 8%);
  --color-border-hover: rgb(255 255 255 / 14%);
  --color-border-accent: rgb(99 102 241 / 24%);
  --color-accent: #6366f1;
  --color-accent-dim: #4f46e5;
  --color-text-main: #f8fafc;
  --color-muted: #94a3b8;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;       /* Mobile-first: standard base; scaled up for larger screens */
  scroll-padding-top: 112px; /* offset for fixed ticker (48px) + nav (64px) */
}

@media (width >= 640px) {
  html { font-size: 17px; } /* Bump up from 16px for sm+ screens */
}

/* ── Back button ── */
.st-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 12%);
  border-radius: 10px;
  color: #6a6a7a;
  font-size: .78rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.st-back-btn:hover {
  background: #f8f8fb;
  color: #111118;
  box-shadow: 0 4px 14px rgb(0 0 0 / 9%);
}

/* ── Node Chain ── */
.st-chain {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0 24px;
}

@media (width <= 680px) {
  .st-chain {
    flex-direction: column;
    align-items: center;
  }

  .st-arrow {
    transform: rotate(90deg);
    margin: 4px 0 !important;
  }
}

.st-chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 108px;
  max-width: 120px;
  flex-shrink: 0;
}

.stn-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.stn-circle:hover { transform: translateY(-2px); }

.stn-step {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0f1f5;
}

.manuell-circle {
  background: rgb(180 40 40 / 8%);
  border: 2px solid rgb(180 40 40 / 25%);
}

.manuell-badge-bg {
  background: rgb(180 40 40 / 18%);
  color: #b83030;
  animation: loop-pulse 2s infinite;
}

.ap-circle {
  background: rgb(200 30 30 / 10%);
  border: 2px solid rgb(200 30 30 / 40%);
  box-shadow: 0 0 20px rgb(200 30 30 / 10%);
}
.ap-circle:hover { box-shadow: 0 0 32px rgb(200 30 30 / 20%); }

#chain-ap .st-chain-node {
  display: grid;
  grid-template-rows: 100px 36px 30px auto;
  place-items: start center;
}

#chain-ap .stn-circle {
  width: 88px;
  height: 88px;
  margin-bottom: 0;
}

.az-circle {
  background: rgb(180 130 0 / 8%);
  border: 2px dashed rgb(180 130 0 / 40%);
  box-shadow: 0 0 16px rgb(180 130 0 / 7%);
}

.az-node:hover .az-circle {
  background: rgb(180 130 0 / 14%);
  box-shadow: 0 0 24px rgb(180 130 0 / 14%);
}

.stn-name {
  font-size: .8rem;
  font-weight: 800;
  color: #111118;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stn-sub {
  font-size: .65rem;
  color: #9a9aaa;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 6px;
}

.stn-badge {
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
  animation: badge-pulse 2s infinite;
}
.manuell-badge { color: #b83030; }
.ap-badge-t { color: #2a6; }

.ap-step {
  background: rgb(200 30 30 / 18%);
  color: #e02020;
}

.az-step {
  background: rgb(180 130 0 / 20%);
  color: #c89000;
  font-size: .75rem;
}

.st-arrow {
  display: flex;
  align-items: center;
  margin-top: 24px;
  padding: 0 4px;
  flex-shrink: 0;
  color: #d8d8e0;
}
.manuell-arrow { color: rgb(180 40 40 / 35%); }

.ap-arrow {
  color: rgb(200 30 30 / 45%);
  margin-top: 32px;
}

/* ── Impact Bar ── */
.st-impact {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-top: 2rem;
  padding: 18px 24px;
}

.manuell-impact {
  background: rgb(180 40 40 / 5%);
  border: 1px solid rgb(180 40 40 / 14%);
}

.ap-impact {
  background: rgb(200 30 30 / 4%);
  border: 1px solid rgb(200 30 30 / 14%);
}

.st-impact-item {
  flex: 1;
  text-align: center;
}

.st-impact-num {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  color: #e02020;
  margin-bottom: 4px;
}
.manuell-impact .st-impact-num { color: #b83030; }

.st-impact-lbl {
  font-size: .68rem;
  color: #7a7a88;
}

.st-impact-div {
  width: 1px;
  height: 36px;
  background: rgb(0 0 0 / 8%);
}

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (width <= 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (width <= 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 20px;
  transition: transform .2s ease, border-color .2s ease;
}

.kpi-card-light {
  background: #fff;
  border: 1px solid rgb(0 0 0 / 8%);
  box-shadow: 0 2px 12px rgb(0 0 0 / 5%);
}

.kpi-card-light:hover {
  transform: translateY(-3px);
  border-color: rgb(0 0 0 / 14%);
  box-shadow: 0 6px 24px rgb(0 0 0 / 8%);
}

.kpi-glow {
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  pointer-events: none;
}

.kpi-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9a9aaa;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 7px;
}

.kpi-desc {
  font-size: .73rem;
  color: #7a7a88;
  line-height: 1.55;
}

/* ── Overview Comparison Cards ── */
.ov-card {
  flex: 1;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ov-manuell {
  background: #fafafa;
  border: 2px solid rgb(180 40 40 / 18%);
  box-shadow: 0 4px 20px rgb(0 0 0 / 5%);
}

.ov-manuell:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgb(180 40 40 / 14%);
}

.ov-ap {
  background: linear-gradient(170deg, rgb(200 30 30 / 5%) 0%, #fff 42%);
  border: 2px solid rgb(200 30 30 / 50%);
  box-shadow: 0 8px 48px rgb(200 30 30 / 20%), 0 2px 8px rgb(0 0 0 / 4%);
  animation: card-glow 3.5s ease-in-out infinite;
}

.ov-ap:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 70px rgb(200 30 30 / 32%), 0 2px 8px rgb(0 0 0 / 4%);
}

/* ── Winner Ribbon ── */
.winner-ribbon {
  position: absolute;
  top: 28px;
  right: -30px;
  width: 130px;
  background: linear-gradient(135deg, #2a6, #1a8f58);
  color: #fff;
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 0;
  text-align: center;
  transform: rotate(38deg);
  box-shadow: 0 3px 16px rgb(34 170 102 / 50%);
  z-index: 6;
  pointer-events: none;
}

@keyframes card-glow {
  0%,
  100% {
    box-shadow: 0 8px 48px rgb(200 30 30 / 20%), 0 2px 8px rgb(0 0 0 / 4%);
  }

  50% {
    box-shadow: 0 14px 72px rgb(200 30 30 / 38%), 0 2px 8px rgb(0 0 0 / 4%);
  }
}

@keyframes vs-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgb(0 0 0 / 22%);
  }

  50% {
    transform: scale(1.13);
    box-shadow: 0 6px 34px rgb(0 0 0 / 42%);
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgb(200 130 0 / 12%);
  }

  50% {
    box-shadow: 0 0 28px rgb(200 130 0 / 32%);
  }
}

.ov-cta {
  margin: 16px 24px 20px;
  padding: 11px 0;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  width: calc(100% - 48px);
  transition: opacity .18s;
}
.ov-cta:hover { opacity: .85; }

.ov-cta-manuell {
  background: rgb(180 40 40 / 10%);
  color: #b83030;
}

.ov-cta-ap {
  background: rgb(200 30 30 / 88%);
  color: #fff;
  box-shadow: 0 4px 18px rgb(200 30 30 / 25%);
}

/* ── Animations ── */
@keyframes loop-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgb(180 40 40 / 0%);
  }

  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 8px rgb(180 40 40 / 0%);
  }
}

@keyframes chain-node-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.87);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.chain-node-enter {
  animation: chain-node-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* ── Card shimmer on hover ── */
.ov-card::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 24%), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
  pointer-events: none;
  z-index: 4;
}
.ov-card:hover::after { left: 130%; }

/* ── Impact number pop ── */
@keyframes impact-pop {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.impact-pop {
  animation: impact-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── HAI Chat blinking cursor ── */
@keyframes hai-blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.hai-blink-cursor {
  animation: hai-blink 1s step-end infinite;
}

#hai-msg-2,
#hai-msg-3,
#hai-demo-2,
#hai-demo-3 {
  transition: opacity 0.4s ease !important;
  transform: none !important;
}

/* ══════════════════════════════════════════
   TEAM SECTION — Hybrid Timeline + Neon Glow
   ══════════════════════════════════════════ */

.team-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Vertical connecting line */
.team-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgb(255 26 26 / 40%) 10%, rgb(255 26 26 / 40%) 90%, transparent);
  transform: translateX(-50%);
}

/* Timeline node dot */
.team-node {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-node:last-child {
  margin-bottom: 0;
}

/* Alternating layout */
.team-node:nth-child(even) {
  flex-direction: row-reverse;
  transform: translateX(50px);
}

.team-node.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Center dot on the line */
.team-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff1a1a;
  border: 3px solid #0a0a0c;
  box-shadow: 0 0 8px rgb(255 26 26 / 30%);
  z-index: 3;
}

/* Card container — takes up half */
.team-card-wrap {
  width: calc(50% - 40px);
}

.team-node:nth-child(odd) .team-card-wrap {
  margin-right: auto;
  padding-right: 20px;
}

.team-node:nth-child(even) .team-card-wrap {
  margin-left: auto;
  padding-left: 20px;
}

/* ── Team Card ── */
.team-card {
  position: relative;
  background: rgb(15 15 17 / 90%);
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  z-index: 1;
  overflow: hidden;
}



.team-node.revealed .team-card::after {
  animation: team-shimmer 1s ease-out 0.6s forwards;
}

@keyframes team-shimmer {
  to {
    transform: translateX(120%);
  }
}

/* ── Photo styling ── */
.team-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(255 26 26 / 20%);
  box-shadow: 0 0 0 4px rgb(255 26 26 / 5%);
  flex-shrink: 0;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ── Photo accent on card hover ── */
.team-card:hover .team-photo {
  box-shadow: 0 0 0 4px rgb(255 26 26 / 10%);
  border-color: rgb(255 26 26 / 35%);
}

/* ── Card inner layout ── */
.team-card-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.team-card-content {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
}

.team-role {
  font-size: .8rem;
  font-weight: 600;
  color: #ff1a1a;
  margin-bottom: 10px;
}

.team-quote {
  font-size: .78rem;
  font-style: italic;
  color: rgb(255 255 255 / 55%);
  line-height: 1.5;
  margin-bottom: 12px;
  border-left: 2px solid rgb(255 26 26 / 30%);
  padding-left: 10px;
}

.team-section-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(255 26 26 / 60%);
  margin-bottom: 6px;
  margin-top: 10px;
}

.team-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-bullets li {
  font-size: .76rem;
  color: rgb(255 255 255 / 70%);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.team-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff1a1a;
}

/* ── Role badge ── */
.team-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 4px;
  margin-bottom: 4px;
}


/* ══ MOBILE ══ */
@media (width <= 768px) {
  .team-timeline::before {
    left: 20px;
  }

  .team-dot {
    left: 20px;
    top: 28px;
    transform: translate(-50%, 0);
  }

  .team-node,
  .team-node.revealed {
    flex-direction: row;
    transform: translateX(-30px);
  }

  .team-card-wrap {
    width: calc(100% - 50px);
    margin-right: 0;
    margin-left: auto;
    padding-right: 0;
    padding-left: 20px;
  }

  .team-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-quote {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgb(255 26 26 / 20%);
    padding-top: 8px;
  }
  .team-bullets li { text-align: left; }
}

/* Last updated: 2026-03-30 13:45 - CI/CD Fix */
