/* 
   MODERN T1 CLIENT V1.50 BETA - STYLING ENGINE
   Cybernetic dark mode, glassmorphism, animated glow effects, feature modals & fixes section.
*/

:root {
    color-scheme: dark;
    /* Color Tokens */
    --bg-dark: #070913;
    --bg-card: rgba(13, 17, 30, 0.65);
    --bg-card-hover: rgba(20, 27, 48, 0.85);
    --glass-border: rgba(0, 240, 255, 0.18);
    --glass-border-glow: rgba(0, 240, 255, 0.5);

    --primary-cyan: #00f0ff;
    --primary-magenta: #ff007f;
    --primary-green: #00ff9d;
    --primary-purple: #a855f7;
    --primary-amber: #ffb703;

    --text-main: #fffdf5;
    --text-muted: #c4beb5;
    --text-dim: #8c8579;

    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

/* Dark scrollbars across page, modals, pack picker & code blocks */
html, .modal-content, .pack-list, .linux-server pre {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.35) rgba(7, 9, 19, 0.85);
}
html::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.pack-list::-webkit-scrollbar,
.linux-server pre::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
html::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.pack-list::-webkit-scrollbar-track,
.linux-server pre::-webkit-scrollbar-track {
    background: rgba(7, 9, 19, 0.9);
}
html::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.pack-list::-webkit-scrollbar-thumb,
.linux-server pre::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.32);
    border-radius: 6px;
    border: 2px solid rgba(7, 9, 19, 0.9);
}
html::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.pack-list::-webkit-scrollbar-thumb:hover,
.linux-server pre::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.55);
}

/* Interactive Background Canvas */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    /* Calm centre: the battle fades to 15% behind the hero text and plays at
       full strength around it, so tracers and warriors stop crossing the
       paragraph. Joe, 2026-10-06 ("too busy - make it easier to read"). */
    -webkit-mask-image: radial-gradient(ellipse 34% 30% at 50% 50%,
        rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 55%, #000 100%);
            mask-image: radial-gradient(ellipse 34% 30% at 50% 50%,
        rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 55%, #000 100%);
}

/* Animated silk background (shader-bg.js creates it on WebGPU desktops only).
   Under the combat sim; fades in once its first frame is drawn. The cursor
   still stirs it with pointer-events off: the library listens on window. */
#silk-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
/* Half strength: at full opacity its bright bands sat right behind the hero
   copy and the page read as too busy. */
#silk-bg.ready { opacity: 0.5; }

/* site-fx.js shader layers (desktop WebGPU only). */
.fx-wrap {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.fx-wrap.ready { opacity: 1; }

/* Neon border on the hovered card: the shader fills the card and the mask
   keeps only a 2px frame. On top of the content, so it needs no z-index work
   inside the card; pointer-events are off. */
.fx-ring {
    inset: 0;
    z-index: 3;
    padding: 2px;
    border-radius: inherit;
    overflow: hidden;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.fx-ring canvas { position: absolute; inset: 0; }
/* The ring replaces the stock cyan hover border, and the glow takes the
   card's colour instead of always cyan. */
.clickable-card.fx-ring-on:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px 0 color-mix(in srgb, var(--fx-accent) 22%, transparent),
                inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}

/* Aurora behind an open feature window's header. z-index -1 lands it above
   the panel's own background and below the text: .modal-content is a
   stacking context (it carries a transform). */
.fx-aurora {
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    z-index: -1;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(#000 35%, transparent);
    mask-image: linear-gradient(#000 35%, transparent);
}

/* Liquid-glass call-to-action buttons (site-fx.js adds .lg-glass and the
   backdrop-filter in desktop Chromium; everyone else keeps the cyan button). */
.btn-primary.lg-glass {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7),
                inset 0 -1px 1px rgba(255, 255, 255, 0.25),
                inset 0 0 0 1px rgba(255, 255, 255, 0.18),
                0 10px 30px rgba(0, 0, 0, 0.35),
                0 0 24px rgba(0, 240, 255, 0.25);
}
.btn-primary.lg-glass:hover {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85),
                inset 0 -1px 1px rgba(255, 255, 255, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3),
                0 14px 36px rgba(0, 0, 0, 0.4),
                0 0 36px rgba(0, 240, 255, 0.45);
}

/* Ambient Glow Orbs
   These were single-stop gradients under filter: blur(140px). A 140px gaussian
   over a 55vw layer makes the compositor allocate a scratch buffer far larger
   than the element and re-run the blur whenever the layer moves or the page
   scrolls past it. Multi-stop radial gradients give the same soft falloff as a
   plain gradient quad -- no filter pass, no scratch buffer. Stop positions and
   alphas are tuned so the rendered glow matches the blurred original. */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.orb-1 {
    top: 0;
    left: 0;
    width: 760px;
    height: 760px;
    margin: -130px 0 0 -130px;
    background: radial-gradient(circle,
                rgba(0, 240, 255, 0.55) 0%,
                rgba(0, 240, 255, 0.30) 26%,
                rgba(0, 240, 255, 0.10) 48%,
                rgba(0, 240, 255, 0.03) 66%,
                transparent 78%);
}

.orb-2 {
    bottom: -22%;
    right: -17%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle,
                rgba(168, 85, 247, 0.55) 0%,
                rgba(168, 85, 247, 0.30) 26%,
                rgba(168, 85, 247, 0.10) 48%,
                rgba(168, 85, 247, 0.03) 66%,
                transparent 78%);
}

.orb-3 {
    top: 34%;
    left: 24%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle,
                rgba(0, 255, 157, 0.55) 0%,
                rgba(0, 255, 157, 0.30) 26%,
                rgba(0, 255, 157, 0.10) 48%,
                rgba(0, 255, 157, 0.03) 66%,
                transparent 78%);
}

/* Glassmorphism System
   backdrop-filter used to sit here, which meant every one of the ~125 glass
   panels on the page asked the compositor to read back the framebuffer,
   downsample it and run a gaussian -- per panel, per frame, while scrolling.
   The blur is now reserved for the two places it actually reads as glass: the
   floating navbar and an active modal (see .navbar / .modal-backdrop). Cards
   compensate with a more opaque fill, which is what the phone breakpoint has
   been shipping since the iOS OOM fix and is visually near-identical. */
.glass-panel {
    background: rgba(13, 17, 30, 0.82);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45),
                inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-glow);
    box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.18),
                inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1280px;
    z-index: 100;
    padding: 14px 28px;
    border-radius: 100px;
    /* The navbar inherited its blur from .glass-panel until that became too
       expensive to give all ~125 panels. It is kept here deliberately: it is a
       single always-composited layer and the one element with page content
       visibly sliding underneath it, which is where glass actually reads as
       glass. The phone breakpoint still turns it off (see the media query). */
    background: rgba(10, 14, 26, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-icon {
    color: var(--primary-cyan);
    font-size: 1.4rem;
    animation: spinIcon 10s linear infinite;
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.highlight {
    color: var(--primary-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.nav-btn-link {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transition: var(--transition-smooth);
}

.nav-btn-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green);
    animation: statusBlink 1.5s infinite alternate;
}

@keyframes statusBlink {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--primary-cyan), #00a8ff);
    color: #050812;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
    transition: var(--transition-fast);
    white-space: nowrap;
}
.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(0, 240, 255, 0.65);
}
.nav-mobile-item {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    text-align: center;
}

.hero-badge-wrap {
    margin-bottom: 24px;
}

.hero-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary-cyan);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-sub);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-amber) 0%, #ff5500 50%, var(--primary-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 183, 3, 0.4);
}

.hero-subtitle {
    max-width: 820px;
    margin: 0 auto 40px auto;
    font-size: 1.2rem;
    /* Near-white, not --text-muted: it sits over the moving background. */
    color: #ece8e0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    font-weight: 400;
}

/* Soft, edgeless darkening behind the hero copy so it reads over the silk and
   the battle. Fades to nothing well before the ships at the sides. isolation
   keeps the z-index:-1 pseudo-element inside .hero-content, above the page
   background layers rather than under them. */
.hero-content {
    position: relative;
    isolation: isolate;
}
.hero-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: 50%;
    top: 48%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(7, 9, 19, 0.78) 0%,
                                rgba(7, 9, 19, 0.55) 40%, rgba(7, 9, 19, 0) 70%);
}

/* Buttons System */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #00a8ff 100%);
    color: #000;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5),
                0 0 60px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.8),
                0 0 80px rgba(0, 240, 255, 0.4);
}

.btn-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: block;
}

.btn-sub {
    font-size: 0.75rem;
    opacity: 0.85;
    display: block;
    font-weight: 500;
}

.btn-secondary {
    padding: 16px 32px;
    border-radius: 14px;
    color: var(--text-main);
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* Metrics Bar */
.metrics-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 24px;
    max-width: 960px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-cyan);
}

.metric-label {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Section Containers */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Skip layout/paint for sections that are nowhere near the viewport. The page
   is ~12,400px tall and #features alone is ~5,900px of that, so on load the
   browser was laying out and styling roughly 10,000px of content nobody had
   scrolled to yet.

   Safe here because all 27 modal backdrops are SIBLINGS of these sections, not
   descendants -- content-visibility applies paint containment, which would make
   a contained section the containing block for any position:fixed child and
   hide it outright while the section is skipped. Keep modals out of <section>.

   contain-intrinsic-size uses the `auto` keyword so the real size is remembered
   after a section renders once; the fallback lengths are measured at 1440x900
   and only need to be close enough to keep the scrollbar and #anchor jumps
   honest on the very first load. */
#overview, #whatsnew, #gallery, #distribution, #features, #fixes, #specs, #linux-server {
    scroll-margin-top: 105px;
}

#whatsnew, #gallery, #distribution, #features, #fixes, #specs {
    content-visibility: auto;
}
/* Feature-grid category headings. These carried an inline
   font-family: 'Oswald', sans-serif -- but Oswald is not in the Google Fonts
   request in <head> and never has been, so every one of them silently rendered
   in the generic sans-serif fallback (Arial) instead of a page font. Rajdhani
   is the condensed display face the site already loads and is the closest match
   to the intent. Metrics are pinned to what the h3 default was resolving to
   (18.72px/700) so only the typeface changes. */
.category-title {
    font-family: var(--font-sub);
    font-size: 1.17rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary-cyan);
    margin-top: 40px;
}

#whatsnew     { contain-intrinsic-size: auto 1274px; }
#gallery      { contain-intrinsic-size: auto 640px; }
#distribution { contain-intrinsic-size: auto 1053px; }
#features     { contain-intrinsic-size: auto 5937px; }
#fixes        { contain-intrinsic-size: auto 1239px; }
#specs        { contain-intrinsic-size: auto 997px; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-sub);
    color: var(--primary-cyan);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Feature Grid */
/* min(Npx, 100%) keeps auto-fit tracks from forcing horizontal overflow on
   narrow phones (360px Androids have only ~312px of content width). */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 28px;
}

.feature-card {
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary-cyan);
}

.clickable-card:focus-visible,
.nav-cta-btn:focus-visible,
.btn:focus-visible,
.gallery-filter-btn:focus-visible,
.carousel-btn:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 3px;
}

.card-detail-cue {
    margin-top: auto;
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--primary-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-detail-cue i {
    transition: transform 0.25s ease;
}

.clickable-card:hover .card-detail-cue i {
    transform: translateX(5px);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.cyan-glow { background: rgba(0, 240, 255, 0.1); color: var(--primary-cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.magenta-glow { background: rgba(255, 0, 127, 0.1); color: var(--primary-magenta); border: 1px solid rgba(255, 0, 127, 0.3); }
.green-glow { background: rgba(0, 255, 157, 0.1); color: var(--primary-green); border: 1px solid rgba(0, 255, 157, 0.3); }
.purple-glow { background: rgba(168, 85, 247, 0.1); color: var(--primary-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.yellow-glow { background: rgba(255, 183, 3, 0.1); color: var(--primary-amber); border: 1px solid rgba(255, 183, 3, 0.3); }
.blue-glow { background: rgba(0, 168, 255, 0.1); color: #00a8ff; border: 1px solid rgba(0, 168, 255, 0.3); }

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.card-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    font-family: var(--font-sub);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.click-hint {
    font-size: 0.78rem;
    color: var(--primary-cyan);
    font-family: var(--font-sub);
    font-weight: 600;
}

/* Fixes Grid Section */
.fixes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
}

.fix-card {
    padding: 28px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    background: rgba(0, 255, 157, 0.03);

}

.fix-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.15);
}

.fix-icon {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.fix-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.fix-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Specs Section */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.spec-card {
    padding: 32px;
    position: relative;
}

.spec-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.spec-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.spec-card li strong {
    color: var(--text-main);
}

.highlight-spec {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-cyan);
    color: #000;
    padding: 4px 14px;
    border-radius: 50px;
    font-family: var(--font-sub);
    font-weight: 800;
    font-size: 0.75rem;
}

/* SHA Hash Container */
.hash-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hash-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-family: var(--font-sub);
    font-weight: 700;
}

.hash-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
}

.hash-box code {
    font-family: monospace;
    color: var(--primary-cyan);
    font-size: 0.9rem;
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    background: var(--primary-cyan);
    color: #000;
}

/* Linux / VPS install block: same panel as the checksum, but a multi-line
   command list that must keep its line breaks and scroll sideways on phones
   rather than wrap mid-command. */
.linux-server {
    margin-top: 24px;
}

.linux-server-desc {
    color: var(--text-muted, #b8c4d0);
    margin: 12px 0;
    line-height: 1.6;
}

.linux-server-desc code,
.linux-server-desc a,
.release-card details p a,
.feature-card .card-text a {
    color: var(--primary-cyan);
}

.linux-server .hash-box {
    align-items: flex-start;
    flex-wrap: nowrap;
}

.linux-server pre {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.linux-server pre code {
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .linux-server .hash-box {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Modal Backdrops & Content */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* visibility keeps the 26 inactive modals out of the compositor entirely.
       Each is a fixed full-viewport element, and iOS promotes every fixed
       element to its own layer the moment scrolling starts -- ~11 MB apiece
       at 3x DPR, which OOM-crashed the tab on the first scroll. The 0.4s
       transition delays the visibility flip so the fade-out still plays. */
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    /* Declared on .active only. At most one modal is ever open, so this is one
       blurred layer rather than a backdrop-filter sitting on all 27 -- belt and
       braces with the visibility:hidden above, which already keeps the inactive
       ones out of paint. The blur snaps in rather than fading (none -> blur is
       not interpolatable) which is invisible under the 0.4s opacity fade. */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.modal-content {
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 2.8rem;
    color: var(--primary-cyan);
    margin-bottom: 10px;
}

.cyan-glow-icon { color: var(--primary-cyan); filter: drop-shadow(0 0 15px var(--primary-cyan)); }
.magenta-glow-icon { color: var(--primary-magenta); filter: drop-shadow(0 0 15px var(--primary-magenta)); }
.green-glow-icon { color: var(--primary-green); filter: drop-shadow(0 0 15px var(--primary-green)); }
.purple-glow-icon { color: var(--primary-purple); filter: drop-shadow(0 0 15px var(--primary-purple)); }
.yellow-glow-icon { color: var(--primary-amber); filter: drop-shadow(0 0 15px var(--primary-amber)); }
.blue-glow-icon { color: #00a8ff; filter: drop-shadow(0 0 15px #00a8ff); }

.modal-sub {
    font-family: var(--font-sub);
    color: var(--primary-cyan);
    font-weight: 600;
}

.modal-body-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-body-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-cyan);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.modal-body-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-body-content li {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.modal-body-content code {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-card {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-type-icon {
    font-size: 1.8rem;
    color: var(--primary-cyan);
}

.start-download-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.download-progress-wrap {
    margin-top: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--primary-cyan);
}

.progress-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green));
    box-shadow: 0 0 15px var(--primary-cyan);
    transition: width 0.1s linear;
}

/* Footer */
.footer {
    max-width: 1280px;
    margin: 80px auto 40px auto;
    padding: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    /* Collapsed nav: hidden until the hamburger toggles .open (script.js) */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(10, 14, 26, 0.98);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 10px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.72);
    }
    .nav-links.open { display: flex; }
    .nav-link {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 1.05rem;
    }
    .nav-link:hover, .nav-link.active { background: rgba(0, 240, 255, 0.08); }
    .nav-cta-btn { display: none; }
    .nav-mobile-item { display: block; margin-top: 4px; }
    .nav-mobile-download {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 0.9rem;
        display: inline-flex;
    }
    .mobile-toggle { display: block; }

    .navbar { top: 12px; width: calc(100% - 24px); padding: 12px 20px; }
    .nav-container { gap: 12px; }
    /* Let the brand text truncate instead of colliding with the hamburger
       on narrow phones with wider font metrics */
    .brand { min-width: 0; flex: 1 1 auto; }
    .brand-text {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .mobile-toggle { flex: 0 0 auto; padding: 6px 4px; }
    .brand-icon { font-size: 1.15rem; }

    .hero-section { padding-top: 130px; padding-bottom: 60px; }
    .hero-title { font-size: clamp(1.7rem, 8.5vw, 2.8rem); letter-spacing: 0; overflow-wrap: break-word; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-badge { font-size: 0.72rem; padding: 8px 14px; text-align: center; }

    .hero-cta-group { flex-direction: column; align-items: stretch; gap: 14px; }
    .hero-cta-group .btn { width: 100%; text-align: left; justify-content: flex-start; padding: 14px 22px; }
    .btn-title { font-size: 0.95rem; }

    .metrics-bar { flex-direction: column; }
    .metric-divider { display: none; }

    .section-container { padding: 56px 16px; }
    .section-header { margin-bottom: 40px; }
    .section-desc { font-size: 1rem; }

    /* No ambient orbs on phones at all: a 500px layer under an 80px gaussian
       still re-rasterizes as it scrolls, and iOS pays for it in tab memory */
    .glow-orb { display: none; }

    /* iOS Safari keeps an offscreen snapshot per backdrop-filter layer; with
       ~60 glass panels that OOMs the tab ("a problem repeatedly occurred").
       Drop the blur on phones and compensate with a more opaque card.
       .navbar is named explicitly now that it carries its own backdrop-filter
       rather than inheriting one from .glass-panel, and .modal-backdrop.active
       because that (0,2,0) beats a bare .modal-backdrop (0,1,0) even inside
       this media query -- without it an opened modal would put the blur back
       on exactly the platform it crashes. Do not remove either. */
    .glass-panel, .modal-backdrop, .modal-backdrop.active, .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .glass-panel, .navbar { background: rgba(13, 17, 30, 0.92); }
    .modal-backdrop { background: rgba(0, 0, 0, 0.92); }

    /* No animated background at all on phones (script.js removes the canvas;
       this covers the case where the script never runs) */
    #cyber-canvas, #silk-bg { display: none; }

    .feature-card, .spec-card { padding: 26px 22px; }

    .modal-content { width: calc(100% - 24px); padding: 28px 20px; max-height: 88vh; max-height: 88dvh; }
    .download-card { flex-direction: column; align-items: stretch; }
    .download-card .btn { justify-content: center; }

    .footer { padding: 28px 20px; margin-top: 40px; }
    .footer-container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .brand .highlight,
    .brand .brand-sub {
        display: none;
    }
}

/* ----------------------------------------------------
   BETA ACCESS GATE (download modal)
---------------------------------------------------- */
.beta-gate {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 10px 0 6px;
}
.beta-gate-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.beta-key-input {
    flex: 1;
    min-width: 220px;
    background: rgba(7, 9, 19, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 16px; /* below 16px, iOS Safari auto-zooms the page when the field is focused */
    letter-spacing: 0.12em;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.beta-key-input:focus {
    border-color: var(--glass-border-glow);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}
.beta-key-input::placeholder {
    color: rgba(196, 190, 181, 0.65);
    letter-spacing: 0.18em;
}
.beta-gate-status {
    min-height: 1.2em;
    margin: 0;
    font-family: var(--font-sub);
    font-size: 14px;
    letter-spacing: 0.04em;
}
.beta-gate-status.ok  { color: var(--primary-green); }
.beta-gate-status.err { color: var(--primary-magenta); }
.beta-gate-discord {
    align-self: flex-start;
    gap: 8px;
}
.beta-gate-discord i { margin-right: 6px; }

/* ----------------------------------------------------
   PACK PICKER (download modal): Base + chosen store packs
   The list is built by script.js from /beta-dl/packs.
---------------------------------------------------- */
.pack-picker {
    padding: 0;
    text-align: left;
}
.pack-picker > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--text-main);
}
.pack-picker > summary::-webkit-details-marker { display: none; }
.pack-picker > summary i { color: var(--primary-cyan); }
.pack-picker > summary::after {
    content: '+';
    margin-left: auto;
    color: var(--primary-cyan);
    font-size: 1.2rem;
    line-height: 1;
}
.pack-picker[open] > summary::after { content: '-'; }
.pack-picker-count {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.pack-picker-help {
    margin: 0;
    padding: 0 20px 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.pack-picker-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 12px;
}
.pack-search {
    width: 100%;
    min-width: 0;
    letter-spacing: 0.06em;
    padding: 10px 14px;
}
.pack-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pack-cat {
    background: rgba(7, 9, 19, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: var(--font-sub);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.pack-cat:hover { border-color: var(--glass-border-glow); color: var(--text-main); }
.pack-cat.active {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.1);
}
.pack-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overscroll-behavior: contain;
}
.pack-list.empty::after {
    content: 'No packs match.';
    display: block;
    padding: 18px 20px;
    font-family: var(--font-sub);
    color: var(--text-dim);
}
.pack-item[hidden] { display: none; }
.pack-item label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 240, 255, 0.07);
}
.pack-item:last-child label { border-bottom: 0; }
.pack-item label:hover { background: rgba(0, 240, 255, 0.05); }
.pack-item.chosen label { background: rgba(0, 255, 157, 0.07); }
.pack-item input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-green);
    cursor: pointer;
}
.pack-item input:disabled { cursor: not-allowed; opacity: 0.4; }
.pack-body {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 2px;
    min-width: 0;
    flex: 1;
}
.pack-title {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    overflow-wrap: anywhere;
}
.pack-meta {
    font-family: var(--font-sub);
    font-size: 0.82rem;
    color: var(--text-dim);
    white-space: nowrap;
    text-align: right;
}
.pack-desc {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pack-picker-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    font-family: var(--font-sub);
    font-size: 0.95rem;
    color: var(--primary-green);
}
.pack-clear {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-sub);
    font-size: 0.85rem;
    padding: 4px 12px;
    cursor: pointer;
}
.pack-clear:hover { border-color: var(--glass-border-glow); color: var(--text-main); }
/* Recommended packs: a short block above the list, visible without opening it. */
.pack-rec {
    padding: 0;
    text-align: left;
    border-color: rgba(0, 255, 157, 0.35);
}
.pack-rec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px 10px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--text-main);
}
.pack-rec-head i { color: var(--primary-green); margin-right: 8px; }
.pack-rec-list {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
}
.pack-rec-item .pack-desc { -webkit-line-clamp: 1; }
.pack-rec-item .pack-meta { color: var(--primary-green); }
.pack-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    padding: 1px 8px;
    border: 1px solid rgba(0, 255, 157, 0.5);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-green);
}
/* Keep the Download button in reach while the list is open (or the recommended block
   pushes it down): the card sticks to the bottom of the modal's scroll area. It needs a
   solid background there, because the list scrolls underneath it. */
.pack-picker[open] ~ .download-card,
.download-options.has-rec .download-card {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #0d111e;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.55);
}
/* The modal's bottom padding lies below the stuck card; without this the list shows through
   that strip. Taller than any padding in use: the modal clips the rest. */
.pack-picker[open] ~ .download-card::after,
.download-options.has-rec .download-card::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 100%;
    height: 48px;
    background: #0d111e;
    pointer-events: none;
}
/* With the list open the card is a footer: just the Download button, one row high, so it
   does not reach up over the list's own total line. The list's footer names the selection. */
.pack-picker[open] ~ .download-card { padding: 12px 20px; }
.pack-picker[open] ~ .download-card .download-info { display: none; }
.pack-picker[open] ~ .download-card .btn { flex: 1; justify-content: center; }
.pack-picker .beta-gate-status { padding: 0 20px 12px; }
.pack-picker .beta-gate-status:empty { display: none; }
@media (max-width: 600px) {
    .pack-body { grid-template-columns: 1fr; }
    .pack-meta { text-align: left; white-space: normal; }
    .pack-list { max-height: 46vh; }
    /* On a phone the stuck card would cover the closed "ADD MODS & PACKS" row, so while the
       list is closed the card stays in the normal flow under it. */
    .download-options.has-rec .pack-picker:not([open]) ~ .download-card {
        position: static;
        background: rgba(13, 17, 30, 0.82);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
    }
    .download-options.has-rec .pack-picker:not([open]) ~ .download-card::after { content: none; }
}

/* ============================================================
   LATEST RELEASE BAND (#whatsnew)
   ============================================================ */
.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
    align-items: start;
}

.release-card {
    padding: 28px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.release-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.release-tag {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 240, 255, 0.35);
}

.release-date {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.55;
}

.release-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.release-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.release-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.94rem;
    line-height: 1.55;
    opacity: 0.82;
}

.release-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
}

.release-card ul li strong { color: #fff; opacity: 1; }

/* Collapsed rows (Joe, 2026-09-24: the three cards "take up almost an entire page").
   Each bullet is a native <details>: the <summary> is the feature header with a "+" at
   the right, the body is hidden until clicked. No script, keyboard-accessible, and the
   bullet marker above still sits on the row. */
.release-card ul li details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    user-select: none;
}
.release-card ul li details summary::-webkit-details-marker { display: none; }
.release-card ul li details summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: var(--primary-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    transition: transform 0.2s ease, background 0.2s ease;
}
.release-card ul li details[open] summary::after {
    content: '\2212';
    background: rgba(0, 240, 255, 0.12);
}
.release-card ul li details summary:hover::after { background: rgba(0, 240, 255, 0.18); }
.release-card ul li details p {
    margin: 8px 0 2px;
    padding-right: 32px;
}
.release-card ul li code {
    font-size: 0.88em;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   PILLAR CARDS (#distribution) -- the two headline capabilities
   ============================================================ */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 28px;
}

.pillar-card {
    padding: 36px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pillar-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: radial-gradient(120% 80% at 0% 0%, rgba(0, 240, 255, 0.07), transparent 60%);
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-cyan);
}

.pillar-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.pillar-kicker {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary-cyan);
    margin-bottom: 4px;
}

.pillar-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.pillar-lead {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.85;
    margin-bottom: 20px;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}

.pillar-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

.pillar-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15em;
    font-size: 0.78rem;
    color: var(--primary-green);
}

.pillar-more {
    margin-top: auto;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

.pillar-more i {
    margin-left: 6px;
    transition: transform 0.25s ease;
}

.pillar-card:hover .pillar-more i { transform: translateX(5px); }

@media (max-width: 520px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .pillar-card { padding: 26px; }
    .pillar-head { gap: 14px; }
    .pillar-title { font-size: 1.12rem; }
}

/* =========================================================
   GALLERY (#gallery) -- before/after slider, filters, grid + lightbox
   ========================================================= */

.compare-card {
    padding: 20px;
    margin-bottom: 32px;
}

.compare-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.compare-kicker {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-cyan);
}

.compare-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.compare-stage {
    --pos: 50%;
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    user-select: none;
    touch-action: pan-y;
}

.compare-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.compare-after-wrap {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-label {
    position: absolute;
    top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-sub);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    pointer-events: none;
    background: rgba(7, 9, 19, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-main);
}

.compare-label-before { right: 14px; }
.compare-label-after {
    left: 14px;
    border-color: rgba(0, 240, 255, 0.55);
    color: var(--primary-cyan);
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    background: var(--primary-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.85);
    transform: translateX(-50%);
    pointer-events: none;
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(7, 9, 19, 0.92);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.72rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.55);
}

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-filter-btn {
    background: rgba(13, 17, 30, 0.85);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 7px 16px;
    border-radius: 999px;
    font-family: var(--font-sub);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-filter-btn:hover {
    border-color: var(--glass-border-glow);
    color: var(--text-main);
}

.gallery-filter-btn.active {
    background: rgba(0, 240, 255, 0.14);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.gallery-item[hidden] {
    display: none;
}

.carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.35) transparent;
}

.gallery-carousel::-webkit-scrollbar { height: 8px; }
.gallery-carousel::-webkit-scrollbar-track { background: transparent; }
.gallery-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.35);
    border-radius: 4px;
}

.gallery-carousel .gallery-item {
    flex: 0 0 360px;
    scroll-snap-align: start;
}

.carousel-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border-glow);
    background: var(--bg-card);
    color: var(--primary-cyan);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: zoom-in;
    padding: 0;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.lightbox-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(7, 9, 19, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 64px;
    gap: 14px;
    cursor: zoom-out;
}

.lightbox-backdrop.open { display: flex; }

.lightbox-backdrop img {
    max-width: 92vw;
    max-height: 82vh;
    border: 1px solid var(--glass-border-glow);
    border-radius: 6px;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.25);
    cursor: pointer;
    transition: opacity 0.18s ease;
}

.lightbox-backdrop.loading img {
    opacity: 0.25;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 3002;
}

.lightbox-caption {
    font-family: var(--font-sub);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text-main);
    background: rgba(13, 17, 30, 0.88);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 999px;
    text-align: center;
    max-width: 90vw;
    cursor: default;
}

.lightbox-loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-cyan);
    background: rgba(7, 9, 19, 0.9);
    border: 1px solid var(--glass-border-glow);
    padding: 8px 18px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 3001;
}

.lightbox-backdrop.loading .lightbox-loader {
    display: block;
}

@media (max-width: 520px) {
    .compare-card { padding: 14px; }
    .compare-label { font-size: 0.68rem; padding: 4px 8px; top: 8px; }
    .compare-label-before { right: 8px; }
    .compare-label-after { left: 8px; }
    .carousel-wrap { gap: 6px; }
    .carousel-btn { width: 34px; height: 34px; font-size: 0.85rem; }
    .gallery-carousel .gallery-item { flex-basis: 78vw; }
    .gallery-item img { height: 190px; }
    .lightbox-backdrop { padding: 16px 14px; }
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3001;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 520px) {
    .lightbox-nav { display: inline-flex; width: 38px; height: 38px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
}

/* Respect the OS "reduce motion" setting (also what battery-saver and
   accessibility modes flip). Kills the perpetual icon spin, the status blink,
   the card tilt and the smooth-scroll jump; script.js reads the same query and
   never starts the combat sim. Transitions are cut to ~0 rather than removed so
   that state changes which SEQUENCE on transitionend still fire -- notably the
   modal backdrop's opacity/visibility flip. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Cards keep their hover colour change but stop pitching in 3D. */
    [data-tilt] { transform: none !important; }

    /* The follower orb chases the cursor; park it. */
    #orb-cursor-follower { display: none; }
}
