/* Landing Page Styles */

body {
    margin: 0;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: white;
    top: 40%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

/* Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-icon .material-symbols-outlined {
    color: white;
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav .dark-mode-toggle {
    color: rgba(255, 255, 255, 0.85);
}

.header-nav .dark-mode-toggle:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.header-nav a {
    padding: 0.625rem 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-nav .btn-login {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--color-accent);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.hero-title span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 0 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.hero-cta .btn-primary {
    background: white;
    color: var(--color-primary);
    font-size: 1.125rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1rem 2rem;
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.features-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

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

.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

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

/* Platforms Section */
.platforms {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}

.platforms p {
    color: var(--text-secondary);
    margin: 0 0 2rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.platform-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.platform-logos img {
    height: 2rem;
    filter: grayscale(100%);
    transition: all var(--transition-fast);
}

.platform-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer CTA */
.footer-cta {
    padding: 5rem 2rem;
    background: var(--gradient-sunset);
    text-align: center;
}

.footer-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    font-size: 1.125rem;
}

.footer-cta .btn {
    background: white;
    color: var(--color-primary);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* Footer */
.footer {
    padding: 2rem;
    background: var(--bg-dark);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--color-secondary);
    text-decoration: none;
}

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

    .header-nav a:not(.btn-login) {
        display: none;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .features,
    .footer-cta {
        padding: 3rem 1.5rem;
    }
}

/* =========================================
   DARK MODE
   ========================================= */

[data-theme="dark"] .hero-bg {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
}

[data-theme="dark"] .features {
    background: var(--bg-light, #0f172a);
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card, #1e293b);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .feature-card p {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .platforms {
    background: var(--bg-card, #1e293b);
}

[data-theme="dark"] .platforms p {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .footer-cta {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
}

[data-theme="dark"] .footer {
    background: #060913;
}

/* Hide the Features link in dark header nav since it blends with hero */
@media (max-width: 768px) {
    [data-theme="dark"] .header-nav a:not(.btn-login):not(.dark-mode-toggle) {
        display: none;
    }
}