* {
    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: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #080808 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(8, 8, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #303034;
    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: #b0b0b8;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ef4444;
}

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

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

.login-btn {
    background: linear-gradient(135deg, #ef4444 0%, #a9142b 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(239, 68, 68, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 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, #251017 0%, #30121d 100%);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid #642332;
}

.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, #ef4444 0%, #a9142b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.cta-button {
    position: relative;
    background: linear-gradient(135deg, #ef4444 0%, #a9142b 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(239, 68, 68, 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: #111113;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #232326;
    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: #ef4444;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0b0b8;
    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(239, 68, 68, 0.3));
}

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

    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

.status-badge {
    position: absolute;
    background: #111113;
    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 #232326;
    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: #ff8492;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.live {
    background: #ff8492;
    box-shadow: 0 0 10px rgba(255, 132, 146, 0.5);
}

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

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

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

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

.badge-text {
    color: #e4e4e7;
    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, #ef4444 0%, #a9142b 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 #ef4444;
    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: #b0b0b8;
    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: #92929c;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

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

/* Form Section */
.form-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: #111113;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #232326;
    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(239, 68, 68, 0.3);
    background-image: url('img/icon.png');
    background-size: cover;
}

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

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

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

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

.input-wrapper {
    position: relative;
}

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

.form-input:focus {
    outline: none;
    border-color: #ef4444;
    background: #111113;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #a9142b);
    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: #0b0b0d;
    border: 2px solid #303034;
    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: #111113;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

.platform-card.selected {
    background: linear-gradient(135deg, #251017 0%, #30121d 100%);
    border-color: #ef4444;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

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

.platform-name {
    font-weight: 600;
    color: #e4e4e7;
    font-size: 16px;
}

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

.continue-button {
    flex: 1;
    background: linear-gradient(135deg, #ef4444 0%, #a9142b 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: #303034;
    cursor: not-allowed;
}

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

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

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

/* Processing Section */
.processing-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 4rem 3rem;
    background: #111113;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #232326;
    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: #ef4444;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

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

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

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

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

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

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

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

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

.request-details {
    background: #151517;
    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: #b0b0b8;
    font-weight: 500;
}

.detail-value {
    color: #e4e4e7;
    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, #ff8492 0%, #d92840 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(255, 132, 146, 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: #232326;
    color: #e4e4e7;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.try-again-button:hover {
    background: #303034;
    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(239, 68, 68, 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: 1.8rem;
    }

    .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;
    }
}

/* Interface refinements */
.ui-icon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    min-height: 78px;
    justify-content: center;
    padding: 14px 24px;
}

.logo {
    text-decoration: none;
    color: #ffffff;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #d92840;
    color: #fff;
    box-shadow: 0 5px 16px #ef444425;
}

.logo-icon .ui-icon {
    width: 25px;
    height: 25px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo-text {
    font-size: 17px;
    letter-spacing: .08em;
}

.brand-light {
    font-weight: 400;
    letter-spacing: .035em;
}

.brand-caption {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .22em;
    color: #a1a1aa;
}

.form-logo {
    background: #28101a;
    color: #ff8492;
    box-shadow: none;
}

.form-logo .ui-icon {
    width: 30px;
    height: 30px;
}

.badge-icon {
    display: flex;
    color: #ff8492;
}

.platform-icon {
    display: grid;
    place-items: center;
    color: #d4d4d8;
    height: 40px;
}

.platform-icon .ui-icon {
    width: 34px;
    height: 34px;
}

.platform-card.selected .platform-icon {
    color: #ef4444;
}

button {
    font-family: inherit;
}

.back-button,
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

button:active {
    scale: .97;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #ff8492;
    outline-offset: 5px;
}

.step {
    animation: none;
}

.step.active {
    animation: stepEnter .5s cubic-bezier(.2,.7,.2,1) both;
}

.step.is-leaving {
    animation: stepExit .22s ease both;
    pointer-events: none;
}

.step.active .platform-card {
    animation: cardEnter .45s ease both;
}

.platform-card:nth-child(2) {
    animation-delay: 60ms!important;
}

.platform-card:nth-child(3) {
    animation-delay: 120ms!important;
}

.platform-card:nth-child(4) {
    animation-delay: 180ms!important;
}

@keyframes stepEnter{
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes cardEnter{
    from {
        opacity: 0;
        translate: 0 14px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

#step3 .processing-section {
    border-color: #642332;
    box-shadow: 0 14px 50px #a9142b0b;
}

#step3 .processing-visual {
    margin-bottom: 22px;
}

.verification-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: auto;
    background: #28101a;
    color: #d92840;
    border: 1px solid #642332;
    border-radius: 25px;
    box-shadow: 0 0 0 9px #190b10;
}

.verification-icon .ui-icon {
    width: 36px;
    height: 36px;
}

#step3 .processing-title {
    color: #ff8492;
}

#step3 .processing-message {
    margin-bottom: 24px;
}

.verification-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    color: #ff8492;
    margin-bottom: 20px;
}

#step3 .download-button {
    background: #d92840;
    box-shadow: 0 6px 18px #d9284020;
}

#step3 .download-button:hover {
    background: #ff8492;
    box-shadow: 0 9px 24px #d9284030;
}

.detail-value {
    overflow-wrap: anywhere;
    min-width: 0;
    text-align: right;
}

.detail-item {
    gap: 18px;
}

.notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 22px;
    background: #202024;
    color: #fff;
    border-radius: 12px;
    z-index: 2000;
    width: max-content;
    max-width: calc(100% - 32px);
    box-shadow: 0 8px 30px #0002;
}

@media (max-width:768px){
    .nav-container {
        min-height: 76px;
        padding: 12px 16px;
    }

    .logo-text {
        font-size: 16px;
        max-width: none;
    }

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

    .brand-caption {
        font-size: 8px;
        letter-spacing: .2em;
    }

    .form-section,
    .processing-section {
        margin: 28px auto;
        padding: 28px 20px;
        border-radius: 20px;
    }

    .form-title {
        font-size: 25px;
    }

    .form-subtitle,
    .processing-message {
        font-size: 15px;
    }

    .form-header {
        margin-bottom: 26px;
    }

    .platform-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .platform-card {
        padding: 20px 10px;
    }

    .platform-section {
        margin-bottom: 24px;
    }

    .processing-actions {
        align-items: stretch;
    }

    .hero-right {
        overflow: hidden;
    }

    .stats-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .stat-card {
        padding: 14px 5px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after {
        animation: none!important;
        transition: none!important;
        scroll-behavior: auto!important;
    }
}

/* Compact mobile landing: keep the primary action in the first viewport. */
@media (max-width:768px){
    #step1 {
        padding-top: 76px;
    }

    #step1 .hero {
        min-height: 0;
        gap: 8px;
        padding: 8px 0 20px;
        align-items: start;
    }

    #step1 .hero-right {
        height: clamp(150px,28svh,250px);
        margin-top: 0;
        order: 1;
        overflow: visible;
    }

    #step1 .hero-left {
        order: 2;
        animation-delay: 0s;
    }

    #step1 .floating-character {
        top: 0;
        z-index: 2;
        height: 100%;
        display: flex;
        align-items: center;
    }

    #step1 .character-img {
        width: auto;
        max-width: 210px;
        height: 90%;
        object-fit: contain;
    }

    #step1 .status-badge {
        z-index: 3;
        padding: 6px 9px;
        font-size: 10px;
        border-radius: 9px;
    }

    #step1 .badge-1 {
        top: 10%;
        left: 6%;
    }

    #step1 .badge-2 {
        top: 24%;
        right: 2%;
    }

    #step1 .badge-3 {
        bottom: 18%;
        left: 0;
    }

    #step1 .badge-4 {
        bottom: 5%;
        right: 4%;
    }

    #step1 .main-visual {
        width: 125px;
        height: 125px;
    }

    #step1 .version-tag {
        padding: 4px 11px;
        font-size: 10px;
        margin-bottom: 9px;
    }

    #step1 .hero-title {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        font-size: clamp(25px,7.3vw,36px);
        line-height: 1.15;
        margin-bottom: 10px;
    }

    #step1 .title-main,
    #step1 .title-sub {
        display: inline;
        font-size: inherit;
    }

    #step1 .title-sub {
        font-weight: 400;
    }

    #step1 .hero-description {
        max-width: 390px;
        margin: 0 auto 15px;
        font-size: 13px;
        line-height: 1.55;
    }

    #step1 .cta-button {
        display: block;
        width: 100%;
        max-width: 350px;
        min-height: 48px;
        margin: 0 auto 18px;
        padding: 12px 22px;
        font-size: 15px;
        border-radius: 12px;
    }

    #step1 .stats-grid {
        margin-top: 0;
        gap: 8px;
    }

    #step1 .stat-card {
        padding: 10px 4px;
        border-radius: 12px;
    }

    #step1 .stat-number {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 3px;
    }

    #step1 .stat-label {
        font-size: 10px;
    }

    #step1 .partners {
        padding: 24px 0;
    }

    #step1 .partners-grid {
        flex-direction: row;
        gap: 16px;
        font-size: 12px;
    }
}

@media (max-width:768px) and (max-height:600px){
    #step1 .hero-right {
        height: 125px;
    }

    #step1 .hero {
        gap: 4px;
        padding-top: 4px;
    }

    #step1 .version-tag {
        margin-bottom: 5px;
    }

    #step1 .hero-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    #step1 .hero-title {
        font-size: 25px;
        margin-bottom: 7px;
    }

    #step1 .cta-button {
        margin-bottom: 12px;
    }
}

#step4 .progress-fill {
    transition: width 80ms linear;
}

@media (prefers-reduced-motion:reduce){
    #step4 .progress-fill {
        transition: none;
    }
}

/* Dark theme native controls */
:root {
    color-scheme: dark;
}

.form-input {
    color: #ffffff;
}

.form-input::placeholder {
    color: #92929c;
}

#step3 .download-button:hover {
    background: #a9142b;
}

/* Compact device rows and pack selection */
.device-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.device-grid .platform-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    gap: 0.85rem;
    border-radius: 12px;
}

.device-grid .platform-icon {
    height: 28px;
}

.device-grid .platform-icon .ui-icon {
    width: 28px;
    height: 28px;
}

.device-grid .platform-card::after {
    content: '';
    margin-left: auto;
    width: 16px;
    height: 16px;
    border: 2px solid #52525b;
    border-radius: 50%;
    flex-shrink: 0;
}

.device-grid .platform-card.selected::after {
    border-color: #ef4444;
    background: #ef4444;
    box-shadow: inset 0 0 0 3px #251017;
}

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

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

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

.pack-card {
    min-width: 0;
    padding: 1.25rem;
}

.pack-image {
    display: block;
    width: 100%;
    max-width: 104px;
    height: 104px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(239, 68, 68, 0.18));
}

.pack-amount {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.pack-card.selected .pack-amount {
    color: #ff8492;
}

@media (max-width: 480px) {
    .pack-grid {
        gap: 0.75rem;
    }

    .pack-card {
        padding: 1rem 0.75rem;
    }

    .pack-image {
        height: 88px;
        max-width: 88px;
    }
}


/* iOS-inspired glass surfaces. Typography remains inherited. */
:root {
    --accent-gradient: linear-gradient(135deg, #ec454c 0%, #cc2431 48%, #790d20 100%);
    --glass-border: rgba(255, 255, 255, .12);
    --glass-shadow: 0 24px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .09);
}
body { background: #09090c; position: relative; isolation: isolate; min-height: 100vh; }
body::before, body::after {
    content: ''; position: fixed; inset: -15%; z-index: -1;
    pointer-events: none; background-repeat: no-repeat; will-change: transform;
}
body::before {
    background: radial-gradient(ellipse at 12% 25%, rgba(169, 24, 49, .22), transparent 48%), radial-gradient(ellipse at 88% 78%, rgba(109, 13, 33, .23), transparent 48%);
    animation: ambientDrift 32s ease-in-out infinite alternate;
}
body::after {
    background: radial-gradient(ellipse at 78% 22%, rgba(117, 128, 158, .1), transparent 42%), radial-gradient(ellipse at 38% 88%, rgba(218, 43, 60, .07), transparent 46%);
    animation: ambientDrift 44s ease-in-out -17s infinite alternate-reverse;
}
@keyframes ambientDrift {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
.navbar {
    top: 18px; left: 50%; right: auto; width: max-content; max-width: calc(100% - 32px);
    transform: translateX(-50%); border: 1px solid rgba(255,255,255,.15); border-radius: 28px;
    background: rgba(30, 29, 34, .66); box-shadow: 0 12px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
}
.nav-container { min-height: 64px; padding: 10px 24px; }
.step { padding-top: 108px; }
.hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px;
    min-height: calc(100svh - 140px); padding: 40px 0 24px;
}
.hero-left { padding: 20px 8px; min-width: 0; }
.hero-right {
    height: 440px; border-radius: 44px;
    background: radial-gradient(ellipse at 50% 44%, rgba(186, 38, 57, .15), transparent 68%), linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.015));
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
.hero-right::before {
    content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 64px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.17);
}
.hero-description { margin-bottom: 24px; }
.cta-button { width: 100%; margin-bottom: 26px; }
.character-img { max-width: 100%; height: 310px; }
.floating-character { width: 70%; text-align: center; }
.status-badge { border-radius: 99px; padding: 9px 13px; }
.badge-1 { top: 11%; left: 7%; }
.badge-2 { top: 29%; right: 5%; }
.badge-3 { bottom: 22%; left: 5%; }
.badge-4 { bottom: 8%; right: 7%; }
.stats-grid {
    gap: 0; padding: 18px 0; border-radius: 26px; border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.stat-card { padding: 4px 12px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.stat-card + .stat-card { border-left: 1px solid rgba(255,255,255,.1); }
.stat-card:hover { transform: none; box-shadow: none; }
.partners { padding: 26px 0 40px; }
.partners-label { margin-bottom: 18px; }
.partners-grid { gap: 26px; }
.form-section, .processing-section, .status-badge, .notification {
    background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.015)), rgba(21,21,26,.72);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(135%); backdrop-filter: blur(24px) saturate(135%);
}
.form-section, .processing-section { border-radius: 36px; margin: 28px auto 44px; }
.form-section { max-width: 760px; padding: 36px; }
.form-header { margin-bottom: 28px; }
.config-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.input-section, .form-actions { grid-column: 1 / -1; }
.input-section, .platform-section, .pack-section { margin-bottom: 0; min-width: 0; }
.input-label { margin-bottom: 12px; }
.form-input {
    background: rgba(0,0,0,.21); border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
    padding: 18px 20px; box-shadow: inset 0 2px 7px rgba(0,0,0,.1);
}
.form-input:focus { background: rgba(0,0,0,.3); border-color: #e64550; box-shadow: 0 0 0 4px rgba(230,69,80,.12); }
.device-grid { gap: 0; border: 1px solid var(--glass-border); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.035); }
.device-grid .platform-card {
    border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 76px; padding: 18px 16px;
}
.device-grid .platform-card + .platform-card { border-top: 1px solid rgba(255,255,255,.08); }
.device-grid .platform-card:hover { transform: none; background: rgba(255,255,255,.035); }
.device-grid .platform-card.selected { background: linear-gradient(110deg, rgba(222,45,63,.19), rgba(122,14,32,.09)); }
.device-grid .platform-card::after { width: 20px; height: 20px; border-width: 1px; border-color: #68686e; }
.device-grid .platform-card.selected::after { background: var(--accent-gradient); border-color: #f05c65; box-shadow: inset 0 0 0 4px #35131c; }
.pack-grid { gap: 12px; }
.pack-card { position: relative; border-radius: 22px; padding: 16px 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.pack-image { height: 72px; max-width: 80px; }
.pack-card:hover { background: rgba(255,255,255,.065); border-color: rgba(232,69,84,.45); }
.pack-card.selected { border-color: #ec505c; background: linear-gradient(140deg, rgba(214,44,62,.19), rgba(109,12,32,.16)); box-shadow: 0 0 0 2px rgba(226,48,66,.12), inset 0 1px 0 rgba(255,255,255,.09); }
.form-actions, .processing-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.form-actions { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }
.cta-button, .continue-button:not(:disabled), .login-btn, .download-button, #step3 .download-button, #step3 .download-button:hover {
    background: var(--accent-gradient); color: #fff; box-shadow: 0 10px 26px rgba(128,12,30,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
.continue-button, .download-button, .try-again-button { border-radius: 18px; min-height: 54px; width: 100%; }
.cta-button:hover, .continue-button:not(:disabled):hover, .download-button:hover, #step3 .download-button:hover {
    filter: brightness(1.09); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(160,18,40,.3);
}
.continue-button:disabled { background: rgba(255,255,255,.075); color: #88888f; box-shadow: none; }
.back-button { justify-content: center; min-height: 44px; border-radius: 15px; }
.back-button:hover { background: rgba(255,255,255,.045); }
.version-tag { background: rgba(233,53,72,.1); border-color: rgba(239,87,104,.25); color: #ff8a95; }
.title-main { background-image: linear-gradient(135deg, #ff9aa2, #ef4858 50%, #a31a31); }
.stat-number { color: #ff7d8a; background: none; -webkit-text-fill-color: currentColor; }
.progress-fill, .visual-circle, .nav-link::after { background: var(--accent-gradient); }
#step3 .processing-section { border-color: var(--glass-border); box-shadow: var(--glass-shadow); }
.verification-icon { border-radius: 27px; background: linear-gradient(145deg, rgba(237,58,77,.18), rgba(114,11,31,.12)); border-color: rgba(242,96,112,.22); color: #ff7d8a; box-shadow: 0 0 0 9px rgba(230,49,70,.04), inset 0 1px 0 rgba(255,255,255,.07); }
.request-details { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 0 18px; }
.detail-item { margin: 0; padding: 16px 0; }
.detail-item + .detail-item { border-top: 1px solid rgba(255,255,255,.08); }
.notification { border-radius: 22px; }
@media (max-width: 768px) {
    .navbar { top: 10px; border-radius: 24px; }
    .nav-container { min-height: 58px; padding: 9px 20px; }
    .step, #step1 { padding-top: 90px; }
    #step1 .hero { gap: 16px; padding-top: 4px; }
    #step1 .hero-right { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 32px; height: clamp(160px, 26svh, 240px); }
    #step1 .hero-left { padding: 0; }
    #step1 .status-badge { border-radius: 99px; }
    #step1 .floating-character { width: 58%; justify-content: center; }
    #step1 .stats-grid { gap: 0; padding: 12px 0; border-radius: 22px; }
    #step1 .stat-card { border-radius: 0; padding: 4px; }
    .form-section, .processing-section { border-radius: 28px; padding: 26px 18px; margin-top: 14px; }
    .config-form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .form-title { overflow-wrap: anywhere; }
    .device-grid .platform-card { min-height: 62px; }
    .pack-card { padding: 16px 12px; }
    .pack-image { height: 88px; max-width: 88px; }
    .partners-grid { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    body::before, body::after { animation: none; will-change: auto; }
}

/* Phone-first composition and one decision per screen. */
html { scroll-padding-top: 100px; scroll-padding-bottom: 120px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 560px; padding: 0 16px; }
.navbar { top: max(10px, env(safe-area-inset-top)); }
.step, #step1 { padding-top: calc(88px + env(safe-area-inset-top)); padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
/* A finished transform animation must not trap the fixed action dock. */
.step.active { animation-fill-mode: none; }
#step1 { padding-bottom: 20px; }
#step1 .hero { display: flex; flex-direction: column; min-height: 0; gap: 12px; padding: 0; }
#step1 .hero-right {
    order: 0; flex: none; width: 100%; max-width: none;
    height: clamp(130px, 23svh, 220px); margin: 0; border-radius: 30px;
}
#step1 .hero-left { order: 1; width: 100%; padding: 0; text-align: center; }
#step1 .floating-character { top: 0; width: 56%; height: 100%; display: flex; align-items: center; justify-content: center; }
#step1 .character-img { width: auto; height: 92%; max-width: 100%; object-fit: contain; }
#step1 .hero-title { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 6px; }
#step1 .title-main, #step1 .title-sub { display: inline; }
#step1 .version-tag { margin-bottom: 7px; padding: 3px 12px; }
#step1 .hero-description { margin: 0 0 12px; }
#step1 .cta-button { width: 100%; max-width: none; min-height: 56px; padding: 9px 24px; margin: 0 0 14px; }
#step1 .stats-grid { margin: 0; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 10px 0; gap: 0; }
#step1 .stat-card { padding: 2px 4px; }
#step1 .status-badge { padding: 6px 9px; }
#step1 .badge-1 { top: 10%; left: 4%; }
#step1 .badge-2 { top: 24%; right: 3%; }
#step1 .badge-3 { bottom: 15%; left: 3%; }
#step1 .badge-4 { bottom: 6%; right: 3%; }
#step1 .partners { padding: 24px 0 12px; }
.form-section { padding: 22px 0 0; margin: 0; border: 0; box-shadow: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.form-header { margin-bottom: 18px; }
.form-title { overflow-wrap: normal; }
.form-subtitle { max-width: 100%; }
.config-form { display: block; }
.setup-progress { display: flex; gap: 6px; max-width: 180px; margin: 0 auto 12px; }
.setup-dot { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.12); transition: background .2s ease; }
.setup-dot.is-current { background: #ff6475; box-shadow: 0 0 16px rgba(235,53,79,.25); }
.setup-dot.is-complete { background: #8c2639; }
.setup-hint { text-align: center; margin: 0 0 26px; color: #ff9daa; }
.input-section, .platform-section, .pack-section { width: 100%; padding: 18px; border-radius: 26px; background: rgba(255,255,255,.035); border: 1px solid var(--glass-border); }
.form-input { min-height: 60px; }
.device-grid .platform-card { min-height: 70px; padding: 18px 16px; }
.pack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pack-card { min-height: 134px; padding: 16px 10px; gap: 8px; }
.pack-image { height: 72px; max-width: 80px; }
.pack-card.selected::after {
    content: ''; position: absolute; top: 12px; right: 12px; width: 12px; height: 7px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.form-actions, #step3 .processing-actions {
    position: fixed; z-index: 100; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 560px; display: flex; flex-direction: row; align-items: center; gap: 12px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: rgba(19,17,23,.91); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 26px 26px 0 0;
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 -12px 40px rgba(0,0,0,.22);
}
.form-actions .back-button, #step3 .processing-actions .back-button { order: -1; flex: 0 0 auto; min-width: 72px; min-height: 56px; padding: 8px; }
.continue-button, #step3 .download-button { flex: 1; min-width: 0; min-height: 56px; }
.processing-section { padding: 28px 20px; margin: 12px 0; }
.notification { bottom: calc(105px + env(safe-area-inset-bottom)); }
@media (min-width: 769px) {
    .container { max-width: 560px; }
    #step1 .hero { min-height: 0; }
    .hero-left, .hero-right { animation: fadeIn .5s ease both; }
}
@media (max-height: 680px) {
    #step1 .hero-right { height: 125px; }
    #step1 .hero { gap: 8px; }
}

/* Spacious hero, shared product identity, and a raised floating action dock. */
#step1 .hero { gap: 28px; padding-top: 14px; }
#step1 .hero-right {
    height: clamp(240px, 34svh, 320px);
    border-radius: 36px;
    background: radial-gradient(ellipse at 50% 48%, rgba(193, 35, 59, .18), transparent 68%);
    border-color: transparent;
    box-shadow: none;
}
#step1 .hero-right::before { display: none; }
#step1 .floating-character { width: 64%; }
#step1 .character-img { height: 86%; }
#step1 .status-badge { padding: 9px 12px; }
#step1 .badge-1 { top: 8%; left: 5%; }
#step1 .badge-2 { top: 30%; right: 0; }
#step1 .badge-3 { bottom: 18%; left: 0; }
#step1 .badge-4 { bottom: 0; right: 6%; }
#step1 .hero-left { padding: 0 6px; }
#step1 .version-tag { margin-bottom: 16px; padding: 5px 14px; }
#step1 .hero-title { margin-bottom: 14px; gap: 12px; }
#step1 .hero-description { margin-bottom: 26px; }
#step1 .cta-button { min-height: 62px; padding: 12px 24px; margin-bottom: 30px; }
#step1 .stats-grid { padding: 18px 0; }
#step1 .stat-card { padding: 6px 4px; }
#step1 .partners { padding: 38px 0 26px; }
.step-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 6px auto 22px; text-align: center; }
.step-brand-image { display: block; width: 124px; height: 116px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(215, 36, 66, .2)); }
.step-brand-title { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 12px; row-gap: 0; margin: 0; width: 100%; }
.step-brand-title .title-main, .step-brand-title .title-sub { display: inline; }
.form-header { margin-bottom: 24px; }
.form-section { padding-top: 10px; }
.form-actions, #step3 .processing-actions {
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: calc(100% - 32px); max-width: 528px;
    padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
#step2, #step3, #step4 { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.notification { bottom: calc(124px + env(safe-area-inset-bottom)); }
@media (max-width: 768px) {
    .step-brand-title .title-sub { font-size: inherit; font-weight: 400; }
}
@media (max-height: 680px) {
    #step1 .hero-right { height: 230px; }
    #step1 .hero { gap: 24px; }
    .step-brand-image { width: 108px; height: 100px; }
}
