/* Brand Experience Stylesheet */
.brand-page-wrapper {
    --color-brand: #6366f1;
    --color-brand-soft: #a5b4fc;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --border-soft: rgba(255, 255, 255, 0.15);
    --border-faint: rgba(255, 255, 255, 0.08);
    --color-surface-alt: rgba(255, 255, 255, 0.05);
    --color-bg-base: rgba(255, 255, 255, 0.05);
    --color-surface: rgba(18, 18, 18, 0.65);
    --color-shadow: rgba(0, 0, 0, 0.55);

    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #050505;
    font-family: var(--font-family, "Inter", sans-serif);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

/* Video Player Styles */
.brand-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Skip Intro Button */
.brand-skip-btn {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: max(20px, env(safe-area-inset-right, 20px));
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-caption, 11px);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    height: auto;
}

.brand-skip-btn:hover {
    background: var(--color-brand);
    color: #ffffff;
    border-color: var(--color-brand);
    transform: translateY(-2px);
}

.brand-skip-btn svg {
    transition: transform 0.3s ease;
}

.brand-skip-btn:hover svg {
    transform: translateX(2px);
}

/* Overlay Container */
.brand-overlay-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    flex: 1 0 auto;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    box-sizing: border-box;
}

/* Animated Glow Circles */
.brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.brand-glow-cyan {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-brand) 35%, transparent) 0%, transparent 70%);
    bottom: -10%;
    right: 15%;
    animation: floatGlowCyan 16s ease-in-out infinite alternate;
}

.brand-glow-purple {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-brand-soft, var(--color-brand)) 30%, transparent) 0%, transparent 70%);
    top: 5%;
    left: 15%;
    animation: floatGlowPurple 20s ease-in-out infinite alternate;
}

@keyframes floatGlowCyan {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-60px, -40px) scale(1.15);
    }
}

@keyframes floatGlowPurple {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.1);
    }
}

/* Premium Header */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    width: 100%;
}

.brand-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.brand-official-logo {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-official-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-official-title {
    font-size: var(--fs-title-nav, 18px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-transform: capitalize;
    line-height: 1.2;
}

.brand-official-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.7;
    margin-top: 2px;
}

.brand-official-subtitle .highlight {
    color: var(--color-brand, #6366f1);
    font-weight: 700;
    letter-spacing: 0;
}

.brand-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand-nav-link {
    font-size: var(--fs-caption, 11px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.brand-nav-link:hover {
    color: var(--color-brand);
}

.brand-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: var(--fs-caption, 11px);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-nav-btn:hover {
    background: var(--color-brand);
    color: #ffffff;
    border-color: var(--color-brand);
}

/* Welcome Main Content */
.brand-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    margin: auto 0;
}

.brand-title {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -2px;
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.brand-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 580px;
    margin: 0 0 40px 0;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

.brand-btn-group {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1) 0.7s;
}

/* Action Buttons */
.brand-action-btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: var(--fs-body, 14px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    min-width: 180px;
    box-sizing: border-box;
    height: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-btn-primary {
    background-color: var(--color-brand);
    color: #ffffff;
    border: 1px solid var(--color-brand);
}

.brand-btn-primary:hover {
    background-color: var(--color-brand-soft, var(--color-brand));
    border-color: var(--color-brand-soft, var(--color-brand));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--color-brand) 40%, transparent);
}

.brand-btn-google {
    background-color: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(8px);
}

.brand-btn-google:hover {
    background-color: var(--overlay-hover);
    border-color: var(--border-strong);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-shadow);
}

.brand-btn-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.brand-btn-secondary {
    background-color: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(8px);
}

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

#brandBtnCreateAccount {
    display: none !important;
}

.brand-highlight {
    color: var(--color-brand);
    font-weight: 600;
}

.brand-auth-container {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: auto;
    z-index: 20;
    box-sizing: border-box;
}

.brand-overlay-container.brand-has-auth {
    justify-content: flex-start;
    gap: 24px;
}

.brand-overlay-container.brand-has-auth .brand-auth-container {
    margin: 16px auto 32px auto;
    flex: 1 0 auto;
}

/* Animation Reveal State */
.brand-overlay-container.brand-revealed {
    opacity: 1;
    pointer-events: auto;
}

.brand-overlay-container.brand-revealed .brand-title,
.brand-overlay-container.brand-revealed .brand-subtitle,
.brand-overlay-container.brand-revealed .brand-btn-group {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-overlay-container {
        padding: 20px 16px max(32px, env(safe-area-inset-bottom, 32px)) 16px;
        min-height: 100vh;
        justify-content: flex-start;
        gap: 20px;
    }

    .brand-overlay-container.brand-has-auth {
        gap: 16px;
        padding: 16px 12px max(32px, env(safe-area-inset-bottom, 32px)) 12px;
    }

    .brand-overlay-container.brand-has-auth .brand-auth-container {
        margin: 10px auto 24px auto;
        width: 100%;
        max-width: 100%;
    }

    .brand-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
    }

    .brand-logo-group {
        gap: 8px;
    }

    .brand-official-logo {
        width: 36px;
        height: 36px;
    }

    .brand-official-title {
        font-size: 15px;
    }

    .brand-official-subtitle {
        font-size: 9px;
    }

    .brand-nav {
        gap: 12px;
    }

    .brand-nav-link {
        font-size: 10.5px;
        letter-spacing: 0.5px;
    }

    .brand-nav-btn {
        padding: 6px 14px;
        font-size: 10.5px;
        letter-spacing: 0.5px;
    }

    .brand-main-content {
        margin: auto 0;
        padding: 10px 0;
        width: 100%;
    }

    .brand-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
        letter-spacing: -1px;
        margin-bottom: 12px;
    }

    .brand-subtitle {
        font-size: clamp(0.92rem, 3.5vw, 1.05rem);
        max-width: 100%;
        margin-bottom: 24px;
        line-height: 1.5;
        padding: 0 4px;
    }

    .brand-btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 10px;
        margin: 0 auto;
    }

    .brand-action-btn {
        width: 100%;
        min-width: 0;
        padding: 13px 20px;
        font-size: 15px;
    }

    #brandAuthContainer {
        padding: 10px 0 20px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 420px) {
    .brand-overlay-container {
        padding: 16px 12px max(24px, env(safe-area-inset-bottom, 24px)) 12px;
        gap: 16px;
    }

    .brand-nav {
        gap: 8px;
    }

    .brand-nav-link {
        font-size: 10px;
    }

    .brand-nav-btn {
        padding: 5px 10px;
        font-size: 10px;
    }

    .brand-title {
        font-size: 2.1rem;
    }
}
