.systems-section { position: relative; overflow: clip; padding-block: clamp(88px,12vw,180px); }
.systems-section::before {
  content: ""; position: absolute; width: min(80vw,1080px); aspect-ratio: 1; right: -38%; top: 4%;
  border: 1px solid rgba(137,235,217,.08); border-radius: 50%; box-shadow: 0 0 160px rgba(70,177,162,.08) inset; pointer-events: none;
}
.systems-shell { position: relative; z-index: 1; }
.systems-heading { display: grid; grid-template-columns: minmax(0,1.4fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(34px,6vw,78px); }
.systems-heading h2 { margin: 10px 0 18px; font-size: clamp(48px,8vw,112px); line-height: .88; letter-spacing: -.065em; font-weight: 470; }
.systems-heading > div:first-child > p:last-child { max-width: 780px; color: rgba(224,238,235,.64); font-size: clamp(15px,1.5vw,19px); line-height: 1.75; }
.system-heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.system-count { color: rgba(142,242,220,.48); font: 500 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .17em; }
.system-admin-shortcut, .system-link, .system-more {
  display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 16px;
  border: 1px solid rgba(200,239,232,.15); border-radius: 999px; color: rgba(239,249,247,.82); background: rgba(11,24,24,.38);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 550 12px/1 inherit; text-decoration: none; cursor: pointer;
}
.system-filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 8px; scrollbar-width: none; }
.system-filters::-webkit-scrollbar { display: none; }
.system-filters button {
  flex: 0 0 auto; min-height: 37px; padding: 0 14px; border: 0; border-radius: 999px;
  color: rgba(220,235,232,.48); background: transparent; cursor: pointer;
}
.system-filters button:is(:hover,:focus-visible,.is-active) { color: #effbf8; background: rgba(138,235,216,.1); outline: 0; }
.system-grid {
  display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 1px; overflow: hidden;
  padding: 1px; border-radius: 28px; background: rgba(188,230,222,.1);
}
.system-card { grid-column: span 6; position: relative; min-height: clamp(520px,58vw,720px); overflow: hidden; background: #061011; isolation: isolate; }
.system-card:nth-child(3n+1) { grid-column: span 7; }
.system-card:nth-child(3n+2) { grid-column: span 5; }
.system-card-featured:first-child { grid-column: span 8; }
.system-card-featured:first-child + .system-card { grid-column: span 4; }
.system-media { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 30% 20%,rgba(92,192,176,.18),transparent 38%),#050a0b; }
.system-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(1,5,6,.04) 20%,rgba(2,7,8,.24) 48%,rgba(2,7,8,.97) 100%); pointer-events: none; }
.system-media img, .system-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.75,.2,1),filter .7s; }
.system-media video { position: relative; z-index: 1; }
.system-card:hover .system-media img { transform: scale(1.045); filter: saturate(1.12) contrast(1.04); }
.system-media-generated { display: grid; place-items: center; }
.system-media-generated i { position: absolute; width: 55%; aspect-ratio: 1; border: 1px solid rgba(142,242,220,.16); border-radius: 50%; animation: system-ring 19s linear infinite; }
.system-media-generated i:nth-child(2) { width: 34%; animation-direction: reverse; animation-duration: 12s; }
.system-media-generated span { color: rgba(142,242,220,.42); font: 500 10px/1 ui-monospace,monospace; letter-spacing: .2em; }
@keyframes system-ring { to { transform: rotate(1turn); } }
.system-card-body {
  position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(24px,4vw,52px);
  background: linear-gradient(to top,rgba(2,7,8,.98) 0%,rgba(2,7,8,.78) 68%,transparent 100%);
}
.system-kicker { margin: 0 0 12px; color: rgba(142,242,220,.58); font: 500 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .16em; }
.system-card h3 { max-width: 680px; margin: 0 0 14px; color: #f2faf8; font-size: clamp(28px,4vw,58px); line-height: .98; letter-spacing: -.045em; font-weight: 520; }
.system-card-summary { max-width: 680px; margin: 0; color: rgba(225,238,235,.66); font-size: clamp(13px,1.15vw,16px); line-height: 1.65; }
.system-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.system-category { color: rgba(214,232,228,.42); font-size: 11px; }
.system-more { border-color: rgba(142,242,220,.22); color: #dffaf4; }
.system-more:hover, .system-admin-shortcut:hover, .system-link:hover { border-color: rgba(142,242,220,.46); background: rgba(85,180,163,.16); }
.system-detail-modal { position: fixed; inset: 0; z-index: 10000; display: none; }
.system-detail-modal.is-open { display: block; }
.system-detail-backdrop { position: absolute; inset: 0; background: rgba(0,3,4,.76); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.system-detail-modal > article {
  position: absolute; inset: clamp(18px,4vw,64px); overflow: auto; border: 1px solid rgba(190,235,226,.14);
  border-radius: 30px; background: rgba(5,13,14,.92); box-shadow: 0 40px 140px rgba(0,0,0,.58);
}
.system-detail-close {
  position: fixed; right: clamp(34px,6vw,88px); top: clamp(32px,6vw,82px); z-index: 4; width: 44px; height: 44px;
  border: 1px solid rgba(213,240,235,.16); border-radius: 50%; color: white; background: rgba(3,9,10,.56); font-size: 28px; cursor: pointer;
}
.system-detail-content { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr); min-height: 100%; }
.system-detail-content .system-media { position: sticky; top: 0; height: calc(100vh - clamp(36px,8vw,128px)); min-height: 620px; }
.system-detail-content .system-media::after { background: linear-gradient(to right,transparent 65%,rgba(5,13,14,.84)); }
.system-detail-copy { align-self: center; padding: clamp(42px,7vw,100px); }
.system-detail-copy h2 { margin: 0 0 20px; color: #f2faf8; font-size: clamp(38px,5vw,76px); line-height: .94; letter-spacing: -.055em; font-weight: 500; }
.system-detail-summary { color: rgba(226,239,236,.72); font-size: clamp(16px,1.6vw,21px); line-height: 1.65; }
.system-markdown { margin-top: 38px; color: rgba(217,233,229,.66); line-height: 1.8; }
.system-markdown h3, .system-markdown h4 { color: #eef8f6; font-weight: 560; }
.system-markdown blockquote { margin: 24px 0; padding: 18px 22px; border-left: 2px solid var(--orbita-aqua,#8ef2dc); background: rgba(142,242,220,.055); }
.system-markdown code { padding: 2px 6px; border-radius: 5px; background: rgba(142,242,220,.08); }
.system-markdown a { color: var(--orbita-aqua,#8ef2dc); }
.system-tags, .system-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.system-tags span { padding: 7px 10px; border: 1px solid rgba(197,232,225,.1); border-radius: 999px; color: rgba(219,236,232,.52); font-size: 10px; }
.system-link-primary { color: #04100e; border-color: var(--orbita-aqua,#8ef2dc); background: var(--orbita-aqua,#8ef2dc); }
@media (max-width: 900px) {
  .systems-heading { grid-template-columns: 1fr; }
  .system-heading-actions { align-items: flex-start; }
  .system-card, .system-card:nth-child(n), .system-card-featured:first-child, .system-card-featured:first-child + .system-card { grid-column: span 12; min-height: 560px; }
  .system-detail-content { grid-template-columns: 1fr; }
  .system-detail-content .system-media { position: relative; height: 48vh; min-height: 320px; }
  .system-detail-content .system-media::after { background: linear-gradient(to bottom,transparent 55%,rgba(5,13,14,.88)); }
}
@media (max-width: 560px) {
  .systems-section { padding-block: 76px; }
  .systems-heading h2 { font-size: clamp(48px,18vw,76px); }
  .system-grid { border-radius: 20px; }
  .system-card, .system-card:nth-child(n) { min-height: 500px; }
  .system-card-body { padding: 26px 22px; }
  .system-card-footer { align-items: flex-start; flex-direction: column; }
  .system-detail-modal > article { inset: 8px; border-radius: 22px; }
  .system-detail-close { right: 20px; top: 20px; }
  .system-detail-copy { padding: 42px 24px 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .system-media-generated i { animation: none; }
  .system-media img, .system-media video { transition: none; }
}
