:root {
    --bg: #020606;
    --panel: rgba(3, 12, 13, 0.88);
    --cyan: #1bd6c4;
    --cyan-soft: rgba(27, 214, 196, 0.45);
    --green: #8ad9aa;
    --amber: #ff9f43;
    --red: #ff3b3b;
    --text: #d7fff7;
    --muted: #78918c;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "ui-monospace", "Cascadia Code", "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    background-image: linear-gradient(
        45deg, 
        rgba(27, 214, 196, 0.02) 0%, 
        transparent 50%, 
        rgba(255, 159, 67, 0.02) 100%
    );
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, .btn, .status-strip {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background & VHS/CRT Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 200;
    opacity: 0.6;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 201;
    animation: noiseShift 0.2s steps(2) infinite;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 202;
}

.vhs-interference {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(27, 214, 196, 0.1);
    opacity: 0.2;
    pointer-events: none;
    z-index: 203;
    animation: interferenceMove 8s linear infinite;
    filter: blur(1px);
}

/* Main Page Flicker */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 214, 196, 0.015);
    pointer-events: none;
    z-index: 204;
    animation: vhsFlicker 0.15s infinite;
}

/* Status Strip */
.status-strip {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--cyan-soft);
    padding: 8px 0;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(4px);
}

.status-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.warning-text {
    color: var(--amber);
    font-weight: bold;
    animation: blink 2s infinite;
}

.status-info {
    color: var(--muted);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(27, 214, 196, 0.05) 0%, transparent 70%);
}

.glitch-text {
    font-size: 4rem;
    font-weight: 900;
    color: var(--cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--cyan-soft);
    position: relative;
    animation: textFlicker 4s infinite;
}

.tagline {
    font-size: 1.25rem;
    color: var(--amber);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.description {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 5px var(--cyan-soft);
}

.btn-primary:hover {
    background: var(--cyan);
    color: var(--bg);
    box-shadow: 0 0 15px var(--cyan);
}

.btn-tertiary {
    border-color: rgba(120, 145, 140, 0.3);
    color: var(--muted);
    font-style: italic;
    font-weight: normal;
}

.btn-tertiary:hover {
    border-color: var(--amber);
    color: var(--amber);
}

/* Feature Cards */
.features-section {
    padding: 40px 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(3, 12, 13, 0.4);
    border-left: 3px solid var(--cyan-soft);
    padding: 20px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(2px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--cyan);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--cyan);
}

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

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(27, 214, 196, 0.1);
    text-align: center;
}

.plain-link {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}
.plain-link:hover, .plain-link:focus {
    color: inherit;
    text-decoration: none;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cyan-soft);
    margin-bottom: 5px;
}

.footer-note {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg);
    border: 1px solid var(--amber);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 159, 67, 0.2);
}

.modal-title {
    color: var(--amber);
    margin-bottom: 1rem;
}

.platform-name {
    font-size: 1.25rem;
    color: var(--cyan);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
}

.modal-body {
    margin-bottom: 2rem;
    color: var(--text);
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-2%, 1%); }
    40% { transform: translate(2%, -1%); }
    50% { transform: translate(-1%, 2%); }
    60% { transform: translate(1%, -2%); }
    70% { transform: translate(2%, 2%); }
    80% { transform: translate(-2%, -2%); }
    90% { transform: translate(1%, 1%); }
    100% { transform: translate(0, 0); }
}

@keyframes vhsFlicker {
    0% { opacity: 0.01; }
    50% { opacity: 0.02; }
    100% { opacity: 0.01; }
}

@keyframes textFlicker {
    0% { opacity: 1; }
    1% { opacity: 0.8; }
    2% { opacity: 1; }
    10% { opacity: 1; }
    11% { opacity: 0.9; }
    12% { opacity: 1; }
    40% { opacity: 1; }
    41% { opacity: 0.8; }
    42% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes interferenceMove {
    0% { top: -10%; }
    20% { top: 110%; }
    100% { top: 110%; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    body {
        background-size: 100% 100%;
    }
    .noise, .vhs-interference, body::after {
        display: none;
    }
    .scanlines {
        opacity: 0.2;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
