/* ==========================================================
   HOME — LANDING PAGE — LIGHT THEME
   ========================================================== */

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

body.home {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- NAVBAR ---------- */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.home-nav .logo {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #0284c7, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.home-nav .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.home-nav .nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.home-nav .nav-links a:hover {
    color: #0284c7;
}

.home-nav .nav-links .btn-start {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-nav .nav-links .btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Theme toggle (navbar) */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.3);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}
.theme-toggle:hover { background: #64748b; color: #ffffff; }

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #0f172a;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, #0284c7, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-bullets {
    list-style: none;
    margin-bottom: 30px;
}

.hero-bullets li {
    color: #334155;
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-bullets li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- HERO FORM (JOIN BOX) ---------- */
.join-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.join-box h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #0f172a;
}

.join-box .join-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.join-box label {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
    font-weight: 500;
}

.join-box input[type="url"] {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #1e293b;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.join-box input[type="url"]:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.join-box .btn-join {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.join-box .btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}

.join-box .join-note {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 14px;
}

.join-box .join-note strong {
    color: #059669;
}

/* ---------- STATS BAR ---------- */
.stats-bar {
    background: #ffffff;
    padding: 40px 20px;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.stats-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-block .stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #0284c7, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 4px;
}

.stat-block .stat-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0f172a;
}

.step-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.step-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* ---------- FEATURES ---------- */
.features {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent, rgba(226, 232, 240, 0.6), transparent);
}

.features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f172a;
}

.feature-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-final h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    color: #0f172a;
}

.cta-final p {
    color: #64748b;
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-final .btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cta-final .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

/* ---------- FOOTER ---------- */
.home-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 13px;
}

.home-footer a {
    color: #0284c7;
    text-decoration: none;
}

.home-footer a:hover {
    text-decoration: underline;
}

/* ---------- ALERTS ---------- */
.home-alert {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.home-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.home-alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-bullets {
        display: inline-block;
        text-align: left;
    }
    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .home-nav {
        padding: 14px 20px;
    }
    .home-nav .nav-links {
        gap: 16px;
    }
    .home-nav .nav-links a:not(.btn-start):not(.theme-toggle) {
        display: none;
    }
}

@media (max-width: 500px) {
    .stats-bar-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .stat-block .stat-number {
        font-size: 28px;
    }
    .join-box {
        padding: 24px;
    }
}