:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #a855f7;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s, transform 0.3s;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

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

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

/* Mobile Menu Toggle (Hidden by default) */
#menu-toggle, .menu-icon {
    display: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white !important;
    box-shadow: 0 10px 20px var(--primary-glow);
    -webkit-text-fill-color: white;
}

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

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.app-badges {
    display: flex;
    gap: 1.5rem;
}

.app-badges a {
    display: inline-block;
    transition: transform 0.3s, filter 0.3s;
}

.app-badges a:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

@media (max-width: 580px) {
    .app-badges {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
}

.app-badges img {
    height: 45px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 320px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    z-index: 2;
    border: 8px solid var(--glass-border);
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(50px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Features Section */
.features {
    padding: 10rem 0;
    background: radial-gradient(ellipse at bottom, #1e1b4b 0%, var(--dark) 70%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s,
                border-color 0.4s,
                box-shadow 0.4s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

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

.feature-card p {
    color: var(--gray);
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: #020617;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer h4 {
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a:hover {
    color: var(--primary);
}

footer p {
    color: var(--gray);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

/* Legal Content (Privacy & Terms) */
.legal-content {
    padding: 10rem 0 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content h2 {
    margin: 2.5rem 0 1rem;
    color: var(--secondary);
    font-size: 1.75rem;
}

.legal-content h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.legal-content p, .legal-content li {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.legal-content ul li {
    list-style: disc;
    padding-left: 0.5rem;
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--secondary);
}

/* Support Page */
.support-container {
    padding: 10rem 0 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.support-header {
    text-align: center;
    margin-bottom: 4rem;
}

.support-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-section {
    margin-bottom: 6rem;
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.7;
}

.faq-item a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

.contact-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 4rem 2rem;
    border-radius: 32px;
    text-align: center;
}

.contact-form {
    text-align: left;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--white);
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--gray);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-submit:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .hero-image img {
        width: 280px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--white);
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    #menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    #menu-toggle:checked ~ .menu-icon {
        color: var(--primary);
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-bottom {
        padding-bottom: 4rem;
    }

    .legal-content {
        padding: 8rem 0 4rem;
    }

    .legal-content h1 {
        font-size: 2.25rem;
    }

    .support-container {
        padding: 8rem 0 4rem;
    }

    .support-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-image img {
        width: 240px;
    }

    .section-title {
        font-size: 2rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.4rem;
    }

    .support-header h1 {
        font-size: 2rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
