/* ===== AIHippos Transformation Section – scoped under .aih-transform ===== */
.aih-transform {
  --t-bg: #f8f9fa;
  --t-bg-card: rgba(255,255,255,.7);
  --t-bg-card-hover: rgba(255,255,255,.9);
  --t-border: rgba(45,52,54,.12);
  --t-border-hover: rgba(45,52,54,.22);
  --t-teal: #0ABAB5;
  --t-teal-dim: rgba(10,186,181,.5);
  --t-cyan: #38BDF8;
  --t-blue: #6366F1;
  --t-heading: #2D3436;
  --t-soft: #5a6370;
  --t-mute: #8896a4;
  --t-clay: #C0593A;
  --t-gold: #C89A4A;

  position: relative;
  background: linear-gradient(to bottom, #f3f4f6, #ffffff);
  color: var(--t-heading);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow: hidden;
}

/* Graph-paper overlay */
.aih-transform::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(45,52,54,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,52,54,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.aih-transform .t-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px clamp(24px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

/* Hero grid */
.aih-transform .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Left */
.aih-transform .hero-left .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,186,181,.08);
  border: 1px solid rgba(10,186,181,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t-teal);
  margin-bottom: 28px;
}
.aih-transform .badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--t-teal);
  animation: aih-pulse-dot 2s ease infinite;
}
@keyframes aih-pulse-dot {
  0%, 100% { opacity: 1 }
  50% { opacity: .4 }
}

.aih-transform .hero-left h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--t-heading);
  margin: 0;
}
.aih-transform .hero-left h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--t-teal), #088a87);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.aih-transform .hero-left .t-desc {
  margin-top: 24px;
  font-size: 16px;
  color: var(--t-soft);
  max-width: 46ch;
  line-height: 1.65;
}
.aih-transform .hero-left .t-desc + .t-desc { margin-top: 14px }

.aih-transform .hero-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--t-teal), #099e9a);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .3s;
  font-family: inherit;
}
.aih-transform .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,186,181,.25);
}
.aih-transform .hero-cta svg { transition: transform .25s }
.aih-transform .hero-cta:hover svg { transform: translateX(3px) }

/* Right panel */
.aih-transform .hero-right {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--t-border);
  border-radius: 20px;
  padding: 28px 26px 26px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(45,52,54,.06);
}
.aih-transform .hero-right::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--t-teal), var(--t-cyan), var(--t-blue));
  border-radius: 2px;
}
.aih-transform .panel-header {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t-teal);
  font-weight: 700;
  margin-bottom: 18px;
}

/* Tabs */
.aih-transform .t-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.aih-transform .t-tab-btn {
  background: rgba(255,255,255,.5);
  border: 1px solid var(--t-border);
  border-radius: 10px;
  padding: 10px 20px;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t-mute);
  cursor: pointer;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  flex: 1;
  text-align: center;
  min-width: 0;
}
.aih-transform .t-tab-btn:hover {
  background: rgba(255,255,255,.8);
  border-color: var(--t-border-hover);
  color: var(--t-heading);
}
.aih-transform .t-tab-btn.active {
  background: linear-gradient(135deg, rgba(10,186,181,.1), rgba(56,189,248,.06));
  border-color: rgba(10,186,181,.35);
  color: var(--t-teal);
  box-shadow: 0 0 16px rgba(10,186,181,.08);
  font-weight: 700;
}

/* Process flow graph */
.aih-transform .flow-container {
  background: rgba(255,255,255,.5);
  border: 1px solid var(--t-border);
  border-radius: 16px;
  padding: 20px 20px 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.aih-transform .flow-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.aih-transform .flow-label {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--t-heading);
}
.aih-transform .flow-status {
  font-size: 11px;
  color: var(--t-teal);
  font-weight: 600;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .3s;
}
.aih-transform .flow-status.show { opacity: 1 }

.aih-transform .flow-graph {
  position: relative;
  height: 170px;
  margin: 0 10px;
}
.aih-transform .flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Node layer */
.aih-transform .flow-nodes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aih-transform .flow-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  cursor: pointer;
  z-index: 3;
}

/* Icon circle */
.aih-transform .fn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid rgba(10,186,181,.3);
  transition: all .4s cubic-bezier(.16,1,.3,1);
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(45,52,54,.06);
}
.aih-transform .fn-icon svg {
  width: 18px;
  height: 18px;
  color: var(--t-mute);
  transition: color .3s;
}
.aih-transform .flow-node:hover .fn-icon,
.aih-transform .flow-node.active .fn-icon {
  border-color: var(--t-teal);
  background: rgba(10,186,181,.08);
  box-shadow: 0 0 20px rgba(10,186,181,.18);
  transform: scale(1.12);
}
.aih-transform .flow-node:hover .fn-icon svg,
.aih-transform .flow-node.active .fn-icon svg {
  color: var(--t-teal);
}

/* Labels */
.aih-transform .fn-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--t-mute);
  text-align: center;
  white-space: nowrap;
  transition: color .3s;
}
.aih-transform .flow-node.pos-top .fn-label { bottom: calc(50% + 28px) }
.aih-transform .flow-node.pos-bot .fn-label { top: calc(50% + 28px) }
.aih-transform .flow-node:hover .fn-label,
.aih-transform .flow-node.active .fn-label { color: var(--t-teal) }

/* Connector stem */
.aih-transform .fn-stem {
  position: absolute;
  left: 50%;
  width: 1px;
  background: rgba(10,186,181,.15);
  transition: background .3s;
}
.aih-transform .flow-node.pos-top .fn-stem {
  bottom: calc(50% + 18px);
  height: 10px;
  transform: translateX(-50%);
}
.aih-transform .flow-node.pos-bot .fn-stem {
  top: calc(50% + 18px);
  height: 10px;
  transform: translateX(-50%);
}
.aih-transform .flow-node:hover .fn-stem,
.aih-transform .flow-node.active .fn-stem {
  background: rgba(10,186,181,.4);
}

/* Tooltip */
.aih-transform .fn-tip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(10,186,181,.2);
  border-radius: 10px;
  padding: 10px 14px;
  width: 180px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(45,52,54,.1);
}
.aih-transform .flow-node.pos-top .fn-tip {
  bottom: calc(50% + 52px);
  transform: translateX(-50%) translateY(0);
}
.aih-transform .flow-node.pos-top:hover .fn-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}
.aih-transform .flow-node.pos-bot .fn-tip {
  top: calc(50% + 52px);
  transform: translateX(-50%) translateY(0);
}
.aih-transform .flow-node.pos-bot:hover .fn-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(6px);
}
.aih-transform .fn-tip .tip-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--t-heading);
  margin-bottom: 4px;
}
.aih-transform .fn-tip .tip-desc {
  font-size: 11px;
  color: var(--t-soft);
  line-height: 1.4;
}
.aih-transform .fn-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
}
.aih-transform .flow-node.pos-top .fn-tip::after {
  top: 100%;
  border-top-color: rgba(255,255,255,.96);
}
.aih-transform .flow-node.pos-bot .fn-tip::after {
  bottom: 100%;
  border-bottom-color: rgba(255,255,255,.96);
}

/* Cards grid */
.aih-transform .t-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.aih-transform .insight-card {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--t-border);
  border-radius: 14px;
  padding: 18px 16px;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  opacity: 0;
  transform: translateY(12px);
  cursor: default;
}
.aih-transform .insight-card.show {
  opacity: 1;
  transform: translateY(0);
}
.aih-transform .insight-card:hover {
  background: rgba(255,255,255,.9);
  border-color: var(--t-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45,52,54,.08);
}
.aih-transform .insight-card .ic-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.aih-transform .ic-n1 { background: linear-gradient(135deg, var(--t-teal), #088a87) }
.aih-transform .ic-n2 { background: linear-gradient(135deg, var(--t-cyan), #2196F3) }
.aih-transform .ic-n3 { background: linear-gradient(135deg, var(--t-gold), #D4A853) }
.aih-transform .ic-n4 { background: linear-gradient(135deg, var(--t-clay), #D46A45) }
.aih-transform .insight-card h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--t-heading);
  line-height: 1.25;
  margin-bottom: 6px;
  margin-top: 0;
}
.aih-transform .insight-card p {
  font-size: 13px;
  color: var(--t-soft);
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .aih-transform .hero-grid { grid-template-columns: 1fr; gap: 36px }
}
@media (max-width: 600px) {
  .aih-transform .t-tabs { gap: 8px }
  .aih-transform .t-tab-btn { padding: 8px 12px; font-size: 12px }
  .aih-transform .t-cards-grid { grid-template-columns: 1fr }
  .aih-transform .flow-graph { height: 140px }
  .aih-transform .fn-label { font-size: 9px !important }
  .aih-transform .fn-tip { width: 140px }
  .aih-transform .fn-icon { width: 30px; height: 30px }
  .aih-transform .fn-icon svg { width: 14px; height: 14px }
}
