/* ============================================
   URBot Welcome Page — Post-Registration
   Dark theme, animated transitions, responsive
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg-primary, #0a0a1a);
    color: var(--text-primary, #e2e8f0);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Header ---- */
.welcome-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(15, 15, 35, 0.95);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    position: sticky;
    top: 0;
    z-index: 200;
}
.welcome-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
}
.welcome-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.welcome-nav-link {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.welcome-nav-link:hover { color: #fff; }
.welcome-login-btn {
    color: var(--accent-primary, #10b981);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--accent-primary, #10b981);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.welcome-login-btn:hover {
    background: var(--accent-primary, #10b981);
    color: #000;
}

/* ---- Section Headings ---- */
.section-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.section-subheading {
    text-align: center;
    font-size: 15px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 32px;
}

/* ---- Hero ---- */
.welcome-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 60px 20px;
    background: var(--gradient-hero, linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 40%, #0a1a2e 100%));
    overflow: hidden;
}
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
}
.hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary, #10b981);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-40px) scale(1.5); opacity: 0.8; }
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    z-index: 1;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}
.hero-greeting {
    background: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 32px;
    line-height: 1.5;
}
.hero-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-cta {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.hero-cta:hover {
    transform: translateY(-2px);
}
.hero-cta-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.hero-cta-primary:hover {
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.45);
}
.hero-cta-secondary {
    background: transparent;
    color: var(--text-secondary, #e2e8f0);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
}
.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ---- Steps Grid ---- */
.welcome-steps {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px 28px;
    background: var(--bg-card, rgba(15, 15, 40, 0.85));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    /* Scroll animation initial state */
    opacity: 0;
    transform: translateY(30px);
}
.step-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary, #10b981);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}
.step-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
.step-icon {
    margin-bottom: 16px;
    color: var(--accent-primary, #10b981);
    opacity: 0.85;
}
.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.step-desc {
    font-size: 14px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.6;
    margin-bottom: 16px;
}
.step-link-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary, #10b981);
    transition: opacity 0.2s;
}
.step-card:hover .step-link-text { opacity: 0.8; }

/* ---- Included FREE Grid ---- */
.welcome-included {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.included-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card, rgba(15, 15, 40, 0.85));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.included-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.included-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.included-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}
.included-desc {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.55;
}

/* ---- Activity Feed ---- */
.welcome-activity {
    padding: 48px 20px;
    max-width: 700px;
    margin: 0 auto;
}
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow: hidden;
    position: relative;
}
.activity-feed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg-primary, #0a0a1a));
    pointer-events: none;
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card, rgba(15, 15, 40, 0.85));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    animation: activitySlideIn 0.4s ease-out;
}
.activity-item .activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary, #10b981);
    flex-shrink: 0;
}
.activity-item .activity-text {
    flex: 1;
}
.activity-item .activity-time {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    opacity: 0.6;
    white-space: nowrap;
}
.activity-loading {
    text-align: center;
    padding: 30px;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    opacity: 0.6;
}
@keyframes activitySlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---- Ticker animation ---- */
.activity-feed.ticker .activity-item {
    animation: tickerSlide 0.5s ease-out;
}
@keyframes tickerSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Privacy Card ---- */
.welcome-privacy {
    padding: 48px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.privacy-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
}
.privacy-icon { flex-shrink: 0; }
.privacy-text { flex: 1; }
.privacy-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.privacy-desc {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
}
.privacy-link {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary, #10b981);
    text-decoration: none;
    white-space: nowrap;
}
.privacy-link:hover { text-decoration: underline; }

/* ---- Quiz Preview ---- */
.welcome-quiz-preview {
    padding: 48px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.quiz-preview-card {
    padding: 24px;
    background: var(--bg-card, rgba(15, 15, 40, 0.85));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
}
.quiz-preview-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.quiz-preview-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.quiz-preview-bubble {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}
.quiz-preview-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
}
.quiz-preview-option {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #e2e8f0);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.quiz-preview-option:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-primary, #10b981);
    color: #fff;
}
.quiz-preview-option.selected {
    background: var(--accent-primary, #10b981);
    color: #000;
    border-color: var(--accent-primary, #10b981);
}
.quiz-preview-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    opacity: 0.6;
}

/* ---- Final CTA ---- */
.welcome-final-cta {
    padding: 60px 20px;
    text-align: center;
}
.final-cta-heading {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}
.final-cta-sub {
    font-size: 16px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 28px;
}
.final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Footer ---- */
.welcome-footer {
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
}
.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    opacity: 0.6;
}

/* ---- Trust Badges ---- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    opacity: 0.7;
}
.trust-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-primary, #10b981);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .welcome-hero { min-height: 320px; padding: 40px 16px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
    .hero-cta { padding: 12px 22px; font-size: 14px; }
    .section-heading { font-size: 22px; }
    .steps-grid { grid-template-columns: 1fr; }
    .included-grid { grid-template-columns: 1fr; }
    .privacy-card { flex-direction: column; text-align: center; }
    .privacy-link { margin-top: 8px; }
    .step-card { padding: 28px 18px 24px; }
}

@media (max-width: 480px) {
    .welcome-header { padding: 10px 14px; gap: 10px; }
    .welcome-logo { font-size: 18px; }
    .welcome-nav-link { font-size: 12px; }
    .hero-title { font-size: 26px; }
    .hero-cta-row { flex-direction: column; align-items: center; }
    .hero-cta { width: 100%; max-width: 280px; text-align: center; }
    .quiz-preview-options { gap: 8px; }
    .quiz-preview-option { font-size: 12px; padding: 6px 12px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .step-card,
    .included-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-particles .particle { animation: none; }
    .activity-item { animation: none; }
}
