/* ═══════════════════════════════════════════════════════════════
   SENTIENCE — Perfect SVG Architecture Diagram
   ═══════════════════════════════════════════════════════════════ */

.sd-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #06080a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0 40px;
}

.sd-svg-container {
  position: relative;
  width: 96%;
  max-width: 1800px;
  /* Maintain a nice aspect ratio to keep it readable */
  aspect-ratio: 16 / 9;
}

.sd-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ─── Header Elements inside SVG container (but HTML) ─────── */
.sd-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}
.sd-bc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.sd-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.sd-wm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ─── SVG Elements ────────────────────────────────────────── */

.conn {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
}

.conn-solid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.svg-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  fill: rgba(255,255,255,0.3);
}

.svg-label-bold {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  fill: rgba(255,255,255,0.6);
}

.svg-hz {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  fill: rgba(255,255,255,0.3);
}

/* ─── Node Boxes (HTML inside foreignObject) ──────────────── */
.node-box {
  background: rgba(12, 15, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.node-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.node-box-main {
  background: rgba(16, 20, 26, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  border-width: 1px;
  padding: 24px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.node-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.node-title-lg {
  font-size: 26px;
}

.node-title-sm {
  font-size: 16px;
  text-align: center;
}

.node-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  line-height: 1.35;
}

.node-detail {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-top: auto;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
}

.node-label-small {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}

.node-quote {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-style: italic;
  color: #e0e0e0;
  line-height: 1.4;
  margin: 0;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .sd-svg-container {
    width: 100%;
    overflow-x: auto;
    aspect-ratio: auto;
    min-height: 600px;
  }
  .sd-svg {
    min-width: 1400px;
  }
}
