:root {
    --bg: #0D0F12;
    --panel: #15181C;
    --ink: #EDEDEA;
    --dim: #84898F;
    --line: rgba(237,237,234,0.09);
    --acc: #FF8A3C;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to use custom cursor */
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.8;
    color: var(--ink);
    background-color: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}
a:hover {
    color: var(--acc) !important;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--acc);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    z-index: 9999;
}
.custom-cursor.active {
    width: 20px;
    height: 20px;
    background-color: rgba(255,138,60,0.2);
}

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

/* HUD Overlay */
.hud {
    position: fixed;
    z-index: 10;
    pointer-events: none;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--acc);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hud-top-left { top: 20px; left: 20px; }
.hud-top-right { top: 20px; right: 20px; text-align: right; }
.hud-bottom-left { bottom: 20px; left: 20px; color: var(--dim); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--acc);
    color: var(--bg) !important;
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--acc);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn:hover {
    background-color: transparent;
    color: var(--acc) !important;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
header {
    background-color: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: var(--dim);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo {
    font-size: 1.5rem;
    color: var(--ink);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0;
    background: transparent;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--ink);
}

.hero p {
    font-size: 1.2rem;
    color: var(--dim);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections Base */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--ink);
}

/* Features */
.features, .pricing, .testimonials, .faq, .streaming-ai {
    background-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card, .pricing-card, .testimonial-card, .faq-item, .support-item, .page-content {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card:hover, .pricing-card:hover, .testimonial-card:hover, .faq-item:hover, .support-item:hover {
    border-color: rgba(255,138,60,0.5);
}

.feature-card:hover h3, .pricing-card:hover .plan-name, .faq-item:hover .faq-question {
    color: var(--acc);
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--acc);
    letter-spacing: 0.1em;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--ink);
}

/* Streaming & AI */
.streaming-ai .section-title {
    color: var(--ink);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.support-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--dim);
    padding: 20px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    padding: 40px 30px;
    text-align: center;
}

.plan-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--ink);
}

.plan-price {
    font-size: 2.5rem;
    color: var(--acc);
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--dim);
    font-family: 'IBM Plex Mono', monospace;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--dim);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    font-style: italic;
    color: var(--dim);
}

.testimonial-author {
    margin-top: 20px;
    font-weight: normal;
    font-style: normal;
    color: var(--ink);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    padding: 25px;
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--ink);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
}

.faq-answer {
    color: var(--dim);
}

/* Footer */
footer {
    background-color: var(--panel);
    border-top: 1px solid var(--line);
    padding: 50px 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--dim);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
}

.copyright {
    color: var(--dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-family: 'IBM Plex Mono', monospace;
}

/* Subpages */
.page-content {
    margin: 40px auto;
    max-width: 800px;
    padding: 40px;
}
.page-content h1, .page-content h2 {
    color: var(--ink);
}
.page-content p, .page-content li {
    color: var(--dim);
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid, .pricing-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .hud-top-left, .hud-top-right, .hud-bottom-left {
        display: none; /* Hide HUD on mobile for cleaner look */
    }
}

/* SEO & Accessibility Fixes */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--acc);
    color: var(--bg) !important;
    padding: 10px 20px;
    z-index: 9999;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}
section, [id] {
    scroll-margin-top: 80px;
}
details > summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}
details > summary::-webkit-details-marker {
    display: none;
}
details[open] summary {
    color: var(--acc);
}
