@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Color Palette - Based on Synapse Blue */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.4);
    --secondary: #7c3aed;
    --accent: #f59e0b;
    
    /* Dark Theme (Default/Premium) */
    --bg: #09090b;
    --bg-alt: #18181b;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(24, 24, 27, 0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    
    /* Spacing & Sizing */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light mode can be added here if needed */

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

body {
    font-family: 'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.brand-font {
    font-size: 1.5rem;
    font-weight: 800;
}

/* --- Layout --- */

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

section {
    padding: 100px 0;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-group img {
    height: 40px;
    border-radius: 8px;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- Mobile Menu Toggle --- */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text);
}

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

/* --- Hero Section --- */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff 50%, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-note::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

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

.hero-image {
    position: relative;
    z-index: 10;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    border: 1px solid var(--border);
    transform: translateY(20px);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(0px); }
}

/* --- Features Grid --- */

.section-title {
    text-align: left;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.5);
    background: linear-gradient(180deg, #1f1f23 0%, rgba(37, 99, 235, 0.08) 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- Showcase Section --- */

.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.showcase-row:nth-child(even) {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
}

.showcase-image {
    flex: 1.5;
}

.showcase-image img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.showcase-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* --- AI Highlight --- */

.ai-section {
    background: radial-gradient(circle at center, #1e1b4b 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Footer --- */

footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

/* --- Responsive --- */

@media (max-width: 1024px) {
    section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 140px;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .cta-group {
        justify-content: flex-start;
    }
    
    .cta-note {
        justify-content: flex-start;
    }
    
    .showcase-row {
        flex-direction: column !important;
        text-align: left;
        gap: 3rem;
        margin-bottom: 6rem;
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .showcase-text ul {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
    }

    .lang-switcher {
        margin-bottom: 1.5rem;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .showcase-text h3 {
        font-size: 2rem;
    }

    .ai-grid .showcase-image {
        order: 2;
        margin-top: -1rem; /* Pull image closer to text */
    }

    .showcase-image {
        margin-top: 1rem;
    }

    .hero-image img {
        animation: none; /* Disable animation on mobile to save battery/performance */
        transform: translateY(0);
        margin-top: 2rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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