
/* ========================================
   GETTING STARTED — CONFIGURATION
   ======================================== */

.getting-started {
    --getting-accent: var(--primary-700, #006cff);
    --getting-laptop-width: 800px;
    --getting-number-size: 58px;
    --getting-progress: 0%;
    --getting-glow-opacity: 0.8;
    --getting-glow-blur: 40px;
    --getting-dots-opacity: 0.75;
    --getting-dots-width: 40%;
    isolation: isolate;

    position: relative;

    width: 100%;

    overflow: hidden;

    background: var(--surface-default);
    color: var(--neutral-900, #0d1014);
}


/* ========================================
   SECTION CONTAINER
   ======================================== */

.getting-started .getting-started__container {
    display: flex;
    flex-direction: column;

    align-items: center;

    width: 100%;
    max-width: 1440px;

    margin-inline: auto;

    padding:
        32px
        clamp(24px, 4vw, 56px)
        48px;
}


/* ========================================
   SECTION HEADER
   ======================================== */

.getting-started__header {
    display: flex;
    flex-direction: column;

    align-items: center;

    width: 100%;
    max-width: 1000px;

    gap: 16px;

    text-align: center;
}

.getting-started__title {
    margin: 0;

    font-family: var(--font-heading);
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: -0.045em;

    color: var(--neutral-900, #0d1014);
}

.getting-started__title > span {
    display: block;

    margin-top: 6px;

    color: var(--getting-accent);
}

.getting-started__intro {
    max-width: 800px;

    margin: 0;

    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 400;

    line-height: 1.65;

    color: var(--neutral-700, #424b57);
}


/* ========================================
   LAPTOP VISUAL
   ======================================== */

.getting-started__visual {
    position: relative;

    display: flex;

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

    width: 100%;

    margin-top: 28px;

    isolation: isolate;
}

.getting-started__visual::before {
    content: "";

    position: absolute;
    z-index: -1;

    inset: -40px -100px -10px;
    background: var(--gradient-product-glow);
    opacity: var(--getting-glow-opacity);
    filter: blur(var(--getting-glow-blur));

    pointer-events: none;
}


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

.getting-laptop {
    position: relative;

    width: 100%;
    max-width: var(--getting-laptop-width);

    padding-bottom: 12px;

    isolation: isolate;
}


/* ========================================
   LAPTOP DISPLAY
   ======================================== */

.getting-laptop__display {
    position: relative;

    width: 88%;

    margin-inline: auto;

    padding: 10px 7px 8px;

    border: 1px solid #080b10;
    border-radius: 12px 12px 3px 3px;

    background: linear-gradient(
        135deg,
        #353b44 0%,
        #161a20 45%,
        #080b10 100%
    );

    box-shadow:
        0 0 0 1px #555d68,
        0 8px 24px rgba(13, 30, 55, 0.12);
}


/* ========================================
   CAMERA
   ======================================== */

.getting-laptop__camera {
    position: absolute;

    top: 3px;
    left: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #4a5360;

    transform: translateX(-50%);
}


/* ========================================
   LAPTOP SCREEN
   ======================================== */

.getting-laptop__screen {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;
    isolation: isolate;

    border-radius: 3px;

    background: #f5f7fa;
}


/* ========================================
   INTERACTIVE SCREEN VIEWS
   ======================================== */

.getting-laptop__view {
    position: absolute;

    inset: 0;

    display: flex;

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

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    transform: translateY(6px);

    transition:
        opacity 400ms ease,
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 400ms;
}

.getting-laptop__view.is-active {
    z-index: 1;

    visibility: visible;
    opacity: 1;

    transform: translateY(0);
}

.getting-laptop__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


/* ========================================
   LAPTOP METAL BASE
   ======================================== */

.getting-laptop__base {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 11px;

    border-radius: 2px 2px 0 0;

    background: linear-gradient(
        180deg,
        #f0f2f5 0%,
        #bfc6ce 35%,
        #9ca5af 100%
    );

    box-shadow:
        inset 1px 0 2px rgba(255, 255, 255, 0.8),
        inset -1px 0 2px rgba(255, 255, 255, 0.6);
}

.getting-laptop__notch {
    position: absolute;

    top: 0;
    left: 50%;

    width: 16%;
    height: 5px;

    border-radius: 0 0 7px 7px;

    background: linear-gradient(
        180deg,
        #89939f,
        #c2c8d0
    );

    transform: translateX(-50%);
}

.getting-laptop__bottom {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 7px;

    border-radius: 0 0 40% 40% / 0 0 100% 100%;

    background: linear-gradient(
        180deg,
        #a7afb8,
        #6f7884
    );
}


/* ========================================
   LAPTOP SHADOW
   ======================================== */

.getting-laptop__shadow {
    position: absolute;
    z-index: -1;

    right: 4%;
    bottom: 0;
    left: 4%;

    height: 15px;

    border-radius: 50%;

    background: rgba(13, 30, 55, 0.18);

    filter: blur(12px);
}


/* ========================================
   TIMELINE & PLAYBACK
   ======================================== */

.getting-started__timeline {
    position: relative;
    width: 100%;
    margin-top: 28px;
    --getting-step-gap: 16px;
}

/* The clock and CSS animations pause together. */
.getting-started.is-playback-paused .getting-laptop__view *,
.getting-started.is-playback-paused .getting-laptop__view *::before,
.getting-started.is-playback-paused .getting-laptop__view *::after {
    animation-play-state: paused !important;
}

.getting-started__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--getting-step-gap);
}

.getting-started__track {
    position: absolute;
    top: calc(var(--getting-number-size) / 2);
    left: calc(12.5% - var(--getting-step-gap) * 0.375);
    right: calc(12.5% - var(--getting-step-gap) * 0.375);
    height: 4px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: var(--neutral-100);
    transform: translateY(-50%);
    pointer-events: none;
}

.getting-started__progress {
    width: var(--getting-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-700), var(--primary-400));
    transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================
   STEP CARDS
   ======================================== */

.getting-step {
    position: relative;
    display: flex;
    min-width: 0;
    text-align: center;
}

.getting-step__trigger {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.getting-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--getting-number-size);
    height: var(--getting-number-size);
    border: 5px solid var(--surface-default);
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--getting-accent);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
    transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.getting-step__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 18px 16px;
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.getting-step__title {
    display: block;
    min-height: 2.6em;
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
    overflow-wrap: anywhere;
    transition: color 300ms ease;
}

.getting-step__description {
    display: block;
    max-width: 280px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--neutral-700);
    overflow-wrap: anywhere;
}

.getting-step__description strong {
    font-weight: 600;
    color: var(--neutral-900);
}

.getting-step.is-active .getting-step__number {
    background: var(--getting-accent);
    color: var(--white);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.getting-step.is-active .getting-step__body {
    background: var(--primary-50);
    border-color: var(--primary-700);
    box-shadow: 0 4px 16px rgba(0, 108, 255, 0.08);
}

.getting-step.is-active .getting-step__title { color: var(--getting-accent); }
.getting-step.is-completed .getting-step__number { background: var(--primary-100); }
.getting-step:last-child .getting-step__number {
    background: var(--success-light);
    color: var(--success-dark);
}
.getting-step:last-child.is-active .getting-step__number {
    background: var(--success-dark);
    color: var(--white);
    box-shadow: 0 0 0 3px var(--success-light);
}
.getting-step:last-child.is-active .getting-step__body {
    background: var(--success-light);
    border-color: var(--success-dark);
    box-shadow: 0 4px 16px rgba(23, 167, 0, 0.08);
}
.getting-step:last-child.is-active .getting-step__title { color: var(--success-dark); }


/* ========================================
   REGISTRATION ACTIONS
   ======================================== */

.getting-started__actions {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 10px;

    margin-top: 30px;
}


/* ========================================
   REGISTRATION BUTTON
   ======================================== */

.getting-started__button {
    display: inline-flex;

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

    min-height: 46px;

    gap: 18px;

    padding: 12px 24px;

    border-radius: var(--radius-sm, 8px);

    background: var(--success, #17a700);
    color: #ffffff;

    font-family: var(--navbar-font, Roboto, sans-serif);
    font-size: 15px;
    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;

    transition:
        background-color 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.getting-started__button svg {
    display: block;

    width: 18px;
    height: 18px;

    transition: transform 250ms ease;
}

.getting-started__button:focus-visible {
    outline: 2px solid var(--success-dark, #117e00);
    outline-offset: 4px;
}


/* ========================================
   REGISTRATION NOTE
   ======================================== */

.getting-started__note {
    font-size: 13px;
    font-weight: 400;

    line-height: 1.5;

    color: var(--neutral-700, #424b57);
}


/* ========================================
   HOVER EFFECTS
   ======================================== */

@media (hover: hover) and (pointer: fine) {

    .getting-started__button:hover {
        background: var(--success-dark, #117e00);
        color: #ffffff;

        transform: translateY(-2px);

        box-shadow:
            0 6px 18px rgba(23, 167, 0, 0.15);
    }

    .getting-started__button:hover svg {
        transform: translateX(4px);
    }
}


/* ========================================
   RESPONSIVE — TABLET
   ======================================== */

@media (max-width: 1024px) {

    .getting-started {
        --getting-laptop-width: 680px;
        --getting-number-size: 52px;
    }

    .getting-started .getting-started__container {
        padding: 32px 32px 40px;
    }

    .getting-step__body { padding: 16px 12px; }

    .getting-step__title {
        min-height: 3.9em;

        font-size: 16px;
    }

    .getting-step__description {
        font-size: 13px;
    }
}


/* ========================================
   RESPONSIVE — SMALL TABLET
   ======================================== */

@media (max-width: 760px) {

    .getting-started__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 20px 12px;
    }

    .getting-started__track {
        display: none;
    }

    .getting-step__title {
        min-height: 0;
    }

    .getting-step__description {
        max-width: 300px;

        font-size: 14px;
    }
}


/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */

@media (max-width: 600px) {

    .getting-started {
        --getting-number-size: 48px;
    }

    .getting-started .getting-started__container {
        padding: 28px 16px 32px;
    }

    .getting-started__header {
        gap: 14px;
    }

    .getting-started__title {
        font-size: clamp(28px, 7vw, 34px);
    }

    .getting-started__intro {
        font-size: 15px;
    }

    .getting-started__visual {
        margin-top: 24px;
    }

    .getting-laptop__display {
        padding: 8px 5px 6px;

        border-radius: 9px 9px 2px 2px;
    }

    .getting-laptop__base {
        height: 8px;
    }

    .getting-laptop__bottom {
        height: 5px;
    }

    .getting-started__timeline {
        margin-top: 20px;
    }

    .getting-step__body { padding: 14px 10px; }

    .getting-step__trigger {
        gap: 10px;
    }

    .getting-step__number {
        font-size: 20px;
    }

    .getting-step__title {
        font-size: 16px;
    }

    .getting-step__description {
        font-size: 13px;
        line-height: 1.6;
    }

    .getting-started__actions {
        margin-top: 28px;
    }
}


/* ========================================
   ACCESSIBILITY — REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .getting-started *,
    .getting-started *::before,
    .getting-started *::after {
        transition: none;
        animation: none;
    }

    .getting-step.is-active .getting-step__number,
    .getting-step:hover .getting-step__number,
    .getting-started__button:hover,
    .getting-started__button:hover svg {
        transform: none;
    }
}




/* ========================================
   LAPTOP — DECORATIVE TEXTURE
   ======================================== */

.getting-started__visual::after {
    content: "";

    position: absolute;

    inset: 0 -80px;

    z-index: -1;

    background-image:
        var(--texture-dots-primary);

    background-size:
        var(--texture-dots-size);

    opacity: var(--getting-dots-opacity);

    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        transparent var(--getting-dots-width),
        transparent calc(100% - var(--getting-dots-width)),
        #000 100%
    );

    mask-image: linear-gradient(
        to right,
        #000 0%,
        transparent var(--getting-dots-width),
        transparent calc(100% - var(--getting-dots-width)),
        #000 100%
    );

    pointer-events: none;
}


/* ========================================
   CONTENT — STACKING
   ======================================== */

.getting-started__visual {
    z-index: 1;
}

.getting-started__header,
.getting-started__timeline,
.getting-started__actions {
    position: relative;
    z-index: 2;
}


/* ========================================
   RESPONSIVE — TABLET
   ======================================== */

@media (max-width: 1024px) {

    .getting-started {
        --getting-glow-blur: 30px;
        --getting-dots-opacity: 0.45;
    }

    .getting-started__visual::before {
        inset: -30px -60px -10px;
    }

    .getting-started__visual::after {
        inset: 0 -32px;
    }

}


/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */

@media (max-width: 600px) {

    .getting-started {
        --getting-glow-opacity: 0.7;
        --getting-glow-blur: 20px;
    }

    .getting-started__visual::before {
        inset: -20px -24px 0;
    }

    .getting-started__visual::after {
        display: none;
    }

}
/* Narrow mobile — keep text comfortably readable. */
@media (max-width: 420px) {
    .getting-started__steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .getting-step__trigger { flex-direction: row; align-items: stretch; gap: 10px; }
    .getting-step__number { align-self: center; }
    .getting-step__body { align-items: flex-start; text-align: left; }
    .getting-step__title { min-height: 0; }
    .getting-step__description { max-width: none; }
}
