/* Premium Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --glow: rgba(0, 255, 136, 0.2);
    --spacing-unit: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#matrix-canvas.active {
    opacity: 1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: calc(var(--spacing-unit) * 3) 0;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-cta {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--glow);
}

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

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.hero-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.btn-primary,
.btn-secondary {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary.large,
.btn-secondary.large {
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 5);
    font-size: 18px;
}

.hero-stats {
    display: flex;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
}

.stat {
    text-align: left;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: calc(var(--spacing-unit) * 1);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* Code Preview */
.hero-visual {
    position: absolute;
    right: calc(var(--spacing-unit) * 4);
    top: 50%;
    transform: translateY(-50%);
    width: 560px;
}

.code-preview {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.code-header {
    padding: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.code-dots {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.code-title {
    font-size: 13px;
    color: var(--text-secondary);
}

.code-content {
    padding: calc(var(--spacing-unit) * 3);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-content .key {
    color: #ff79c6;
}

.code-content .string {
    color: #50fa7b;
}

.code-content .number {
    color: #bd93f9;
}

.code-content .comment {
    color: var(--text-tertiary);
    font-style: italic;
}

.code-content .success {
    color: var(--accent);
}

.code-content .highlight {
    color: var(--accent);
    font-weight: 600;
}

.code-content .cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
}

/* Section Headers */
.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-header {
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.section-header.centered {
    text-align: center;
}

/* Platform Section */
.platform {
    padding: calc(var(--spacing-unit) * 20) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
}

.feature-card {
    padding: calc(var(--spacing-unit) * 4);
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--text-primary);
}

.feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Technology Section */
.technology {
    padding: calc(var(--spacing-unit) * 20) 0;
    background: var(--bg-secondary);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 10);
    align-items: center;
}

.tech-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 5) 0;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.tech-feature {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: flex-start;
}

.tech-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

.tech-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.tech-feature-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Pipeline Visual */
.pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pipeline-step {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: center;
    padding: calc(var(--spacing-unit) * 2);
}

.pipeline-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.pipeline-step.active .pipeline-step-number {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
}

.pipeline-step-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pipeline-step.active .pipeline-step-title {
    color: var(--text-primary);
}

.pipeline-line {
    width: 2px;
    height: 20px;
    background: var(--border);
    margin-left: calc(20px - 1px);
}

/* Pricing Section */
.pricing {
    padding: calc(var(--spacing-unit) * 20) 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: calc(var(--spacing-unit) * 5);
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
}

.pricing-header {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.pricing-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: calc(var(--spacing-unit) * 1);
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.pricing-feature {
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
}

/* CTA Section */
.cta {
    padding: calc(var(--spacing-unit) * 20) 0;
    background: var(--bg-secondary);
}

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

.cta-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 5);
}

/* Footer */
.footer {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 5) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-matrix-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
}

.footer-matrix-trigger:hover {
    opacity: 1;
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.1);
}

.matrix-hint {
    color: var(--accent);
    font-size: 16px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: calc(var(--spacing-unit) * 4);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 3);
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}