/* plan-IT — Minimal custom CSS (Tailwind v4 handles everything else) */

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 (min-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 rgba(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 rgba(0,0,0,.06);
}
.st-back-btn:hover {
  background: #f8f8fb;
  color: #111118;
  box-shadow: 0 4px 14px rgba(0,0,0,.09);
}

/* ── Node Chain ── */
.st-chain {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0 24px;
}
@media (max-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: rgba(180,40,40,.08);
  border: 2px solid rgba(180,40,40,.25);
}
.manuell-badge-bg { background: rgba(180,40,40,.18); color: #b83030; }
.ap-circle {
  background: rgba(200,30,30,.1);
  border: 2px solid rgba(200,30,30,.4);
  box-shadow: 0 0 20px rgba(200,30,30,.1);
}
.ap-circle:hover { box-shadow: 0 0 32px rgba(200,30,30,.2); }
#chain-ap .st-chain-node {
  display: grid;
  grid-template-rows: 100px 36px 30px auto;
  justify-items: center;
  align-items: start;
}
#chain-ap .stn-circle { width: 88px; height: 88px; margin-bottom: 0; }
.az-circle {
  background: rgba(180,130,0,.08);
  border: 2px dashed rgba(180,130,0,.4);
  box-shadow: 0 0 16px rgba(180,130,0,.07);
}
.az-node:hover .az-circle {
  background: rgba(180,130,0,.14);
  box-shadow: 0 0 24px rgba(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;
}
.manuell-badge { color: #b83030; }
.ap-badge-t  { color: #22aa66; }
.ap-step { background: rgba(200,30,30,.18); color: #e02020; }
.az-step  { background: rgba(180,130,0,.2);  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: rgba(180,40,40,.35); }
.ap-arrow     { color: rgba(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: rgba(180,40,40,.05);
  border: 1px solid rgba(180,40,40,.14);
}
.ap-impact {
  background: rgba(200,30,30,.04);
  border: 1px solid rgba(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: rgba(0,0,0,.08); }

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-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 rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.kpi-card-light:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.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 rgba(180,40,40,.18);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.ov-manuell:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(180,40,40,.14);
}
.ov-ap {
  background: linear-gradient(170deg, rgba(200,30,30,.05) 0%, #fff 42%);
  border: 2px solid rgba(200,30,30,.5);
  box-shadow: 0 8px 48px rgba(200,30,30,.2), 0 2px 8px rgba(0,0,0,.04);
  animation: cardGlow 3.5s ease-in-out infinite;
}
.ov-ap:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 70px rgba(200,30,30,.32), 0 2px 8px rgba(0,0,0,.04);
}

/* ── Winner Ribbon ── */
.winner-ribbon {
  position: absolute;
  top: 28px;
  right: -30px;
  width: 130px;
  background: linear-gradient(135deg, #22aa66, #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 rgba(34,170,102,.5);
  z-index: 6;
  pointer-events: none;
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 8px 48px rgba(200,30,30,.2), 0 2px 8px rgba(0,0,0,.04); }
  50%       { box-shadow: 0 14px 72px rgba(200,30,30,.38), 0 2px 8px rgba(0,0,0,.04); }
}
@keyframes vsPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 4px 20px rgba(0,0,0,.22); }
  50%       { transform: scale(1.13); box-shadow: 0 6px 34px rgba(0,0,0,.42); }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(200,130,0,.12); }
  50%       { box-shadow: 0 0 28px rgba(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: rgba(180,40,40,.1);
  color: #b83030;
}
.ov-cta-ap {
  background: rgba(200,30,30,.88);
  color: #fff;
  box-shadow: 0 4px 18px rgba(200,30,30,.25);
}

/* ── Animations ── */
@keyframes loopPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(180,40,40,.0); }
  50%       { opacity: .75; box-shadow: 0 0 0 8px rgba(180,40,40,.0); }
}
@keyframes chainNodeIn {
  from { opacity: 0; transform: translateY(24px) scale(.87); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   filter: blur(0);   }
}
.chain-node-enter {
  animation: chainNodeIn .5s cubic-bezier(.22,1,.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, rgba(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 impactPop {
  from { opacity: 0; transform: scale(.6) translateY(10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);    }
}
.impact-pop { animation: impactPop .5s cubic-bezier(.22,1,.36,1) both; }

/* ── HAI Chat blinking cursor ── */
@keyframes haiBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
#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, rgba(255,26,26,.4) 10%, rgba(255,26,26,.4) 90%, transparent);
  transform: translateX(-50%);
}

/* Timeline node dot */
.team-node {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.team-node:last-child { margin-bottom: 0; }

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

/* 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 rgba(255,26,26,.3);
  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: rgba(15, 15, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  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;
}

/* Subtle red accent line at top */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,26,26,.5) 30%, rgba(255,26,26,.5) 70%, transparent);
  border-radius: 0 0 2px 2px;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.team-card:hover::before {
  opacity: 1;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,26,26,.08), 0 2px 12px rgba(0,0,0,.3);
  border-color: rgba(255,26,26,.15);
}

/* Subtle shimmer sweep on reveal */
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.02) 45%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.02) 55%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 2;
}
.team-node.revealed .team-card::after {
  animation: teamShimmer 1s ease-out 0.6s forwards;
}

@keyframes teamShimmer {
  to { transform: translateX(120%); }
}

/* ── Scroll reveal states ── */
.team-node {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1);
}
.team-node:nth-child(odd) {
  transform: translateX(-50px);
}
.team-node:nth-child(even) {
  transform: translateX(50px);
}
.team-node.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ── Photo styling ── */
.team-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,26,26,.2);
  box-shadow: 0 0 0 4px rgba(255,26,26,.05);
  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 rgba(255,26,26,.1);
  border-color: rgba(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: rgba(255,255,255,.55);
  line-height: 1.5;
  margin-bottom: 12px;
  border-left: 2px solid rgba(255,26,26,.3);
  padding-left: 10px;
}
.team-section-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,26,26,.6);
  margin-bottom: 6px;
  margin-top: 10px;
}
.team-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-bullets li {
  font-size: .76rem;
  color: rgba(255,255,255,.7);
  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 (max-width: 768px) {
  .team-timeline::before {
    left: 20px;
  }
  .team-dot {
    left: 20px;
    top: 28px;
    transform: translate(-50%, 0);
  }
  .team-node,
  .team-node:nth-child(odd),
  .team-node:nth-child(even) {
    flex-direction: row;
  }
  .team-card-wrap,
  .team-node:nth-child(odd) .team-card-wrap,
  .team-node:nth-child(even) .team-card-wrap {
    width: calc(100% - 50px);
    margin-left: auto;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 0;
  }
  .team-node:nth-child(odd),
  .team-node:nth-child(even) {
    transform: translateX(-30px);
  }
  .team-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-quote {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,26,26,.2);
    padding-top: 8px;
  }
  .team-bullets li { text-align: left; }
}
