/* ═══════════════════════════════════════════
   INTERNAL PAGES — ADVANCED UI COMPONENTS
   internal.css — Gladnet HealthTech
═══════════════════════════════════════════ */

/* ─── PAGE HERO EXTRA POLISH ──────────────── */
.page-hero {
  position: relative;
  padding: 130px 0 70px;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -50px;
  top: -50px;
  background: radial-gradient(circle, rgba(2, 114, 146, 0.06) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* ─── INTERACTIVE STEPPER (Solutions & About) ── */
.stepper-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
}

.stepper-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 2px;
  background: var(--line);
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  left: 0;
  top: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--deep), var(--emerald));
  width: 0%;
  z-index: 2;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: 0;
  outline: none;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.step-node:hover .step-circle {
  border-color: var(--deep);
  color: var(--deep);
  transform: scale(1.05);
}

.step-node.active .step-circle {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(2, 114, 146, 0.15);
}

.step-node.completed .step-circle {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.3s;
}

.step-node.active .step-label {
  color: var(--deep);
}

.stepper-panels {
  position: relative;
}

.step-panel {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ─── DATA PIPELINE SIMULATOR (AI & Data) ─── */
.pipeline-card {
  padding: 40px;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  color: var(--white);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pipeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

.pipeline-simulator {
  position: relative;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
}

.pipeline-svg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.pipeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 80px;
  cursor: pointer;
}

.pipeline-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--white);
  transition: all 0.3s ease;
}

.pipeline-node:hover .pipeline-icon-box,
.pipeline-node.active .pipeline-icon-box {
  background: var(--white);
  color: var(--deep);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(255,255,255,0.4);
}

.pipeline-node span {
  font-size: 11px;
  font-weight: 750;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.pipeline-node:hover span,
.pipeline-node.active span {
  opacity: 1;
}

.pipeline-info-tip {
  margin-top: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SCROLL-LIT TIMELINE (Research) ───────── */
.timeline-container {
  position: relative;
  padding-left: 32px;
}

.timeline-progress-track {
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--line);
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  left: 4px;
  top: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--deep), var(--emerald));
  height: 0%;
  z-index: 2;
  transition: height 0.1s linear;
}

.timeline-item-wrap {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item-wrap:last-of-type {
  padding-bottom: 0;
}

.timeline-node-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  z-index: 3;
  transition: all 0.3s ease;
}

.timeline-item-wrap.active .timeline-node-dot {
  background: var(--emerald);
  border-color: var(--emerald);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(36, 178, 139, 0.4);
}

/* ─── COMPANY PILLARS ACCORDION (About) ───── */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(2, 114, 146, 0.15);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
  outline: none;
}

.accordion-header .num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 114, 146, 0.06);
  color: var(--deep);
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-header .num {
  background: var(--deep);
  color: var(--white);
}

.accordion-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.accordion-header .arrow {
  font-size: 18px;
  color: var(--emerald);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .arrow {
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content-inner {
  padding: 0 24px 24px 104px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ─── CONTACT DYNAMIC SELECT (Contact) ─────── */
.contact-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pill-option {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pill-option:hover {
  border-color: var(--deep);
  color: var(--deep);
}

.pill-option.active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(2, 114, 146, 0.2);
}

/* ─── STYLING IMPROVEMENTS FOR GRID AND CARDS ── */
.grid-blueprints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blueprint-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blueprint-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(2, 114, 146, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(2, 114, 146, 0.02) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.blueprint-card:hover::before {
  opacity: 1;
}

.blueprint-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 114, 146, 0.15);
  box-shadow: var(--shadow-lg);
}

.blueprint-card h3 {
  font-size: 18px;
  margin-top: 14px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.blueprint-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ─── RESPONSIVE FOR ADVANCED COMPONENTS ────── */
@media (max-width: 768px) {
  .accordion-content-inner {
    padding-left: 24px;
  }
  
  .stepper-header::before {
    display: none;
  }
  
  .stepper-progress {
    display: none;
  }
  
  .stepper-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .step-node {
    flex-direction: row;
    gap: 14px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  
  .step-node.active {
    border-color: var(--deep);
  }
}
