/* ============================================================
   ClinTrust.ai — Home Page Styles
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy-950);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(20,160,133,0.09) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(42,82,152,0.12) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 14px;
}

.hero-headline-teal {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(13px, 1.4vw, 15px);
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  width: fit-content;
  flex-wrap: wrap;
}

.hero-metric-value {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  display: block;
}

.hero-metric-label {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  margin-top: 3px;
  display: block;
}

.hero-metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background-color: var(--navy-950);
  padding: 16px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.48);
}

.trust-badge-icon { font-size: 13px; }

.trust-separator {
  color: rgba(255,255,255,0.2);
  font-size: 10px;
}

/* ============================================================
   FLOW DIAGRAM
   ============================================================ */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 18px 0 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-node {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  min-width: 120px;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
}

.flow-node.active {
  border-color: rgba(20,160,133,0.35);
  box-shadow: 0 0 0 1px rgba(20,160,133,0.15), var(--shadow-md);
}

.flow-node-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.flow-node-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
}

.flow-node-sublabel {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-top: 3px;
}

.flow-node-stat {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.flow-node-stat.red {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.flow-node-stat.amber {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
}

.flow-node-stat.green {
  background: rgba(16,185,129,0.1);
  color: #10b981;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  min-width: 140px;
}

.flow-conn-label {
  font-size: 11px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.flow-arrow-track {
  position: relative;
  width: 120px;
  height: 24px;
  display: flex;
  align-items: center;
}

.flow-arrow-line {
  width: 100%;
  height: 2px;
  background: var(--gray-300);
  position: relative;
}

.flow-arrow-line::after {
  content: '▶';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 10px;
}

.flow-arrow-line.solution {
  background: var(--teal-500);
}

.flow-arrow-line.solution::after {
  color: var(--teal-400);
}

.flow-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-400);
  top: 50%;
  transform: translateY(-50%);
  animation: flowDot 2s ease-in-out infinite;
}

.flow-dot.solution {
  background: var(--teal-400);
  box-shadow: 0 0 6px rgba(20,160,133,0.5);
}

.flow-conn-issue {
  margin-top: 8px;
}

.flow-conn-benefit {
  margin-top: 8px;
}

.issue-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

.benefit-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Solution divider */
.solution-flow-label { margin: 8px 0; }
.solution-flow-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.solution-flow-line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.solution-flow-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-500);
  white-space: nowrap;
  padding: 6px 16px;
  background: rgba(20,160,133,0.08);
  border: 1px solid rgba(20,160,133,0.2);
  border-radius: 100px;
  letter-spacing: 0.3px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 16px;
}

.hiw-step {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
  transition: var(--transition-slow);
}

.hiw-step:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.hiw-step-number {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--teal-500);
  margin-bottom: 10px;
}

.hiw-step-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.hiw-step-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.hiw-step-text {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 10px;
}

.hiw-step-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.hiw-connector {
  display: flex;
  align-items: center;
  padding: 0 12px;
  padding-top: 60px;
}

.hiw-conn-line {
  width: 2px;
  height: 30px;
  background: var(--gray-200);
  display: none;
}

.hiw-conn-arrow {
  font-size: 24px;
  color: var(--teal-400);
  font-weight: 300;
}

/* ============================================================
   CAPITAL SAVINGS CALLOUT
   ============================================================ */
.savings-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.savings-metrics {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.savings-metric {
  flex: 1;
  min-width: 140px;
}

.savings-metric-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.savings-metric-value.teal {
  color: var(--teal-400);
}

.savings-metric-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  line-height: 1.5;
}

/* Capital card */
.capital-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.capital-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.capital-card-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.capital-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.capital-bar-group {}

.capital-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10.5px;
}

.capital-bar-track {
  display: flex;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
}

.capital-bar {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  transition: width 1.5s ease;
}

.capital-bar.traditional {
  background: rgba(239,68,68,0.3);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  justify-content: center;
}

.capital-bar.clintrust {
  background: rgba(20,160,133,0.3);
  border: 1px solid rgba(20,160,133,0.4);
  color: var(--teal-300);
  border-radius: 8px 0 0 8px;
  justify-content: center;
}

.capital-bar.saved {
  background: rgba(20,160,133,0.1);
  border: 1px dashed rgba(20,160,133,0.3);
  color: rgba(20,160,133,0.5);
  border-radius: 0 8px 8px 0;
  justify-content: center;
  font-size: 11px;
}

.capital-card-footer {
  margin-top: 20px;
  text-align: center;
}

.capital-savings-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-400);
  background: rgba(20,160,133,0.1);
  border: 1px solid rgba(20,160,133,0.2);
  padding: 8px 20px;
  border-radius: 100px;
  display: inline-block;
}

/* ============================================================
   ROLE CARDS
   ============================================================ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-slow);
}

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

.role-card-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.role-card-header.sponsor {
  background: linear-gradient(135deg, rgba(42,82,152,0.05), rgba(42,82,152,0.02));
}
.role-card-header.cro {
  background: linear-gradient(135deg, rgba(13,115,119,0.05), rgba(13,115,119,0.02));
}
.role-card-header.site {
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(124,58,237,0.02));
}

.role-card-icon { font-size: 28px; }

.role-card-type {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 3px;
}

.role-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
}

.role-card .check-list {
  padding: 14px 18px;
}

.role-card-cta {
  display: block;
  margin: 0 18px 18px;
  padding: 8px;
  text-align: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-800);
  transition: var(--transition);
}

.role-card-cta:hover {
  background: var(--teal-500);
  color: white;
  border-color: transparent;
}

/* ============================================================
   PLATFORM GRID
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   APAC STRIP
   ============================================================ */
.apac-strip {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}

.apac-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.apac-strip-flag { font-size: 48px; }

.apac-strip-content { flex: 1; min-width: 240px; }

.apac-strip-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.apac-strip-text {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy-950);
  padding: 44px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(20,160,133,0.07) 0%, rgba(42,82,152,0.07) 100%);
  border: 1px solid rgba(20,160,133,0.18);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(20,160,133,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto 22px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-compliance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.32);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .how-it-works { flex-wrap: wrap; }
  .hiw-connector { display: none; }
  .hiw-step { min-width: calc(50% - 16px); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .savings-callout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 76px 0 48px; }
  .hero-headline { font-size: 30px; letter-spacing: -1px; }
  .hero-metrics { gap: 16px; padding: 16px 20px; }
  .hero-metric-divider { display: none; }
  .flow-diagram { gap: 8px; }
  .flow-connector { display: none; }
  .how-it-works { flex-direction: column; }
  .hiw-step { min-width: 100%; }
  .platform-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 28px; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .apac-strip-inner { flex-direction: column; align-items: flex-start; }
}
