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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #0D0D0D;
    color: #E0E0E0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Terminal Background Animation */
.terminal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 20s linear infinite;
}

.flowing-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flowing-lines::before,
.flowing-lines::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #00FFCC, transparent);
    animation: flowDown 3s linear infinite;
}

.flowing-lines::before {
    left: 20%;
    animation-delay: -1s;
}

.flowing-lines::after {
    left: 80%;
    animation-delay: -2s;
}

@keyframes gridShift {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes flowDown {
    0% { transform: translateY(-100px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(calc(100vh + 100px)); opacity: 0; }
}

/* Typography */
.accent-text {
    color: #00FFCC;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00FFCC;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.logo-subtext {
    font-size: 0.875rem;
    color: #888;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00FFCC, #00D4AA);
    color: #0D0D0D;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #00FFCC;
    border-color: #00FFCC;
}

.btn-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #B0B0B0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #FFFFFF;
}

.section-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    color: #00FFCC;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.02), rgba(0, 212, 170, 0.02));
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: #C0C0C0;
    line-height: 1.8;
}

/* How It Works Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 204, 0.1), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.1);
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #00FFCC;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.feature-description {
    color: #B0B0B0;
    line-height: 1.6;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hire Section */
.hire {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.03), rgba(0, 212, 170, 0.03));
    text-align: center;
}

.hire-subtitle {
    font-size: 1.125rem;
    color: #B0B0B0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hire-feature {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.hire-feature h3 {
    color: #00FFCC;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hire-feature p {
    color: #B0B0B0;
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.05), rgba(0, 212, 170, 0.05));
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: #B0B0B0;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 255, 204, 0.1);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
}

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

.footer-nav a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #00FFCC;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #888;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.btn:focus,
.footer-nav a:focus {
    outline: 2px solid #00FFCC;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #00FFCC;
        color: #000;
    }
    
    .btn-secondary {
        background: #000;
        color: #00FFCC;
        border-color: #00FFCC;
    }
}
