@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --bg: #0A0D1C;
    --panel: #12162A;
    --ink: #E9EDF6;
    --dim: #8792B4;
    --line: rgba(233,237,246,0.09);
    --acc: #6FE3D8;
    --hover-line: rgba(111,227,216,0.5);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.8;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.logo {
    font-size: 1.5rem;
}

h1 { font-size: 3.5rem; margin-bottom: 20px; }
h2 { font-size: 2.5rem; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--dim);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Base structural classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

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

section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

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

/* Corner tags */
.corner-tag {
    position: fixed;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dim);
    z-index: 5;
    pointer-events: none;
}
.tag-tl { top: 20px; left: 20px; }
.tag-tr { top: 20px; right: 20px; text-align: right; }
.tag-bl { bottom: 20px; left: 20px; }
.tag-br { bottom: 20px; right: 20px; text-align: right; }

/* Page Content (for supplementary pages) */
.page-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--panel);
    border-radius: 3px;
    border: 1px solid var(--line);
    position: relative;
    z-index: 10;
}
.page-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--ink);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.2,1,0.3,1);
    cursor: pointer;
    border: 1px solid var(--line);
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--panel);
    color: var(--ink);
}

.btn-primary {
    background: var(--acc);
    color: var(--bg);
    border-color: var(--acc);
}

.btn-primary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

.btn-outline {
    background: transparent;
    color: var(--acc);
    border-color: var(--line);
}

.btn:hover:not(.btn-primary) {
    border-color: var(--hover-line);
    color: var(--acc);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header & Nav */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(10, 13, 28, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

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

.main-nav { display: flex; gap: 25px; }
.main-nav a {
    text-decoration: none;
    color: var(--dim);
    font-weight: 500;
    transition: color 0.35s cubic-bezier(0.2,1,0.3,1);
}
.main-nav a:hover { color: var(--acc); }

/* Hero */
.hero {
    padding: 120px 0;
}
.hero p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--dim);
}

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

/* Cards (Panels) */
.card, .faq-item {
    background: var(--panel);
    padding: 40px 30px;
    border-radius: 3px;
    border: 1px solid var(--line);
    transition: all 0.35s cubic-bezier(0.2,1,0.3,1);
}
.card:hover, .faq-item:hover {
    border-color: var(--hover-line);
    transform: translateY(-5px);
}

.card:hover h3, .card:hover .icon {
    color: var(--acc);
}

.features .icon {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--dim);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Streaming & AI */
.support-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.tag {
    background: transparent;
    padding: 8px 16px;
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--dim);
    border: 1px solid var(--line);
    transition: all 0.35s cubic-bezier(0.2,1,0.3,1);
}
.tag:hover {
    border-color: var(--hover-line);
    color: var(--acc);
}

/* Pricing */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card.popular {
    border-color: var(--acc);
}
.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel);
    color: var(--acc);
    padding: 4px 12px;
    border-radius: 3px;
    border: 1px solid var(--acc);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0;
    font-family: 'Space Grotesk', sans-serif;
}
.price span {
    font-size: 1rem;
    color: var(--dim);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}
.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--dim);
    font-size: 0.95rem;
}
.features-list li:before {
    content: "[+]";
    font-family: 'IBM Plex Mono', monospace;
    color: var(--acc);
    margin-right: 10px;
    font-size: 12px;
}

/* Reviews */
.review-text {
    font-style: normal;
    margin-bottom: 20px;
    color: var(--dim);
}
.review-author {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--ink);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 20px;
    text-align: left;
    padding: 25px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--line);
    z-index: 10;
    position: relative;
}
.footer-links { margin-bottom: 30px; }
.footer-links a {
    color: var(--dim);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.35s cubic-bezier(0.2,1,0.3,1);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
}
.footer-links a:hover { color: var(--acc); }
.copyright {
    color: var(--dim);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
}

/* Scroll Animation (Fade up) */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.2,1,0.3,1), transform 0.8s cubic-bezier(0.2,1,0.3,1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; gap: 15px; justify-content: center; }
    .main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 15px; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .btn { display: block; width: 100%; margin-bottom: 10px; padding: 14px 24px; text-align: center; }
    .btn-large { width: 100%; }
    .support-tags { gap: 10px; }
    .footer-links a { display: block; margin: 10px 0; }
    .corner-tag { display: none; }
}

/* A11y and Performance Fixes */
.skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    background: var(--acc);
    color: var(--bg);
    padding: 10px 15px;
    z-index: 10000;
    font-weight: 700;
    border-radius: 3px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 20px;
}
section[id] {
    scroll-margin-top: 80px;
}
*:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
details.faq-item > summary {
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--ink);
    outline: none;
    font-weight: 600;
    margin-bottom: 0;
}
details.faq-item[open] > summary {
    margin-bottom: 15px;
    color: var(--acc);
}
