/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --accent-color: #FF0066;
    --text-dark: #000000;
    --text-light: #666666;
    --background: #FFFFFF;
    --background-alt: #F5F5F5;
    --border-color: #E0E0E0;
    --gradient: linear-gradient(135deg, #000000, #333333);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--background);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Blackbox Visual */
.blackbox {
    position: relative;
    width: 400px;
    height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stream-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    animation: stream 3s linear infinite;
}

.stream-line:nth-child(1) {
    left: 25%;
    animation-delay: 0s;
}

.stream-line:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.stream-line:nth-child(3) {
    left: 75%;
    animation-delay: 2s;
}

@keyframes stream {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.central-core {
    position: relative;
    z-index: 10;
}

.core-pulse {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--background-alt);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Technology Section */
.about {
    padding: 80px 0;
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.spec {
    text-align: center;
}

.spec-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.spec-label {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Matrix Visual */
.matrix-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 20px;
}

.matrix-cell {
    background: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.matrix-cell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.matrix-cell:hover::after {
    width: 100%;
    height: 100%;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--background-alt);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    font-size: 0.875rem;
}

.disclaimer {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .blackbox {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .matrix-visual {
        margin-top: 3rem;
    }

    .tech-specs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Animation for matrix cells */
@keyframes matrix-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.matrix-cell:nth-child(1) { animation: matrix-pulse 3s ease-in-out infinite; }
.matrix-cell:nth-child(2) { animation: matrix-pulse 3s ease-in-out 0.3s infinite; }
.matrix-cell:nth-child(3) { animation: matrix-pulse 3s ease-in-out 0.6s infinite; }
.matrix-cell:nth-child(4) { animation: matrix-pulse 3s ease-in-out 0.9s infinite; }
.matrix-cell:nth-child(5) { animation: matrix-pulse 3s ease-in-out 1.2s infinite; }
.matrix-cell:nth-child(6) { animation: matrix-pulse 3s ease-in-out 1.5s infinite; }
.matrix-cell:nth-child(7) { animation: matrix-pulse 3s ease-in-out 1.8s infinite; }
.matrix-cell:nth-child(8) { animation: matrix-pulse 3s ease-in-out 2.1s infinite; }
.matrix-cell:nth-child(9) { animation: matrix-pulse 3s ease-in-out 2.4s infinite; }
