/* ==========================================
   GLOBAL RESET
========================================== */

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


/* ==========================================
   ROOT VARIABLES
========================================== */

:root {
    --bg: #030b16;
    --panel: #0d1928;
    --line: rgba(0, 200, 255, 0.18);
    --cyan: #00c8ff;
    --text: #f4f8ff;
    --muted: #a8bfd3;
}


/* ==========================================
   BODY
========================================== */

body {
    min-height: 100vh;

    color: var(--text);

    font-family:
        Poppins,
        Inter,
        Segoe UI,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 180, 255, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #020812,
            #061521 55%,
            #020913
        );
}


/* ==========================================
   LINKS
========================================== */

a {
    color: inherit;
}


/* ==========================================
   TOP BAR
========================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    min-height: 76px;

    padding: 14px 5%;

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

    background: rgba(3, 11, 22, 0.92);

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

    backdrop-filter: blur(15px);
}


/* ==========================================
   BRAND
========================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #0878ff,
            #00c8ff
        );

    font-size: 22px;
}


.brand h1 {
    font-size: 21px;
}


.brand span,
.muted {
    color: var(--muted);
    font-size: 12px;
}


/* ==========================================
   TOP ACTIONS / HERO BUTTONS
========================================== */

.top-actions,
.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* ==========================================
   BUTTONS / CTA
========================================== */

.top-btn,
.cta {
    display: inline-block;

    text-decoration: none;

    padding: 11px 17px;

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

    border-radius: 10px;

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


.top-btn.primary,
.primary-cta,
.nav-btn.primary {
    background:
        linear-gradient(
            135deg,
            #0674ff,
            #00b9e9
        );

    border-color: transparent;
}


/* ==========================================
   HERO SECTION
========================================== */

.hero {
    width: min(1240px, 92%);

    margin: 45px auto 30px;

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    gap: 35px;

    align-items: center;
}


/* ==========================================
   EYEBROW
========================================== */

.eyebrow {
    color: var(--cyan);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* ==========================================
   HERO TEXT
========================================== */

.hero h2 {
    margin: 12px 0;

    font-size: clamp(
        40px,
        5vw,
        68px
    );

    line-height: 1;
}


.hero p {
    max-width: 650px;

    margin-bottom: 25px;

    color: var(--muted);

    line-height: 1.8;
}


/* ==========================================
   COMMON PANELS
========================================== */

.preview-window,
.tutorial-panel {
    border: 1px solid var(--line);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 37, 55, 0.98),
            rgba(6, 17, 29, 0.98)
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3);
}


/* ==========================================
   PREVIEW WINDOW
========================================== */

.preview-window {
    padding: 20px;
}


.window-dots {
    display: flex;

    gap: 6px;

    margin-bottom: 18px;
}


.window-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #71889a;
}


.preview-title {
    display: block;

    margin-bottom: 18px;
}


/* ==========================================
   PREVIEW GRID
========================================== */

.preview-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}


.preview-grid div {
    min-height: 105px;

    padding: 17px;

    display: flex;

    flex-direction: column;

    gap: 5px;

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

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.025);

    font-size: 25px;
}


.preview-grid b {
    font-size: 15px;
}


.preview-grid small {
    color: var(--muted);

    font-size: 11px;
}


/* ==========================================
   MAIN PAGE
========================================== */

.page {
    width: min(1240px, 92%);

    margin: 60px auto;
}


/* ==========================================
   SECTION HEADING
========================================== */

.section-heading {
    margin-bottom: 25px;
}


.section-heading h2 {
    margin: 8px 0;

    font-size: 32px;
}


.section-heading p {
    color: var(--muted);
}


/* ==========================================
   APPLICATION CARDS
========================================== */

.app-cards {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.app-card {
    min-height: 205px;

    padding: 24px;

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

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #0f2535,
            #09121e
        );

    transition: 0.2s;
}


.app-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(0, 200, 255, 0.55);
}


.app-icon {
    font-size: 35px;

    margin-bottom: 15px;
}


.app-card h3 {
    font-size: 21px;

    margin-bottom: 7px;
}


.app-card p {
    min-height: 62px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}


.app-card button {
    margin-top: 14px;

    padding: 9px 13px;

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #0674ff,
            #00b9e9
        );

    color: #fff;

    font-weight: 800;

    cursor: pointer;
}


/* ==========================================
   TUTORIAL PANEL
========================================== */

.tutorial-panel {
    margin-top: 35px;

    padding: 28px;

    background: rgba(8, 19, 32, 0.96);
}


/* ==========================================
   PANEL HEADER
========================================== */

.panel-head {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}


.panel-head h2 {
    margin: 6px 0;

    font-size: 32px;
}


.panel-head p {
    color: var(--muted);
}


/* ==========================================
   CLOSE BUTTON
========================================== */

.icon-btn {
    width: 42px;
    height: 42px;

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

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);

    color: #fff;

    cursor: pointer;
}


/* ==========================================
   PROGRESS
========================================== */

.progress-area {
    margin: 25px 0;
}


.progress-label {
    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 12px;
}


.progress-track {
    height: 6px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.08);

    overflow: hidden;
}


.progress-bar {
    height: 100%;

    width: 0;

    background:
        linear-gradient(
            90deg,
            #0878ff,
            #00c8ff
        );

    transition: 0.3s;
}


/* ==========================================
   SLIDE LAYOUT
========================================== */

.slide-layout {
    display: grid;

    grid-template-columns:
        230px
        1fr;

    gap: 20px;
}


/* ==========================================
   SLIDE LIST
========================================== */

.slide-list {
    max-height: 600px;

    overflow: auto;
}


.slide-thumb {
    width: 100%;

    margin-bottom: 8px;

    padding: 11px;

    display: flex;

    gap: 10px;

    align-items: center;

    text-align: left;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--muted);

    cursor: pointer;
}


.slide-thumb.active {
    color: #fff;

    border-color:
        rgba(0, 200, 255, 0.6);

    background:
        rgba(0, 180, 255, 0.1);
}


/* ==========================================
   STEP NUMBER
========================================== */

.thumb-num {
    min-width: 29px;

    height: 29px;

    display: grid;

    place-items: center;

    border-radius: 8px;

    background:
        rgba(0, 200, 255, 0.1);

    color: var(--cyan);

    font-size: 11px;

    font-weight: 800;
}


/* ==========================================
   SLIDE IMAGE
========================================== */

.slide-image-wrap {
    position: relative;

    min-height: 340px;

    display: grid;

    place-items: center;

    overflow: hidden;

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

    border-radius: 17px;

    background: #020914;
}


.slide-image-wrap img {
    display: block;

    width: 100%;

    max-height: 540px;

    object-fit: contain;
}


.slide-image-wrap img.image-error {
    display: none;
}


/* ==========================================
   IMAGE FALLBACK
========================================== */

.image-fallback {
    min-height: 340px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    color: var(--muted);
}


.image-fallback i {
    color: var(--cyan);

    font-size: 42px;
}


.image-fallback code {
    color: var(--cyan);
}


/* ==========================================
   SLIDE CONTENT
========================================== */

.slide-content {
    padding: 22px 4px;
}


.step-badge {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    background:
        rgba(0, 200, 255, 0.1);

    color: var(--cyan);

    font-size: 11px;

    font-weight: 900;
}


.slide-content h3 {
    margin: 10px 0 8px;

    font-size: 27px;
}


.slide-content p {
    color: var(--muted);

    line-height: 1.75;
}


/* ==========================================
   TIP BOX
========================================== */

.tip-box {
    margin-top: 17px;

    padding: 14px 16px;

    display: flex;

    gap: 12px;

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

    border-radius: 10px;

    background:
        rgba(0, 200, 255, 0.06);
}


.tip-box i {
    color: #ffd35a;
}


.tip-box div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.tip-box span {
    color: var(--muted);

    font-size: 13px;
}


/* ==========================================
   SLIDE NAVIGATION
========================================== */

.slide-nav {
    display: flex;

    justify-content: space-between;

    gap: 10px;
}


.nav-btn {
    padding: 12px 18px;

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

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.04);

    color: #fff;

    cursor: pointer;

    font-weight: 800;
}


.nav-btn:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


/* ==========================================
   BOTTOM CTA
========================================== */

.bottom-cta {
    margin-top: 28px;

    padding: 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

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

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.025);
}


.bottom-cta div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.bottom-cta span {
    color: var(--muted);

    font-size: 12px;
}


/* ==========================================
   FOOTER
========================================== */

footer {
    padding: 35px 5%;

    display: flex;

    justify-content: center;

    gap: 8px;

    color: var(--muted);

    font-size: 12px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;
    }


    .app-cards {
        grid-template-columns:
            1fr 1fr;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 720px) {

    .top-actions {
        display: none;
    }


    .hero h2 {
        font-size: 42px;
    }


    .app-cards {
        grid-template-columns: 1fr;
    }


    .slide-layout {
        grid-template-columns: 1fr;
    }


    .slide-list {
        max-height: 170px;

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 7px;
    }


    .slide-thumb {
        margin: 0;
    }


    .bottom-cta {
        flex-direction: column;

        align-items: flex-start;
    }


    .tutorial-panel {
        padding: 18px;
    }


    .slide-image-wrap {
        min-height: 230px;
    }

}