/* ==========================================
   IceCube - Coming Soon Page Styles
   ========================================== */

/* CSS Variables */
:root {
    --bg-primary: #141414;
    --text-primary: #ffffff;
    --input-bg: #262626;
    --button-border: #262626;
}

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

/* Hide mobile-only line breaks on desktop */
.mobile-only {
    display: none;
}

/* Body */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==========================================
   Header & Logo
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 85px 20px 20px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.logo {
    width: clamp(120px, 15vw, 200px);
    height: auto;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Main Content
   ========================================== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 650px;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: clamp(20px, 3vh, 42px);
    line-height: 1.2;
    white-space: nowrap;
}

.subtitle {
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 400;
    line-height: 140%;
    max-width: 415px;
    margin: 0 auto;
}

/* ==========================================
   Footer & Email Form
   ========================================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.waitlist-text {
    font-size: clamp(11px, 1vw, 12px);
    font-weight: 400;
    line-height: 150%;
    text-align: center;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 565px;
    width: 100%;
}

.input-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
}

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

.email-input {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--input-bg);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    letter-spacing: 0.3em;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: var(--text-primary);
    opacity: 1;
    text-transform: uppercase;
}

.email-input:focus {
    outline: none;
    background-color: #2d2d2d;
}

.submit-button {
    padding: 16px 40px;
    background-color: transparent;
    border: 1px solid var(--button-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(140px, 15vw, 186px);
}

.submit-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3d3d3d;
}

.submit-button:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   Form Messages
   ========================================== */
.form-message {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: none;
    margin-top: 8px;
}

.form-message.success {
    background-color: rgba(78, 92, 82, 0.3);
    border: 1px solid #4e5c52;
    color: #c8ccc9;
    display: block;
}

.form-message.error {
    background-color: rgba(130, 15, 26, 0.3);
    border: 1px solid #820f1a;
    color: #f9b8bf;
    display: block;
}

/* ==========================================
   Consent Checkbox
   ========================================== */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    max-width: 565px;
    width: 100%;
}

.consent-checkbox {
    margin-top: 3px;
    cursor: pointer;
    min-width: 16px;
    min-height: 16px;
}

.consent-text {
    font-size: 11px;
    line-height: 150%;
    color: #888;
    text-align: left;
}

.consent-link {
    color: #fff;
    text-decoration: underline;
}

.consent-link:hover {
    color: #ccc;
}

/* ==========================================
   Mobile Responsive (≤768px)
   ========================================== */
@media (max-width: 768px) {
    header {
        padding: 77px 20px 20px;
    }

    .logo {
        width: 150px;
    }

    /* Main content positioned in second quarter (25%-50%) */
    main {
        position: fixed;
        top: 22vh;
        height: 22vh;
        left: 0;
        right: 0;
        flex: none;
    }

    h1 {
        font-size: 50px;
        letter-spacing: 0.3em;
        line-height: 61px;
        margin-bottom: 0px;
        white-space: normal;
    }

    .mobile-break::after {
        content: "\A";
        white-space: pre;
    }

    /* Show mobile-only line breaks on mobile */
    .mobile-only {
        display: inline;
    }

    .subtitle {
        width: calc(100% - 40px);
        max-width: 415px;
        font-size: 14px;
        line-height: 150%;
        padding-top: 15px;
    }

    footer {
        padding: 20px 20px 16px;
    }

    .email-form {
        max-width: 353px;
    }

    .input-row {
        flex-direction: column;
        gap: 8px;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
    }

    .email-input {
        width: 100%;
        text-align: center;
    }

    .email-input::placeholder {
        text-align: center;
    }

    .consent-label {
        max-width: 353px;
    }

    .consent-text {
        font-size: 10px;
    }

    .submit-button {
        width: 100%;
    }
}

/* ==========================================
   Contact Form Modal
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 40px;
    border: 1px solid #262626;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.close-modal {
    color: #888;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ccc;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--input-bg);
    border: 1px solid #333;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    background-color: #2d2d2d;
    border-color: #444;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    padding: 16px 40px;
    background-color: transparent;
    border: 1px solid var(--button-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3d3d3d;
}

.contact-submit-btn:active {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.contact-message {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.contact-message.success {
    background-color: rgba(78, 92, 82, 0.3);
    border: 1px solid #4e5c52;
    color: #c8ccc9;
    display: block;
}

.contact-message.error {
    background-color: rgba(130, 15, 26, 0.3);
    border: 1px solid #820f1a;
    color: #f9b8bf;
    display: block;
}

/* ==========================================
   Small Mobile (≤480px)
   ========================================== */
@media (max-width: 480px) {
    .logo {
        width: 120px;
    }

    .subtitle {
        font-size: 13px;
    }

    .waitlist-text {
        font-size: 12px;
    }

    .email-input {
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0.3em;
        text-align: center;
    }

    .email-input::placeholder {
        text-align: center;
    }

    .submit-button {
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0.3em;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

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