:root {
    /* Brand Colors - From App Theme */
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #4834D4;
    --accent: #00CEC9;
    --success: #00B894;
    --danger: #FF7675;

    /* Backgrounds - Default Dark Theme */
    --bg-base: #09090B;
    --bg-surface: #18181B;
    --bg-surface-highlight: #27272A;
    --bg-glass: rgba(24, 24, 27, 0.7);
    --bg-glass-hover: rgba(39, 39, 42, 0.8);

    /* Text */
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --text-light: #71717A;

    /* Borders */
    --border: #27272A;
    --border-light: rgba(255, 255, 255, 0.05);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
    /* Backgrounds - Light Theme */
    --bg-base: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-highlight: #F1F5F9;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(248, 250, 252, 0.8);

    /* Text */
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Borders */
    --border: #E2E8F0;
    --border-light: rgba(0, 0, 0, 0.05);
}

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

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

/* Base Styles */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Effects */
.fixed-bg-glow {
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, rgba(9, 9, 11, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.fixed-bg-glow::after {
    content: '';
    position: absolute;
    bottom: -20vh;
    right: -40vw;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.1) 0%, rgba(9, 9, 11, 0) 70%);
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-6 {
    margin-top: 2rem;
}

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

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-secondary {
    background: var(--bg-surface-highlight);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

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

.btn-primary-outline:hover {
    background: rgba(108, 92, 231, 0.1);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-surface-highlight);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo img {
    height: 42px;
    width: auto;
    border-radius: 8px;
    /* Assuming the logo might be square, let's round edges slightly or let it be */
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

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

.nav-links a:not(.btn-primary-outline) {
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Device Mockup */
.device-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border: 8px solid var(--border);
    border-radius: 36px;
    background: var(--bg-base);
    aspect-ratio: 477 / 904;
    height: auto;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(108, 92, 231, 0.2);
    transform: rotate(5deg) translateY(-10px);
    transition: transform 0.5s ease;
}

.hero-visual:hover .device-frame {
    transform: rotate(0deg) translateY(0);
}

.mockup-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.screenshot-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
}

.app-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.app-screenshot.active {
    opacity: 1;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-nav {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mockup-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.mockup-header i {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(0, 206, 201, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.mockup-chart {
    height: 140px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.chart-bar {
    flex: 1;
    background: var(--bg-surface-highlight);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease;
}

.chart-bar.is-active {
    background: linear-gradient(180deg, var(--primary) 0%, rgba(108, 92, 231, 0.2) 100%);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.mockup-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface-highlight);
    padding: 16px;
    border-radius: 16px;
}

.mockup-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    background: rgba(108, 92, 231, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.mockup-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.mockup-item-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mockup-item-val {
    margin-left: auto;
    font-weight: 600;
}

.val-danger {
    color: var(--danger);
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header.text-left {
    text-align: left;
    margin: 0 0 40px;
}

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

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

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

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.75rem;
    color: var(--primary-light);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

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

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

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 64px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
    background: var(--bg-base);
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.link-group h4 {
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.fixed-bg-glow-small {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, rgba(9, 9, 11, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: stretch;
}

.contact-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.contact-icon.large-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.1));
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.contact-form-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-base);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input {
    padding-left: 48px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.contact-form input:focus+i,
.contact-form textarea:focus+i {
    color: var(--primary);
}

.shadow-btn {
    box-shadow: 0 10px 20px -5px rgba(108, 92, 231, 0.5);
    padding: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.form-status {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 20px;
    transition: var(--transition);
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--danger);
}

.btn-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}