/* Claude Design Course Site — Light Theme */
/* Design language: nVision Academy hub | Accent: #7c3aed (purple) */

*{margin:0;padding:0;box-sizing:border-box}
html{overflow-x:hidden;max-width:100vw}

:root{
    --bg:#f8f9fb;
    --text:#1a1a2e;
    --text-2:#64748b;
    --text-3:#94a3b8;
    --accent:#7c3aed;
    --accent-hover:#6d28d9;
    --accent-light:#f5f3ff;
    --accent-mid:#ede9fe;
    --card:#fff;
    --border:#e2e8f0;
    --border-light:#f1f5f9;
    --radius:14px;
    --shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03);
    --shadow-hover:0 8px 30px rgba(124,58,237,.12),0 2px 8px rgba(0,0,0,.04);
}

body{
    font-family:'Heebo',sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
    min-height:100vh;
    overflow-x:hidden;
    direction:rtl;
}

/* ===== HEADER ===== */
header{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
}

.header-inner{
    max-width:1100px;
    margin:0 auto;
    padding:14px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.logo{
    font-size:18px;
    font-weight:800;
    color:var(--text);
    text-decoration:none;
    letter-spacing:-.3px;
    flex-shrink:0;
}
.logo span{color:var(--accent)}

.header-back{
    font-size:13px;
    font-weight:500;
    color:var(--text-2);
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:5px;
    transition:color .2s;
}
.header-back:hover{color:var(--accent)}

.header-badge{
    padding:4px 12px;
    border-radius:100px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.3px;
    background:var(--accent-light);
    color:var(--accent);
    border:1px solid var(--accent-mid);
}

/* ===== HERO ===== */
.hero{
    max-width:1100px;
    margin:0 auto;
    padding:64px 24px 48px;
}

.hero-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:700;
    color:var(--accent);
    background:var(--accent-light);
    border:1px solid var(--accent-mid);
    padding:4px 14px;
    border-radius:100px;
    margin-bottom:22px;
    letter-spacing:.2px;
}

.hero h1{
    font-size:clamp(26px,4.5vw,50px);
    font-weight:900;
    line-height:1.15;
    margin-bottom:14px;
    letter-spacing:-.5px;
}

.hero h1 .highlight{
    background:linear-gradient(120deg,var(--accent-light) 0%,var(--accent-mid) 100%);
    padding:2px 10px;
    border-radius:8px;
    color:var(--accent);
    display:inline;
}

.hero-subtitle{
    font-size:18px;
    font-weight:600;
    color:var(--text-2);
    margin-bottom:14px;
}

.hero-desc{
    font-size:16px;
    color:var(--text-2);
    max-width:640px;
    line-height:1.8;
    margin-bottom:36px;
}

.hero-stats{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
    margin-bottom:36px;
}

.stat{text-align:right}
.stat-n{
    font-size:30px;
    font-weight:900;
    color:var(--text);
    display:block;
    line-height:1.1;
}
.stat-l{
    font-size:12px;
    color:var(--text-3);
    margin-top:2px;
}

.hero-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.tag{
    font-size:12px;
    font-weight:600;
    padding:4px 12px;
    border-radius:8px;
    background:var(--card);
    border:1px solid var(--border);
    color:var(--text-2);
}
.tag-accent{
    background:var(--accent-light);
    border-color:var(--accent-mid);
    color:var(--accent);
}

/* ===== PHASE DIVIDER ===== */
.phase-header{
    max-width:1100px;
    margin:0 auto 16px;
    padding:0 24px;
}

.phase-label{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:var(--text-3);
    padding-bottom:10px;
    border-bottom:2px solid var(--border);
    width:100%;
}

.phase-label .phase-num{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    background:var(--accent);
    color:#fff;
    border-radius:50%;
    font-size:11px;
    font-weight:800;
    flex-shrink:0;
}

.phase-name{
    flex:1;
}

.phase-profile{
    font-size:10px;
    font-weight:600;
    padding:2px 8px;
    border-radius:6px;
    background:var(--border-light);
    color:var(--text-3);
}
.phase-profile.foundation{background:#ecfdf5;color:#059669}
.phase-profile.skill{background:#eff6ff;color:#2563eb}
.phase-profile.integration{background:var(--accent-light);color:var(--accent)}

/* ===== CHAPTER LIST ===== */
.chapters-section{
    max-width:1100px;
    margin:0 auto;
    padding:0 24px 16px;
}

.chapter-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:32px;
}

.chapter-item{
    display:flex;
    align-items:center;
    gap:16px;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:12px;
    padding:16px 20px;
    text-decoration:none;
    color:inherit;
    transition:all .22s ease;
    position:relative;
}

.chapter-item.available:hover{
    border-color:var(--accent);
    box-shadow:var(--shadow-hover);
    transform:translateX(-3px);
}

.chapter-item.coming-soon{
    opacity:.65;
    cursor:default;
}

.chapter-num{
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:10px;
    font-size:14px;
    font-weight:800;
    flex-shrink:0;
    background:var(--accent-light);
    color:var(--accent);
    border:1px solid var(--accent-mid);
}

.chapter-item.coming-soon .chapter-num{
    background:var(--border-light);
    color:var(--text-3);
    border-color:var(--border);
}

.chapter-info{
    flex:1;
    min-width:0;
}

.chapter-title-he{
    font-size:16px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:2px;
}

.chapter-title-en{
    font-size:12px;
    color:var(--text-3);
    font-weight:400;
    direction:ltr;
    text-align:right;
}

.chapter-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
}

.chapter-badge{
    padding:3px 10px;
    border-radius:100px;
    font-size:10px;
    font-weight:700;
    letter-spacing:.2px;
}

.badge-live{background:#dcfce7;color:#16a34a}
.badge-coming{background:var(--border-light);color:var(--text-3)}

.chapter-arrow{
    font-size:16px;
    color:var(--accent);
    opacity:.5;
    transition:opacity .2s;
    flex-shrink:0;
}
.chapter-item.available:hover .chapter-arrow{opacity:1}

/* key output pill */
.key-output{
    display:inline-block;
    font-size:11px;
    font-weight:600;
    color:var(--accent);
    background:var(--accent-light);
    padding:1px 8px;
    border-radius:6px;
    margin-top:4px;
    direction:rtl;
}

/* ===== CAPSTONE BANNER ===== */
.capstone{
    max-width:1100px;
    margin:0 auto 48px;
    padding:0 24px;
}

.capstone-card{
    background:linear-gradient(135deg,var(--accent) 0%,#6d28d9 50%,#4c1d95 100%);
    border-radius:var(--radius);
    padding:32px 36px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    flex-wrap:wrap;
}

.capstone-text h3{
    font-size:20px;
    font-weight:800;
    margin-bottom:6px;
}
.capstone-text p{
    font-size:14px;
    opacity:.85;
    line-height:1.6;
    max-width:500px;
}

.capstone-icon{
    font-size:48px;
    opacity:.9;
}

/* ===== INFO GRID ===== */
.info-grid{
    max-width:1100px;
    margin:0 auto 48px;
    padding:0 24px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.info-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:24px;
}

.info-card-icon{font-size:26px;margin-bottom:10px}
.info-card h4{font-size:15px;font-weight:700;margin-bottom:6px}
.info-card p{font-size:13px;color:var(--text-2);line-height:1.65}

/* ===== CTA ROW ===== */
.cta-row{
    max-width:1100px;
    margin:0 auto 64px;
    padding:0 24px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.cta-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:12px 26px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    font-family:inherit;
    transition:all .2s;
    cursor:pointer;
    border:none;
}

.cta-primary{background:var(--accent);color:#fff}
.cta-primary:hover{background:var(--accent-hover)}
.cta-secondary{background:var(--card);color:var(--accent);border:1.5px solid var(--accent)}
.cta-secondary:hover{background:var(--accent-light)}

/* ===== FOOTER ===== */
footer{
    border-top:1px solid var(--border);
    padding:28px 24px;
    text-align:center;
    font-size:13px;
    color:var(--text-3);
}
footer a{color:var(--accent);text-decoration:none}
footer a:hover{text-decoration:underline}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
    .info-grid{grid-template-columns:repeat(2,1fr)}
    .capstone-icon{display:none}
}

@media(max-width:768px){
    .hero{padding:40px 16px 32px}
    .hero h1{font-size:26px;letter-spacing:0}
    .hero-subtitle{font-size:16px}
    .hero-desc{font-size:15px}
    .hero-stats{gap:24px}
    .stat-n{font-size:24px}
    .chapters-section{padding:0 16px 12px}
    .phase-header{padding:0 16px}
    .capstone{padding:0 16px}
    .cta-row{padding:0 16px;flex-direction:column}
    .cta-btn{text-align:center;justify-content:center}
    .info-grid{grid-template-columns:1fr;padding:0 16px}
    .chapter-title-en{display:none}
    .capstone-card{padding:24px 20px}
    .capstone-text h3{font-size:17px}
}

@media(max-width:480px){
    .hero-stats{gap:20px}
    .header-inner{padding:12px 16px}
    .header-badge{display:none}
    .chapter-item{padding:12px 14px;gap:12px}
    .chapter-num{width:30px;height:30px;font-size:12px}
    .chapter-title-he{font-size:14px}
}
