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

:root {
    /* Colors extracted from background image */
    --sunset-amber: #C68A4A;
    --sunset-orange: #E6A665;
    --warm-salmon: #DFA28C;
    --prairie-brown: #6A4B2A;
    --horizon-brown: #3A2A1C;
    --deep-black: #0B0B0B;

    /* Text colors */
    --white: #FFFFFF;
    --muted-gray: #D6D6D6;

    /* Legacy naming for easier migration */
    --primary-color: var(--sunset-amber);
    --accent-color: var(--warm-salmon);
    --dark-bg: var(--deep-black);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--white);
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background with local image and advanced overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            rgba(11, 11, 11, 0.85) 0%,
            rgba(198, 138, 74, 0.20) 40%,
            rgba(230, 166, 101, 0.15) 60%,
            rgba(11, 11, 11, 0.85) 100%
        ),
        url('/assets/images/mountain-bg-dark.jpg') center/cover no-repeat fixed;
    z-index: -1;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Header with glassmorphism */
.site-header {
    padding: 1.5rem 2rem;
    text-align: center;
    background: rgba(11, 11, 11, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(198, 138, 74, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sunset-amber), var(--sunset-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 0 30px rgba(198, 138, 74, 0.5);
    animation: fadeInScale 1s ease-out 0.2s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tagline p {
    font-size: 1.1rem;
    color: var(--muted-gray);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(214, 214, 214, 0.3);
    animation: fadeInScale 1s ease-out 0.4s both;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-style: italic;
}

.hero-subheadline {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg,
        var(--sunset-amber) 0%,
        var(--sunset-orange) 50%,
        var(--warm-salmon) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    animation: gradientShift 8s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(198, 138, 74, 0.6));
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--muted-gray);
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 20px rgba(214, 214, 214, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Signup Form with glassmorphism */
.signup-container {
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 550px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(11, 11, 11, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(198, 138, 74, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.signup-form input[type="email"] {
    padding: 1.25rem 1.75rem;
    font-size: 1.1rem;
    border: 2px solid rgba(198, 138, 74, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.signup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.signup-form input[type="email"]:hover {
    border-color: rgba(198, 138, 74, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.signup-form input[type="email"]:focus {
    border-color: var(--sunset-orange);
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 4px rgba(230, 166, 101, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--sunset-amber), var(--warm-salmon));
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(198, 138, 74, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(198, 138, 74, 0.6),
        0 10px 20px rgba(223, 162, 140, 0.4);
    background-position: 100% 50%;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgb(76, 175, 80);
    color: rgb(167, 255, 170);
    display: block;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgb(244, 67, 54);
    color: rgb(255, 150, 150);
    display: block;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3);
}

/* Footer */
.site-footer {
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(11, 11, 11, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(198, 138, 74, 0.3);
    font-size: 0.95rem;
    color: rgba(214, 214, 214, 0.7);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.site-footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        padding: 1.25rem 1rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .tagline p {
        font-size: 0.95rem;
    }

    .hero-headline {
        margin-bottom: 1rem;
    }

    .hero-subheadline {
        margin-bottom: 1rem;
    }

    .hero-tagline {
        margin-bottom: 2rem;
    }

    .signup-form {
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .signup-form input[type="email"] {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem 0.75rem;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .tagline p {
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .signup-form {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .signup-form input[type="email"] {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .btn-primary {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Loading animation for page */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

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

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--sunset-orange);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--sunset-amber), var(--warm-salmon));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-amber));
}
