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

:root {
    --primary: #0078d4;
    --primary-glow: rgba(0, 120, 212, 0.3);
    --secondary: #00bcf2;
    --accent: #6366f1;
    --bg-dark: #090d16;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-dim: #64748b;
    --accent-gradient: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    --premium-gradient: linear-gradient(135deg, #0078d4 0%, #6366f1 50%, #ec4899 100%);
    --surface-blur: blur(20px);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Mesh Animation */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
}

.mesh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: move 20s infinite alternate;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

/* Typography Enhancements */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(5, 6, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

nav a {
    color: #475569 !important;
    transition: color 0.3s ease;
}

nav.scrolled a {
    color: var(--text-dim) !important;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

nav.scrolled .logo {
    color: #fff;
}

.logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    position: relative;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    border: none;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.5);
    background: linear-gradient(135deg, #0086f1 0%, #00cbfb 100%);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 180px 5% 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-mockup {
    width: 100%;
    max-width: 1100px;
    perspective: 1000px;
    margin-top: 4rem;
}

.mockup-inner {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.mockup-inner img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* Glass Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 120, 212, 0.2);
}

.glass-card i {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.glass-card p {
    color: var(--text-dim);
}

/* Spotlight Section */
.feature-row {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8%;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) .feature-content {
    direction: ltr;
}

.feature-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.feature-visual {
    position: relative;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
}

.feature-visual img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.feature-visual:hover img {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 40px 80px rgba(0, 120, 212, 0.3);
}

/* Footer */
footer {
    padding: 100px 5% 50px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--card-border);
    text-align: center;
}

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

/* Utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 968px) {
    .feature-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    h1 {
        font-size: 3.5rem;
    }
}

/* Removed unused Hero SS styles */

/* Screenshots Hover Effect */
#screenshots .glass-card {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
}

#screenshots .glass-card:hover {
    transform: translateY(-10px) rotateX(1deg) rotateY(-1deg);
    box-shadow: 0 40px 80px rgba(0, 120, 212, 0.2);
}

/* Text-Focused Hero Styles */
.hero-text-focused {
    min-height: 80vh;
    padding: 120px 5% 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #0c1220 0%, #030712 100%);
}

.hero-text-focused h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 120, 212, 0.3);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    /* Fix Nav Bar Overlap */
    nav {
        padding: 1rem 5% !important;
    }
    
    .logo {
        font-size: 1.2rem !important;
    }
    
    .logo img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .nav-link-text {
        display: none;
    }
    
    /* Fix Hero Buttons Wrapping */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn-primary {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
    }
    
    /* Fix Hero Title Sizing */
    .hero-text-focused h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-desc {
        font-size: 1rem !important;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* AI Feature Font and Padding Fixes */
    .glass-card {
        padding: 1.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    /* AI Points Padding Reduction */
    #ai ul {
        gap: 0 !important;
    }
    
    #ai li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Remove padding above Intelligent Workflows */
    #workflows {
        padding-top: 0 !important;
    }
}

/* Nav Button Style */
.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 188, 242, 0.3);
}

nav.scrolled a.nav-btn {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border: none !important;
}

nav.scrolled a.nav-btn:hover {
    box-shadow: 0 0 20px var(--primary-glow) !important;
}
