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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-icon img {
    width: 24px;
    /* adjust as needed */
    height: 24px;
    /* adjust as needed */
    vertical-align: middle;
}

/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    /* prevent nav items from wrapping if using flex for other items */
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    /* prevents the text from breaking to next line */
    flex: 0 0 auto;
    /* don't let the logo shrink */
}

.logo-icon {
    width: 40px;
    /* requested size */
    height: auto;
    /* preserve aspect ratio */
    display: block;
    /* removes inline-gap issues */
    object-fit: contain;
    /* prevents distortion inside the box */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* space between image and text */
    white-space: nowrap;
    /* keep text on one line */
}

.logo-icon img {
    width: 100px;
    height: auto;
    /* keeps image proportional */
}

.logo-text {
    display: inline-block;
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    /* optional: scales with viewport */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* Steps */

.step {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    animation: fadeIn 0.8s ease;
}

.step.active {
    display: block;
}

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

/* Hero Section */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.hero-left {
    animation: slideInLeft 1s ease;
}

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

.version-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid #c7d2fe;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    color: #374151;
    font-size: 3rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4rem;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

/* Hero Visual */

.hero-right {
    position: relative;
    height: 500px;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-character {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: floatCharacter 4s ease-in-out infinite;
}

.character-img {
    height: 50vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(102, 126, 234, 0.3));
}

@keyframes floatCharacter {
    0%,
    100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

.status-badge {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #f3f4f6;
    animation: float 3s ease-in-out infinite;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.badge-2 {
    top: 35%;
    right: 5%;
    animation-delay: 0.5s;
}

.badge-3 {
    bottom: 35%;
    left: 5%;
    animation-delay: 1s;
}

.badge-4 {
    bottom: 15%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

.status-dot.live {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

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

.status-text {
    color: #10b981;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

.main-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.visual-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    animation: pulse 2s ease-in-out infinite;
}

.visual-pulse {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    border: 2px solid #667eea;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite reverse;
}

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

/* Partners */

.partners {
    padding: 4rem 0;
    text-align: center;
}

.partners-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner {
    color: #9ca3af;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.partner:hover {
    color: #667eea;
    opacity: 1;
    transform: scale(1.05);
}

/* Form Section */

.form-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    animation: slideInUp 0.8s ease;
}

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

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    background-image: url('img/icon.png');
    background-size: cover;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
}

.input-section {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.form-input:focus+.input-glow {
    opacity: 0.1;
}

.platform-section {
    margin-bottom: 3rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.platform-card {
    padding: 1.5rem;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.platform-card:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.platform-card.selected {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.platform-icon {
    font-size: 2rem;
}

.platform-name {
    font-weight: 600;
    color: #374151;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.continue-button {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-button:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
}

.continue-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.back-button {
    color: #6b7280;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #374151;
}

/* Processing Section */

.processing-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 4rem 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    text-align: center;
    animation: slideInUp 0.8s ease;
}

.processing-visual {
    margin-bottom: 3rem;
}

.loading-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #764ba2;
    animation-duration: 1s;
    animation-direction: reverse;
}

.ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #667eea;
    animation-duration: 0.75s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.processing-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.processing-message {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #6b7280;
    font-weight: 600;
}

.request-details {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    color: #374151;
    font-weight: 600;
}

.processing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.download-button {
    position: relative;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.download-button:hover .button-shine {
    left: 100%;
}

.try-again-button {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.try-again-button:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Responsive Design */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: calc(100vh - 80px);
        padding: 2rem 0;
    }
    .hero-left {
        order: 2;
        text-align: center;
        z-index: 10;
        position: relative;
    }
    .hero-right {
        order: 1;
        height: 350px;
        margin-top: 2rem;
    }
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    .title-sub {
        font-size: 2.25rem;
    }
    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    .cta-button {
        margin-bottom: 2.5rem;
        padding: 1.25rem 3rem;
        font-size: 1.125rem;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    .stat-card {
        padding: 1rem 0.5rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.875rem;
    }
    .platform-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-link {
        display: none;
    }
    .partners-grid {
        gap: 1.5rem;
        flex-direction: column;
    }
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .continue-button {
        width: 100%;
    }
    .processing-actions {
        flex-direction: column;
    }
    .download-button,
    .try-again-button {
        width: 100%;
    }
    /* Enhanced mobile floating elements */
    .floating-character {
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    .character-img {
        width: 200px;
        height: 200px;
        filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.4));
    }
    .status-badge {
        padding: 0.6rem 0.85rem;
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .badge-1 {
        top: 12%;
        left: 8%;
        animation: float 3s ease-in-out infinite;
    }
    .badge-2 {
        top: 30%;
        right: 8%;
        animation: float 3s ease-in-out infinite;
        animation-delay: 0.5s;
    }
    .badge-3 {
        bottom: 30%;
        left: 8%;
        animation: float 3s ease-in-out infinite;
        animation-delay: 1s;
    }
    .badge-4 {
        bottom: 12%;
        right: 12%;
        animation: float 3s ease-in-out infinite;
        animation-delay: 1.5s;
    }
    .main-visual {
        width: 160px;
        height: 160px;
    }
    .visual-circle,
    .visual-pulse {
        animation: pulse 2s ease-in-out infinite;
    }
    .version-tag {
        margin-bottom: 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    /* Mobile navigation improvements */
    .nav-container {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 8px 16px;
        /* prevent nav items from wrapping if using flex for other items */
        flex-wrap: nowrap;
    }
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .logo-text {
        font-size: 1.25rem;
        /* default for desktop */
    }
    /* Mobile fix: reduce font size on small screens */
    @media (max-width: 480px) {
        .logo-text {
            font-size: 1.5rem;
            /* smaller font size on mobile */
            white-space: nowrap;
            /* prevent wrapping */
            overflow: hidden;
            text-overflow: ellipsis;
            /* if it’s still too long, show ... */
            max-width: 100vw;
            /* limit width so it doesn’t push layout */
            display: inline-block;
            vertical-align: middle;
            text-transform: uppercase;
        }
    }
    .login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    /* Enhanced mobile animations */
    .hero-left {
        animation: slideInUp 1s ease;
        animation-delay: 0.3s;
        animation-fill-mode: both;
    }
    .hero-right {
        animation: slideInDown 1s ease;
        animation-fill-mode: both;
    }
    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* Mobile-specific floating animation */
    @keyframes mobileFloat {
        0%,
        100% {
            transform: translateY(0px) scale(1);
        }
        50% {
            transform: translateY(-10px) scale(1.05);
        }
    }
    .status-badge {
        animation: mobileFloat 3s ease-in-out infinite !important;
    }
    .badge-1 {
        animation-delay: 0s !important;
    }
    .badge-2 {
        animation-delay: 0.7s !important;
    }
    .badge-3 {
        animation-delay: 1.4s !important;
    }
    .badge-4 {
        animation-delay: 2.1s !important;
    }
}

/* Additional mobile enhancements for very small screens */

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .title-sub {
        font-size: 43px;
    }
    .character-img {
        width: 250px;
        height: 250px;
    }
    .status-badge {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }
    .badge-1 {
        top: 15%;
        left: 5%;
    }
    .badge-2 {
        top: 35%;
        right: 5%;
    }
    .badge-3 {
        bottom: 35%;
        left: 5%;
    }
    .badge-4 {
        bottom: 15%;
        right: 8%;
    }
    .main-visual {
        width: 140px;
        height: 140px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .stat-card {
        padding: 1rem;
    }
}