:root {
    /* Colors extracted from app_theme.dart */
    --primary-dark: #121212;
    --secondary-dark: #1A1F3A;
    --card-dark: #1E1E1E;
    --accent-blue: #5E81F3;
    --accent-purple: #7B68EE;
    --text-primary: #E8E8E8;
    --text-secondary: #B0B0B0;
    --text-tertiary: #808080;

    /* Gradients */
    --bg-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    --accent-gradient: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
.header {
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.1);
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-blue) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(94, 129, 243, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(94, 129, 243, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(94, 129, 243, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    background: rgba(94, 129, 243, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(94, 129, 243, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(94, 129, 243, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(94, 129, 243, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fade-in-up 0.8s ease-out 0.6s backwards;
}

.hero-buttons a:nth-child(1) {
    animation: fade-in-up 0.8s ease-out 0.7s backwards;
}

.hero-buttons a:nth-child(2) {
    animation: fade-in-up 0.8s ease-out 0.8s backwards;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fade-in-up 0.8s ease-out 0.4s backwards;
}

.app-preview-card {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview-card img {
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(94, 129, 243, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.app-preview-card:hover {
    transform: scale(1.05);
}

.app-preview-card:hover img {
    filter: drop-shadow(0 25px 70px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 50px rgba(94, 129, 243, 0.5));
}

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

.glow-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue) 0%, var(--accent-purple) 100%);
    filter: blur(120px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-dark);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 129, 243, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: rgba(94, 129, 243, 0.3);
    box-shadow: 0 15px 40px rgba(94, 129, 243, 0.2);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    background: rgba(94, 129, 243, 0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(94, 129, 243, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(94, 129, 243, 0.25);
    box-shadow: 0 6px 20px rgba(94, 129, 243, 0.4);
}

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

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

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 5rem 1.5rem 2rem;
        gap: 3rem;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

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

    .hero-visual {
        width: 100%;
        padding: 0 1rem;
    }

    .app-preview-card img {
        max-width: 180px !important;
    }

    .glow-effect {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .features {
        padding: 4rem 1.5rem;
    }

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

    .feature-card {
        padding: 1.75rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .navbar {
        padding: 0;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .logo {
        height: 35px;
        width: 35px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .btn-primary {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}