/* Base Variables & Reset */
:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #8b5cf6;
    
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    /* removed smooth scroll just in case it bugs out on chromium */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Removed page wrapper */

/* Background Animation */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
    opacity: 0.6;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.6) 0%, rgba(30,41,59,0) 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.6) 0%, rgba(30,41,59,0) 70%);
    top: 40%;
    right: -200px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,0.5) 0%, rgba(30,41,59,0) 70%);
    bottom: -100px;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* Typography & Buttons */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary, .btn-gradient, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

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

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
}

/* Abstract App Mockup */
.glass-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 100%;
    height: 80%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.glass-mockup:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
}

.mockup-header {
    height: 40px;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-body {
    display: flex;
    flex: 1;
}

.mockup-sidebar {
    width: 25%;
    border-right: 1px solid var(--glass-border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sk-line {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.w-full { width: 100%; }
.w-3-4 { width: 75%; }
.w-1-2 { width: 50%; }

.mockup-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sk-box {
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.sk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sk-card {
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 24px;
    animation: float-icon 6s infinite ease-in-out alternate;
}

.fi-1 { top: 10%; right: -5%; color: #3b82f6; animation-delay: 0s; }
.fi-2 { bottom: 20%; left: -10%; color: #8b5cf6; animation-delay: -2s; }
.fi-3 { bottom: 5%; right: 10%; color: #ec4899; animation-delay: -4s; }

@keyframes float-icon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bg-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.bg-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.bg-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.bg-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.bg-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Ecosystem Section */
.ecosystem {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8), transparent);
}

.ecosystem-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.ecosystem-text {
    flex: 1;
}

.ecosystem-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.ecosystem-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.check-list .material-icons-round {
    color: #10b981;
}

.mt-4 { margin-top: 1rem; }

.ecosystem-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-lines {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    animation: spin-slow 20s linear infinite;
}

.eco-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-card.central {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.eco-card.central img {
    width: 60px;
}

.eco-card.orbit-1 {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    top: 10%;
    left: 20%;
    color: #a78bfa;
    font-size: 32px;
}

.eco-card.orbit-2 {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    bottom: 15%;
    right: 15%;
    color: #60a5fa;
    font-size: 32px;
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

/* CTA Section */
.cta {
    max-width: 800px;
    margin: 4rem auto 8rem;
    padding: 0 2rem;
}

.cta-card {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    background: rgba(15, 23, 42, 0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-brand img {
    height: 24px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Advanced Features Section */
.advanced-features {
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(30, 41, 59, 0.3) 50%, rgba(15, 23, 42, 0) 100%);
    border-top: 1px solid var(--glass-border);
}

.advanced-container {
    max-width: 1200px;
    margin: 0 auto 6rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.advanced-container:last-child {
    margin-bottom: 0;
}

.advanced-text {
    flex: 1;
}

.advanced-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.advanced-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.advanced-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.brand-mockup-card {
    width: 80%;
    padding: 24px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.brand-mockup-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
    box-shadow: 0 30px 60px -12px rgba(59, 130, 246, 0.3);
}

.brand-mockup-inner {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.api-mockup-card {
    width: 90%;
    padding: 32px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.api-mockup-card:hover {
    transform: translateY(-10px);
}

.api-keyword { color: #c678dd; }
.api-string { color: #98c379; }
.api-function { color: #61afef; }
.api-comment { color: #5c6370; font-style: italic; }

@media (max-width: 900px) {
    .advanced-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .advanced-container.reverse {
        flex-direction: column-reverse;
    }
    
    .brand-mockup-card {
        transform: none;
        width: 100%;
    }
    
    .api-mockup-card {
        width: 100%;
        font-size: 0.8rem;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 1.5rem auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        margin-top: 2rem;
    }

    .ecosystem-container {
        flex-direction: column;
        text-align: center;
    }
    
    .check-list li {
        justify-content: center;
    }
    
    .eco-lines {
        display: none; /* Hide svg lines on mobile to avoid breaking width */
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 350px;
        transform: scale(0.9);
    }
    
    .fi-1 { right: 5%; }
    .fi-2 { left: 0%; }
    
    .nav-links a:not(.btn-primary) {
        display: none; /* Hide standard links on very small screens, keep login */
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .features {
        padding: 4rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .ecosystem {
        padding: 4rem 1.5rem;
    }
    
    .cta {
        padding: 0 1.5rem;
        margin: 2rem auto 4rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}
