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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.nav-divider {
    color: rgba(255, 255, 255, 0.3);
}

.nav-section {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link-button {
    background: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(88, 80, 236, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #000000;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: backwards;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.hero-visual {
    margin-top: 80px;
    animation: fadeInUp 0.8s ease 0.6s;
    animation-fill-mode: backwards;
}

/* Code Window */
.code-window {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.code-window:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.code-window.small {
    max-width: 600px;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.code-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.code-content {
    padding: 24px;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Code Syntax Highlighting */
.code-import {
    color: #c586c0;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

.code-keyword {
    color: #569cd6;
}

.code-property {
    color: #9cdcfe;
}

.code-comment {
    color: #6a9955;
    font-style: italic;
}

.code-number {
    color: #b5cea8;
}

.code-boolean {
    color: #569cd6;
}

/* Section Styles */
.section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 900px;
}

.section-title.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin-bottom: 32px;
}

.section-description.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.section-link:hover {
    color: #ffffff;
    gap: 12px;
}

.section-link.centered-link {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Schema Section */
.schema-section {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(20, 20, 20, 0.5) 100%);
}

.schema-visual {
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.schema-visual:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.schema-image {
    width: 100%;
    height: auto;
}

/* Next.js Section */
.nextjs-section {
    background: rgba(15, 15, 15, 0.5);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Testimonial Section */
.testimonial-section {
    background: linear-gradient(135deg, rgba(88, 80, 236, 0.1) 0%, rgba(20, 20, 20, 0.5) 100%);
    padding: 100px 0;
}

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

.testimonial-quote {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.testimonial-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.testimonial-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Code Features Section */
.code-features-section {
    background: rgba(5, 5, 5, 0.5);
}

.code-feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.code-feature-item:last-child {
    margin-bottom: 0;
}

.code-feature-item.reverse {
    direction: rtl;
}

.code-feature-item.reverse > * {
    direction: ltr;
}

.feature-number {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.code-feature-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.code-feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* Features List Section */
.features-section {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.5) 0%, rgba(5, 5, 5, 0.8) 100%);
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 40px 0 80px;
}

.cta-link {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cta-link:hover {
    color: #ffffff;
}

.cta-link:hover::after {
    transform: scaleX(1);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.feature-list-item {
    background: rgba(10, 10, 10, 0.8);
    padding: 32px;
    transition: all 0.3s ease;
    display: block;
}

.feature-list-item:hover {
    background: rgba(20, 20, 20, 0.9);
    transform: scale(1.02);
    z-index: 1;
}

.feature-item-number {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.feature-item-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Philosophy Section */
.philosophy-section {
    background: radial-gradient(circle at center, rgba(88, 80, 236, 0.1) 0%, transparent 70%);
    text-align: center;
}

.philosophy-text {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto 24px;
}

.philosophy-highlight {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    max-width: 700px;
    margin: 40px auto;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(0, 0, 0, 1) 100%);
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
}

.cta-command {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px 32px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.cta-command:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-command code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #ffffff;
}

.copy-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.5);
}

.cta-button.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.cta-button:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(30, 30, 30, 0.7);
}

.cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Footer */
.footer {
    background: rgba(5, 5, 5, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .code-feature-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .code-feature-item.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 16px 24px;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .testimonial-quote {
        font-size: 24px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-command {
        flex-direction: column;
    }
    
    .cta-links {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Smooth scroll animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}