/* CUSTOM FONTS */
@font-face {
    font-family: 'Nuronium';
    src: url('fonts/light-1.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nuronium';
    src: url('fonts/regular-1.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nuronium';
    src: url('fonts/medium-1.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nuronium';
    src: url('fonts/bold1-1.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS VARIABLES FOR CONSISTENCY */
:root {
    --primary-green: #28cee0;
    --primary-green-dark: #28cee0;
    --bg-dark: #000000;
    --bg-gradient-1: #0b1f34;
    --bg-gradient-2: #02070d;
    --card-bg: rgba(0, 0, 0, 0.28);
    --card-white: rgba(255, 255, 255, 0.1);
    --card-white-hover: rgba(255, 255, 255, 0.2);
    --text-white: #ffffff;
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-button: 0 4px 15px #28cee04D;
    --border-radius-card: 22px;
    --border-radius-button: 14px;
}

/* RESET AND BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    /* Prevent zoom on iOS */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nuronium';
    color: var(--text-white);
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile */
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Safe area support for notched devices */
    padding-top: max(20px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Simplified background to remove vignette/inner shadow effect */
    background:
        radial-gradient(circle at 25% 20%,
            rgba(34, 77, 103, 0.45) 0%,
            rgba(0, 0, 0, 1) 80%),
        var(--bg-dark);
    background-size: cover;
}

/* MAIN CONTAINER */
.container {
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    text-align: center;

    /*background: var(--card-bg);
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
*/
    /* Subtle animation on load */
    animation: fadeInUp 0.3s ease-out;
}

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

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

.container.fade-out {
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* TYPOGRAPHY */
h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    /*letter-spacing: -0.02em;*/
}

/* LOGO */
.logo {
    width: clamp(120px, 28vw, 160px);
    margin: 0 auto 25px auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* BOX STEPS */
.box-steps {
    margin: 30px auto;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.box-step {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    min-height: 120px;
}

.box-step-left {
    flex: 1.2;
    padding: 15px;
    font-size: clamp(18px, 4vw, 22px);
    text-align: center;
    color: var(--text-white);
}

.box-step-divider {
    width: 1px;
    height: 100%;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.4);
}

.box-step-right {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-step-right img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: contain;
}

/* INSTRUCTION LIST */
ul {
    text-align: left;
    margin: 30px auto;
    padding-left: 22px;
    max-width: 380px;
    line-height: 20px;
    font-size: 16px;
    color: white;
    font-weight: 100;
}

li {
    margin-bottom: 12px;
    position: relative;
}

li strong {
    color: var(--text-white);
    font-weight: 700;
}

/* Custom bullet points */
li::marker {
    color: var(--primary-green);
}

/* START BUTTON */
.start-btn {
    margin-top: 28px;
    width: 100%;
    padding: 16px 24px;

    font-size: clamp(16px, 4.5vw, 18px);
    font-weight: 700;
    color: var(--text-white);

    border: 1px solid white;
    border-radius: var(--border-radius-button);

    background: transparent;
    cursor: pointer;

    transition: all 0.3s ease;
    transform: translateY(0);

    /* Prevent tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;

    /* Ensure button is accessible */
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #28cee04D, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
}

.start-btn:hover::before {
    opacity: 1;
}

.start-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* MOBILE PORTRAIT OPTIMIZATION */
@media (max-width: 768px) and (orientation: portrait) {
    body {
        padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    }

    .container {
        width: 95%;
        padding: 32px 24px;
        border-radius: 20px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .logo {
        width: 120px;
        margin-bottom: 20px;
    }

    ul {
        font-size: 15px;
        padding-left: 20px;
        margin: 24px auto;
        max-width: 100%;
    }

    li {
        margin-bottom: 10px;
    }

    .start-btn {
        padding: 14px 20px;
        font-size: 16px;
        margin-top: 24px;
    }
}

/* MOBILE LANDSCAPE OPTIMIZATION */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .container {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 28px 32px;
        max-width: 600px;
        width: 85%;
    }

    h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .logo {
        width: 100px;
        margin-bottom: 16px;
    }

    ul {
        font-size: 14px;
        margin: 20px auto;
        line-height: 1.6;
    }

    li {
        margin-bottom: 8px;
    }

    .start-btn {
        padding: 12px 24px;
        font-size: 15px;
        margin-top: 20px;
    }
}

/* VERY SMALL SCREENS */
@media (max-width: 450px) {
    .container {
        padding: 10px 15px;
        width: 100%;
        border-radius: 18px;
    }

    h1 {
        font-size: 26px;
    }

    .logo {
        width: 100px;
    }

    ul {
        font-size: 17px;
        padding-left: 18px;
    }

    .start-btn {
        padding: 12px 16px;
        font-size: 18px;
    }
}

/* EXTRA SMALL SCREENS */
@media (max-width: 360px) {
    .container {
        padding: 24px 16px;
        width: 98%;
    }

    h1 {
        font-size: 20px;
    }

    .logo {
        width: 85px;
    }

    ul {
        font-size: 13px;
        padding-left: 16px;
    }

    .start-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* TABLET AND DESKTOP OPTIMIZATION */
@media (min-width: 769px) {
    body {
        padding: 40px 20px;
    }

    .container {
        max-width: 520px;
        padding: 50px 40px;
        border-radius: 24px;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .logo {
        width: 160px;
        margin-bottom: 28px;
    }

    ul {
        font-size: 17px;
        padding-left: 26px;
        margin: 32px auto;
        max-width: 420px;
    }

    li {
        margin-bottom: 14px;
    }

    .start-btn {
        font-size: 18px;
        padding: 18px 32px;
        margin-top: 32px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* TALL DEVICES */
@media (min-height: 900px) {
    body {
        align-items: flex-start;
        padding-top: 12vh;
    }
}

/* WIDE DESKTOP SCREENS */
@media (min-width: 1200px) {
    .container {
        max-width: 580px;
        padding: 60px 50px;
    }

    h1 {
        font-size: 36px;
    }

    .logo {
        width: 180px;
    }

    ul {
        font-size: 18px;
        max-width: 450px;
    }

    .start-btn {
        font-size: 19px;
        padding: 20px 40px;
    }
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .container {
        animation: none;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .container {
        border: 2px solid var(--text-white);
        background: rgba(0, 0, 0, 0.9);
    }

    .start-btn {
        border: 2px solid var(--primary-green);
    }
}

/* FOCUS STYLES FOR KEYBOARD NAVIGATION */
.start-btn:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
}

/* TOUCH OPTIMIZATION */
@media (hover: none) and (pointer: coarse) {
    .start-btn {
        min-height: 44px;
        /* Minimum touch target size */
    }

    .start-btn:hover {
        transform: none;
        /* Disable hover effects on touch devices */
    }

    .start-btn:active {
        background: transparent;
        transform: scale(0.98);
    }
}

/* PREVENT ZOOM ON DOUBLE TAP (iOS) */
.start-btn {
    touch-action: manipulation;
}

/* LOADING ANIMATION FOR FORM SUBMISSION */
.start-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.start-btn.loading::after {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}