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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    animation: fadeIn 0.6s ease;
    overflow-y: auto;
}

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

/* Background - pure black like index.html */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000000;
}

.background-blur {
    display: none; /* Remove wallpaper for pure black background */
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

/* Form Container - No box styling */
.form-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 40px 20px;
    box-shadow: none;
    position: relative;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
}

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

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Nelieo mark for join page */
.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255,255,255,0.98);
    letter-spacing: -0.4px;
}

/* Heading */
.heading-container {
    text-align: center;
    margin-bottom: 40px;
}

.badge-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

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

.badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.heading-container h1 {
    font-size: 40px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.5s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.benefit-item svg {
    flex-shrink: 0;
    stroke: #10b981;
}

/* Form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.form-group:nth-child(1) { animation-delay: 0.8s; }
.form-group:nth-child(2) { animation-delay: 0.9s; }
.form-group:nth-child(3) { animation-delay: 1s; }
.form-group:nth-child(4) { animation-delay: 1.1s; }

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 4px;
}

.optional {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 16px 20px;
    padding-right: 48px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    font-weight: 400;
}

.input-wrapper input:hover,
.input-wrapper select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 
                0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.select-arrow {
    position: absolute;
    right: 18px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper select:focus + .select-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* Select specific styling - YC style */
select {
    cursor: pointer;
    padding-right: 44px !important;
    font-weight: 400;
    letter-spacing: -0.01em;
}

select option {
    padding: 14px 16px;
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 400;
    border: none;
}

select option:hover {
    background: #2a2a2a;
}

select option:checked {
    background: #333;
    color: #fff;
    font-weight: 500;
}

select option[value=""] {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Error Messages */
.error-message {
    font-size: 13px;
    color: #ef4444;
    display: none;
    margin-top: -4px;
}

.error-message.show {
    display: block;
}

.input-wrapper input.error,
.input-wrapper select.error {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Submit Button - redesigned to match index.html style */
.submit-button {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 12px;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(255, 255, 255, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
    transform: translateY(0) scale(0.98);
}

/* Shiny text animation for submit button */
.submit-button .btn-text {
    color: #000000;
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 1) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(0, 0, 0, 1) 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 100%;
    }
    100% {
        background-position: -100%;
    }
}

.submit-button:hover::before {
    opacity: 1;
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-button.loading {
    pointer-events: none;
    background: #666;
}

.submit-button.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-button.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Privacy Text */
.privacy-text {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    line-height: 1.5;
}

.privacy-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.privacy-text a:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Success Message */
.success-container {
    display: none;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.success-container.show {
    display: block;
}

.waitlist-form.hide {
    display: none;
}

.heading-container.hide {
    display: none;
}

.success-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.success-container h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.success-container p {
    font-size: 17px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 500;
}

.success-container p strong {
    color: #000000;
    font-weight: 700;
    font-size: 18px;
}

.position-info {
    margin-top: 24px;
    padding: 20px;
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.position-info strong {
    font-size: 24px;
    color: #10b981;
    font-weight: 800;
}

.back-button {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 32px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .form-container {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .heading-container h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
    }

    .logo-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .form-container {
        padding: 32px 24px;
    }

    .heading-container h1 {
        font-size: 24px;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 12px 14px;
        padding-right: 40px;
        font-size: 14px;
    }

    .submit-button {
        padding: 14px;
        font-size: 15px;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
}
