* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0d0c;
    --surface: #121614;
    --surface-light: #1a1f1c;
    --text: #f2f3ef;
    --muted: #9da49f;
    --accent: #c9a96e;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

/* PROGRESS */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 100;
}

#progressBar {
    height: 100%;
    width: 12.5%;
    background: var(--accent);
    transition: width .4s ease;
}


/* NAV */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.nav-logo {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-counter {
    font-size: 12px;
    color: var(--muted);
}


/* SLIDE */

.slide {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 8% 80px;

    opacity: 0;
    transform: translateX(40px);

    pointer-events: none;

    transition:
        opacity .45s ease,
        transform .45s ease;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.content {
    width: 100%;
    max-width: 1100px;
}

.hero {
    max-width: 1000px;
}


/* TEXT */

.badge {
    display: inline-block;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

h1 {
    font-size: clamp(45px, 7vw, 90px);
    line-height: .98;

    max-width: 950px;

    letter-spacing: -4px;
}

h1 span,
.final h2 span {
    color: var(--accent);
}

h2 {
    font-size: clamp(38px, 5vw, 65px);
    letter-spacing: -3px;
    margin-bottom: 25px;
}

h3 {
    margin-bottom: 8px;
}

p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.lead {
    font-size: 18px;
    max-width: 750px;
}


/* BUTTON */

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.start-btn,
.restart-btn {
    margin-top: 35px;

    background: var(--accent);
    color: #111;

    padding: 14px 22px;

    border-radius: 6px;

    font-weight: 700;

    transition: .2s ease;
}

.start-btn:hover,
.restart-btn:hover {
    transform: translateY(-2px);
}


/* SLIDE 2 */

.info-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 50px;

    max-width: 900px;
}

.big-number {
    font-size: 130px;
    font-weight: 800;
    line-height: 1;

    color: var(--accent);
    opacity: .8;
}

.highlight {
    margin-top: 25px;
    padding: 18px 20px;

    background: var(--surface);

    border-left: 3px solid var(--accent);

    color: var(--muted);

    font-size: 14px;
}


/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    margin-top: 40px;
}

.card {
    padding: 30px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition: .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,169,110,.4);
}

.icon {
    font-size: 30px;
    color: var(--accent);

    margin-bottom: 25px;
}


/* EDUCATION FLOW */

.education-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;

    align-items: center;

    margin-top: 50px;
}

.flow-item {
    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.flow-item span {
    display: block;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    margin-bottom: 20px;
}

.arrow {
    padding: 20px;

    color: var(--accent);

    font-size: 25px;
}


/* METHODS */

.method-list {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 35px;
}

.method {
    display: flex;
    gap: 20px;

    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.method > span {
    color: var(--accent);

    font-weight: 800;
}


/* VERSE */

.verse {
    margin-top: 30px;

    padding: 35px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    max-width: 1000px;
}

.arabic {
    direction: rtl;

    font-size: 25px;

    color: var(--text);

    line-height: 2;

    margin-bottom: 20px;
}

.translation {
    font-size: 15px;

    font-style: italic;
}

.source {
    display: block;

    margin-top: 20px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
}

.meaning {
    margin-top: 30px;
}

.steps,
.final-flow {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 15px;

    flex-wrap: wrap;
}

.steps span,
.final-flow span {
    padding: 10px 15px;

    background: var(--surface-light);

    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;
}

.steps b,
.final-flow b {
    color: var(--accent);
}


/* LESSON */

.lesson-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 35px;
}

.lesson-grid > div {
    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.lesson-grid strong {
    color: var(--accent);
}


/* FINAL */

.final h2 {
    max-width: 700px;
}

.final-flow {
    margin-top: 35px;
}

.final-flow span {
    padding: 14px 20px;

    font-size: 14px;
}

.sources {
    margin-top: 45px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.sources h3 {
    font-size: 13px;
}

.sources p {
    font-size: 12px;
}


/* CREATOR */

.creator {
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
}

.creator strong {
    color: var(--accent);
}


/* CONTROLS */

.controls {
    position: fixed;

    right: 6%;
    bottom: 35px;

    display: flex;
    gap: 8px;

    z-index: 30;
}

.controls button {
    width: 45px;
    height: 45px;

    background: var(--surface);

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 50%;

    font-size: 18px;

    transition: .2s ease;
}

.controls button:hover {
    background: var(--accent);
    color: #111;
}

.controls button:disabled {
    opacity: .3;
    cursor: not-allowed;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    body {
        overflow: hidden;
    }

    nav {
        padding: 20px 5%;
    }

    .slide {
        padding: 90px 5% 100px;

        overflow-y: auto;
        align-items: flex-start;
    }

    h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    h2 {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .big-number {
        display: none;
    }

    .cards,
    .method-list,
    .lesson-grid {
        grid-template-columns: 1fr;
    }

    .education-flow {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .arrow {
        text-align: center;
        transform: rotate(90deg);
    }

    .arabic {
        font-size: 20px;
    }

    .controls {
        right: 5%;
        bottom: 20px;
    }
}