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

:root {
    /* 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;
}

/* Interactive Background Canvas */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.orb-1 {
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
}

.orb-2 {
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
}

/* Glassmorphism System */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
                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;
}

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

.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; }
}

.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;
    color: var(--text-muted);
    font-weight: 400;
}

/* 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;
}

.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);
}

.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;
}

/* Modal Backdrops & Content */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* visibility keeps the 24 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;
}

.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;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 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(13, 17, 30, 0.97);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 10px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    }
    .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); }
    .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. */
    .glass-panel, .modal-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .glass-panel { 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 { 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; }
}

/* ----------------------------------------------------
   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: var(--text-dim);
    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; }

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

.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; }
.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) -- image grid + lightbox
   ========================================================= */

.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;
}

.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); }

.gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary-cyan);
    background: linear-gradient(to top, rgba(7, 9, 19, 0.92), rgba(7, 9, 19, 0));
    pointer-events: none;
}

.lightbox-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(7, 9, 19, 0.94);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

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

.lightbox-backdrop img {
    max-width: 94vw;
    max-height: 90vh;
    border: 1px solid var(--glass-border-glow);
    border-radius: 6px;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.25);
}

@media (max-width: 520px) {
    .gallery-carousel .gallery-item { flex-basis: 82vw; }
    .gallery-item img { height: 200px; }
    .carousel-btn { display: none; }
}

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

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

.lightbox-backdrop img { cursor: pointer; }

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