:root {
    --bg-color: #050511;
    --card-bg: #0e0e24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #4f46e5;
    /* Indigo/Blue */
    --accent-secondary: #06b6d4;
    /* Cyan */
    --accent-glow: rgba(79, 70, 229, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --font-main: 'Inter', sans-serif;
    --nav-height: 80px;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 100px 0;
}

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

.max-w-lg {
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--accent-secondary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 17, 0.85);
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Background grid effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.15);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

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

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    width: 100%;
    max-width: 500px;
    background: rgba(22, 22, 45, 0.6);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 1;
    border-radius: 50%;
}

/* Pseudo-Code Editor Style */
.code-editor {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-controls .red {
    background: #ff5f56;
}

.window-controls .yellow {
    background: #ffbd2e;
}

.window-controls .green {
    background: #27c93f;
}

.keyword {
    color: #ff79c6;
}

.string {
    color: #f1fa8c;
}

.comment {
    color: #6272a4;
}

.success {
    color: #50fa7b;
    margin-top: 15px;
    display: block;
}

/* Features Section */
.section-header {
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

/* Benefits Section */
.benefits {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0a1a 100%);
}

.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefits-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.benefit-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-list i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-top: 5px;
}

.benefit-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-list p {
    color: var(--text-secondary);
}

.benefits-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-ui-mockup {
    width: 100%;
    height: 400px;
    background: #1a1a2e;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.app-ui-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.sidebar {
    width: 70px;
    background: #0f0f1a;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
}

.sidebar-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.sidebar-icon.active {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #131325;
}

.header-bar {
    height: 50px;
    border-bottom: 1px solid var(--border-color);
    background: #16162c;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.search-bar {
    width: 200px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.dashboard-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-row {
    display: flex;
    gap: 20px;
    height: 120px;
}

.chart-card {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.chart-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(79, 70, 229, 0.2), transparent);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
    justify-content: space-around;
    padding-bottom: 10px;
}

.bar {
    width: 12px;
    background: var(--accent-secondary);
    border-radius: 2px 2px 0 0;
    opacity: 0.8;
}

.table-grid {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-row {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.abstract-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    z-index: 1;
    top: -50px;
    right: -50px;
}

/* CTA Section */
.cta-section {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 100%);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    background: #02020a;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    /* Javascript will trigger this */
}

.fade-in-right {
    opacity: 0;
}

.fade-in-left {
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 968px) {
    :root {
        --nav-height: 70px;
    }

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

    .hero-container,
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-visual,
    .benefits-visual {
        height: auto;
        min-height: 300px;
    }

    .nav-links {
        display: none;
        /* Mobile menu needed */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

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

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

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
}