/* ── EDGE RUNTIME SECTION ─────────────────────────── */
.edge { position: relative; overflow: hidden; padding: 120px 0 140px; border-top: 1px solid var(--hair); }
.edge__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 20% 12%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(700px 500px at 80% 88%, rgba(59,130,246,0.06), transparent 60%);
}
.edge .container { position: relative; z-index: 1; }

/* Hero */
.edge__hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; margin-bottom: 140px; }
.edge__copy h2.edge__title { font-family: var(--font-display); font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink-100); margin: 18px 0 22px; }
.edge__lead { font-size: 17px; line-height: 1.6; color: var(--ink-70); max-width: 560px; margin-bottom: 32px; }
.edge__lead strong { color: var(--ink-100); font-weight: 600; }
.edge__sig { display: flex; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 22px 0; margin-bottom: 24px; }
.edge__sig-item { flex: 1; padding-right: 22px; }
.edge__sig-item + .edge__sig-item { border-left: 1px solid var(--hair); padding-left: 22px; }
.edge__sig-num { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-100); line-height: 1; }
.edge__sig-lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); margin-top: 8px; }
.edge__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.edge__chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-80); border: 1px solid var(--hair); border-radius: 999px; background: rgba(255,255,255,0.015); }
.edge__chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: edge-dot 1.8s ease-in-out infinite; }
.edge__chip:nth-child(2) .edge__chip-dot { animation-delay: 0.3s; }
.edge__chip:nth-child(3) .edge__chip-dot { animation-delay: 0.6s; }
.edge__chip:nth-child(4) .edge__chip-dot { animation-delay: 0.9s; }
@keyframes edge-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Motion panel — edge gateway visualizer */
.edge__motion { position: relative; padding: 14px; zoom: 0.8; }
.edge__panel { border: 1px solid var(--hair); border-radius: 14px; background: linear-gradient(180deg, rgba(8,13,24,0.96), rgba(8,13,24,0.86)); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.10), inset 0 1px 0 rgba(255,255,255,0.03); overflow: hidden; }
.edge__panel-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hair); background: rgba(255,255,255,0.02); }
.edge__panel-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.edge__panel-dot--r { background: #ff5f57; }
.edge__panel-dot--y { background: #febc2e; }
.edge__panel-dot--g { background: #28c840; }
.edge__panel-name { margin-left: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-70); }
.edge__panel-pill { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #28c840; border: 1px solid rgba(40,200,64,0.4); border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
.edge__panel-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #28c840; box-shadow: 0 0 8px #28c840; animation: edge-pulse 1.6s ease-out infinite; }
@keyframes edge-pulse { 0%,100% {opacity:1;} 50% {opacity:0.4;} }

/* 3-column flow: ingest | gateway | emit */
.edge__flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; padding: 22px 22px 18px; background: radial-gradient(500px 320px at 50% 50%, rgba(59,130,246,0.05), transparent 70%); align-items: stretch; }
.edge__col { display: flex; flex-direction: column; gap: 8px; }
.edge__col-h { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-70); margin-bottom: 6px; padding: 0 2px; }
.edge__stream { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; padding: 9px 12px; border: 1px solid rgba(96,165,250,0.10); border-radius: 6px; background: rgba(8,13,24,0.5); }
.edge__stream-name { font-family: var(--font-mono); font-size: 11px; color: var(--ink-80); letter-spacing: 0.04em; }
.edge__stream-rate { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-100); white-space: nowrap; }
.edge__stream--out .edge__stream-rate { color: #6ee7b7; }
.edge__stream--in .edge__stream-rate { color: #93c5fd; }

/* Gateway block in the middle */
.edge__gw { display: flex; flex-direction: column; align-items: stretch; padding: 0 22px; min-width: 200px; }
.edge__gw-block { border: 1px solid rgba(96,165,250,0.4); border-radius: 12px; background: linear-gradient(180deg, rgba(59,130,246,0.10), rgba(59,130,246,0.02)); padding: 14px 16px 16px; position: relative; box-shadow: 0 0 0 1px rgba(59,130,246,0.10), 0 0 30px -10px rgba(59,130,246,0.4); }
.edge__gw-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed rgba(96,165,250,0.22); }
.edge__gw-led { width: 6px; height: 6px; border-radius: 50%; background: #28c840; box-shadow: 0 0 6px #28c840; }
.edge__gw-led--y { background: #fcd34d; box-shadow: 0 0 6px #fcd34d; }
.edge__gw-led--b { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: edge-blink 1.4s infinite; }
.edge__gw-led--b:nth-of-type(3) { animation-delay: 0.4s; }
.edge__gw-led--b:nth-of-type(4) { animation-delay: 0.8s; }
@keyframes edge-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.edge__gw-id { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-70); letter-spacing: 0.1em; }
.edge__gw-stages { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-80); letter-spacing: 0.04em; }
.edge__gw-stage { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: center; }
.edge__gw-stage::before { content: "▸"; color: var(--accent); }
.edge__gw-stage.is-on { color: var(--ink-100); }
.edge__gw-stage.is-on::before { color: #6ee7b7; }
.edge__gw-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(96,165,250,0.22); }
.edge__gw-stat { display: flex; flex-direction: column; gap: 2px; }
.edge__gw-stat-k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); }
.edge__gw-stat-v { font-family: var(--font-mono); font-size: 12px; color: var(--ink-100); }
.edge__gw-stat-v em { font-style: normal; color: var(--accent); }
.edge__gw-meter { height: 4px; background: rgba(96,165,250,0.12); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.edge__gw-meter > span { display: block; height: 100%; background: var(--accent); border-radius: 2px; animation: edge-meter 3.2s ease-in-out infinite; }
@keyframes edge-meter { 0%,100% { width: 38%; } 50% { width: 62%; } }

/* Flow arrows between cols */
.edge__arrow { display: flex; align-items: center; justify-content: center; padding: 0 4px; color: rgba(96,165,250,0.45); font-family: var(--font-mono); font-size: 12px; }
.edge__arrow::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(96,165,250,0.4), transparent); }
.edge__col-arrows { display: flex; flex-direction: column; justify-content: space-around; padding: 22px 4px; color: rgba(96,165,250,0.6); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; gap: 4px; }
.edge__col-arrows span { animation: edge-flow 2.2s ease-in-out infinite; }
.edge__col-arrows span:nth-child(2) { animation-delay: 0.4s; }
.edge__col-arrows span:nth-child(3) { animation-delay: 0.8s; }
@keyframes edge-flow { 0%,100% { opacity: 0.4; transform: translateX(0); } 50% { opacity: 1; transform: translateX(2px); } }

.edge__panel-foot { display: flex; gap: 22px; padding: 14px 20px; border-top: 1px solid var(--hair); background: rgba(255,255,255,0.015); flex-wrap: wrap; }
.edge__metric { display: flex; flex-direction: column; gap: 2px; }
.edge__metric-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); }
.edge__metric-v { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-90, var(--ink-80)); }

.edge__float { position: absolute; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-80); background: rgba(8,13,24,0.92); border: 1px solid rgba(96,165,250,0.30); border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6); z-index: 2; animation: edge-float 5s ease-in-out infinite; }
.edge__float--tl { top: -4px; right: -10px; }
.edge__float--tr { top: 38px; left: -14px; animation-delay: 1.6s; }
.edge__float--bl { bottom: 4px; right: -8px; animation-delay: 3s; }
@keyframes edge-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Section heads */
.edge__section-head { margin: 0 0 56px; max-width: 880px; }
.edge__section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* Pipeline (6 stages) */
.edge__pipe { list-style: none; padding: 0; margin: 0 0 140px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, rgba(8,13,24,0.4), rgba(8,13,24,0.15)); position: relative; }
.edge__stage { padding: 28px 22px 28px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; position: relative; transition: background 280ms ease; }
.edge__stage:hover { background: rgba(59,130,246,0.04); }
.edge__stage:last-child { border-right: 0; }
.edge__stage-mark { width: 36px; height: 36px; border: 1px solid rgba(96,165,250,0.28); background: rgba(8,13,24,0.92); display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; margin-bottom: 14px; position: relative; z-index: 1; color: var(--accent); }
.edge__stage-mark svg { width: 22px; height: 22px; display: block; }
.edge__stage-num { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.edge__stage h4 { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.005em; color: var(--ink-100); margin: 0 0 10px; line-height: 1.2; }
.edge__stage p { font-size: 12.5px; line-height: 1.5; color: var(--ink-70); margin: 0; }
.edge__stage p em { font-style: normal; color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; }

/* Capabilities (3×2) */
.edge__caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 140px; }
.edge__cap { border: 1px solid var(--hair); border-radius: 14px; padding: 26px 24px 28px; background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005)); transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 280ms ease, background 280ms ease; }
.edge__cap:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.4); background: linear-gradient(180deg, rgba(59,130,246,0.06), rgba(59,130,246,0.015)); }
.edge__cap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.edge__cap-mo { width: 36px; height: 36px; border: 1px solid rgba(96,165,250,0.28); background: rgba(59,130,246,0.05); display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--accent); flex-shrink: 0; }
.edge__cap-mo svg { width: 24px; height: 24px; display: block; }
.edge__cap:hover .edge__cap-mo { border-color: rgba(96,165,250,0.55); background: rgba(59,130,246,0.12); }
.edge__cap-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); }
.edge__cap h4 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; color: var(--ink-100); margin: 0 0 10px; line-height: 1.2; }
.edge__cap p { font-size: 14px; line-height: 1.55; color: var(--ink-70); margin: 0 0 16px; }
.edge__cap-meta { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--hair); padding-top: 14px; }
.edge__cap-meta span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-70); padding: 4px 9px; border: 1px solid var(--hair); border-radius: 4px; background: rgba(255,255,255,0.02); }

/* Business value */
.edge__value { border: 1px solid var(--hair); border-radius: 14px; background: radial-gradient(800px 400px at 100% 0%, rgba(59,130,246,0.08), transparent 60%), linear-gradient(180deg, rgba(8,13,24,0.6), rgba(8,13,24,0.3)); padding: 48px 48px 40px; margin-bottom: 32px; }
.edge__value-head { margin-bottom: 36px; max-width: 720px; }
.edge__value-head h3 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-100); margin: 14px 0 0; }
.edge__value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.edge__vcell { padding: 0 24px; border-right: 1px solid var(--hair); }
.edge__vcell:last-child { border-right: 0; }
.edge__vcell:first-child { padding-left: 0; }
.edge__vnum { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink-100); margin-bottom: 10px; }
.edge__vname { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.edge__vcell p { font-size: 13.5px; line-height: 1.55; color: var(--ink-70); margin: 0; }

.edge__closing { font-size: 15.5px; line-height: 1.65; color: var(--ink-70); max-width: 900px; margin: 0; }
.edge__closing strong { color: var(--ink-100); font-weight: 500; }

/* Responsive */
@media (max-width: 1080px) {
  .edge__hero { grid-template-columns: 1fr; gap: 40px; }
  .edge__pipe { grid-template-columns: repeat(3, 1fr); }
  .edge__pipe::before { display: none; }
  .edge__stage { border-bottom: 1px solid var(--hair); }
  .edge__stage:nth-child(3n) { border-right: 0; }
  .edge__caps { grid-template-columns: repeat(2, 1fr); }
  .edge__value-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .edge__vcell:nth-child(2) { border-right: 0; }
  .edge__vcell:nth-child(3), .edge__vcell:nth-child(4) { padding-left: 0; padding-top: 0; }
}
@media (max-width: 640px) {
  .edge { padding: 80px 0 90px; }
  .edge__pipe { grid-template-columns: 1fr; }
  .edge__stage { border-right: 0; border-bottom: 1px solid var(--hair); }
  .edge__stage:last-child { border-bottom: 0; }
  .edge__caps { grid-template-columns: 1fr; }
  .edge__sig { flex-wrap: wrap; gap: 20px 0; }
  .edge__sig-item + .edge__sig-item { border-left: 0; padding-left: 0; }
  .edge__flow { grid-template-columns: 1fr; }
  .edge__gw { padding: 12px 0; }
  .edge__col-arrows { flex-direction: row; justify-content: center; padding: 8px 0; }
  .edge__value { padding: 32px 24px 24px; }
  .edge__value-grid { grid-template-columns: 1fr; }
  .edge__vcell { border-right: 0; padding: 0 0 18px; border-bottom: 1px solid var(--hair); }
  .edge__vcell:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .edge__chip-dot, .edge__panel-pill::before, .edge__float, .edge__gw-led--b, .edge__gw-meter > span, .edge__col-arrows span { animation: none !important; opacity: 1 !important; transform: none !important; }
}
