:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --sol-purple: #9945FF;
    --sol-green: #14F195;
    --border-color: #333333;
    --grid-line: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    line-height: 1.5;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:hover {
    color: var(--sol-green);
}

.btn-small {
    border: 1px solid var(--text-color);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-main {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--sol-purple);
    transition: transform 0.1s, box-shadow 0.1s;
    display: inline-block;
}

.btn-main:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--sol-green);
}

.btn-main:active {
    transform: translate(0, 0);
    box-shadow: 0px 0px 0px;
}

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.hero-badge {
    border: 1px solid var(--sol-green);
    color: var(--sol-green);
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-bottom: 1rem;
    width: fit-content;
    font-size: 0.8rem;
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-hero {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: #888;
}

.highlight {
    color: var(--text-color);
    border-bottom: 1px solid var(--sol-green);
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stats-preview {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
}

.marquee-container {
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--sol-purple);
    color: white;
    padding: 0.5rem 0;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.marquee span {
    padding-right: 50px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-bottom: 1px solid var(--border-color);
}

.card {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.card:hover {
    background: #0a0a0a;
}

.active-card {
    background: #0f0f0f;
    border: 1px solid var(--sol-green);
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.1);
}

.card-header {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card p {
    color: #888;
}

.terminal-section {
    padding: 5rem 10%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-window {
    width: 100%;
    max-width: 800px;
    background: #000;
    border: 1px solid var(--border-color);
    box-shadow: 10px 10px 0px #1a1a1a;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-header .title {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    color: #ccc;
}

.terminal-body p {
    margin-bottom: 0.5rem;
}

.success { color: var(--sol-green); }
.blink { animation: blinker 1s linear infinite; color: var(--sol-purple); }

@keyframes blinker {
    50% { opacity: 0; }
}

.footer-cta {
    padding: 8rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.footer-cta h2 {
    font-size: 3.5rem;
    line-height: 1;
}

.signup-form {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.signup-form input {
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    font-family: 'JetBrains Mono', monospace;
    min-width: 300px;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--sol-green);
}

footer {
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.socials a {
    margin-left: 1.5rem;
    font-weight: 700;
}

.socials a:hover {
    color: var(--sol-purple);
    text-decoration: line-through;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: #000;
    border: 1px solid var(--sol-green);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 10px 10px 0px var(--sol-purple);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.close-modal:hover {
    color: var(--sol-green);
}

.modal-header {
    font-size: 0.8rem;
    color: var(--sol-green);
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.modal-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form label {
    font-size: 0.8rem;
    color: #888;
}

.modal-form input {
    background: #111;
    border: 1px solid #333;
    padding: 1rem;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    width: 100%;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--sol-green);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.modal-status {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
}

.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.loader-screen.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

.loader-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-x, .logo-phantom {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
}

.logo-x {
    background: #000;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.logo-x svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.logo-phantom {
    background: #000;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(171, 159, 242, 0.2);
    overflow: hidden;
}

.logo-phantom img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-connector {
    position: relative;
    width: 50px;
    height: 2px;
}

.connector-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sol-green), transparent);
    transform: translateY(-50%);
}

.connector-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--sol-green);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px var(--sol-green), 0 0 40px var(--sol-green);
    animation: pulseTravel 1.5s ease-in-out infinite;
}

@keyframes pulseTravel {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 12px); opacity: 0; }
}

.loader-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #fff;
}

.verifying-text {
    font-weight: 500;
}

.loader-dots {
    display: flex;
    gap: 0.1rem;
}

.loader-dots span {
    animation: dotBounce 1.4s ease-in-out infinite;
    opacity: 0.3;
}

.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.progress-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.4s ease;
    color: #444;
    min-width: 280px;
    justify-content: center;
}

.status-item::before {
    content: '○';
    font-size: 0.65rem;
    transition: all 0.3s ease;
}

.status-item.active {
    color: var(--sol-green);
    background: rgba(20, 241, 149, 0.08);
    border-color: rgba(20, 241, 149, 0.3);
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.15);
    transform: scale(1.02);
}

.status-item.active::before {
    content: '◉';
    animation: statusPulse 1.5s ease-in-out infinite;
    color: var(--sol-green);
}

.status-item.completed {
    color: #888;
    background: rgba(255, 255, 255, 0.03);
}

.status-item.completed::before {
    content: '✓';
    color: var(--sol-green);
    font-weight: bold;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.access-granted {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.access-granted.show {
    opacity: 1;
    visibility: visible;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
}

.checkmark {
    width: 80px;
    height: 80px;
    display: block;
}

.checkmark-circle-bg {
    stroke: var(--sol-green);
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.access-granted.show .checkmark-circle-bg {
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--sol-green);
    stroke-width: 4;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 50% 50%;
}

.access-granted.show .checkmark-check {
    animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes strokeCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
    to { stroke-dashoffset: 0; }
}

.access-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.access-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sol-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
}

.access-granted.show .access-title {
    animation: fadeInUp 0.5s ease 0.6s forwards;
}

.access-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
}

.access-granted.show .access-subtitle {
    animation: fadeInUp 0.5s ease 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-logos.fade-out,
.loader-text.fade-out,
.progress-status.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.loader-content {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body:not(.loaded) > *:not(.loader-screen) {
    opacity: 0;
}

body.loaded > *:not(.loader-screen) {
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.loader-screen.loader-hidden .loader-content {
    animation: glitchOut 0.3s ease-out forwards;
}

@keyframes glitchOut {
    0% { transform: scale(1); filter: blur(0); }
    50% { transform: scale(1.02); filter: blur(1px); }
    100% { transform: scale(0.95); filter: blur(4px); opacity: 0; }
}

/* ========================
   MOBILE RESPONSIVE
   ======================== */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .hero {
        min-height: auto;
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .sub-hero {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .stats-preview {
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding-left: 0;
        padding-top: 1rem;
        gap: 1.5rem;
    }
    
    .btn-main {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .grid-section {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 2rem;
        border-right: none;
    }
    
    .card h3 {
        font-size: 1.5rem;
    }
    
    .terminal-section {
        padding: 3rem 1rem;
    }
    
    .terminal-body {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
    
    .footer-cta {
        padding: 4rem 1.5rem;
    }
    
    .footer-cta h2 {
        font-size: 2rem;
    }
    
    .signup-form {
        flex-direction: column;
        width: 100%;
    }
    
    .signup-form input {
        min-width: auto;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .socials a {
        margin: 0 0.75rem;
    }
    
    /* Loader mobile fixes */
    .loader-content {
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .logo-x, .logo-phantom {
        width: 48px;
        height: 48px;
    }
    
    .logo-x svg {
        width: 28px;
        height: 28px;
    }
    
    .logo-phantom img {
        width: 44px;
        height: 44px;
    }
    
    .logo-connector {
        width: 40px;
    }
    
    .loader-text {
        font-size: 0.9rem;
    }
    
    .progress-status {
        font-size: 0.7rem;
    }
    
    .status-item {
        min-width: auto;
        width: 100%;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
    }
    
    .marquee {
        font-size: 0.8rem;
    }
    
    .modal-window {
        padding: 1.5rem;
    }
}
