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

:root {
    --primary-bg: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #A95124;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --button-hover: #C26030;
}

body {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-weight: 400;
    background-color: #2a2420;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Full-bleed hero background */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/backdrop.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Content wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.brand-logo {
    height: 65px;
    width: auto;
    filter: brightness(1.2);
}

/* Main content */
.main-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Header 1 - Libre Franklin Medium, Title Case */
h1 {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    color: #FAF8F5;
}

/* Header 2 - Libre Franklin Medium, Title Case */
.subheadline {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.subheadline strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* LEADIN - Libre Franklin Medium, Uppercase */
.form-label {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 48px;
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Form styles */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto 20px;
}

.waitlist-form input {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

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

.waitlist-form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.submit-btn {
    font-family: 'Libre Franklin', sans-serif;
    padding: 18px 32px;
    background: var(--accent-color);
    color: #FAF8F5;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Form message */
.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    background: rgba(73, 83, 59, 0.4);
    color: #FAF8F5;
    border: 1px solid rgba(130, 140, 114, 0.6);
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Body copy - Libre Franklin Regular, Sentence Case */
.disclaimer {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 12px;
    margin-bottom: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Trusted section */
.trusted-section {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.trusted-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-transform: lowercase;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.brand-logo-small {
    height: 32px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(100%) brightness(2);
    transition: all 0.3s ease;
}

.brand-logo-small:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Footer tagline */
.footer-tagline {
    margin-top: 80px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Header 3 - PT Serif Regular Italic, Title Case */
.footer-tagline p {
    font-family: 'PT Serif', serif;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: #EAE1D4;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 40px 20px 60px;
    }

    .logo-container {
        margin-bottom: 40px;
    }

    .brand-logo {
        height: 40px;
    }

    h1 {
        margin-bottom: 24px;
    }

    .subheadline {
        margin-bottom: 36px;
    }

    .logos-container {
        gap: 32px;
    }

    .brand-logo-small {
        height: 28px;
    }

    .trusted-section {
        margin-top: 60px;
        padding-top: 40px;
    }

    .footer-tagline {
        margin-top: 60px;
    }

    .footer-tagline p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .waitlist-form input,
    .submit-btn {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .logos-container {
        gap: 24px;
    }

    .brand-logo-small {
        height: 24px;
    }
}

/* Contact button - fixed in bottom right corner */
.contact-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    text-transform: lowercase;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1814;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-description {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Contact form styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.contact-form .submit-btn {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .contact-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }

    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 24px;
    }
}

