/* CSS Variables - Brand Colors */
:root {
    /* Brand Colors */
    --bridge-green: #00FF99;
    --deep-truss-green: #00775C;
    --neon-glow: #00D4B0;
    --eggshell-white: #F5F3EB;
    --street-asphalt: #2C2C2C;
    --traffic-light-red: #D94F4F;
    --night-sky-blue: #1E2B38;

    /* Light Mode Colors */
    --bg-primary: #F5F3EB;
    --bg-secondary: #ffffff;
    --text-primary: #2C2C2C;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --header-bg: #1E2B38;
    --header-text: #F5F3EB;

    /* Horizontal inset so body text clears fixed hamburger + logo (narrow viewports override below) */
    --page-gutter-left: 2rem;
    --page-gutter-right: 2rem;
}

@media (max-width: 768px) {
    :root {
        --page-gutter-left: max(1.25rem, calc(env(safe-area-inset-left, 0px) + 3.25rem));
        --page-gutter-right: max(1.25rem, calc(env(safe-area-inset-right, 0px) + 3.75rem));
    }
}

@media (max-width: 480px) {
    :root {
        --page-gutter-left: max(1rem, calc(env(safe-area-inset-left, 0px) + 3.25rem));
        --page-gutter-right: max(1rem, calc(env(safe-area-inset-right, 0px) + 3.75rem));
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    height: 100%;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Homepage: bounce “scroll down” cue — fixed left gutter, not over centered video */
.hero-scroll-cue {
    position: fixed;
    left: max(0.75rem, env(safe-area-inset-left));
    bottom: clamp(4.5rem, 14vh, 10rem);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: var(--deep-truss-green);
    box-shadow: 0 2px 14px rgba(0, 119, 92, 0.35);
    color: var(--eggshell-white);
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-scroll-cue:hover {
    background: var(--neon-glow);
    box-shadow: 0 4px 18px rgba(0, 119, 92, 0.4);
}

.hero-scroll-cue:focus {
    outline: none;
}

.hero-scroll-cue:focus-visible {
    outline: 3px solid var(--bridge-green);
    outline-offset: 3px;
}

body.scroll-cue-dismissed .hero-scroll-cue {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-scroll-cue-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-scroll-cue {
        animation: heroScrollCueBounce 1.15s ease-in-out infinite;
    }
}

@keyframes heroScrollCueBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 768px) {
    .hero-scroll-cue {
        left: max(0.5rem, env(safe-area-inset-left));
        bottom: clamp(3.5rem, 12vh, 8rem);
        width: 48px;
        height: 48px;
    }

    .hero-scroll-cue-icon {
        width: 20px;
        height: 20px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 70vh;
    min-height: 500px;
    z-index: 1;
    background: linear-gradient(135deg, var(--deep-truss-green) 0%, var(--night-sky-blue) 100%);
    overflow: hidden;
    border-radius: 22px;
    box-sizing: border-box;
}

.video-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
}

.video-wrapper {
    position: relative;
    width: 33.333%;
    max-width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* Mobile-only video wrapper width states */
@media (max-width: 768px) {
    .video-wrapper.wrapper-active {
        width: 90%;
        max-width: 90%;
    }

    .video-wrapper.wrapper-prev,
    .video-wrapper.wrapper-next {
        width: 5%;
        max-width: 5%;
    }

    .video-wrapper.wrapper-hidden {
        width: 0%;
        max-width: 0%;
        overflow: hidden;
    }
}

.hero-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter, opacity;
}

/* Deprecated: Individual audio toggle styles (kept for reference, no longer used) */
.video-audio-toggle {
    display: none;
}

.hero-video.active {
    z-index: 3;
    filter: blur(0);
    opacity: 1;
}

.hero-video.prev,
.hero-video.next {
    z-index: 2;
    filter: blur(8px);
    opacity: 0.7;
}

.hero-video.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    visibility: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.5)
    );
    z-index: 2;
    pointer-events: none;
}

/* Centralized Video Controls Container */
.video-controls-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 20;
    padding: 8px 12px;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

/* Base Button Styles */
.video-control-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-control-btn:active {
    transform: scale(0.95);
}

/* Button Icon Styles */
.video-control-btn svg {
    width: 22px;
    height: 22px;
    color: white;
    display: block;
}

/* Volume Button Icon Toggle */
.video-volume-btn .audio-icon-muted {
    display: none;
}

.video-volume-btn.muted .audio-icon {
    display: none;
}

.video-volume-btn.muted .audio-icon-muted {
    display: block;
}

/* Play/Pause Button Icon Toggle */
.video-play-pause-btn .pause-icon {
    display: none;
}

.video-play-pause-btn .replay-icon {
    display: none;
}

.video-play-pause-btn.finished .replay-icon {
    display: block;
}

.video-play-pause-btn.finished .pause-icon {
    display: none;
}

.video-play-pause-btn.finished .play-icon {
    display: none;
}

.video-play-pause-btn.paused .play-icon {
    display: none;
}

.video-play-pause-btn.paused .pause-icon {
    display: block;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-primary);
    padding: 2rem 2rem 3rem 2rem;
    max-width: 800px;
    width: 100%;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.65rem;
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Hero Video Frame - Glassmorphic Container */
.hero-video-frame {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Hero Image Frame - Glassmorphic Container (matching video frame) */
.hero-image-frame {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-image-container {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

/* Email Signup Section */
.email-signup-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
}

#below-hero-videos {
    scroll-margin-top: 1.5rem;
}

#hero-videos {
    scroll-margin-top: 1.5rem;
}

/* Email Form */
.email-form {
    margin-top: 2rem;
    margin-bottom: 0;
}

.email-signup-section .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-truss-green);
    line-height: 1.4;
}

.email-signup-section .section-description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.email-signup-section .section-description:last-of-type {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--deep-truss-green);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.email-input:focus {
    border-color: var(--bridge-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.1);
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--street-asphalt);
    background: var(--bridge-green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    background: var(--neon-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

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

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.2);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.95rem;
    min-height: 1.5rem;
    font-weight: 500;
}

.form-message:empty {
    margin-top: 0;
    min-height: 0;
}

.form-message.success {
    color: var(--deep-truss-green);
}

.form-message.error {
    color: var(--traffic-light-red);
}

/* Video Section */
.video-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
    text-align: center;
}

.video-wrapper-embed {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: var(--street-asphalt);
}

.youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Beta launch countdown */
.countdown-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.countdown-section .container {
    max-width: 900px;
}

.countdown-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--deep-truss-green);
    line-height: 1.4;
}

.countdown-section-lede {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-timer {
    margin-top: 0.5rem;
}

.countdown-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.countdown-unit {
    flex: 1 1 100px;
    max-width: 140px;
    min-width: 88px;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.countdown-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--night-sky-blue);
    letter-spacing: -0.02em;
}

.countdown-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.countdown-live-message {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-truss-green);
}

/* CTA Sections */
.cta-section {
    padding: 1.75rem 2rem;
    text-align: center;
    background: var(--bg-primary);
}

/* Pilot Program Section - cream background */
#pilot-program {
    background: var(--bg-primary);
}

/* Creator Merch Section - white background (alternating) */
#merch-creator {
    background: var(--bg-secondary);
}

/* Tech Needs Section - white background (alternating) */
#tech-needs {
    background: var(--bg-secondary);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-truss-green);
    line-height: 1.4;
}

.cta-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--street-asphalt);
    background: var(--bridge-green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: var(--neon-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        overflow-x: hidden;
    }

    .hero-content {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .hero-video-frame {
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        margin: 0 1rem;
        border-radius: 16px;
        padding: 1.5px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hero-image-frame {
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        margin: 0 1rem;
        border-radius: 16px;
        padding: 1.5px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hero-image-container {
        border-radius: 14.5px;
        min-height: 300px;
    }
    
    .hero-image {
        min-height: 300px;
    }

    .video-container {
        height: 60vh;
        min-height: 400px;
        border-radius: 14.5px;
        overflow-x: hidden;
    }

    .video-carousel {
        overflow-x: hidden;
    }

    .video-controls-container {
        bottom: 16px;
        gap: 8px;
        padding: 6px 10px;
    }

    .video-control-btn {
        width: 36px;
        height: 36px;
    }

    .video-control-btn svg {
        width: 18px;
        height: 18px;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .email-input,
    .submit-btn {
        width: 100%;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .email-signup-section .section-title {
        font-size: 1.5rem;
    }

    .cta-description,
    .email-signup-section .section-description {
        font-size: 0.95rem;
    }

    .email-signup-section,
    .video-section,
    .countdown-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .cta-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .countdown-section-title {
        font-size: 1.5rem;
    }

    .countdown-value {
        font-size: 1.85rem;
    }

    .countdown-unit {
        max-width: none;
        flex: 1 1 calc(50% - 1rem);
    }

    .video-wrapper-embed {
        border-radius: 8px;
    }

    .youtube-embed {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        overflow-x: hidden;
    }

    .hero-content {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .hero-video-frame {
        max-width: calc(100% - 1.5rem);
        width: calc(100% - 1.5rem);
        margin: 0 0.75rem;
        border-radius: 12px;
        padding: 1.5px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hero-image-frame {
        max-width: calc(100% - 1.5rem);
        width: calc(100% - 1.5rem);
        margin: 0 0.75rem;
        border-radius: 12px;
        padding: 1.5px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hero-image-container {
        border-radius: 10.5px;
        min-height: 250px;
    }
    
    .hero-image {
        min-height: 250px;
    }

    .video-container {
        height: 50vh;
        min-height: 350px;
        border-radius: 10.5px;
        overflow-x: hidden;
    }

    .video-carousel {
        overflow-x: hidden;
    }

    .video-controls-container {
        bottom: 12px;
        gap: 6px;
        padding: 4px 8px;
    }

    .video-control-btn {
        width: 36px;
        height: 36px;
    }

    .video-control-btn svg {
        width: 18px;
        height: 18px;
    }

    .cta-title,
    .email-signup-section .section-title {
        font-size: 1.3rem;
    }

    .video-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .video-wrapper-embed {
        border-radius: 8px;
    }

    .youtube-embed {
        border-radius: 8px;
    }
}

/* Header with Hamburger Menu */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

/* Header Logo Container */
.header-logo-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #000000;
    box-shadow: 8px -8px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.header-logo-circle {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Between mobile and desktop: base rules leave a 200px logo — shrink so it does not cover body text */
@media (max-width: 768px) {
    .header-logo-container {
        top: 0.75rem;
        right: 0.75rem;
        width: 56px;
        height: 56px;
        padding: 8px;
    }
}

/* Hamburger Button */
.hamburger-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 44px;
    height: 44px;
    transition: opacity 0.3s ease;
}

.hamburger-btn:hover {
    opacity: 0.7;
}

.hamburger-btn:focus {
    outline: 2px solid var(--deep-truss-green);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--deep-truss-green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn .hamburger-line:nth-child(1) {
    transform-origin: top left;
}

.hamburger-btn .hamburger-line:nth-child(2) {
    opacity: 1;
}

.hamburger-btn .hamburger-line:nth-child(3) {
    transform-origin: bottom left;
}

/* Hamburger animation when open */
.hamburger-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, -2px);
}

.hamburger-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, 2px);
}

/* Language Toggle */
.language-toggle-container {
    position: fixed;
    top: 1rem;
    left: 4.5rem;
    z-index: 1002;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide language toggle when menu is open to prevent overlap */
.header.menu-open .language-toggle-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.language-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--deep-truss-green);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--deep-truss-green);
}

.language-toggle-btn:hover {
    background: var(--deep-truss-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 119, 92, 0.3);
}

.language-toggle-btn:focus {
    outline: 2px solid var(--deep-truss-green);
    outline-offset: 2px;
}

.language-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.lang-option {
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang-option.active {
    background: var(--deep-truss-green);
    color: white;
}

.lang-separator {
    color: var(--deep-truss-green);
    font-weight: 400;
}

@media (max-width: 768px) {
    .language-toggle-container {
        top: 0.75rem;
        left: 4rem;
    }
    
    .language-toggle-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .lang-option {
        padding: 0.1rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .language-toggle-container {
        top: 0.5rem;
        left: 4rem;
    }
    
    .language-toggle-btn {
        padding: 0.2rem 0.35rem;
        font-size: 0.65rem;
    }
    
    .lang-option {
        padding: 0.1rem 0.2rem;
    }
    
    .language-toggle-text {
        gap: 0.1rem;
    }
}

/* Backdrop/Overlay */
.header-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.backdrop-visible {
    opacity: 1;
    visibility: visible;
}

/* Menu Overlay */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
}

.header-menu.menu-open {
    transform: translateX(0);
}

.header-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Navigation List */
.header-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 3rem;
}

.header-nav-list li {
    margin: 0;
}

/* Header Links */
.header-link {
    display: block;
    color: var(--deep-truss-green);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 1rem;
    padding-left: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-align: right;
}

.header-link:hover {
    background-color: rgba(0, 119, 92, 0.08);
    color: var(--bridge-green);
}

.header-link:focus {
    outline: 2px solid var(--deep-truss-green);
    outline-offset: 2px;
}

.header-link.active {
    background-color: rgba(0, 119, 92, 0.12);
    color: var(--deep-truss-green);
    font-weight: 600;
}

.header-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background-color: var(--deep-truss-green);
    border-radius: 0 2px 2px 0;
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .header-menu {
        width: 320px;
    }

    .hamburger-btn {
        top: 1.25rem;
        left: 1.25rem;
    }

    .header-logo-container {
        top: 1.25rem;
        right: 1.25rem;
        width: 100px;
        height: 100px;
        padding: 12px;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .hamburger-btn {
        top: 0.75rem;
        left: 0.75rem;
        width: 40px;
        height: 40px;
        padding: 0.4rem;
    }

    .hamburger-line {
        width: 22px;
    }

    .header-logo-container {
        top: 0.75rem;
        right: 0.75rem;
        width: 50px;
        height: 50px;
        padding: 6px;
    }

    .header-menu {
        width: 260px;
    }

    .header-menu-content {
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .header-link {
        font-size: 15px;
        padding: 0.875rem;
    }
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid #e5e7eb;
    padding: 18px 2rem;
    margin-top: 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.65;
    flex-shrink: 0;
}

.footer-divider {
    color: #d1d5db;
    font-size: 12px;
    font-weight: 300;
    opacity: 0.6;
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--deep-truss-green);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    line-height: 1.3;
}

.footer-link:hover {
    color: var(--bridge-green);
    text-decoration: underline;
    text-decoration-color: var(--bridge-green);
    text-underline-offset: 3px;
}

.footer-link:focus {
    outline: 2px solid var(--bridge-green);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-text {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    footer {
        padding-top: 18px;
        padding-bottom: 18px;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .footer-container {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .footer-divider {
        font-size: 11px;
    }

    .footer-nav {
        gap: 0.75rem;
        align-items: center;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-logo {
        height: 20px;
    }

    .footer-text {
        font-size: 11px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .footer-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .footer-divider {
        display: none;
    }

    .footer-nav {
        gap: 1rem;
        order: 2;
        align-items: center;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-logo {
        height: 20px;
        order: 1;
    }

    .footer-text {
        font-size: 11px;
        text-align: center;
        order: 3;
    }
}

/* About Page Styles */

/* About Hero Section */
.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Privacy Policy Hero Section */
.privacy-hero {
    position: relative;
    overflow: hidden;
}

.privacy-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* FAQ Hero Section */
.faq-hero {
    position: relative;
    overflow: hidden;
}

.faq-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Georgia Hero Section */
.georgia-hero {
    position: relative;
    overflow: hidden;
}

.georgia-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* About Sections */
.about-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.about-section:nth-child(even) {
    background: var(--bg-secondary);
}

.about-section .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--deep-truss-green);
    line-height: 1.4;
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-primary);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    font-weight: 600;
    color: var(--deep-truss-green);
}

/* Extraction Methods */
.extraction-methods {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.method-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--bridge-green);
    border-radius: 8px;
    margin: 1rem 0;
}

.about-section:nth-child(even) .method-item {
    background: var(--bg-primary);
}

.method-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--deep-truss-green);
}

.method-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Email Signup Section on About Page */
.email-signup-section .cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .about-section .section-title {
        font-size: 1.5rem;
    }

    .about-content {
        font-size: 0.95rem;
    }

    .method-title {
        font-size: 1.1rem;
    }

    .email-signup-section .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .about-section .section-title {
        font-size: 1.3rem;
    }

    .about-content {
        font-size: 0.9rem;
    }

    .extraction-methods {
        gap: 1rem;
    }

    .method-item {
        padding: 1.25rem;
    }

    .method-title {
        font-size: 1rem;
    }

    .email-signup-section .cta-description {
        font-size: 0.95rem;
    }
}

/* Values Page Styles */

/* Values Hero Section */
.values-hero {
    position: relative;
    overflow: hidden;
}

.values-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Logo Container - Top Right */

/* Values Introduction Section */
.values-intro-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
}

.values-intro-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--bridge-green);
    border-radius: 2px;
}

.values-intro-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
    color: var(--text-primary);
}

.values-intro-content p {
    margin-bottom: 1.75rem;
    font-size: 1.15rem;
    font-weight: 400;
}

.values-intro-content p:last-child {
    margin-bottom: 0;
}

/* Principle Sections */
.principle-section {
    padding: 5.5rem 2rem;
    background: var(--bg-primary);
}

#principle-1,
#principle-3,
#principle-5,
#principle-7 {
    background: var(--bg-primary);
}

#principle-2,
#principle-4,
#principle-6 {
    background: var(--bg-secondary);
}

.principle-card {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--bridge-green);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.principle-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#principle-2 .principle-card,
#principle-4 .principle-card,
#principle-6 .principle-card {
    background: rgba(245, 243, 235, 0.6);
}

.principle-number {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--bridge-green) 0%, var(--neon-glow) 100%);
    color: var(--street-asphalt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 255, 153, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.principle-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--bridge-green);
    opacity: 0.3;
}

.principle-content {
    flex: 1;
    padding-top: 0.25rem;
}

.principle-title {
    font-size: 1.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--deep-truss-green);
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.75rem;
}

.principle-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bridge-green);
    border-radius: 2px;
}

.principle-description {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    line-height: 1.75;
    padding-left: 1rem;
    border-left: 3px solid var(--neon-glow);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.principle-relevance {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.85;
    font-style: italic;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 119, 92, 0.15);
}

/* Email Signup Section on Values Page */
.email-signup-section .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-truss-green);
    line-height: 1.4;
}

/* Responsive Design for Values Page */
@media (max-width: 768px) {
    .values-intro-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .values-intro-section::after {
        width: 50px;
        height: 3px;
    }

    .values-intro-content p {
        font-size: 1.05rem;
    }

    .principle-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .principle-card {
        flex-direction: column;
        gap: 1.75rem;
        align-items: center;
        text-align: center;
        padding: 2rem;
        border-left: none;
        border-top: 4px solid var(--bridge-green);
    }

    .principle-number {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }

    .principle-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .principle-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }

    .principle-description {
        font-size: 1.05rem;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--neon-glow);
        padding-top: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .principle-relevance {
        font-size: 1rem;
        padding-top: 1rem;
    }

    .email-signup-section .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .values-intro-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .values-intro-section::after {
        width: 40px;
    }

    .values-intro-content p {
        font-size: 1rem;
    }

    .principle-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .principle-card {
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .principle-number {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .principle-title {
        font-size: 1.4rem;
    }

    .principle-title::after {
        width: 35px;
    }

    .principle-description {
        font-size: 1rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .principle-relevance {
        font-size: 0.95rem;
    }

    .email-signup-section .section-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   Early Access Page Styles
   ============================================ */

/* Step 6.1: Early Access Hero Styles */
.share-hero {
    position: relative;
    overflow: hidden;
}

.share-hero .hero-content {
    position: relative;
    z-index: 2;
}

.share-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-truss-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.share-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.share-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Step 6.2: Social Sharing Section Styles */
.social-sharing-section {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

.sharing-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Step 6.3: Social Buttons Grid Layout */
.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .social-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 6.4: Individual Button Styles */
.social-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-primary);
    min-height: 140px;
}

.social-button:hover {
    border-color: var(--bridge-green);
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 153, 0.2);
}

.social-button:active {
    transform: translateY(0);
}

.social-button:focus {
    outline: 2px solid var(--bridge-green);
    outline-offset: 2px;
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.social-label {
    font-weight: 600;
    font-size: 1rem;
}

/* Step 6.5: Notification Styles */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
}

.copy-notification.success {
    background: var(--deep-truss-green);
}

.copy-notification.error {
    background: var(--traffic-light-red);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments for share page */
@media (max-width: 768px) {
    .share-title {
        font-size: 2rem;
    }

    .share-subtitle {
        font-size: 1.1rem;
    }

    .share-description {
        font-size: 1rem;
    }

    .social-sharing-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .sharing-title {
        font-size: 1.75rem;
    }

    .social-button {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }

    .social-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .share-title {
        font-size: 1.75rem;
    }

    .share-subtitle {
        font-size: 1rem;
    }

    .share-description {
        font-size: 0.95rem;
    }

    .social-sharing-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .sharing-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .social-button {
        padding: 1.25rem 1rem;
        min-height: 110px;
    }

    .social-icon {
        font-size: 1.75rem;
    }

    .copy-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Phase 7: Mastodon Instance Selector Styles */
.mastodon-instance-selector {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.instance-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.instance-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.instance-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.instance-input:focus {
    border-color: var(--bridge-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.1);
}

.instance-input::placeholder {
    color: var(--text-secondary);
}

.share-instance-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--street-asphalt);
    background: var(--bridge-green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-instance-btn:hover {
    background: var(--neon-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

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

.share-instance-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.2);
}

.instance-help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .mastodon-instance-selector {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .instance-input-group {
        flex-direction: column;
    }

    .share-instance-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mastodon-instance-selector {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .instance-label {
        font-size: 0.9rem;
    }

    .instance-input {
        font-size: 0.95rem;
    }

    .instance-help-text {
        font-size: 0.8rem;
    }
}

/* Two-Column CTA Layout */
.cta-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-column {
    display: flex;
    flex-direction: column;
}

.cta-column-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-truss-green);
    line-height: 1.4;
}

.cta-column-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cta-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-column-title {
        font-size: 1.3rem;
    }
}

/* 404 Error Page Styles */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.error-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.error-content {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--deep-truss-green) 0%, var(--night-sky-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--street-asphalt);
    background: var(--bridge-green);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.error-btn:hover {
    background: var(--neon-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

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

.error-btn-secondary {
    background: transparent;
    border: 2px solid var(--deep-truss-green);
    color: var(--deep-truss-green);
}

.error-btn-secondary:hover {
    background: var(--deep-truss-green);
    color: var(--eggshell-white);
    box-shadow: 0 4px 15px rgba(0, 119, 92, 0.3);
}

@media (max-width: 768px) {
    .error-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
        min-height: 60vh;
    }

    .error-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }

    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.75rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: var(--page-gutter-left);
        padding-right: var(--page-gutter-right);
    }
}

/* Homepage only: headline + subhead each one line; same column width as video; size scales to inner width */
.hero--home .hero-content {
    /* Match .hero-video-frame max-width so headline and media share one vertical axis */
    max-width: min(1200px, calc(100% - 2rem));
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    /* Inner text width ≈ content box minus horizontal padding (matches --page-gutter-* on all breakpoints) */
    --hero-text-width: max(
        0px,
        calc(
            min(1200px, calc(100vw - 2rem)) - var(--page-gutter-left) -
                var(--page-gutter-right)
        )
    );
}

.hero--home .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero--home .hero-title,
.hero--home .hero-subtitle {
    white-space: nowrap;
    line-height: 1.2;
}

/* ~45 chars: divisor ≈ chars × avg 0.5em glyph width; min() caps huge screens */
.hero--home .hero-title {
    font-size: min(
        4rem,
        max(0.65rem, calc(var(--hero-text-width) / 22.5))
    );
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
}

/* ~55 chars: larger divisor than title so subtitle reads smaller; still one line */
.hero--home .hero-subtitle {
    font-size: min(
        2.35rem,
        max(0.5rem, calc(var(--hero-text-width) / 32))
    );
    font-weight: 400;
    margin-bottom: 0;
    color: var(--text-secondary);
    letter-spacing: 0.015em;
}

/* Narrow viewports: one-line math caps the headline ~16px; allow wrap + clamp for readable display type */
@media (max-width: 768px) {
    .hero--home .hero-title,
    .hero--home .hero-subtitle {
        white-space: normal;
        text-wrap: balance;
        max-width: 100%;
    }

    .hero--home .hero-title {
        font-size: clamp(1.7rem, 4vw + 0.75rem, 2.75rem);
        line-height: 1.18;
    }

    .hero--home .hero-subtitle {
        font-size: clamp(1.05rem, 2.2vw + 0.65rem, 1.35rem);
        line-height: 1.35;
    }
}

/* Homepage: intro stack (title → signup → countdown → videos) */
.hero--home {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.hero--home .hero-content {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.hero--home .email-signup-section--home {
    width: 100%;
    max-width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem var(--page-gutter-left) 1.75rem var(--page-gutter-right);
    background: transparent;
    box-sizing: border-box;
}

.hero--home .email-signup-section--home .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
}

.hero--home .email-signup-section--home .section-description {
    font-size: 0.975rem;
    margin-bottom: 1.25rem;
    max-width: 560px;
}

.hero--home .email-signup-section--home .email-form {
    margin-top: 0;
}

.hero--home .email-signup-section--home .section-description:last-of-type {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.hero--home .countdown-section--home {
    width: 100%;
    max-width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.75rem var(--page-gutter-left) 2rem var(--page-gutter-right);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(30, 43, 56, 0.06);
    box-sizing: border-box;
}

.hero--home .countdown-section--home .countdown-section-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.hero--home .countdown-section--home .countdown-section-lede {
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
}

.hero--home .countdown-section--home .countdown-unit {
    background: var(--bg-primary);
    border-color: rgba(0, 119, 92, 0.12);
}

.hero--home .countdown-section--home .countdown-value {
    color: var(--deep-truss-green);
}

.hero--home .hero-video-frame {
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .hero--home {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .hero--home .email-signup-section--home,
    .hero--home .countdown-section--home {
        max-width: calc(100% - 2rem);
    }

    .hero--home .email-signup-section--home {
        padding-top: 0.75rem;
        padding-bottom: 1.25rem;
    }

    .hero--home .email-signup-section--home .section-title {
        font-size: 1.35rem;
    }

    .hero--home .countdown-section--home {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        border-radius: 14px;
    }

    .hero--home .countdown-section--home .countdown-section-title {
        font-size: 1.25rem;
    }

    .hero--home .hero-video-frame {
        margin-top: 1.75rem;
    }
}
