/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Premium & Modern */
    --bg-color: #000000;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #111111;

    /* Typography - Proxima Nova Style */
    --font-body: 'Proxima Nova', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------
   RESET & SCROLL
------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: #000000;
    /* Primary fix for white scroll border */
}

body {
    background-color: #000000;
    /* Pitch black to prevent white gaps during scroll */
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
------------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ------------------------------------------------------------------
   NAVBAR
------------------------------------------------------------------ */
.nav {
    position: fixed;
    /* Keep it available but non-blocking */
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 60px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-logo img {
    height: clamp(32px, 5vw, 42px);
    width: auto;
}

.nav-links {
    display: flex;
    gap: clamp(16px, 2vw, 32px);
    background: rgba(255, 255, 255, 0.05);
    /* Ultra-subtle glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    /* White links */
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s var(--ease-out);
    position: relative;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.logo-white {
    filter: brightness(0) invert(1);
    transition: transform 0.3s var(--ease-out);
}

.logo-white:hover {
    transform: scale(1.05);
}

.nav-link-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s var(--ease-out);
    letter-spacing: 0.02em;
}

.nav-link-btn:hover {
    opacity: 1;
}

/* About Overlay */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.about-overlay.active {
    opacity: 1;
    visibility: visible;
}

.about-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 32px;
    max-width: 540px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

.about-title {
    color: #FFFFFF;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.about-details {
    margin-bottom: 40px;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.detail-value {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.text-link {
    transition: opacity 0.3s;
}

.text-link:hover {
    opacity: 0.7;
}

.about-social {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.social-link:hover {
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* Success State */
.success-container {
    display: none;
    text-align: center;
    padding: 20px 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.success-container.active {
    display: block;
    opacity: 1;
    animation: fadeInScale 0.6s var(--ease-out) forwards;
}

.success-container.exiting {
    animation: fadeOutScale 0.5s var(--ease-out) forwards;
}

#form-inner-wrapper {
    transition: all 0.6s var(--ease-out);
}

.success-text {
    color: #38A169;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

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

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(1.02) translateY(-10px);
    }
}

/* ------------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------------ */
.newsletter-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 24px 40px;
    /* Further reduced to ensure box fits on medium screens */
    background-color: #000000;
    /* Pitch black background */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Background covers full viewport height now */
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.25;
    /* 25% opacity requested */
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.06);
    }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 0, 0, 0.9) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    text-align: center;
    padding: 0 20px;
    /* Safe padding for mobile */
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    /* Reduced margin */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.main-title {
    font-family: var(--font-body);
    font-size: clamp(3.2rem, 8vw, 5rem);
    /* Slightly smaller max size */
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
    /* Reduced margin */
    letter-spacing: -0.04em;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.main-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.95);
    /* Nearly pure white for punchy contrast */
    margin-bottom: 28px;
    font-weight: 500;
    /* Increased weight for visibility */
    line-height: 1.5;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    /* Stronger shadow to pop from background */
}

/* ------------------------------------------------------------------
   SUBSCRIBE CONTAINER
------------------------------------------------------------------ */
.subscribe-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: clamp(24px, 4vw, 36px);
    /* Reduced padding to save vertical space */
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 16px 40px -8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 0 auto;
    width: 100%;
    max-width: 460px;
    /* Perfect width for 2x1+1 form stacking */
    transition: all 0.6s var(--ease-out);
    will-change: transform, opacity, box-shadow;
}

#form-inner-wrapper {
    transition: all 0.5s var(--ease-out);
    transform-origin: center top;
}

.subscribe-container:hover {
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 400px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111111;
    font-family: var(--font-body);
    margin-bottom: 6px;
    margin-left: 2px;
    display: block;
}

.form-group input {
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    /* Mailchimp aesthetic */
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    background: #F9F9F9;
    color: #111111;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input::placeholder {
    color: #888888;
}

.form-group input:focus {
    outline: none;
    border-color: #111111;
    background: #FFFFFF;
    transform: scale(1.01);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.02),
        0 0 0 6px rgba(0, 0, 0, 0.05);
}

.form-group input:hover {
    background: #FFFFFF;
    transform: scale(1.01);
    border-color: rgba(0, 0, 0, 0.2);
}

.subscribe-btn {
    margin-top: 8px;
    padding: 20px;
    background: #111111;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 0 rgba(0, 0, 0, 0);
    width: 100%;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    background: #000000;
}

.subscribe-btn:active {
    transform: translateY(0) scale(0.98);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .subscribe-container {
        padding: 28px;
        border-radius: 24px;
    }

    .nav {
        padding: 20px;
    }

    .nav-links {
        padding: 8px 16px;
    }

    .main-title {
        font-size: 3rem;
    }
}

/* ------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------ */
.footer {
    padding: 60px 24px;
    text-align: center;
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.1rem;
    color: #FFFFFF;
    opacity: 0.9;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
}


/* Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Social & Refinements */
.footer {
    padding: 80px 24px;
    background: #000000;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Scroll Hint & UX Improvements */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s;
}

.scroll-hint:hover {
    color: #FFFFFF;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Typography Balance */
p,
li {
    word-spacing: 0.02em;
}

.main-title,
.main-subtitle {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}