@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Global Overrides for Inner Pages --- */
* { font-family: 'Plus Jakarta Sans', sans-serif; }
.page-body { background-color: #f8fafc; color: #0f172a; margin: 0; padding: 0; overflow-x: hidden; }
.content-wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 2; }
.bg-gray { background: #f1f5f9; }

/* --- Reveal Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Navigation Fixes --- */
nav { z-index: 100; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); }
.btn-login { background: transparent; color: #0ea5e9; border: 2px solid #0ea5e9; padding: 8px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.3s; }
.btn-login:hover { background: #0ea5e9; color: white; }
.btn-login i { margin-right: 6px; }

/* --- Canvas Wave Background Setup --- */
.page-hero, .bottom-cta {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.wave-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Page Hero --- */
.page-hero {
    padding: 12rem 5% 10rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-inner { max-width: 850px; margin: 0 auto; position: relative; z-index: 2; }
.badge-pill { background: white; color: #0ea5e9; padding: 10px 24px; border-radius: 50px; display: inline-block; font-weight: 600; margin-bottom: 2rem; border: 1px solid rgba(14, 165, 233, 0.2); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.page-hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; color: #0f172a; }
.page-hero p { font-size: 1.4rem; color: #475569; line-height: 1.6; }

/* --- Vertical Timeline Section --- */
.timeline-section { padding: 6rem 0; background: #f8fafc; }
.timeline-container { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }

/* The vertical connecting line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 39px; /* Centers the line exactly under the marker */
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0 0%, #0ea5e9 50%, #e2e8f0 100%);
    z-index: 1;
}

.timeline-step { display: flex; gap: 3rem; margin-bottom: 4rem; position: relative; z-index: 2; }
.timeline-step:last-child { margin-bottom: 0; }

/* The Number Circle */
.step-marker {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid #0ea5e9;
    color: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 0 8px #f8fafc; /* Masks the line behind it */
}

/* The Content Box */
.step-content { flex: 1; }
.bento-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 3rem; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05); transition: transform 0.3s ease; }
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08); }
.highlight-border { border: 2px solid #0ea5e9; box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2); }

.step-icon { font-size: 2.5rem; color: #94a3b8; margin-bottom: 1.5rem; }
.text-green { color: #10b981 !important; }
.step-content h3 { font-size: 1.8rem; color: #0f172a; margin-bottom: 1rem; font-weight: 700; }
.step-content p { color: #475569; font-size: 1.15rem; line-height: 1.7; margin: 0; }
.step-content strong { color: #0f172a; }

/* --- Rules of Engagement Grid --- */
.rules-section { padding: 8rem 0; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 3rem; color: #0f172a; margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.5px; }
.section-header p { font-size: 1.2rem; color: #64748b; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.rule-card { background: white; padding: 2.5rem; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.rule-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.rule-icon { font-size: 1.8rem; }
.error-red { color: #ef4444; }
.warning-orange { color: #f59e0b; }
.success-green { color: #10b981; }

.rule-card h4 { font-size: 1.4rem; color: #0f172a; font-weight: 700; margin: 0;}
.rule-card p { color: #475569; font-size: 1.1rem; line-height: 1.7; margin: 0;}

/* --- Bottom CTA --- */
.bottom-cta { padding: 10rem 0; text-align: center; min-height: 50vh; display: flex; align-items: center; justify-content: center; }
.cta-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-inner h2 { font-size: 3.5rem; color: #0f172a; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.cta-inner p { font-size: 1.4rem; color: #475569; margin-bottom: 3rem; line-height: 1.6; }
.cta-btn { background: #0ea5e9; color: white; border-radius: 12px; font-weight: 700; padding: 18px 40px; font-size: 1.15rem; text-decoration: none; display: inline-block; transition: all 0.2s; border: none; }
.cta-btn:hover { transform: translateY(-3px); background: #0284c7; box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3); }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 3rem; }
    .timeline-line { left: 30px; } 
    .step-marker { width: 60px; height: 60px; font-size: 1.5rem; }
    .timeline-step { gap: 1.5rem; }
    .bento-card { padding: 2rem; }
    .step-content h3 { font-size: 1.5rem; }
    .cta-inner h2 { font-size: 2.8rem; }
}