:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Gradient Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text-muted);
    background: transparent;
}
.btn-ghost:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}
.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
}
.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: var(--dark);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Visual Mockup */
.hero-visual {
    margin-top: 5rem;
    position: relative;
}

.mockup-container {
    background: var(--dark);
    border-radius: 24px;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.mockup-header {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.mockup-content {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #d4d4d4;
    font-size: 0.9rem;
    overflow-x: auto;
    line-height: 1.7;
}
.mockup-content .code-comment { color: #6a9955; }
.mockup-content .code-keyword { color: #569cd6; }
.mockup-content .code-string { color: #ce9178; }
.mockup-content .code-decorator { color: #d19a66; }
.mockup-content .code-func { color: #dcdcaa; }
.mockup-small {
    font-size: 0.8rem;
    height: 280px;
    display: flex;
    align-items: center;
}
.badge-danger {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}
.badge-success {
    background: #dcfce7;
    color: #16a34a;
    border-color: #86efac;
}

/* Tech Grid */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Section alternate background */
.section-alt {
    background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
}

/* Demo grid */
.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.demo-card {
    padding: 1.5rem;
}
.demo-decrypted {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    height: 280px;
    color: #475569;
}
.demo-decrypted h4 {
    color: var(--dark-lighter);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.demo-decrypted ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}
.demo-decrypted li {
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}
.stats-section .stats-grid {
    background: var(--dark);
    color: white;
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 0;
}
.stats {
    background: var(--dark);
    color: white;
    border-radius: 40px;
    padding: 80px 0;
    margin: 0 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}
.pricing-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card-featured {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.03);
    box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.25);
}
.pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 1.5rem;
    color: var(--dark);
}
.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-muted);
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.pricing-features li i {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.pricing-card .badge {
    margin-bottom: 1rem;
}

/* Footer */
.footer,
footer {
    padding: 100px 0 50px;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section .stats-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 1.5rem 0 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.alert-success {
    background: #f0fdf4;
    color: #10b981;
    border: 1px solid #dcfce7;
}

.auth-footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Contact section */
.contact-section .contact-form {
    max-width: 560px;
    margin: 0 auto;
}
.contact-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-section .contact-form input,
.contact-section .contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.contact-section .contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.contact-section .form-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}
@media (max-width: 640px) {
    .contact-section .form-row {
        grid-template-columns: 1fr;
    }
}