/* Shared project-page finish, matching the home page's soft acrylic surfaces. */
body:is(.systems-theme,.darc-theme) {
    --project-ink: #292f2b;
    --project-muted: #59645c;
    --project-accent: #994d3c;
    color: var(--project-ink);
    background: radial-gradient(ellipse at 5% 25%, #c9d7d4, transparent 42%),
        radial-gradient(ellipse at 96% 60%, #e4d2bf, transparent 45%), #e9ece8;
    background-attachment: fixed;
}
body.darc-theme { --project-accent: #526e38; --muted: #59645c; }
.systems-theme::before,.darc-world { display: none; }
body:is(.systems-theme,.darc-theme) .navbar {
    top: 30px; left: 50%; transform: translateX(-50%);
    width: min(1160px, calc(100% - 80px)); height: 70px;
    border: 1px solid #ffffff33; border-radius: 20px;
    background: #1c2925df;
    backdrop-filter: blur(24px) saturate(125%);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    box-shadow: 0 12px 32px #24342a18, inset 0 1px 0 #ffffff12;
}
body:is(.systems-theme,.darc-theme) .navbar-logo { color: #edf0e9; }
body:is(.systems-theme,.darc-theme) .navbar-logo span { color: #c79d72; }
body:is(.systems-theme,.darc-theme) :is(.product-hero,.darc-hero) {
    width: min(1440px, calc(100% - 32px)); margin: 16px auto 0;
    min-height: 700px; padding: 150px max(6%, calc((100% - 1160px)/2)) 70px;
    border: 1px solid #ffffff38; border-radius: 32px; overflow: hidden;
    color: #eceee7;
    background: radial-gradient(ellipse at 90% 0%, #697b774d, transparent 55%),
        radial-gradient(ellipse at 0% 100%, #aa795331, transparent 52%), #151d1b;
    box-shadow: 0 20px 55px #263b301a, inset 0 1px 0 #ffffff16;
}
.systems-theme .product-hero-background { opacity: .36; }
.systems-theme .product-hero-overlay { background: linear-gradient(90deg,#151d1bf5,#151d1b7a),linear-gradient(0deg,#151d1b,transparent); }
body:is(.systems-theme,.darc-theme) .back-link { color: #c1c9bd; margin-bottom: 30px; }
body:is(.systems-theme,.darc-theme) .content-section {
    width: min(1160px, calc(100% - 96px)); padding: 52px 0;
    background: transparent; border: 0;
}
body:is(.systems-theme,.darc-theme) .section-heading { color: var(--project-ink); font-size: clamp(28px,3.2vw,42px); }
body:is(.systems-theme,.darc-theme) .section-description { color: var(--project-muted); }
body:is(.systems-theme,.darc-theme) .section-description strong { color: var(--project-ink) !important; }
body:is(.systems-theme,.darc-theme) :is(.feature-box,.feature-card,.spec-table,.app-download-card,.network-card,.sensor-card,.darc-zone-card,.darc-highlight-box,.mesh-box,.wifi-csi-box,.info-box,.darc-intro-copy) {
    color: var(--project-ink); background: #ffffff70;
    border: 1px solid #ffffffce; border-radius: 26px;
    backdrop-filter: blur(22px) saturate(115%);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    box-shadow: 0 14px 38px #34443a0a, inset 0 1px 0 #fff;
}
body:is(.systems-theme,.darc-theme) :is(.feature-box,.feature-card,.spec-table,.app-download-card,.network-card,.sensor-card,.darc-zone-card,.darc-highlight-box,.mesh-box,.wifi-csi-box,.info-box,.darc-intro-copy) :is(p,span,small,figcaption) { color: var(--project-muted); }
body:is(.systems-theme,.darc-theme) :is(.feature-box,.feature-card,.spec-table,.app-download-card,.network-card,.sensor-card,.darc-zone-card,.darc-highlight-box,.mesh-box,.wifi-csi-box,.info-box,.darc-intro-copy) :is(h2,h3,h4,strong) { color: var(--project-ink); }
body:is(.systems-theme,.darc-theme) :is(.feature-number,.app-platform,.network-step,.darc-highlight-label,.wifi-csi-tag,.info-box-label) { color: var(--project-accent); letter-spacing: 1px; }
body:is(.systems-theme,.darc-theme) .spec-row { border-color: #65726426; }
.darc-mini-box,.csi-step { background: #dce5db60; border-color: #65726426; border-radius: 14px; }
body:is(.systems-theme,.darc-theme) .button { border-radius: 12px; box-shadow: none; }
.systems-theme .button-primary { background: #a95744; border: 1px solid #a95744; }
.darc-theme .button-primary { background: #607b49; border: 1px solid #607b49; color: #fff; }
body:is(.systems-theme,.darc-theme) .button-primary:hover { filter: brightness(1.1); transform: none; }
body:is(.systems-theme,.darc-theme) .button-secondary { background: #ffffff0c; border-color: #ffffff3b; }
body:is(.systems-theme,.darc-theme) .contact-section {
    margin: 22px auto 32px; padding: 40px;
    border: 1px solid #ffffffb3; border-radius: 28px; background: #d4ded780;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
body:is(.systems-theme,.darc-theme) footer { background: transparent; color: #59645c; border: 0; }
body:is(.systems-theme,.darc-theme) footer a { color: #526146; }
/* Keep technical drawings readable on their existing dark canvases. */
body:is(.systems-theme,.darc-theme) .content-section div[style*="background:"][style*="border-radius:"] { color: #eef2eb; border-radius: 24px !important; }
.darc-recon-image { background: #17231c; border-radius: 20px; }
.bb-blueprint { background: #17231c; padding: 20px; border-radius: 18px; }
.bb-blueprint figcaption { color: #c0ceba; }
.darc-theme .darc-recon-card .darc-recon-image figcaption { color: var(--project-muted); border-color: #65726426; }
body:is(.systems-theme,.darc-theme) :is(a,button):focus-visible { outline: 2px solid #ad7847; outline-offset: 5px; }
@media(max-width:800px) {
    body:is(.systems-theme,.darc-theme) .navbar { top: 24px; width: calc(100% - 48px); min-height: 60px; height: auto; border-radius: 16px; }
    body:is(.systems-theme,.darc-theme) :is(.product-hero,.darc-hero) { width: calc(100% - 16px); margin-top: 8px; min-height: 620px; border-radius: 24px; padding: 120px 24px 42px; }
    body:is(.systems-theme,.darc-theme) .content-section { width: calc(100% - 40px); padding: 36px 0; }
    body:is(.systems-theme,.darc-theme) .contact-section { padding: 26px 22px; border-radius: 22px; }
    body:is(.systems-theme,.darc-theme) .section-heading { font-size: 29px; }
    body:is(.systems-theme,.darc-theme) :is(.feature-card,.network-card,.sensor-card,.darc-zone-card) { border-radius: 22px; padding: 24px; }
}
/* Inline legacy accents must not override the shared surface contrast. */
body:is(.systems-theme,.darc-theme) :is(.feature-card,.network-card,.sensor-card,.darc-zone-card)[style] { background: #ffffff70 !important; border-color: #ffffffce !important; }
body:is(.systems-theme,.darc-theme) #overview div[style*="border-left"] { background: #ffffff55 !important; color: var(--project-ink); }
body:is(.systems-theme,.darc-theme) #overview div[style*="border-left"] :is(p,strong) { color: var(--project-muted) !important; }
/* Timegate's older content panels use inline colors; bring them onto acrylic too. */
.systems-theme .content-section div[style*="background:"][style*="border-radius:"] {
    background: #ffffff70 !important;
    border-color: #ffffffce !important;
    color: var(--project-ink);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
.systems-theme .content-section div[style*="background:"][style*="border-radius:"] :is(p,span,small,div) { color: var(--project-muted) !important; }
.systems-theme .content-section div[style*="background:"][style*="border-radius:"] :is(h2,h3,h4,strong) { color: var(--project-ink) !important; }
