:root {
    --bg-dark: #0a0e14;
    --bg-card: #151b23;
    --bg-hover: #1a2330;
    --text-primary: #e6e9f0;
    --text-secondary: #9ba3b4;
    --accent-primary: #5865f2;
    --accent-hover: #4752c4;
    --accent-glow: rgba(88, 101, 242, 0.3);
    --border-color: #2a3441;
    --success: #43b581;
    --warning: #faa61a;
    --danger: #f04747;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--accent-primary);
}

.logo-text {
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.btn-primary {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    transition: opacity 0.5s ease-out;
    z-index: 1;
    pointer-events: none;
}

body {
    position: relative;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    pointer-events: auto;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

.how-it-works {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--text-secondary);
}

.cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7289da 100%);
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.commands-section {
    padding: 2rem 2rem 6rem;
}

.command-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

.command-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.command-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.command-header code {
    font-size: 1.3rem;
    color: var(--accent-primary);
    font-weight: bold;
}

.badge {
    background: var(--accent-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.command-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.command-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.option strong {
    color: var(--text-primary);
}

.legal-content {
    padding: 2rem 2rem 6rem;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.legal-text h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.legal-text h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-text ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-text li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.commands-showcase {
    position: relative;
    z-index: 1;
}

.command-showcase-item {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 6rem 2rem;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: 1;
}

.showcase-label {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

.command-showcase-item .container {
    max-width: 900px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.command-showcase-item .container:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.4), 0 0 60px rgba(88, 101, 242, 0.2);
}

.showcase-content {
    text-align: center;
    margin-bottom: 3rem;
}

.showcase-content h3 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.showcase-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.showcase-image {
    max-width: 600px;
    width: fit-content;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: scale(1.03);
}

.showcase-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.scroll-spacer {
    height: 100vh;
    position: relative;
}

.footer {
    background: linear-gradient(180deg, rgba(10, 14, 20, 0) 0%, rgba(10, 14, 20, 0.5) 20%, var(--bg-card) 40%, var(--bg-card) 100%);
    border-top: none;
    padding: 20rem 2rem 1rem;
    position: relative;
    z-index: 1;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    min-height: 1.5rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.cat-footer-icon {
    position: fixed;
    bottom: -10px;
    right: -10px;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: transform 0.3s;
    opacity: 0.9;
    transform: rotate(-15deg);
    z-index: 1000;
}

.cat-footer-icon:hover {
    transform: rotate(-15deg) scale(1.1);
    opacity: 1;
}

.raining-cat {
    position: fixed;
    font-size: 30px;
    z-index: 9999;
    pointer-events: none;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        position: relative !important;
        opacity: 1 !important;
        min-height: auto !important;
        padding: 8rem 2rem 4rem !important;
    }

    .hero .container {
        pointer-events: auto !important;
    }

    .features {
        position: relative !important;
        opacity: 1 !important;
        min-height: auto !important;
        padding: 4rem 2rem !important;
    }

    .features .container {
        pointer-events: auto !important;
    }

    .command-showcase-item {
        position: relative !important;
        opacity: 1 !important;
        min-height: auto !important;
        padding: 4rem 2rem !important;
    }

    .command-showcase-item .container {
        pointer-events: auto !important;
        padding: 2rem 1rem;
    }

    .scroll-spacer {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .legal-text {
        padding: 2rem 1rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
    
    .cat-footer-icon {
        width: 55px;
        height: 55px;
        bottom: -8px;
        right: -8px;
    }
    
    .cat-footer-icon:hover {
        transform: rotate(-15deg) scale(1.1);
    }

    .showcase-content h3 {
        font-size: 2rem;
    }

    .showcase-content p {
        font-size: 1.1rem;
    }

    .showcase-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .showcase-image img {
        max-height: 400px;
    }

    .showcase-label {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .cat-footer-icon {
        width: 45px;
        height: 45px;
        bottom: -5px;
        right: -5px;
    }
    
    .cat-footer-icon:hover {
        transform: rotate(-15deg) scale(1.1);
    }
}
