@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #ffffff;
}

/* Background Video/GIF */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(20, 20, 30, 0.5) 100%);
    backdrop-filter: blur(1px);
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 54px 36px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeInDown 0.8s ease-out;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.title {
    font-size: 65px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ee0247 0%, #ff4d7d 50%, #ff8fa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: 400;
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px;
    backdrop-filter: blur(12px);
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.form-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
}

/* Input Groups */
.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.label-text {
    color: #ffffff;
}

.label-required {
    color: #ee0247;
    font-weight: 600;
}

.text-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.text-input::placeholder {
    color: #606060;
}

.text-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ee0247;
    box-shadow: 0 0 0 3px rgba(238, 2, 71, 0.1);
}

.input-hint {
    font-size: 0.75rem;
    color: #808080;
    margin-top: 6px;
}

/* Email Input Wrapper */
.email-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.email-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ee0247;
    box-shadow: 0 0 0 3px rgba(238, 2, 71, 0.1);
}

.email-username-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-right: 0;
}

.email-username-input:focus {
    outline: none;
    box-shadow: none !important;
}

.email-domain {
    padding: 14px 18px 14px 0;
    font-size: 0.9rem;
    color: #808080;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    user-select: none;
}

/* Competitors Section */
.competitors-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Form Actions */
.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #ee0247 0%, #ff4d7d 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238, 2, 71, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 2, 71, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Status Section */
.status-section, .results-section, .error-section {
    margin-top: 24px;
}

.status-section.hidden, .results-section.hidden, .error-section.hidden {
    display: none;
}

.status-card, .results-card, .error-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.status-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.status-message {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ee0247 0%, #ff4d7d 50%, #ff8fa3 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressAnimation 2s ease-in-out infinite;
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.results-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ee0247 0%, #ff4d7d 50%, #ff8fa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-audit-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-audit-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.results-content {
    text-align: left;
    color: #b0b0b0;
    line-height: 1.8;
}

.results-content a {
    color: #ee0247;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.results-content a:hover {
    color: #ff4d7d;
    text-decoration: underline;
}

/* Error Section */
.error-card {
    background: rgba(251, 146, 60, 0.05);
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fb923c;
}

.error-message {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 24px;
    line-height: 1.6;
}

.retry-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background: rgba(251, 146, 60, 0.15);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 8px;
    color: #fb923c;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: rgba(251, 146, 60, 0.25);
    border-color: rgba(251, 146, 60, 0.4);
    transform: translateY(-1px);
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px;
    backdrop-filter: blur(12px);
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out;
}

.info-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #ffffff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.info-card-text {
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 36px;
    color: #666;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 36px 22px;
    }

    .title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .form-section, .info-section {
        padding: 24px 18px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-description {
        font-size: 0.85rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }

    .form-section, .info-section {
        padding: 20px 16px;
    }

    .text-input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
