/* Custom background patterns */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-dots-pattern {
    background-image: radial-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-mesh-gradient {
    background: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(14, 165, 233, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.2) 0px, transparent 50%);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
    animation: float 8s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-shape:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

/* Glowing orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse-slow 6s ease-in-out infinite;
}

.glow-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.glow-orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: 60%;
    left: 60%;
    animation-delay: 1.5s;
}

/* Geometric shapes */
.geometric-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.1);
    animation: spin-slow 30s linear infinite;
}

.geometric-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    border-color: rgba(59, 130, 246, 0.1);
    transform: rotate(45deg);
    animation-delay: 0s;
}

.geometric-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    border-radius: 30%;
    border-color: rgba(14, 165, 233, 0.1);
    animation-delay: 10s;
}

.geometric-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.1), transparent);
    animation-delay: 20s;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
}

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

body {
    background: #111827;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Elements */
.bg-mesh-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(14, 165, 233, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.2) 0px, transparent 50%);
    z-index: -2;
}

.bg-grid-pattern {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: -1;
}

/* Floating Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse-slow 6s ease-in-out infinite;
}

.glow-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.glow-orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: 60%;
    left: 60%;
    animation-delay: 1.5s;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header */
.header {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    position: sticky;
    top: 0;
    z-index: 500;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3B82F6, #0EA5E9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6, #0EA5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: #ffffff;
}

.nav a.active {
    color: #0EA5E9;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #0EA5E9, #3B82F6);
    border-radius: 1px;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Both buttons are visible on desktop */

.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-outline {
    border: 1px solid #374151;
    color: #D1D5DB;
    background: transparent;
}

.btn-outline:hover {
    background: #374151;
    color: #ffffff;
}

.btn-primary {
    background: linear-gradient(135deg, #0EA5E9, #2563EB);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #D1D5DB;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #0EA5E9, #3B82F6, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Feature Sections */
.feature-section {
    padding: 5rem 0;
    position: relative;
}

.feature-section:nth-child(even) {
    background: rgba(31, 41, 55, 0.3);
    backdrop-filter: blur(8px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #D1D5DB;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #0EA5E9;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.feature-description {
    color: #D1D5DB;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #D1D5DB;
    font-size: 0.875rem;
}

.feature-list li::before {
    content: '✓';
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-content p {
    color: #D1D5DB;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-visual {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(14, 165, 233, 0.05));
    pointer-events: none;
}

/* Demo Section */
.demo-container {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dot.red { background: #EF4444; }
.demo-dot.yellow { background: #F59E0B; }
.demo-dot.green { background: #10B981; }

.demo-content {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #D1D5DB;
}

.demo-highlight {
    color: #0EA5E9;
    font-weight: 600;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid #374151;
    border-radius: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #0EA5E9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0EA5E9, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 24px;
    margin: 5rem 0;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.125rem;
    color: #D1D5DB;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Menu */
.header-content .mobile-menu-button {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(55, 65, 81, 0.5);
    z-index: 1000;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.hidden {
    transform: translateX(100%);
}

.mobile-menu:not(.hidden) {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
    position: relative;
}

.mobile-nav a:hover {
    color: #ffffff;
}

.mobile-nav a.active {
    color: #0EA5E9;
}

.mobile-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(135deg, #0EA5E9, #3B82F6);
    border-radius: 1px;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-buttons .btn {
    width: 100%;
    text-align: center;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }

    .nav {
        display: none;
    }

    .header-content .mobile-menu-button {
        display: block !important;
    }
    .header-buttons .btn-outline {
        display: none;
    }

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

    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Interactive Elements */
.interactive-demo {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.interactive-demo:hover {
    transform: scale(1.02);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 0.5rem;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.interactive-demo:hover .tooltip {
    opacity: 1;
}
