/* ===== أصولك · Osolk — journey page styles ===== */

/* Section tag pills */
.section-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid;
}
.section-tag-primary   { background: #e9eef5; color: #183964; border-color: #c8d4e4; }
.section-tag-secondary { background: #e6f9fc; color: #16a3bf; border-color: #c4f1f8; }
.section-tag-dark      { background: rgba(255,255,255,0.1); color: #6cdcea; border-color: rgba(255,255,255,0.2); }

.section-h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: #183964;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Arrow pull animation (السؤال section) — RTL: flipped, moves left */
@keyframes arrowPull {
  0%, 100% { transform: scaleX(-1) translateX(0); opacity: 0.7; }
  50%      { transform: scaleX(-1) translateX(6px); opacity: 1; }
}
.animate-arrow-pull {
  animation: arrowPull 2.2s ease-in-out infinite;
}

/* LTR variant — arrow points right, moves right */
@keyframes arrowPullLtr {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%      { transform: translateX(6px); opacity: 1; }
}
.animate-arrow-pull-ltr {
  animation: arrowPullLtr 2.2s ease-in-out infinite;
}

/* Question chips */
.question-chip {
  padding: 14px 18px;
  border-radius: 14px;
  background: white;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}
.question-chip:hover {
  border-color: #1DC0DF;
  color: #183964;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(29, 192, 223, 0.4);
}

/* Stat cards (problem section) */
.stat-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}
.stat-card:hover {
  border-color: rgba(29, 192, 223, 0.5);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}
.stat-number {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6cdcea;
}
.stat-desc {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Pillar cards */
.pillar-card {
  padding: 28px;
  border-radius: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #183964, #1DC0DF);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.pillar-card:hover {
  border-color: #c4f1f8;
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(24, 57, 100, 0.2);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e9eef5 0%, #c8d4e4 100%);
  color: #183964;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-card:hover .pillar-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, #1DC0DF 0%, #183964 100%);
  color: white;
}
.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #183964;
  margin-bottom: 8px;
}
.pillar-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Maturity ladder */
.maturity-step {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  transition: all 0.4s ease;
}
.maturity-step:hover {
  border-color: #1DC0DF;
  transform: translateX(8px);
  box-shadow: 0 20px 40px -20px rgba(24, 57, 100, 0.15);
}
.maturity-num {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #183964, #264a73);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  flex-shrink: 0;
}
.maturity-step[data-level="04"] .maturity-num {
  background: linear-gradient(135deg, #1DC0DF, #16a3bf);
  box-shadow: 0 10px 25px -8px rgba(29, 192, 223, 0.5);
}

/* Behavior chips */
.behavior-chip {
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Lifecycle steps */
.lifecycle-step {
  padding: 20px 12px;
  border-radius: 16px;
  background: white;
  border: 2px solid #e2e8f0;
  text-align: center;
  transition: all 0.4s ease;
}
.lifecycle-step:hover {
  transform: translateY(-6px);
  border-color: #1DC0DF;
  box-shadow: 0 20px 40px -20px rgba(29, 192, 223, 0.3);
}
.lifecycle-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
}
.lifecycle-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #183964;
}

/* Architecture layers (pyramid) */
.arch-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(90deg, #183964 0%, #264a73 100%);
  color: white;
  border-radius: 12px;
  width: var(--w, 100%);
  margin: 0 auto;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.arch-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(29, 192, 223, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.arch-layer:hover::after { transform: translateX(100%); }
.arch-layer:hover {
  background: linear-gradient(90deg, #1DC0DF 0%, #183964 100%);
  transform: scale(1.02);
}
.arch-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #93c5fd;
  min-width: 44px;
}
.arch-title {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Chain nodes */
.chain-node {
  padding: 16px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e9eef5 0%, #c8d4e4 100%);
  color: #183964;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: default;
}
.chain-node:hover {
  background: linear-gradient(135deg, #1DC0DF, #183964);
  color: white;
  transform: scale(1.05);
}

.reveal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s ease;
}
.reveal-card:hover {
  border-color: #1DC0DF;
  transform: translateX(4px);
}

/* Metric cards */
.metric-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}
.metric-card:hover {
  background: rgba(29, 192, 223, 0.08);
  border-color: rgba(29, 192, 223, 0.4);
  transform: translateY(-6px);
}
.metric-num {
  font-size: 0.8rem;
  font-weight: 900;
  color: #6cdcea;
  margin-bottom: 12px;
}
.metric-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}
.metric-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Dashboard tiles */
.kpi-tile {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.3s ease;
}
.kpi-tile:hover { transform: translateY(-2px); }
.kpi-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}
.kpi-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #183964;
  margin-top: 4px;
}
.kpi-delta {
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.alert-row:hover { transform: translateX(4px); }
.alert-rose    { background: #fef2f2; }
.alert-amber   { background: #fffbeb; }
.alert-emerald { background: #ecfdf5; }

/* Chart bar animation */
.chart-bars .bar {
  transform-origin: bottom;
  animation: barGrow 1s ease-out both;
}
.chart-bars .bar:nth-child(1)  { animation-delay: 0.1s; }
.chart-bars .bar:nth-child(2)  { animation-delay: 0.15s; }
.chart-bars .bar:nth-child(3)  { animation-delay: 0.2s; }
.chart-bars .bar:nth-child(4)  { animation-delay: 0.25s; }
.chart-bars .bar:nth-child(5)  { animation-delay: 0.3s; }
.chart-bars .bar:nth-child(6)  { animation-delay: 0.35s; }
.chart-bars .bar:nth-child(7)  { animation-delay: 0.4s; }
.chart-bars .bar:nth-child(8)  { animation-delay: 0.45s; }
.chart-bars .bar:nth-child(9)  { animation-delay: 0.5s; }
.chart-bars .bar:nth-child(10) { animation-delay: 0.55s; }
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Governance cards */
.gov-card {
  padding: 32px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  transition: all 0.4s ease;
}
.gov-card:hover {
  border-color: #1DC0DF;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(29, 192, 223, 0.25);
}
.gov-num {
  font-size: 3rem;
  font-weight: 900;
  color: #c4f1f8;
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.4s ease;
}
.gov-card:hover .gov-num { color: #1DC0DF; }
.gov-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #183964;
  margin-bottom: 8px;
}
.gov-card p {
  color: #64748b;
  line-height: 1.7;
}

/* Center cards (wider picture) */
.center-card {
  padding: 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  transition: all 0.4s ease;
}
.center-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(24, 57, 100, 0.15); }
.center-a:hover { border-color: #10b981; }
.center-b:hover { border-color: #f43f5e; }
.center-c:hover { border-color: #f59e0b; }
.center-d:hover { border-color: #f43f5e; }
.center-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.center-status {
  font-size: 1.05rem;
  font-weight: 800;
  color: #183964;
  margin-bottom: 8px;
}
.center-val {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.center-note {
  font-size: 0.85rem;
  color: #64748b;
}

/* Scope timeline */
.scope-node {
  padding: 32px 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}
.scope-node:hover {
  border-color: #1DC0DF;
  transform: translateY(-6px);
}
.scope-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #183964, #1DC0DF);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px -8px rgba(24, 57, 100, 0.4);
}
.scope-node h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #183964;
  margin-bottom: 8px;
}
.scope-node p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Integration cards */
.integration-card {
  padding: 24px 18px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
}
.integration-card:hover {
  border-color: #1DC0DF;
  transform: translateY(-4px);
}
.integration-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #e9eef5;
  color: #183964;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.4s ease;
}
.integration-card:hover .integration-icon { transform: scale(1.1); }
.integration-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #183964;
  margin-bottom: 6px;
}
.integration-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

/* Roadmap phases */
.phase-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}
.phase-card:hover {
  background: rgba(29, 192, 223, 0.08);
  border-color: rgba(29, 192, 223, 0.4);
  transform: translateY(-6px);
}
.phase-num {
  font-size: 3rem;
  font-weight: 900;
  color: #6cdcea;
  line-height: 1;
  margin-bottom: 8px;
}
.phase-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.phase-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

.success-metric {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(29, 192, 223, 0.25);
  border-radius: 14px;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.success-metric::before {
  content: '✓';
  color: #6cdcea;
  font-weight: 900;
  font-size: 1.1rem;
}

/* Mobile refinements */
@media (max-width: 768px) {
  section { scroll-margin-top: 80px; }
  .maturity-num { width: 56px; height: 56px; min-width: 56px; font-size: 1.35rem; border-radius: 16px; }
  .maturity-step { padding: 20px; gap: 16px; }
  .stat-number { font-size: 2.5rem; }
  .arch-layer { width: 100% !important; }
  .arch-num { font-size: 1.15rem; min-width: 32px; }
  .arch-title { font-size: 0.95rem; }
  .maturity-step:hover, .reveal-card:hover, .alert-row:hover { transform: none; }
}
