:root {
    --brand-color: #7C2D12;
    --brand-color-rgb: 124, 45, 18;
    --bg-color: #ffffff;
    --text-color: #333333;
    --gradient-mid: rgba(250,249,246,0.8);
    color-scheme: light;
}

html.dark-mode {
    color-scheme: dark;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* No scrolling for this hero page */
    transition: background-color 0.4s ease, color 0.4s ease;
}

.landing-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Background Video */
.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    transition: filter 0.4s ease;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 16px;
    opacity: 0;
}

.navbar > * {
    pointer-events: auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    display: none; /* Hidden on mobile */
}

/* Contribute pill & nav action buttons: appearance comes from .rh-btn--ghost.
   Only the mobile-hide behaviour and badge padding are page-specific. */
.adaptive-pill {
    display: none;
    height: 40px;
    padding: 0 16px;
    box-sizing: border-box;
    align-items: center;
}

.adaptive-pill:has(.dot-icon),
.adaptive-pill.has-dot-icon {
    padding-left: 5px;
    padding-right: 16px;
    gap: 8px;
}

.dot-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Footer Content */
.footer-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    opacity: 0;
}

.footer-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, var(--gradient-mid) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.footer-content {
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subtitle-line {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.small-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-color);
}

.subtitle-text {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.55;
    font-weight: 500;
}

.main-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 4.5rem);
    letter-spacing: -0.03em;
    line-height: 1;
    opacity: 0;
}

.action-buttons {
    display: flex;
    gap: 12px;
    opacity: 0;
}

.footer-right {
    display: flex;
    align-items: flex-end;
}

.footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.footer-pill {
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px !important;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .video-wrapper {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .navbar {
        padding: 24px 32px;
    }

    .brand-text {
        display: block;
    }

    .adaptive-pill {
        display: inline-flex;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        padding: 48px 32px;
    }
    
    .main-heading {
        font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    }
}


/* Button hover/press/focus and the primary sheen all live in
   buttons.css now, shared with the rest of the site. */
#theme-toggle .theme-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#theme-toggle:active .theme-icon {
    transform: rotate(-25deg) scale(0.85);
}

/* Dark Mode Overrides */
html.dark-mode {
    --bg-color: #0b0c10;
    --text-color: #f8fafc;
    --gradient-mid: rgba(11, 12, 16, 0.8);
    --brand-color: #F59E0B;
    --brand-color-rgb: 245, 158, 11;
}

html.dark-mode .video-wrapper {
    filter: brightness(0.55) saturate(1.15) contrast(1.05);
}

html.dark-mode .video-wrapper::after {
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(11, 12, 16, 0.45) 0%, rgba(11, 12, 16, 0.05) 35%, rgba(11, 12, 16, 0.25) 65%, rgba(11, 12, 16, 0.85) 100%),
        radial-gradient(120% 90% at 50% 100%, rgba(11, 12, 16, 0.6) 0%, rgba(11, 12, 16, 0) 60%);
}

html.dark-mode .video-bg-container::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45vh;
    height: 45vh;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(11, 12, 16, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

html.dark-mode .footer-pill {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}
