body {
    background-color: #0A0A0A;
    color: #FFFFFF;
    overflow-x: hidden;
}

.hero-digital-grid {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 110vh;
    background-image:
        linear-gradient(to right, rgba(36, 36, 36, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(36, 36, 36, 0.5) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 50%;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Glitch H1 */
.glitch-text {
    position: relative;
    display: inline-block;
    color: #FFFFFF;
    font-weight: 900;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #FFFFFF;
    clip-path: inset(24% 0 60% 0);
    animation: glitch-anim-1 4s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #BFBFBF;
    clip-path: inset(65% 0 10% 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(-1px, 1px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -1px); }
    40% { clip-path: inset(30% 0 40% 0); transform: translate(-1px, 1px); }
    60% { clip-path: inset(50% 0 30% 0); transform: translate(1px, -1px); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(40% 0 20% 0); transform: translate(1px, -1px); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(20% 0 50% 0); transform: translate(1px, -1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(-1px, 1px); }
    40% { clip-path: inset(40% 0 30% 0); transform: translate(1px, -1px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-1px, 1px); }
    80% { clip-path: inset(70% 0 5% 0); transform: translate(1px, -1px); }
    100% { clip-path: inset(30% 0 40% 0); transform: translate(-1px, 1px); }
}

/* Mac Window */
.mac-window {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px #242424, 0 0 30px rgba(255, 255, 255, 0.04);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.typewriter-line {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    width: 0;
}
.typewriter-line.typing {
    animation: typing 1.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}
.typewriter-line.done { width: 100%; border-right: none; }
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #FFFFFF; } }

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* FAQ legacy content */
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; }
.faq-item.active .faq-content { max-height: 300px; padding-bottom: 1.5rem; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: #FFFFFF; }

/* Buttons */
.btn-primary {
    background: #FFFFFF;
    color: #0A0A0A;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
    background: #D4D4D4;
    color: #0A0A0A;
}
.btn-secondary {
    background: #141414;
    color: #FFFFFF;
    border: 1px solid #242424;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #242424; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #FFFFFF; }

.nav-link { position: relative; transition: color 0.3s ease; }
.nav-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-btn:hover { box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }

:root { --header-hide-offset: -100px; }
@media (max-width: 768px) { :root { --header-hide-offset: -75px; } }
.header-hidden { transform: translateY(var(--header-hide-offset)); }

.bg-card-dots {
    background-color: #141414;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 16px 16px;
}

@keyframes draw-path { 0% { stroke-dashoffset: 100; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fade-fill { 0% { opacity: 0; } 100% { opacity: 0.15; } }
.chart-path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw-path 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.chart-fill { opacity: 0; animation: fade-fill 1.5s ease-out 0.5s forwards; }

/* Histogram */
@keyframes fluid-wave {
    0%, 100% { height: 15%; background-color: rgba(255,255,255,0.18); box-shadow: none; }
    50% { height: 100%; background-color: #FFFFFF; box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }
}
.hist-bar { width: 4px; border-radius: 2px 2px 0 0; }
.hb-1 { animation: fluid-wave 1.5s infinite ease-in-out 0.0s; }
.hb-2 { animation: fluid-wave 1.5s infinite ease-in-out 0.15s; }
.hb-3 { animation: fluid-wave 1.5s infinite ease-in-out 0.3s; }
.hb-4 { animation: fluid-wave 1.5s infinite ease-in-out 0.45s; }
.hb-5 { animation: fluid-wave 1.5s infinite ease-in-out 0.6s; }
.hb-6 { animation: fluid-wave 1.5s infinite ease-in-out 0.75s; }
.hb-7 { animation: fluid-wave 1.5s infinite ease-in-out 0.9s; }

@keyframes scanline { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
.progress-scan {
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    animation: scanline 2s infinite linear;
}

@keyframes sq-bounce {
    0%, 100% { opacity: 0.3; transform: translateY(0) scale(0.8); }
    50% { opacity: 1; transform: translateY(-3px) scale(1.1); box-shadow: 0 4px 8px rgba(255,255,255,0.4); background-color: #FFFFFF; }
}
.sq-b-1 { animation: sq-bounce 1.2s infinite ease-in-out 0s; }
.sq-b-2 { animation: sq-bounce 1.2s infinite ease-in-out 0.15s; }
.sq-b-3 { animation: sq-bounce 1.2s infinite ease-in-out 0.3s; }

@keyframes signal-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; box-shadow: 0 0 5px rgba(255,255,255,0.5); } }
.sig-1 { animation: signal-pulse 2s infinite 0s; }
.sig-2 { animation: signal-pulse 2s infinite 0.2s; }
.sig-3 { animation: signal-pulse 2s infinite 0.4s; }
.sig-4 { animation: signal-pulse 2s infinite 0.6s; background-color: #FFFFFF; box-shadow: 0 0 5px rgba(255,255,255,0.6); }

.platform-tab { display: none; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.platform-tab.active-tab { display: flex; opacity: 1; transform: translateY(0); }

.step-timeline::before {
    content: '';
    position: absolute;
    top: 6px; bottom: 6px;
    left: 5px;
    width: 1px;
    background: linear-gradient(to bottom, #FFFFFF 0%, rgba(36,36,36,0.5) 70%, transparent 100%);
    z-index: 0;
}
.step-dot { box-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }

.term-scroll::-webkit-scrollbar { width: 4px; }
.term-scroll::-webkit-scrollbar-track { background: transparent; }
.term-scroll::-webkit-scrollbar-thumb { background: #242424; border-radius: 2px; }
.term-scroll::-webkit-scrollbar-thumb:hover { background: #FFFFFF; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.term-cursor { animation: blink 1s step-end infinite; }

.bento-card-bg {
    background-color: #0A0A0A;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}
.bento-card { transition: all 0.3s ease; }
.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
}

@keyframes scan-sweep {
    0% { top: -10%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}
.anim-scanner-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background-color: #FFFFFF;
    box-shadow: 0 0 8px #FFFFFF, 0 0 15px #FFFFFF;
    animation: scan-sweep 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
    pointer-events: none;
}
.anim-scanner-glow {
    position: absolute;
    left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12));
    transform: translateY(-100%);
    animation: scan-sweep 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 9;
    pointer-events: none;
}

@keyframes mini-gb { 0%, 100% { height: 25%; } 50% { height: 90%; } }
.gb-1 { animation: mini-gb 1.3s ease-in-out infinite 0s; }
.gb-2 { animation: mini-gb 1.1s ease-in-out infinite 0.2s; }
.gb-3 { animation: mini-gb 1.4s ease-in-out infinite 0.1s; }
.gb-4 { animation: mini-gb 1.2s ease-in-out infinite 0.3s; }
.gb-5 { animation: mini-gb 1.5s ease-in-out infinite 0.15s; }

@keyframes slow-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }
.anim-ping-slow { animation: slow-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; }

@keyframes exec-load { 0% { width: 0%; } 40% { width: 100%; } 100% { width: 100%; } }
.anim-exec-bar { animation: exec-load 3s ease-in-out infinite; }

.platform-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.08);
}
.platform-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 100px;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.platform-card:hover .platform-glow { opacity: 1; }

@keyframes dl-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.platform-card:hover .dl-icon { animation: dl-bounce 1s ease-in-out infinite; color: #FFFFFF; }

.btn-download-plat { transition: all 0.3s ease; background-size: 200% auto; }
.btn-download-plat:hover {
    background-color: #242424;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* Changelog Navigation */
.cl-nav-item { transition: all 0.2s ease; }
.cl-nav-item.active {
    background-color: #242424;
    border-color: #333333;
}
.cl-nav-item.active .cl-nav-text { color: #FFFFFF; font-weight: 700; }
.cl-nav-item.active .cl-nav-indicator {
    background-color: #FFFFFF;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.cl-update-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}
.cl-update-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 4px; height: 4px;
    border-radius: 50%;
}
.cl-added::before { background-color: #FFFFFF; }
.cl-fixed::before { background-color: #BFBFBF; }
.cl-removed::before { background-color: #808080; }
.cl-improved::before { background-color: #FFFFFF; }

.cl-scroll::-webkit-scrollbar { width: 4px; }
.cl-scroll::-webkit-scrollbar-track { background: transparent; }
.cl-scroll::-webkit-scrollbar-thumb { background: #242424; border-radius: 2px; }
.cl-scroll::-webkit-scrollbar-thumb:hover { background: #FFFFFF; }

@keyframes fadeInRight { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.cl-content-section { display: none; animation: fadeInRight 0.3s ease forwards; }
.cl-content-section.active { display: block; }

.script-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, #0A0A0A 0%, #0F0F0F 100%);
}
.script-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.04);
}
.script-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 60px;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.script-card:hover .script-glow { opacity: 1; }

.hub-card {
    background: linear-gradient(135deg, #141414 0%, #0A0A0A 100%);
    border-color: #333333;
}
.hub-card:hover {
    border-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
.hub-pulse { animation: pulse-border 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse-border {
    0%, 100% { border-color: rgba(255, 255, 255, 0.2); }
    50% { border-color: rgba(255, 255, 255, 0.55); }
}

/* FAQ */
.faq-item { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item:hover { border-color: rgba(255, 255, 255, 0.4); background-color: #0F0F0F; }
.faq-item.active { border-color: rgba(255, 255, 255, 0.5); background-color: #141414; }
.faq-highlight {
    transition: transform 0.3s ease;
    transform: scaleY(0);
    transform-origin: top;
}
.faq-item.active .faq-highlight { transform: scaleY(1); }
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
}
.faq-icon-wrapper { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s; }
.faq-item.active .faq-icon-wrapper {
    transform: rotate(135deg);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}
.faq-item.active .faq-icon { color: #FFFFFF; }

/* Footer */
.footer-link { position: relative; display: inline-block; transition: color 0.3s ease; }
.footer-link::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -2px; left: 0;
    background-color: #FFFFFF;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-link:hover { color: #FFFFFF; }
.footer-link:hover::after { width: 100%; }

.social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #0A0A0A;
    border-color: #242424;
    color: rgba(255, 255, 255, 0.5);
}
.social-btn:hover {
    transform: translateY(-3px);
    background-color: #141414;
    border-color: #FFFFFF;
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.footer-logo-wrap { position: relative; display: inline-flex; }
.footer-logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.footer-logo-wrap:hover .footer-logo-glow { opacity: 1; }