:root {
    --primary: #4361ee; /* Vibrant Blue */
    --primary-hover: #3b82f6;
    --primary-light: rgba(67, 97, 238, 0.08);
    --accent: #10b981; /* Green */
    --bg-main: #f8fafc; /* Light slate background */
    --bg-surface: #ffffff; /* White card surface */
    --text-main: #0f172a; /* Midnight Slate text */
    --text-muted: #64748b; /* Muted Slate text */
    --white: #ffffff;
    --border-color: #e2e8f0; /* Light borders */
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.06);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

a,
button,
[role="button"] {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 4px 6px rgba(67, 97, 238, 0.25));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo-text span {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background: #1e293b;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

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

.hero .container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 60px;
}

.hero-content {
    grid-column: span 6;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Image & Effects */
.hero-image {
    grid-column: span 6;
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 10;
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

.image-wrapper img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.12) 0%, transparent 60%);
    z-index: -1;
    filter: blur(80px);
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    z-index: 20;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
}

.card-1 {
    top: 30px;
    left: -40px;
    color: var(--accent);
}

.card-2 {
    bottom: 40px;
    right: -30px;
    color: #3b82f6;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: #f1f5f9; /* Soft grey backdrop */
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--white);
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(67, 97, 238, 0.1), 0 10px 10px -5px rgba(67, 97, 238, 0.04);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Workflows Section */
.workflows {
    padding: 120px 0;
    background: var(--bg-main);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.workflow-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.workflow-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(67, 97, 238, 0.1);
}

.workflow-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.workflow-card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

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

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    background: var(--bg-surface);
}

.footer p {
    font-size: 0.95rem;
}

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

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

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

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

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero .container {
        gap: 30px;
    }

    .glass-card {
        display: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        grid-column: span 12;
    }

    .hero-image {
        grid-column: span 12;
        margin-top: 40px;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    nav ul.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}