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

:root {
    --red: #DD0000;
    --gold: #FFCE00;
    --bg: #0d0d0d;
    --bg2: #080808;
    --card: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.09);
    --text: #f5f5f5;
    --muted: #999;
    --font: 'Cairo', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 70px; /* space for sticky CTA */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== COLORS ===== */
.red  { color: var(--red);  }
.gold { color: var(--gold); }
.grad {
    background: linear-gradient(90deg, var(--gold), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SECTION BASE ===== */
.section {
    padding: 30px 16px;
    text-align: center;
}
.bg-dark   { background: var(--bg);  }
.bg-darker { background: var(--bg2); }

/* ===== SECTION TITLES ===== */
.sec-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.25;
}
.sec-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
}
.hero-img-wrap {
    position: relative;
    width: 100%;
    height: 240px;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.hero-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-body {
    padding: 16px 16px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hero-body h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
}
.hero-body p {
    color: #ccc;
    font-size: 0.95rem;
    max-width: 340px;
}

/* ===== CHIP / BADGE ===== */
.chip, .urgency-chip {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,206,0,0.1);
    color: var(--gold);
    border: 1px solid rgba(255,206,0,0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.urgency-chip {
    color: var(--red);
    background: rgba(221,0,0,0.1);
    border-color: rgba(221,0,0,0.3);
    margin-bottom: 8px;
}

/* ===== BUTTONS ===== */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(221,0,0,0.35);
}
.btn-main:active { transform: scale(0.97); background: #b80000; }
.btn-main.full    { width: 100%; }
.btn-main.sm-btn  { padding: 11px 20px; font-size: 0.95rem; width: 100%; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}
.btn-outline:active { border-color: var(--gold); }

/* ===== PULSE ANIMATION ===== */
@keyframes pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(221,0,0,0.35); }
    50%      { box-shadow: 0 4px 30px rgba(221,0,0,0.6);  }
}
.pulse { animation: pulse 2s infinite; }

/* ===== PAIN POINTS ===== */
.pain-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    text-align: right;
}
.pain-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}
.pain-icon {
    width: 42px; height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.red-icon  { background: rgba(221,0,0,0.12);  color: var(--red);  }
.gold-icon { background: rgba(255,206,0,0.12); color: var(--gold); }
.dim-icon  { background: rgba(255,255,255,0.07); color: #fff; }

.pain-item strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.pain-item p  { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* ===== CHECKLIST ===== */
.check-list {
    text-align: right;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.check-list.sm li { font-size: 0.88rem; gap: 8px; }
.check-list li i { min-width: 16px; }

/* ===== STATS ROW ===== */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid var(--border);
    padding: 8px 4px;
}
.stat:last-child { border-left: none; }
.stat-n { font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-l { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

/* ===== BENEFITS GRID ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.benefit-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.benefit-box i    { font-size: 1.5rem; }
.benefit-box strong { font-size: 0.9rem; }
.benefit-box p    { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

/* ===== COURSES ===== */
.courses-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    text-align: right;
}
.course-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    position: relative;
}
.course-card.popular {
    border-color: rgba(255,206,0,0.3);
    background: rgba(255,206,0,0.04);
}
.pop-badge {
    background: var(--gold);
    color: #000;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 6px;
}
.course-level {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.course-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.course-card .btn-main,
.course-card .btn-outline { margin-top: 12px; }

/* ===== TESTIMONIALS ===== */
.testi-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    text-align: right;
}
.testi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.testi-card p { font-size: 0.92rem; color: #ddd; font-style: italic; margin-bottom: 10px; line-height: 1.5; }
.testi-name { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.testi-name i { font-size: 0.9rem; }

/* ===== COUNTDOWN ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 0;
}
.time-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 6px;
    min-width: 62px;
    text-align: center;
}
.time-n {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.time-l { font-size: 0.72rem; color: var(--muted); }

/* ===== FORM ===== */
.reg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    text-align: right;
}
.field-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ddd;
}
.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.field-wrap i {
    position: absolute;
    right: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.field-wrap input,
.field-wrap select {
    width: 100%;
    padding: 13px 38px 13px 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font);
    font-size: 16px; /* CRITICAL: prevents iOS zoom */
    outline: none;
    transition: border-color 0.2s;
}
.field-wrap select {
    appearance: none;
    -webkit-appearance: none;
}
.field-wrap input:focus,
.field-wrap select:focus {
    border-color: var(--gold);
}
.form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: -4px;
}
.form-note i { margin-left: 4px; }

/* ===== SUCCESS ===== */
.success-box {
    text-align: center;
    padding: 40px 20px;
    background: #0d0d0d;
    border: 2px solid #22c55e;
    border-radius: 24px;
    margin-top: 18px;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}
.success-ico { font-size: 4rem; margin-bottom: 20px; }
.success-box h4 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.success-box p  { color: #aaa; font-size: 1.1rem; margin-bottom: 25px; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 14px;
    width: 100%;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:active { transform: scale(0.98); background: #1ebe57; }
.btn-whatsapp i { font-size: 1.4rem; }

.hidden { display: none !important; }

/* ===== STICKY BOTTOM CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 10px 16px;
    background: rgba(8,8,8,0.97);
    border-top: 1px solid var(--border);
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== TABLET (600px+) ===== */
@media (min-width: 600px) {
    .section { padding: 40px 24px; }
    .sec-title { font-size: 1.9rem; }
    .hero-img-wrap { height: 320px; }
    .hero-body h1 { font-size: 2rem; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== DESKTOP (900px+) ===== */
@media (min-width: 900px) {

    body { padding-bottom: 0; } /* no sticky CTA on desktop */

    /* Container for all sections */
    .section { padding: 80px 0; }
    .section > *,
    .section > .pain-list,
    .section > .check-list,
    .section > .stats-row,
    .section > .benefits-grid,
    .section > .courses-stack,
    .section > .testi-stack,
    .section > .countdown,
    .section > .reg-form,
    .section > .success-box {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    /* Wider section inner padding */
    .section { padding: 80px 40px; }

    /* Hero: full-viewport with text overlay */
    .hero {
        position: relative;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-img-wrap {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
    }
    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .hero-fade {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(8, 8, 8, 0.75);
    }
    .hero-body {
        position: relative;
        z-index: 2;
        max-width: 900px;
        margin: 0 auto;
        padding: 0 40px;
        text-align: center;
        align-items: center;
        gap: 20px;
    }
    .hero-body h1 { font-size: 3.2rem; max-width: 800px; }
    .hero-body p  { font-size: 1.15rem; max-width: 600px; }
    .btn-main     { padding: 16px 36px; font-size: 1.1rem; }
    .btn-main.full { width: auto; }

    /* Section titles */
    .sec-title { font-size: 2.4rem; }
    .sec-sub   { font-size: 1rem; }

    /* Pain points: horizontal row */
    .pain-list {
        flex-direction: row;
        gap: 20px;
    }
    .pain-item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }
    .pain-icon { width: 56px; height: 56px; font-size: 1.4rem; margin-bottom: 4px; }
    .pain-item strong { font-size: 1.1rem; }
    .pain-item p      { font-size: 0.9rem; }

    /* Solution: checklist wider */
    .check-list { max-width: 500px; }
    .check-list li { font-size: 1rem; }
    .stats-row { max-width: 500px; }
    .stat-n { font-size: 2rem; }
    .stat-l { font-size: 0.85rem; }

    /* Benefits: 4 columns */
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .benefit-box { padding: 24px 16px; }
    .benefit-box i      { font-size: 2rem; }
    .benefit-box strong { font-size: 1rem; }
    .benefit-box p      { font-size: 0.85rem; }

    /* Courses: 3-col row */
    .courses-stack {
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
    }
    .course-card { flex: 1; padding: 24px; }
    .course-card.popular {
        transform: scale(1.04);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }
    .course-card h3 { font-size: 1.3rem; }

    /* Testimonials: 3-col row */
    .testi-stack {
        flex-direction: row;
        gap: 20px;
    }
    .testi-card { flex: 1; padding: 24px; }
    .testi-card p      { font-size: 0.95rem; }
    .testi-name        { font-size: 0.85rem; }

    /* Urgency + Form: two-column side-by-side */
    .section-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
        text-align: right;
    }
    .urgency-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .urgency-col .sec-title { text-align: right; }
    .urgency-col .countdown { justify-content: flex-start; }
    .form-col { width: 100%; }

    .countdown { justify-content: flex-start; gap: 12px; }
    .time-box  { min-width: 80px; padding: 14px 10px; }
    .time-n    { font-size: 2rem; }
    .time-l    { font-size: 0.8rem; }

    /* Form on desktop */
    .reg-form { margin-top: 10px; max-width: 100%; }
    .field-wrap input,
    .field-wrap select { padding: 14px 42px 14px 14px; }

    /* Hide sticky CTA on desktop */
    .sticky-cta { display: none; }
}
