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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #070b14;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FIXED 1440x1024 DESIGN FRAME
   Scales to fit viewport while maintaining aspect ratio
   ============================================ */
.design-frame {
    position: relative;
    width: 1440px;
    height: 1024px;
    transform-origin: center center;
    z-index: 1;
}

/* Responsive scaling */
@media (max-aspect-ratio: 1440/1024) {
    .design-frame {
        transform: scale(calc(100vw / 1440));
    }
}

@media (min-aspect-ratio: 1440/1024) {
    .design-frame {
        transform: scale(calc(100vh / 1024));
    }
}

/* ============================================
   BACKGROUND (responsive - covers all devices)
   ============================================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/Group 2.png') center center / cover no-repeat;
    background-color: #070b14;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   SOCIAL SIDEBAR - FIXED to SCREEN left edge
   ============================================ */
.social-sidebar {
    position: fixed;
    left: 43px;
    top: 33%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 1000;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    position: absolute;
    left: 568px;
    top: 80px;
    width: 101px;
    height: 25px;
    object-fit: contain;
    z-index: 10;
}

/* ============================================
   NAVIGATION LINKS
   ============================================ */
.nav-link {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 15.702px;
    line-height: 15.702px;
    letter-spacing: 0.7843px;
    color: #fff;
    text-decoration: none;
    z-index: 10;
    transition: opacity 0.2s ease;
}

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

.discord-link {
    left: 702.14px;
    top: 83px;
}

.about-link {
    left: 797.26px;
    top: 83px;
    opacity: 0.5;
}

.about-link:hover {
    opacity: 0.8;
}

/* ============================================
   SUBTITLE
   ============================================ */
.subtitle {
    position: absolute;
    left: 594.75px;
    top: 200.22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 22.528px;
    line-height: 22.528px;
    color: #fff;
    z-index: 10;
}

/* ============================================
   HEADLINE
   ============================================ */
.headline {
    position: absolute;
    left: 738.34px;
    top: 256.17px;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 63.601px;
    line-height: 76.321px;
    letter-spacing: -1.1801px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.btn {
    position: absolute;
    text-decoration: none;
    z-index: 11;
    transition: all 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-primary {
    left: 504.33px;
    top: 432px;
    display: block;
    cursor: pointer;
}

.btn-primary img {
    width: 212px;
    height: 53px;
    object-fit: contain;
    display: block;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    left: 738.61px;
    top: 448.01px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 17.238px;
    line-height: 17.238px;
    letter-spacing: 0.8619px;
    color: #fff;
}

.btn-secondary:hover {
    transform: none;
    opacity: 0.7;
}

.arrow-icon {
    position: absolute;
    left: 918.28px;
    top: 452.06px;
    width: 18px;
    height: 11px;
    object-fit: contain;
    z-index: 11;
    pointer-events: none;
}

/* ============================================
   DASHBOARD (Group 3.png - has glow + dashboard)
   ============================================ */
.dashboard {
    position: absolute;
    left: 51%;
    transform: translateX(-50%);
    bottom: 45px;
    width: 1383px;
    height: auto;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

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

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

/* ============================================
   MODAL CONTAINER
   ============================================ */
.modal-container {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: linear-gradient(180deg, #0d1525 0%, #070b14 100%);
    border-radius: 20px;
    padding: 40px 36px;
    border: 1px solid rgba(100, 150, 255, 0.1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(80, 130, 200, 0.08),
        0 0 0 1px rgba(100, 150, 255, 0.05) inset;
    animation: modalSlide 0.35s ease;
}

/* ============================================
   MODAL CLOSE BUTTON
   ============================================ */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   MODAL TITLE & SUBTITLE
   ============================================ */
.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    text-align: center;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 32px;
}

/* ============================================
   STEP INDICATOR
   ============================================ */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #6b9fff;
    box-shadow: 0 0 12px rgba(107, 159, 255, 0.6);
}

.step-dot.completed {
    background: #6b9fff;
    opacity: 0.7;
}

/* ============================================
   STEP CONTENT
   ============================================ */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: stepFade 0.3s ease;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.required {
    color: #6b9fff;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.form-input:focus {
    border-color: rgba(100, 150, 255, 0.35);
    background: rgba(100, 150, 255, 0.05);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: #0a0f1a;
    color: #ffffff;
}

/* ============================================
   FORM SUBMIT BUTTON
   ============================================ */
.form-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #5a8fff 0%, #7b9fff 50%, #a0c0ff 100%);
    border: none;
    border-radius: 10px;
    color: #0a0f1a;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(90, 143, 255, 0.25);
}

.form-submit:hover {
    background: linear-gradient(135deg, #6b9fff 0%, #8aafff 50%, #b0d0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(90, 143, 255, 0.35);
}

.form-submit:active {
    transform: translateY(0) scale(0.99);
}

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

.partner-next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.partner-next-btn .arrow {
    transition: transform 0.2s ease;
}

.partner-next-btn:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   FOLLOW BUTTON
   ============================================ */
.follow-button {
    width: 100%;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.follow-button:hover {
    background: rgba(100, 150, 255, 0.08);
    border-color: rgba(100, 150, 255, 0.2);
}

.follow-button.completed {
    background: rgba(100, 150, 255, 0.12);
    border-color: rgba(100, 150, 255, 0.25);
    color: #ffffff;
}

.follow-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================
   FORM MESSAGE
   ============================================ */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(100, 150, 255, 0.1);
    color: #9fc5ff;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   MOBILE MODAL ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .modal-container {
        padding: 32px 28px;
        margin: 16px;
        border-radius: 16px;
        max-width: calc(100% - 32px);
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .form-submit,
    .follow-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================
   MOBILE PHONE MOCKUP (hidden on desktop)
   ============================================ */
.mobile-phone {
    display: none;
}

/* Mobile Social Icons (hidden on desktop) */
.mobile-social-icons {
    display: none;
}

/* ============================================
   MOBILE LAYOUT (375px base width)
   ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    body {
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    /* Mobile background - use mobile-specific image */
    .background {
        background: url('assets/cyfer mobile version bg 1.png') center center / cover no-repeat;
    }
    
    /* Hide desktop sidebar */
    .social-sidebar {
        display: none;
    }
    
    /* Mobile design frame */
    .design-frame {
        width: 100%;
        max-width: 375px;
        height: auto;
        min-height: 100vh;
        transform: none;
        margin: 0 auto;
        display: block;
        position: relative;
        padding: 0;
    }
    
    /* Hide desktop dashboard */
    .dashboard {
        display: none;
    }
    
    /* Show mobile phone mockup */
    .mobile-phone {
        display: block;
        position: absolute;
        left: 0;
        top: 547px;
        width: 100%;
        height: auto;
        z-index: 5;
        pointer-events: none;
        transform: scale(1.14);
        transform-origin: center top;
    }
    
    /* Mobile logo - centered with nav links inline */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-75px);
        top: 22px;
        width: 54px;
        height: auto;
    }
    
    /* Mobile nav links - inline with logo */
    .nav-link {
        font-size: 12px;
        font-weight: 300;
        letter-spacing: 0.4px;
    }
    
    .discord-link {
        position: absolute;
        left: 50%;
        transform: translateX(-5px);
        top: 24px;
    }
    
    .about-link {
        position: absolute;
        left: 50%;
        transform: translateX(55px);
        top: 24px;
        opacity: 0.35;
    }
    
    /* Mobile subtitle */
    .subtitle {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 250px;
        font-size: 13px;
        font-weight: 400;
        white-space: nowrap;
    }
    
    /* Mobile headline */
    .headline {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 275px;
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -0.5px;
        font-weight: 600;
        text-align: center;
        white-space: normal;
        width: 95%;
    }
    
    /* Mobile CTA buttons - centered together */
    .btn-primary {
        position: absolute;
        left: 50%;
        transform: translateX(-115px);
        top: 385px;
    }
    
    .btn-primary img {
        width: 120px;
        height: auto;
    }
    
    .btn-secondary {
        position: absolute;
        left: 50%;
        transform: translateX(24px);
        top: 394px;
        font-size: 13px;
        font-weight: 300;
        letter-spacing: 0.4px;
    }
    
    /* Hide arrow icon on mobile */
    .arrow-icon {
        display: none;
    }
    
    /* Show mobile social icons - centered */
    .mobile-social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 450px;
        z-index: 10;
    }
    
    .mobile-social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        opacity: 0.9;
        transition: opacity 0.2s ease;
    }
    
    .mobile-social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-social-icon:hover {
        opacity: 1;
    }
}

/* Smaller mobile screens */
@media (max-width: 390px) {
    .design-frame {
        max-width: 100%;
    }
    
    .headline {
        font-size: 28px;
        line-height: 34px;
    }
}


