:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

/* Background Effects */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

section {
    padding: 6rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown>a::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover>a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.dropdown-menu a.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

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

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

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

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Chat Interface Simulation */
.chat-interface {
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.chat-bubble {
    padding: 1rem;
    border-radius: 12px;
    max-width: 80%;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.chat-bubble.user {
    background: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    animation-delay: 0.5s;
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    animation-delay: 1.5s;
}

.chart-placeholder {
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.chart-bar {
    position: absolute;
    bottom: 0;
    width: 20px;
    background: var(--accent-color);
    border-radius: 4px 4px 0 0;
    animation: growUp 1s ease forwards;
    animation-delay: 2s;
    opacity: 0;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Solutions Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.solution-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Dialog Market */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.marketplace-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    cursor: pointer;
}

.marketplace-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.marketplace-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Tech Stack */
.tech-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.7;
}

.tech-logo {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Footer */
footer {
    background: #020617;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes growUp {
    to {
        opacity: 1;
        height: var(--h);
    }

    from {
        opacity: 0;
        height: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.pricing-card.popular {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--gradient-main);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: white;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.features-list li.active {
    color: var(--text-main);
}

.check-icon {
    color: var(--primary-color);
    font-weight: bold;
}

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

.doc-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.doc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Content Section */
.content-section {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.content-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-section ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Header and Navigation */
    header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }

    nav {
        height: 70px;
        position: relative;
    }

    .logo {
        font-size: 1.25rem;
        flex: 1;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    nav .btn-primary {
        order: 3;
    }

    /* Hide desktop nav links on mobile - make it overlay */
    .nav-links {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 1001 !important;
        border-top: 1px solid var(--glass-border) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-sizing: border-box !important;
        pointer-events: auto !important;
    }

    .nav-links.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        left: 0 !important;
    }
    
    /* Ensure container doesn't hide overflow on mobile */
    .container {
        overflow: visible !important;
    }
    
    nav {
        overflow: visible !important;
    }

    .nav-links > a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.1rem;
        color: var(--text-main);
        text-decoration: none;
    }

    .nav-links > a:hover,
    .nav-links > a.active {
        color: var(--primary-color);
        background: rgba(59, 130, 246, 0.1);
    }

    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown > a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        color: var(--text-main);
        cursor: pointer;
    }

    .nav-dropdown > a:hover {
        color: var(--primary-color);
        background: rgba(59, 130, 246, 0.1);
    }

    .nav-dropdown > a::after {
        float: right;
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .nav-dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        display: none;
        border-radius: 0;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        display: block;
        padding: 0.875rem 1.5rem 0.875rem 2.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 0.95rem;
        color: var(--text-muted);
        text-decoration: none;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        color: var(--primary-color);
        background: rgba(59, 130, 246, 0.15);
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    nav .btn-primary {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-text .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Solution Grid */
    .solution-grid {
        grid-template-columns: 1fr;
    }

    /* Content Section */
    .content-section {
        padding: 2rem 1.5rem;
    }

    /* Marketplace Grid */
    .marketplace-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Tech Logos */
    .tech-logos {
        gap: 1.5rem;
    }

    .tech-logo {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}