:root {
    --bg-dark: #000000;
    --text-main: #f0f0f0;
    --text-muted: #8892b0;
    --cyan: #00f3ff;
    --magenta: #ff00ea;
    --card-bg: rgba(10, 10, 10, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --header-height: 70px;
    --footer-height: 70px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-nav .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-main);
}

.top-nav .nav-links {
    display: flex;
    gap: 2rem;
}

.top-nav .nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-nav .nav-links a:hover {
    color: var(--cyan);
}

/* Footer Mask */
.system-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: #000000;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    font-family: var(--font-heading);
}

.sys-copy {
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: var(--text-main);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: flex;
}

.social-links a:hover {
    opacity: 1;
    color: var(--cyan);
}

/* Canvas Engine */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

#sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Scroll Container */
.scroll-container {
    position: relative;
    height: 600vh;
    width: 100%;
    z-index: 10;
}

/* Typography Cards - Cyberpunk */
.card {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    left: 5%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .card {
        left: 8%; 
    }
    .card:nth-child(even) {
        left: auto;
        right: 8%; 
    }
}

.card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.card-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-content::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}
.card-content::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--magenta);
    border-right: 2px solid var(--magenta);
}

/* Typography */
h1, h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

h2 { font-size: 1.6rem; }
h3 { font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 1px; margin-bottom: 0.5rem; }

p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.accent-line {
    height: 3px;
    width: 40px;
    margin-bottom: 1.5rem;
}
.accent-line.cyan { background-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.accent-line.magenta { background-color: var(--magenta); box-shadow: 0 0 10px var(--magenta); }

.text-cyan { color: var(--cyan); text-shadow: 0 0 5px rgba(0, 243, 255, 0.5); }
.text-magenta { color: var(--magenta); text-shadow: 0 0 5px rgba(255, 0, 234, 0.5); }

/* Cyber List */
.cyber-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.cyber-list li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-main);
}
.bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 50%;
}
.bullet.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.bullet.magenta { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }

/* Pricing container */
.pricing-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .pricing-container {
        flex-direction: row;
    }
}

.tier {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Button */
.cyber-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(0,0,0,0.5);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: auto;
}

.cyber-button.cyan-btn {
    border-color: var(--cyan);
    color: var(--cyan);
}
.cyber-button.cyan-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.cyber-button.magenta-btn {
    border-color: var(--magenta);
    color: var(--magenta);
}
.cyber-button.magenta-btn:hover {
    background: rgba(255, 0, 234, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 234, 0.4);
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 28px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .top-nav .nav-links {
        display: none; 
    }
}

/* Hero Card & Plans Header Overrides */
#card-1, .plans-header {
    top: var(--header-height); 
    left: 50% !important; /* Force override nth-child left/right */
    transform: translateX(-50%) scale(0.95);
    max-width: 900px;
    width: 90%;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    text-align: center;
    padding-top: 5vh;
}

#card-1.active, .plans-header.active {
    transform: translateX(-50%) scale(1);
}

.hero-content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-content::before, .hero-content::after {
    display: none; /* Remove corners for borderless text */
}

@keyframes neonPulseText {
    0% {
        text-shadow: 0 0 5px rgba(255, 0, 234, 0.4), 0 0 10px rgba(255, 0, 234, 0.4);
        opacity: 0.9;
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 0, 234, 0.8), 0 0 20px rgba(255, 0, 234, 0.8), 0 0 40px rgba(255, 0, 234, 1);
        opacity: 1;
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 0, 234, 0.4), 0 0 10px rgba(255, 0, 234, 0.4);
        opacity: 0.9;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--magenta);
    animation: neonPulseText 2s infinite ease-in-out;
}

.hero-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-content .hero-sub {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

@keyframes laserExpand {
    0% { width: 10px; opacity: 0.5; }
    50% { width: 120px; opacity: 1; box-shadow: 0 0 15px currentColor, 0 0 30px currentColor; }
    100% { width: 10px; opacity: 0.5; }
}

.center-line {
    margin: 0 auto 1.5rem auto;
    width: 40px;
    transition: all 0.3s ease;
}

.hero-top .center-line {
    animation: laserExpand 3s infinite ease-in-out;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--cyan);
}
