/* ═══════════════════════════════════════════════════════════
   NEXER TECHNOLOGY — integration.css
   Styles for the Systems Integration service page only.
   Loaded alongside services.css on /services/integration/
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   ANIMATED DIAGRAM
───────────────────────────────────────────── */
.int-diagram-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.int-diagram-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.int-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* Lines between nodes and hub */
.int-line {
  stroke: var(--rule);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

/* Hub ring */
.int-hub {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  opacity: 0.5;
}

/* Hub inner fill */
.int-hub-inner {
  fill: var(--teal);
  fill-opacity: 0.12;
  stroke: none;
}

/* Hub label */
.int-hub-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: middle;
}
.int-hub-label-sub {
  font-size: 8px;
  fill: rgba(255,255,255,0.45);
  letter-spacing: 0.25em;
}

/* System nodes */
.int-node {
  fill: var(--surface2);
  stroke: rgba(255,255,255,0.1);
  stroke-width: 1;
}
.int-node-erp {
  stroke: var(--teal);
  stroke-opacity: 0.4;
}
.int-node-realtime {
  stroke: rgba(255,255,255,0.2);
}

/* Node text */
.int-node-icon {
  font-size: 16px;
  fill: rgba(255,255,255,0.25);
  text-anchor: middle;
  dominant-baseline: middle;
}
.int-node-label {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: middle;
}
.int-node-sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 8px;
  fill: rgba(255,255,255,0.4);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Animated packets */
.int-packet {
  fill: var(--teal);
  opacity: 0.9;
  filter: drop-shadow(0 0 4px var(--teal));
}
.int-packet-out {
  fill: rgba(255,255,255,0.7);
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.5));
}

/* ─────────────────────────────────────────────
   SCENARIO CARDS
───────────────────────────────────────────── */
.int-scenarios-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.int-scenarios-label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.int-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
}

.int-scenario-card {
  padding: 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.int-scenario-card:hover { background: var(--surface2); }
.int-scenario-card:nth-last-child(-n+3) { border-bottom: none; }
.int-scenario-card:last-child { border-bottom: none; }

.int-scenario-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.int-scenario-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .int-scenarios-grid {
    grid-template-columns: 1fr;
  }
  .int-scenario-card:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--rule);
  }
  .int-scenario-card:last-child { border-bottom: none; }
  .int-diagram-wrap { overflow-x: auto; }
  .int-diagram { min-width: 600px; }
}
