.devices-section {
  --devices-ink: var(--ink, #0f172a);
  --devices-sky: var(--sky, #0ea5e9);
  --devices-rose: var(--rose, #f43f5e);
  --devices-snow: var(--snow, #f8fafc);
  color: var(--devices-ink);
  background: var(--devices-snow);
  padding: clamp(88px, 10vw, 144px) 72px;
  font-family: Manrope, "PingFang SC", "Helvetica Neue", sans-serif;
  overflow: hidden;
}
.devices-section * { box-sizing: border-box; }
.devices-wrap { width: min(1296px, 100%); margin: 0 auto; }
.devices-heading { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: 72px; align-items: end; }
.devices-kicker { margin: 0 0 22px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.devices-kicker span { color: var(--devices-rose); margin-right: 13px; }
.devices-heading h2 { max-width: 760px; margin: 0; color: var(--devices-ink); font-size: clamp(48px, 4.6vw, 64px); line-height: 1.03; font-weight: 650; letter-spacing: -.06em; overflow-wrap: anywhere; }
.devices-heading-copy p { margin: 0; color: #475569; font-size: 17px; line-height: 1.8; }
.devices-heading-copy span { display: block; margin-top: 14px; padding-left: 12px; color: #64748b; border-left: 2px solid var(--devices-rose); font-size: 11px; line-height: 1.65; }
.devices-switcher { display: flex; gap: 0; margin-top: 58px; border-bottom: 1px solid #cbd5e1; }
.devices-switcher button { min-height: 52px; padding: 0 30px 0 0; margin-right: 30px; color: #64748b; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: 600 14px/1 Manrope, "PingFang SC", sans-serif; }
.devices-switcher button span { margin-right: 12px; color: #94a3b8; font-size: 10px; letter-spacing: .12em; }
.devices-switcher button:hover { color: var(--devices-ink); }
.devices-switcher button.is-active { color: var(--devices-ink); border-color: var(--devices-sky); }
.devices-switcher button.is-active span { color: var(--devices-sky); }
.devices-switcher button:focus-visible { outline: 2px solid var(--devices-sky); outline-offset: 4px; }
.devices-stage { margin-top: 28px; background: #fff; border: 1px solid #dbe3ec; border-radius: 4px 32px 4px 4px; box-shadow: 0 28px 72px rgba(15, 23, 42, .07); }
.devices-panel { min-height: 500px; padding: 34px 38px 26px; animation: devices-panel-in 280ms ease both; }
.devices-panel[hidden] { display: none; }
.devices-flow-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
.devices-flow-label strong { color: var(--devices-ink); font-size: 18px; }
.devices-flow-label span { color: #64748b; font-size: 12px; text-align: right; }
.devices-flow { min-height: 355px; display: grid; grid-template-columns: minmax(0, 1fr) 134px 210px; gap: 28px; align-items: center; padding: 34px 4px 26px; }
.devices-flow-out { grid-template-columns: 210px 134px minmax(0, 1fr); }
.devices-cluster { display: grid; grid-template-columns: repeat(5, minmax(84px, 1fr)); gap: 12px; align-items: end; }
.devices-cluster-four { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
.device-node { min-width: 0; text-align: center; }
.device-node strong { display: block; margin-top: 17px; color: var(--devices-ink); font-size: 13px; font-weight: 650; }
.device-node small { display: block; min-height: 33px; margin-top: 6px; color: #64748b; font-size: 10px; line-height: 1.5; }
.device-shape { position: relative; display: block; margin: auto; color: var(--devices-ink); }
.device-phone { width: 46px; height: 84px; border: 3px solid currentColor; border-radius: 11px; background: #fff; }
.device-phone::before { content: ""; position: absolute; top: 5px; left: 14px; width: 12px; height: 3px; border-radius: 3px; background: currentColor; }
.device-phone i { position: absolute; inset: 18px 5px 8px; border-radius: 4px; background: linear-gradient(155deg, #e0f2fe 0 54%, #fee2e2 54% 56%, #f8fafc 56%); }
.device-watch { width: 51px; height: 58px; margin-top: 13px; margin-bottom: 13px; border: 3px solid currentColor; border-radius: 14px; background: #fff; }
.device-watch::before, .device-watch::after { content: ""; position: absolute; left: 14px; width: 17px; height: 14px; border: 2px solid currentColor; border-width: 0 2px; }
.device-watch::before { top: -16px; }
.device-watch::after { bottom: -16px; }
.device-watch i { position: absolute; inset: 7px; border-radius: 8px; background: var(--devices-ink); }
.device-watch i::after { content: ""; position: absolute; left: 8px; top: 9px; width: 9px; height: 9px; border: 2px solid var(--devices-sky); border-radius: 50%; }
.device-mac { width: 100px; height: 65px; margin-top: 8px; margin-bottom: 11px; border: 3px solid currentColor; border-radius: 5px; background: #fff; }
.device-mac::after { content: ""; position: absolute; left: -11px; right: -11px; bottom: -10px; height: 6px; border-radius: 1px 1px 5px 5px; background: currentColor; }
.device-mac i { position: absolute; inset: 5px; background: linear-gradient(145deg, #f8fafc 0 48%, #e0f2fe 48% 76%, #ffe4e6 76%); }
.device-tv { width: 103px; height: 63px; margin-top: 6px; margin-bottom: 15px; border: 3px solid currentColor; border-radius: 4px; background: #fff; }
.device-tv::before, .device-tv::after { content: ""; position: absolute; bottom: -11px; width: 2px; height: 9px; background: currentColor; }
.device-tv::before { left: 27px; transform: rotate(18deg); }
.device-tv::after { right: 27px; transform: rotate(-18deg); }
.device-tv i { position: absolute; inset: 5px; background: linear-gradient(90deg, #e0f2fe 0 33%, #f8fafc 33% 66%, #ffe4e6 66%); }
.device-car { width: 104px; height: 54px; margin-top: 18px; margin-bottom: 12px; border: 3px solid currentColor; border-radius: 42% 54% 18% 18% / 65% 72% 26% 26%; background: #fff; }
.device-car::before, .device-car::after { content: ""; position: absolute; bottom: -8px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: currentColor; }
.device-car::before { left: 13px; }
.device-car::after { right: 13px; }
.device-car i { position: absolute; left: 29px; top: 7px; width: 43px; height: 17px; border-radius: 70% 70% 18% 18%; background: #e0f2fe; }
.devices-stream { position: relative; height: 2px; background: #cbd5e1; }
.devices-stream::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--devices-sky); border-right: 2px solid var(--devices-sky); transform: rotate(45deg); }
.devices-flow-out .devices-stream::after { right: -1px; }
.devices-stream i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--devices-sky); animation: devices-packet 2.2s linear infinite; }
.devices-stream i:nth-child(2) { animation-delay: -.75s; background: var(--devices-rose); }
.devices-stream i:nth-child(3) { animation-delay: -1.5s; }
.devices-hub { width: 184px; aspect-ratio: 1; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; border: 1px solid #bae6fd; border-radius: 50%; background: #fff; box-shadow: 0 0 0 14px rgba(14, 165, 233, .05), 0 18px 36px rgba(15, 23, 42, .08); }
.devices-hub::before { content: ""; position: absolute; inset: 13px; z-index: -1; border: 1px dashed #cbd5e1; border-radius: 50%; }
.devices-hub::after { content: ""; position: absolute; right: 13px; top: 43px; width: 7px; height: 7px; border-radius: 50%; background: var(--devices-rose); box-shadow: -136px 79px 0 var(--devices-sky); }
.devices-hub strong { color: var(--devices-ink); font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.devices-hub small { margin-top: 3px; color: #64748b; font-size: 10px; }
.devices-status { margin: 0; padding-top: 20px; color: #64748b; border-top: 1px solid #e2e8f0; font-size: 11px; text-align: center; }
.devices-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid #cbd5e1; }
.devices-notes article { padding: 28px 32px 0 0; }
.devices-notes article + article { padding-left: 32px; border-left: 1px solid #e2e8f0; }
.devices-notes span { color: var(--devices-rose); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.devices-notes strong { display: block; margin-top: 11px; color: var(--devices-ink); font-size: 16px; }
.devices-notes p { margin: 10px 0 0; color: #64748b; font-size: 13px; line-height: 1.75; }

@keyframes devices-panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes devices-packet { from { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
@media (max-width: 1080px) {
  .devices-flow { grid-template-columns: minmax(0, 1fr) 90px 180px; }
  .devices-flow-out { grid-template-columns: 180px 90px minmax(0, 1fr); }
  .devices-cluster { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .devices-cluster-four { grid-template-columns: repeat(2, 1fr); }
  .devices-hub { width: 164px; }
}
@media (max-width: 760px) {
  .devices-section { padding: 78px 20px; }
  .devices-heading { grid-template-columns: 1fr; gap: 28px; }
  .devices-heading h2 { max-width: 100%; font-size: clamp(42px, 12vw, 52px); overflow-wrap: anywhere; }
  .devices-heading-copy p { font-size: 15px; }
  .devices-switcher { margin-top: 42px; }
  .devices-switcher button { flex: 1; padding: 0 8px; margin: 0; font-size: 12px; }
  .devices-stage { border-radius: 3px 22px 3px 3px; }
  .devices-panel { min-height: 0; padding: 28px 16px 24px; }
  .devices-flow-label { display: block; }
  .devices-flow-label span { display: block; margin-top: 8px; text-align: left; line-height: 1.55; }
  .devices-flow, .devices-flow-out { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .devices-flow-out .devices-hub { order: 1; }
  .devices-flow-out .devices-stream { order: 2; }
  .devices-flow-out .devices-cluster { order: 3; }
  .devices-cluster, .devices-cluster-four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .device-node:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .devices-stream { width: 2px; height: 58px; margin: 0 auto; background: #cbd5e1; }
  .devices-stream::after { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .devices-stream i { left: -3px; top: 0; animation-name: devices-packet-mobile; }
  .devices-hub { width: 164px; margin: auto; }
  .devices-status { line-height: 1.65; }
  .devices-notes { grid-template-columns: 1fr; }
  .devices-notes article, .devices-notes article + article { padding: 25px 0; border-left: 0; border-bottom: 1px solid #e2e8f0; }
}
@keyframes devices-packet-mobile { from { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .devices-section .devices-panel { animation: none; }
  .devices-section .devices-stream i { animation: none; }
}
