/* ==========
   BODY
   ========== */
body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden !important;
}

/* ==========
   INTRO SCREEN
   ========== */
.intro-screen {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}
.intro-screen.active { opacity: 1; visibility: visible; }

.intro-content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========
   SLIDES
   ========== */
.slide {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    max-width: 760px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Small label above title */
.slide-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin: 0 0 20px 0;
}

/* Main title */
.slide-title {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 32px 0;
}

/* Subtitle text */
.slide-text-large {
    font-size: 17px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 0 32px 0;
}

/* ==========
   SLIDE 1 - Apps Grid
   ========== */
.apps-grid-intro {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.app-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px 12px;
    transition: background 0.3s;
}
.app-price-item:hover { background: rgba(255,255,255,0.06); }

.app-icon-small { font-size: 32px; }
.app-name { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); }
.app-price-small { font-size: 13px; color: rgba(255,255,255,0.35); }

.total-year-compact {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 28px;
}
.total-label { font-size: 15px; color: rgba(255,255,255,0.5); }
.total-value { font-size: 24px; font-weight: 600; color: #fff; }

/* ==========
   SLIDE 2 - Solution
   ========== */
.solution-price-huge {
    font-size: 88px;
    font-weight: 700;
    letter-spacing: -3px;
    color: #fff;
    line-height: 1;
    margin-bottom: 16px;
}

.economy-badge {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 15px;
    color: rgba(255,255,255,0.55);
}
.economy-badge strong { color: #fff; font-weight: 600; }

/* ==========
   SLIDE 3 - Features
   ========== */
.slide-subtitle-large {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 28px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}
.feature-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 22px;
    text-align: left;
    transition: background 0.3s;
}
.feature-box:hover { background: rgba(255,255,255,0.06); }
.feature-icon { font-size: 22px; margin-bottom: 10px; }
.feature-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.5; }

/* ==========
   SLIDE 4 - CTA
   ========== */
.slide-title-final {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 12px;
}

.cta-button-intro {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 36px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
}
.cta-button-intro:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(255,255,255,0.12);
}

.skip-btn-intro {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    margin-top: 18px;
    cursor: pointer;
    transition: color 0.3s;
    font-family: inherit;
}
.skip-btn-intro:hover { color: rgba(255,255,255,0.7); }

/* ==========
   PROGRESS DOTS
   ========== */
.progress-dots {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}
.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}
.dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* ==========
   LOGIN SCREEN
   ========== */
body.overflow-ok { overflow: auto !important; }

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    padding: 20px;
    overflow: auto;
}

.login-container {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
}

.login-header { text-align: center; margin-bottom: 32px; }
.logo-large { font-size: 30px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 8px; }
.beta-badge-login {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.login-subtitle { color: rgba(255,255,255,0.4); font-size: 14px; margin: 0; }

.form-group-login { margin-bottom: 18px; }
.form-group-login label { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.5); font-size: 13px; }
.form-group-login input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: inherit;
}
.form-group-login input:focus { outline: none; border-color: rgba(255,255,255,0.25); }

.login-btn {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,0.08); }

.error-message { color: #ff6b6b; font-size: 13px; text-align: center; margin-top: 14px; min-height: 18px; }

.login-footer { text-align: center; margin-top: 20px; color: rgba(255,255,255,0.3); font-size: 13px; }
.register-link { color: rgba(255,255,255,0.6); text-decoration: none; }
.register-link:hover { color: #fff; }

.demo-credentials { text-align: center; }

/* Spinner */
.spinner-login {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
