:root {
    --primary: #be123c;
    --primary-hover: #9f1239;
    --secondary: #f472b6;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #4c0519 0%, #0f172a 100%);
}

.glow-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(190, 18, 60, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(-30%, -30%);
    }

    to {
        transform: translate(30%, 30%);
    }
}

nav {
    padding: calc(30px + env(safe-area-inset-top, 0)) 10% 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo-text {
    background: linear-gradient(to right, #fca5a5, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero {
    padding: 30px 10% 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
    gap: 100px;
    position: relative;
    z-index: 5;
    min-height: 50vh;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    padding-top: 10px;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 50px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.btn {
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(190, 18, 60, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(190, 18, 60, 0.3);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.btn-full {
    width: 100%;
}

.hero-video-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.2);
    margin: 30px 0;
    max-width: 75%;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Auth Card Styling */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 32px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.auth-tab {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    transition: 0.3s;
    position: relative;
}

.auth-tab.active {
    color: #fff;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more opaque */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    /* Explicit white text */
    font-size: 1rem;
    transition: 0.3s;
}

/* Fix for Chrome Autofill white-on-white issue */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #1e293b inset;
    /* Dark slate background */
    transition: background-color 5000s ease-in-out 0s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.form-footer {
    margin-top: 15px;
    text-align: center;
}

.form-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.auth-errors {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: none;
    text-align: left;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #475569;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.divider span {
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #0f172a;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.2s;
}

.social-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* Features Section */
.features {
    padding: 20px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 5;
    background: transparent;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.feature-card:hover {
    border-color: rgba(190, 18, 60, 0.4);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Footer Section */
.app-footer {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 80px 10% 40px;
    margin-top: 100px;
    position: relative;
    z-index: 5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #94a3b8;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding-top: 60px;
    }

    .hero-content,
    .hero h1,
    .hero p,
    .cta-group {
        text-align: center;
        justify-content: center;
    }

    .auth-card {
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

/* Demo Video Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close-btn:hover {
    background: rgba(190, 18, 60, 0.8);
    transform: scale(1.1);
}

.video-wrapper {
    width: 100%;
    height: 100%;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.watch-demo-btn {
    background: linear-gradient(135deg, rgba(190,18,60,0.2) 0%, rgba(244,114,182,0.1) 100%);
    border: 1px solid rgba(190,18,60,0.3);
    padding: 18px 32px;
}

.watch-demo-btn:hover {
    background: linear-gradient(135deg, rgba(190,18,60,0.3) 0%, rgba(244,114,182,0.2) 100%);
    border-color: rgba(190,18,60,0.5);
}

.play-icon {
    font-size: 1.4rem;
    margin-right: 8px;
    color: var(--primary);
}