@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&display=swap');

/* ========== SPA Page Visibility ========== */
.page-section { display: none; }
.page-section.active { display: block; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background: #050508;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background ambient glow — pink */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(120vw, 900px);
    height: min(120vw, 900px);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 45, 149, 0.08) 0%,
        rgba(180, 77, 255, 0.05) 30%,
        rgba(180, 77, 255, 0.02) 50%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 6s ease-in-out infinite;
}

/* Second glow layer — purple */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw, 750px);
    height: min(100vw, 750px);
    background: radial-gradient(
        ellipse at center,
        rgba(139, 30, 255, 0.06) 0%,
        transparent 65%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 6s ease-in-out infinite 3s;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 0 20px 20px;
}

/* Logo / Image wrapper */
.logo-wrapper {
    position: relative;
    width: min(62vw, 260px);
    max-width: 100%;
    margin-bottom: 28px;
}

/* Neon glow behind the image */
.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px -30px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 45, 149, 0.18) 0%,
        rgba(180, 77, 255, 0.1) 40%,
        transparent 70%
    );
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
    animation: imageGlow 4s ease-in-out infinite;
}

@keyframes imageGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Subtle neon border hint */
.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 3px;
    background: linear-gradient(
        135deg,
        rgba(255, 45, 149, 0.15) 0%,
        rgba(180, 77, 255, 0.1) 50%,
        rgba(255, 45, 149, 0.08) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.logo-image {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: drop-shadow(0 0 30px rgba(255, 45, 149, 0.12))
            drop-shadow(0 0 60px rgba(180, 77, 255, 0.08));
}

/* Divider — neon dual line */
.divider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
}

.divider {
    width: min(80px, 20vw);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 45, 149, 0.5),
        rgba(180, 77, 255, 0.4),
        transparent
    );
}

.divider.second {
    width: min(50px, 12vw);
    opacity: 0.5;
}

/* Neon heading (Coming Soon / 404) */
.neon-heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #ffd9ec;
    text-shadow:
        0 0 7px rgba(255, 45, 149, 0.8),
        0 0 20px rgba(255, 45, 149, 0.5),
        0 0 40px rgba(255, 45, 149, 0.3),
        0 0 80px rgba(180, 77, 255, 0.2);
    margin-bottom: 16px;
    animation: neonFlicker 5s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 7px rgba(255, 45, 149, 0.8),
            0 0 20px rgba(255, 45, 149, 0.5),
            0 0 40px rgba(255, 45, 149, 0.3),
            0 0 80px rgba(180, 77, 255, 0.2);
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 4px rgba(255, 45, 149, 0.5),
            0 0 10px rgba(255, 45, 149, 0.3),
            0 0 20px rgba(255, 45, 149, 0.15),
            0 0 40px rgba(180, 77, 255, 0.1);
    }
}

/* Domain / subtitle */
.domain {
    font-size: clamp(12px, 2.5vw, 15px);
    font-weight: 300;
    letter-spacing: 0.22em;
    color: rgba(255, 200, 230, 0.65);
    margin-bottom: 28px;
    text-shadow: 0 0 10px rgba(255, 45, 149, 0.15);
}

/* Pulse dots — two dots like stereo lights */
.pulse-dots {
    display: flex;
    gap: 14px;
}

.pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff2d95;
    box-shadow: 0 0 6px rgba(255, 45, 149, 0.8),
                0 0 14px rgba(255, 45, 149, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

.pulse-dot:nth-child(2) {
    animation-delay: 0.6s;
    background: #b44dff;
    box-shadow: 0 0 6px rgba(180, 77, 255, 0.8),
                0 0 14px rgba(180, 77, 255, 0.4);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.8);
    }
}

/* Footer */
.footer-note {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 180, 210, 0.2);
    text-align: center;
    padding: 24px 0;
    position: relative;
    z-index: 1;
}

/* ========== 404 Page Specific ========== */

.error-code {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(80px, 20vw, 160px);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 45, 149, 0.6);
    text-shadow:
        0 0 15px rgba(255, 45, 149, 0.4),
        0 0 40px rgba(255, 45, 149, 0.2),
        0 0 80px rgba(180, 77, 255, 0.15);
    line-height: 1;
    margin-bottom: 12px;
    animation: neonFlicker 5s ease-in-out infinite;
}

.sub-text {
    font-size: clamp(12px, 2.5vw, 15px);
    font-weight: 300;
    letter-spacing: 0.18em;
    color: rgba(255, 200, 230, 0.45);
    margin-bottom: 40px;
}

.back-home {
    display: inline-block;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 200, 230, 0.6);
    border: 1px solid rgba(255, 45, 149, 0.25);
    padding: 10px 28px;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.back-home:hover {
    color: #ffd9ec;
    border-color: rgba(255, 45, 149, 0.6);
    text-shadow: 0 0 8px rgba(255, 45, 149, 0.5);
    box-shadow: 0 0 15px rgba(255, 45, 149, 0.15),
                inset 0 0 15px rgba(255, 45, 149, 0.05);
}

/* Responsive: Mobile */
@media (max-width: 640px) {
    .container {
        padding: 64px 16px 24px;
        min-height: auto;
    }

    .logo-wrapper {
        width: 60vw;
        margin-bottom: 24px;
    }

    .logo-wrapper::before {
        inset: -14px -20px;
    }

    .neon-heading {
        letter-spacing: 0.24em;
    }

    .divider-wrapper {
        margin-bottom: 28px;
    }

    .footer-note {
        font-size: 10px;
        padding: 20px 0;
    }

    .error-code {
        -webkit-text-stroke: 1px rgba(255, 45, 149, 0.5);
    }

    .back-home {
        padding: 8px 20px;
    }
}

/* ========== Recruit Page ========== */

.recruit-page {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.recruit-section {
    margin-bottom: 48px;
}

.recruit-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #ffd9ec;
    text-shadow:
        0 0 10px rgba(255, 45, 149, 0.6),
        0 0 30px rgba(255, 45, 149, 0.3),
        0 0 60px rgba(180, 77, 255, 0.15);
    margin-bottom: 8px;
    animation: neonFlicker 5s ease-in-out infinite;
}

.recruit-subtitle {
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(255, 200, 230, 0.55);
    margin-bottom: 36px;
}

.recruit-content {
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.recruit-content p {
    margin-bottom: 12px;
}

.recruit-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.recruit-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 300;
    color: rgba(255, 220, 240, 0.65);
    line-height: 1.7;
}

.recruit-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff2d95;
    box-shadow: 0 0 5px rgba(255, 45, 149, 0.6);
}

.recruit-notice {
    font-size: clamp(11px, 1.8vw, 12px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 180, 210, 0.4);
    line-height: 1.7;
    margin-bottom: 28px;
}

.recruit-note {
    font-size: clamp(11px, 1.8vw, 12px);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 45, 149, 0.6);
    margin-bottom: 36px;
}

/* Form */
.recruit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 200, 230, 0.6);
}

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 45, 149, 0.15);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(255, 45, 149, 0.4);
    box-shadow: 0 0 12px rgba(255, 45, 149, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* File input */
.form-file {
    padding: 9px 14px;
    cursor: pointer;
}
.form-file::file-selector-button {
    background: rgba(255, 45, 149, 0.15);
    border: 1px solid rgba(255, 45, 149, 0.3);
    color: #ffd9ec;
    padding: 6px 16px;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 12px;
    transition: all 0.3s ease;
}
.form-file::file-selector-button:hover {
    background: rgba(255, 45, 149, 0.25);
    border-color: rgba(255, 45, 149, 0.5);
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* Inline validation errors */
.form-error {
    display: block;
    font-size: 11px;
    color: #ff4d6a;
    min-height: 16px;
    line-height: 1.4;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.form-group.has-error .form-input {
    border-color: rgba(255, 77, 106, 0.6);
    box-shadow: 0 0 8px rgba(255, 77, 106, 0.15);
}

.form-group.has-error .radio-option label {
    border-color: rgba(255, 77, 106, 0.4);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,45,149,0.4)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select option {
    background: #1a1a1e;
    color: #ffffff;
}

/* Radio / Yes-No toggle */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
}

.radio-option input {
    display: none;
}

.radio-option label {
    display: block;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 200, 230, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 45, 149, 0.12);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input:checked + label {
    color: #ffd9ec;
    background: rgba(255, 45, 149, 0.1);
    border-color: rgba(255, 45, 149, 0.4);
    box-shadow: 0 0 10px rgba(255, 45, 149, 0.1);
}

.radio-option label:hover {
    border-color: rgba(255, 45, 149, 0.25);
}

/* Services checklist */
.services-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-item input {
    display: none;
}

.service-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 200, 230, 0.55);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.service-item label::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 45, 149, 0.2);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

.service-item input:checked + label {
    color: #ffd9ec;
}

.service-item input:checked + label::before {
    content: '\2713';
    background: rgba(255, 45, 149, 0.25);
    border-color: rgba(255, 45, 149, 0.6);
    color: #ffd9ec;
    box-shadow: 0 0 10px rgba(255, 45, 149, 0.25);
}

/* Submit button */
.form-submit {
    margin-top: 12px;
    padding: 13px 0;
    width: 100%;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffd9ec;
    background: rgba(255, 45, 149, 0.12);
    border: 1px solid rgba(255, 45, 149, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.form-submit:hover {
    background: rgba(255, 45, 149, 0.2);
    border-color: rgba(255, 45, 149, 0.5);
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.15),
                inset 0 0 20px rgba(255, 45, 149, 0.05);
    text-shadow: 0 0 8px rgba(255, 45, 149, 0.5);
}

/* Form divider */
.form-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 45, 149, 0.15),
        transparent
    );
    margin: 8px 0;
}

/* Global overlay (loading, fixed to viewport) */
.global-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 5, 8, 0.92);
    align-items: center;
    justify-content: center;
    text-align: center;
}
.global-overlay > * {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 2px solid rgba(255, 45, 149, 0.15);
    border-top-color: rgba(255, 45, 149, 0.7);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 13px;
    color: rgba(255, 200, 230, 0.6);
    letter-spacing: 0.1em;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 45, 149, 0.4);
    font-size: 28px;
    color: #ffd9ec;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.2);
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Disabled form button */
.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form-section-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 180, 210, 0.4);
    padding-top: 12px;
}

/* ========== Recruit CTA Button (Homepage) ========== */

.cta-button {
    display: inline-block;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffd9ec;
    border: 1px solid rgba(255, 45, 149, 0.45);
    padding: 12px 36px;
    border-radius: 2px;
    margin-bottom: 24px;
    background: rgba(255, 45, 149, 0.08);
    text-shadow: 0 0 8px rgba(255, 45, 149, 0.4);
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.1),
                0 0 40px rgba(180, 77, 255, 0.06);
    transition: all 0.4s ease;
    animation: ctaPulse 3s ease-in-out infinite;
}

.cta-button:hover {
    color: #ffffff;
    border-color: rgba(255, 45, 149, 0.8);
    background: rgba(255, 45, 149, 0.18);
    text-shadow: 0 0 12px rgba(255, 45, 149, 0.8),
                 0 0 30px rgba(255, 45, 149, 0.4);
    box-shadow: 0 0 30px rgba(255, 45, 149, 0.25),
                0 0 60px rgba(180, 77, 255, 0.12),
                inset 0 0 20px rgba(255, 45, 149, 0.08);
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 45, 149, 0.1),
                    0 0 40px rgba(180, 77, 255, 0.06);
    }
    50% {
        box-shadow: 0 0 28px rgba(255, 45, 149, 0.18),
                    0 0 55px rgba(180, 77, 255, 0.12);
    }
}

/* Tall screens */
@media (min-height: 900px) {
    .logo-wrapper {
        margin-bottom: 36px;
    }

    .neon-heading {
        margin-bottom: 20px;
    }
}

/* ========== Modal ========== */

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: relative;
    width: 100%;
    max-width: 660px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 45, 149, 0.12);
    border-radius: 4px;
    padding: 48px 32px 40px;
    margin: 20px 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 200, 230, 0.4);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0 4px;
}

.modal-close:hover {
    color: #ff2d95;
    text-shadow: 0 0 10px rgba(255, 45, 149, 0.5);
}

/* Turnstile in modal */
.modal .cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

/* Responsive: Mobile — Recruit & Modal */
@media (max-width: 640px) {
    .recruit-page {
        padding: 40px 16px 80px;
    }

    .recruit-section {
        margin-bottom: 36px;
    }

    .radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .form-submit {
        padding: 12px 0;
    }

    .cta-button {
        padding: 10px 28px;
        margin-bottom: 24px;
    }

    .modal {
        padding: 36px 16px 32px;
        margin: 10px 0;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-close {
        top: 8px;
        right: 10px;
    }
}
