:root {
    --bg-color: #05080a;
    --card-bg: rgba(12, 18, 22, 0.7);
    --accent-color: #00f2ff;
    --accent-dim: rgba(0, 242, 255, 0.1);
    --accent-hover: #00c8d6;
    --text-main: #e0f7fa;
    --text-dim: #78909c;
    --radar-color: #00ff41; /* For the second app */
    --radar-dim: rgba(0, 255, 65, 0.1);
    --font-stack: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono-stack: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

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

/* Custom Cursor */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300f2ff' stroke-width='1.5'><line x1='12' y1='3' x2='12' y2='21'/><line x1='3' y1='12' x2='21' y2='12'/><circle cx='12' cy='12' r='8' stroke-opacity='0.5'/></svg>") 12 12, crosshair;
}

/* Radar Theme Cursor Override */
body.radar-theme {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d400ff' stroke-width='1.5'><line x1='12' y1='3' x2='12' y2='21'/><line x1='3' y1='12' x2='21' y2='12'/><circle cx='12' cy='12' r='8' stroke-opacity='0.5'/></svg>") 12 12, crosshair;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-main);
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #f00;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00f;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(70px, 9999px, 90px, 0); }
    10% { clip: rect(40px, 9999px, 80px, 0); }
    15% { clip: rect(10px, 9999px, 5px, 0); }
    20% { clip: rect(120px, 9999px, 140px, 0); }
    25% { clip: rect(40px, 9999px, 10px, 0); }
    30% { clip: rect(90px, 9999px, 95px, 0); }
    35% { clip: rect(20px, 9999px, 60px, 0); }
    40% { clip: rect(10px, 9999px, 5px, 0); }
    45% { clip: rect(80px, 9999px, 100px, 0); }
    50% { clip: rect(5px, 9999px, 30px, 0); }
    55% { clip: rect(110px, 9999px, 120px, 0); }
    60% { clip: rect(30px, 9999px, 40px, 0); }
    65% { clip: rect(60px, 9999px, 70px, 0); }
    70% { clip: rect(20px, 9999px, 30px, 0); }
    75% { clip: rect(90px, 9999px, 100px, 0); }
    80% { clip: rect(10px, 9999px, 20px, 0); }
    85% { clip: rect(50px, 9999px, 60px, 0); }
    90% { clip: rect(30px, 9999px, 50px, 0); }
    95% { clip: rect(80px, 9999px, 90px, 0); }
    100% { clip: rect(10px, 9999px, 30px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    5% { clip: rect(60px, 9999px, 40px, 0); }
    10% { clip: rect(90px, 9999px, 80px, 0); }
    15% { clip: rect(30px, 9999px, 10px, 0); }
    20% { clip: rect(70px, 9999px, 90px, 0); }
    25% { clip: rect(20px, 9999px, 50px, 0); }
    30% { clip: rect(10px, 9999px, 5px, 0); }
    35% { clip: rect(100px, 9999px, 80px, 0); }
    40% { clip: rect(5px, 9999px, 30px, 0); }
    45% { clip: rect(120px, 9999px, 110px, 0); }
    50% { clip: rect(40px, 9999px, 30px, 0); }
    55% { clip: rect(30px, 9999px, 40px, 0); }
    60% { clip: rect(80px, 9999px, 70px, 0); }
    65% { clip: rect(10px, 9999px, 20px, 0); }
    70% { clip: rect(50px, 9999px, 60px, 0); }
    75% { clip: rect(90px, 9999px, 100px, 0); }
    80% { clip: rect(30px, 9999px, 10px, 0); }
    85% { clip: rect(140px, 9999px, 120px, 0); }
    90% { clip: rect(40px, 9999px, 60px, 0); }
    95% { clip: rect(10px, 9999px, 5px, 0); }
    100% { clip: rect(70px, 9999px, 90px, 0); }
}

/* Typing Cursor */
.typing-cursor::after {
    content: '_';
    animation: blink 1s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Background Effects */
#particles-bg, #matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
#particles-bg { opacity: 0.6; }

/* Spring Festival Decorations */
.spring-festival-decor {
    position: relative;
    width: 100%;
    height: 136px;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(124, 8, 15, 0.22) 0%, rgba(5, 8, 10, 0) 82%);
    border-bottom: 1px solid rgba(255, 170, 120, 0.18);
}

.spring-rope {
    position: absolute;
    top: 12px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 218, 126, 0.5), rgba(255, 218, 126, 0.95), rgba(255, 218, 126, 0.5));
    box-shadow: 0 0 8px rgba(255, 120, 70, 0.3);
}

.spring-lantern {
    position: absolute;
    top: 24px;
    width: 56px;
    height: 74px;
    border-radius: 28px;
    border: 2px solid #ffd26a;
    background: radial-gradient(circle at 50% 18%, #ff9d74 0%, #e83028 46%, #9f0016 100%);
    box-shadow: 0 0 22px rgba(255, 110, 70, 0.5), inset 0 -8px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: festivalSwing 4.8s ease-in-out infinite;
    transform-origin: top center;
}

.spring-lantern::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 50%;
    width: 2px;
    height: 28px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ffe297, #b78a2c);
}

.spring-lantern::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 16px;
    height: 18px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ffd67b 0%, #bb1632 70%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.lantern-word {
    color: #ffe7a3;
    font-family: var(--mono-stack);
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 246, 189, 0.65);
}

.lantern-a { left: 7%; animation-delay: 0s; }
.lantern-b { left: 22%; animation-delay: -0.6s; }
.lantern-c { right: 22%; animation-delay: -1.2s; }
.lantern-d { right: 7%; animation-delay: -1.8s; }

.spring-fu {
    position: absolute;
    top: 14px;
    width: 36px;
    height: 36px;
    border: 2px solid #ffd26a;
    background: linear-gradient(180deg, #d71717 0%, #a60010 100%);
    box-shadow: 0 0 14px rgba(255, 90, 72, 0.5);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: festivalPulse 2.4s ease-in-out infinite;
}

.spring-fu span {
    transform: rotate(-45deg);
    color: #ffe7a3;
    font-family: var(--mono-stack);
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255, 232, 165, 0.65);
}

.fu-left { left: 2.8%; }
.fu-right { right: 2.8%; }

.spring-greeting {
    position: absolute;
    top: 94px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 219, 135, 0.8);
    background: linear-gradient(90deg, rgba(127, 8, 15, 0.86), rgba(180, 26, 35, 0.95), rgba(127, 8, 15, 0.86));
    color: #ffeec3;
    font-family: var(--mono-stack);
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 0 16px rgba(255, 112, 70, 0.5);
    white-space: nowrap;
    animation: festivalPulse 2.6s ease-in-out infinite;
}

.spring-greeting::before,
.spring-greeting::after {
    content: "🏮";
    font-size: 16px;
    margin: 0 8px;
    filter: drop-shadow(0 0 4px rgba(255, 148, 88, 0.6));
}

.spring-tag {
    position: absolute;
    top: 96px;
    width: 56px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 213, 116, 0.9);
    background: linear-gradient(180deg, #cf1a23, #8a000f);
    color: #ffe8a4;
    font-family: var(--mono-stack);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(255, 224, 150, 0.5);
    box-shadow: 0 0 12px rgba(255, 92, 74, 0.4);
}

.spring-tag-left { left: 32%; }
.spring-tag-right { right: 32%; }

.spring-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ffd57c, #be1531);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

@keyframes festivalSwing {
    0% { transform: rotate(4deg); }
    50% { transform: rotate(-4deg); }
    100% { transform: rotate(4deg); }
}

@keyframes festivalPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 90, 72, 0.45); }
    50% { box-shadow: 0 0 20px rgba(255, 137, 79, 0.75); }
}


/* Navigation */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(5, 8, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-dim);
}

.v2-badge {
    font-size: 0.5em; 
    vertical-align: middle; 
    border: 1px solid var(--accent-color); 
    padding: 2px 4px; 
    border-radius: 4px;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-link.radar-link:hover {
    color: var(--radar-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography & Hero */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid var(--accent-color);
    margin-top: 10px;
    box-shadow: 0 0 15px var(--accent-dim);
}

/* Time Widget */
.time-widget {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-dim);
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 50px;
    font-family: var(--mono-stack);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.time-date {
    color: var(--text-dim);
    font-size: 1rem;
}

.time-clock {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--accent-dim);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 20px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-dim);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-dim);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-dim);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-dim);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* NEW SVG Icons System */
.icon-svg {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    background: var(--accent-dim);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 0 15px var(--accent-dim);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-svg {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px var(--accent-color);
    transform: scale(1.1);
}

.icon-svg svg {
    width: 36px;
    height: 36px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
}

.faq-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.faq-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s;
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-dim);
    padding: 0 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item.active .faq-content {
    max-height: 200px; /* Adjust if needed */
    padding: 15px 20px;
}

.faq-item.active .faq-header {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 8, 10, 0.9);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111;
    border: 1px solid var(--accent-color);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

.video-modal-content {
    padding: 0;
    background: black;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* CRT Scanline Overlay */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    z-index: 9998;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

/* Holographic Shine for Cards */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.6s;
    pointer-events: none;
}
.feature-card:hover::after {
    left: 100%;
    top: 100%;
}

/* Theme Overrides */
body.radar-theme {
    --accent-color: #d400ff; /* Neon Purple */
    --accent-dim: rgba(212, 0, 255, 0.1);
    --accent-hover: #e65cff;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .spring-festival-decor {
        height: 92px;
    }
    .spring-rope {
        top: 8px;
        left: 4%;
        right: 4%;
    }
    .spring-lantern {
        top: 14px;
        width: 42px;
        height: 56px;
    }
    .spring-lantern::before {
        top: -18px;
        height: 18px;
    }
    .spring-lantern::after {
        width: 12px;
        height: 14px;
        bottom: -14px;
    }
    .lantern-word {
        font-size: 16px;
    }
    .lantern-b,
    .lantern-c,
    .fu-left,
    .fu-right,
    .spring-tag {
        display: none;
    }
    .lantern-a {
        left: 8%;
    }
    .lantern-d {
        right: 8%;
    }
    .spring-greeting {
        top: 64px;
        max-width: 88%;
        white-space: normal;
        text-align: center;
        padding: 4px 10px;
        line-height: 1.3;
        font-size: 11px;
    }
    .spring-greeting::before,
    .spring-greeting::after {
        margin: 0 4px;
        font-size: 14px;
    }

    .nav-bar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .time-widget {
        flex-direction: column;
        gap: 5px;
        padding: 15px;
    }
}
