/* ===================================
   COMMON STYLES FOR ALL PAGES
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    caret-color: transparent;
}

input, textarea, [contenteditable] {
    caret-color: auto;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   HEADER NAVIGATION (COMMON TO ALL PAGES)
   =================================== */
header {
    position: fixed;
    top: 10px;
    right: 40px;
    z-index: 1000;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 8px 30px;
    transition: all 0.3s ease;
}

/*nav:hover {
    background: rgba(0, 0, 0, 0.7);
}*/

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

/*nav a:hover {
    color: rgba(255, 255, 255, 0.7);
}
*/
nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   MODAL STYLES (COMMON TO ALL PAGES)
   =================================== */
.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 350px;
/*    border-radius: 12px;
*/    padding: 10px 10px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    clip-path: polygon(
        0 0,                      /* top-left */
        100% 0,                   /* top-right */
        100% 100%,                /* bottom-right */
        30px 100%,                /* bottom edge before cut */
        0 calc(100% - 30px)       /* diagonal cut on bottom-left */
    );
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 35px;
    height: 35px;
/*    background: #000;
*/    color: white;
    border: 1px solid #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
     clip-path: polygon(
        0 0,                      /* top-left */
        100% 0,                   /* top-right */
        100% 100%,                /* bottom-right */
        10px 100%,                /* bottom edge before cut */
        0 calc(100% - 10px)       /* diagonal cut on bottom-left */
    );
}

/*.modal-close:hover {
    background: #333;
}*/

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h2 {
    font-size: 12px;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #000;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
}

.modal-header p {
    font-size: 12px;
    margin: 0;
    color: #666;
}

.modal-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: #f5f5f5;
/*    border-radius: 8px;
*/    font-size: 12px;
    font-family: "Roboto", sans-serif;
    transition: background 0.3s ease;
    color: #000;
    clip-path: polygon(
        0 0,                      /* top-left */
        100% 0,                   /* top-right */
        100% 100%,                /* bottom-right */
        10px 100%,                /* bottom edge before cut */
        0 calc(100% - 10px)       /* diagonal cut on bottom-left */
    );
}

.form-input:focus {
    outline: none;
    background: #ebebeb;
}

.form-input::placeholder {
    color: #999;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.modal-submit {
    width: auto;
    padding: 16px 50px;
    background: #000;
    color: white;
    border: none;
/*    border-radius: 8px;
*/    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    display: block;
    margin: 0 auto;
    clip-path: polygon(
        0 0,                      /* top-left */
        100% 0,                   /* top-right */
        100% 100%,                /* bottom-right */
        10px 100%,                /* bottom edge before cut */
        0 calc(100% - 10px)       /* diagonal cut on bottom-left */
    );
}

.modal-submit:hover {
    background: #333;
}

.modal-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
    display: none;
    text-align: center;
    padding: 20px;
}

.success-message.active {
    display: block;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #000;
}

.success-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ===================================
   WAITLIST MODAL — specific overrides
   =================================== */
#waitlistModal .modal-content {
    padding: 36px 32px 40px;
    max-width: 360px;
    width: 92%;
}

#waitlistModal .modal-close {
    top: 14px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    clip-path: none;
    padding: 0;
}

#waitlistModal .modal-close img {
    transition: transform 0.35s ease;
    display: block;
}

#waitlistModal .modal-close:hover img {
    transform: rotate(90deg);
}

#waitlistModal .modal-header {
    text-align: center;
    margin: 0 0 28px;
}

#waitlistModal .modal-header h2 {
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
    text-transform: uppercase;
}

#waitlistModal .modal-header p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

#waitlistModal .modal-form {
    margin-bottom: 0;
}

#waitlistModal .form-group {
    margin-bottom: 16px;
}

#waitlistModal .form-input {
    background: #fff;
    border: 1px dashed #bbb;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    padding: 14px 12px;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #111;
    width: 100%;
    box-sizing: border-box;
}

#waitlistModal .form-input::placeholder {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #bbb;
    text-transform: uppercase;
}

#waitlistModal .form-input:focus {
    background: #fff;
    border-color: #111;
    outline: none;
}

#waitlistModal .modal-submit {
    width: 50%;
    padding: 14px 0;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* ===================================
   FLOATING FOOTER (COMMON TO ALL PAGES)
   =================================== */
.tf-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 20%;
    max-width: 300px;
    clip-path: polygon(
        0 0,                      /* top-left */
        100% 0,                   /* top-right */
        100% 100%,                /* bottom-right */
        15px 100%,                /* bottom edge before cut */
        0 calc(100% - 15px)       /* diagonal cut on bottom-left */
    );
}

.floating-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 18px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
/*    border-radius: 10px;
*/}

.floating-bar img {
    height: 24px;
    width: auto;
    display: block;
    align-self: center;
}

.floating-text {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.floating-btn {
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
/*    border-radius: 10px;
*/    transition: all 0.3s ease;
    cursor: pointer;
    clip-path: polygon(
        0 0,                      /* top-left */
        100% 0,                   /* top-right */
        100% 100%,                /* bottom-right */
        8px 100%,                /* bottom edge before cut */
        0 calc(100% - 8px)       /* diagonal cut on bottom-left */
    );
}

.floating-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.05);
}

/* ===================================
   RESPONSIVE (COMMON TO ALL PAGES)
   =================================== */

/* ---- Tablet (max 1024px) ---- */
@media (max-width: 1024px) {
    header {
        top: 15px;
        right: 20px;
    }

    nav {
        gap: 25px;
        padding: 12px 20px;
    }

    nav a {
        font-size: 11px;
    }

    .tf-footer {
        width: calc(100% - 60px);
        max-width: 280px;
    }
}

/* ---- Mobile nav hamburger (max 768px) ---- */
@media (max-width: 768px) {
    header {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        padding: 12px 16px;
        background: transparent;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1100;
        flex-shrink: 0;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 40px 24px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1050;
        display: flex;
    }

    nav.active {
        transform: translateX(0);
    }

    nav a {
        font-size: 18px;
        font-weight: 300;
        letter-spacing: 3px;
        color: #fff !important;
    }

    nav a::after {
        background: #fff !important;
    }

    .navbar-icons {
        flex-direction: row;
        gap: 24px;
        margin-top: 20px;
    }

    /* Floating footer — compact row */
    .tf-footer {
        bottom: 14px;
        width: calc(100% - 32px);
        max-width: 320px;
    }

    .floating-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        gap: 8px;
    }

    .floating-bar img { height: 32px; }

    .floating-btn {
        padding: 9px 18px;
        font-size: 11px;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 340px;
        padding: 30px 20px;
    }
}

/* ---- Small mobile (max 480px) ---- */
@media (max-width: 480px) {
    .tf-footer {
        bottom: 10px;
        width: calc(60% - 24px);
        max-width: none;
    }

    .floating-bar {
        padding: 6px 8px;
        gap: 6px;
    }

    .floating-bar img { height: 28px; }

    .floating-btn {
        padding: 8px 14px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .modal-content {
        padding: 24px 16px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
    }

    nav a {
        font-size: 16px;
    }
}