/* Landing page refinements for EduExpert home. */

.overview-video-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: -0.15rem 0 0.65rem;
}

.overview-video-hint {
    display: flex;
    position: relative;
    height: 0;
    min-height: 0;
    align-items: flex-start;
    justify-content: center;
    margin: 0.35rem auto 0.85rem;
    padding: 0 0.5rem;
    pointer-events: none;
    z-index: 5;
}

.overview-video-hint span {
    position: absolute;
    top: 0;
    left: 50%;
    width: max-content;
    max-width: min(42rem, calc(100vw - 2rem));
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #334155;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.55;
    opacity: 0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    transform: translate(-50%, -0.35rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.overview-video-hint.is-visible span {
    opacity: 1;
    transform: translate(-50%, 0);
}

#eduexpert-overview-video {
    padding-bottom: 2rem;
}

#fitur {
    padding-top: 3.25rem;
}

@media (min-width: 640px) {
    #eduexpert-overview-video {
        padding-bottom: 2.75rem;
    }

    #fitur {
        padding-top: 4rem;
    }
}

#fitur.ecosystem-section {
    padding-top: clamp(3.5rem, 6vw, 5rem);
    padding-bottom: clamp(1rem, 2vw, 1.75rem);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(5, 150, 105, 0.06));
}

#showcase {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.ecosystem-shell {
    width: min(100%, 76rem);
    margin: 0 auto;
}

.ecosystem-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #2563eb;
    padding: 0.55rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}

.ecosystem-heading {
    max-width: 48rem;
    margin: 1rem auto 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
}

.ecosystem-subtitle {
    max-width: 46rem;
    margin: 1rem auto 0;
    color: #64748b;
    font-size: clamp(0.96rem, 1.5vw, 1.1rem);
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

.ecosystem-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: clamp(2.2rem, 5vw, 3.6rem);
}

.ecosystem-flow::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 2.15rem;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #f59e0b, #059669, #7c3aed, #0f766e);
    opacity: 0.28;
}

.ecosystem-step {
    --eco-accent: #2563eb;
    --eco-soft: rgba(37, 99, 235, 0.10);
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 29rem;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-top: 4px solid var(--eco-accent);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 1.05rem;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ecosystem-step:hover {
    transform: translateY(-0.45rem);
    border-color: var(--eco-accent);
    box-shadow: 0 26px 66px rgba(15, 23, 42, 0.12), 0 16px 34px var(--eco-soft);
}

.ecosystem-step:nth-child(1) {
    --eco-accent: #2563eb;
    --eco-soft: rgba(37, 99, 235, 0.12);
}

.ecosystem-step:nth-child(2) {
    --eco-accent: #f97316;
    --eco-soft: rgba(249, 115, 22, 0.13);
}

.ecosystem-step:nth-child(3) {
    --eco-accent: #059669;
    --eco-soft: rgba(5, 150, 105, 0.13);
}

.ecosystem-step:nth-child(4) {
    --eco-accent: #7c3aed;
    --eco-soft: rgba(124, 58, 237, 0.12);
}

.ecosystem-step:nth-child(5) {
    --eco-accent: #0f766e;
    --eco-soft: rgba(15, 118, 110, 0.13);
}

.ecosystem-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin: -0.25rem -0.25rem 1rem;
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--eco-soft), rgba(255, 255, 255, 0.88)),
        #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ecosystem-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 420ms ease, filter 420ms ease;
}

.ecosystem-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.44)),
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.58), transparent 38%);
    pointer-events: none;
    z-index: 1;
}

.ecosystem-visual::after {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 6px;
    pointer-events: none;
    z-index: 2;
}

.ecosystem-step:hover .ecosystem-visual img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.07);
}

.ecosystem-visual-label {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 3;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 1.5rem);
    align-items: center;
    gap: 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    padding: 0.42rem 0.62rem;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    white-space: nowrap;
}

.ecosystem-visual-label i {
    color: var(--eco-accent);
}

.ecosystem-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ecosystem-step-number {
    display: inline-flex;
    width: 2.55rem;
    height: 2.55rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--eco-accent);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    box-shadow: 0 12px 28px var(--eco-soft);
}

.ecosystem-step-icon {
    display: inline-flex;
    width: 2.55rem;
    height: 2.55rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--eco-soft);
    color: var(--eco-accent);
}

.ecosystem-step h3 {
    margin-top: 1.15rem;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.2;
}

.ecosystem-step p {
    margin-top: 0.7rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.68;
}

.ecosystem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1rem;
}

.ecosystem-tags span {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    padding: 0.32rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.ecosystem-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.ecosystem-cta strong {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 900;
}

.ecosystem-cta span {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.ecosystem-cta a {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.45rem;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
}

.ecosystem-cta a:hover {
    transform: translateY(-2px);
    background: #2563eb;
}

@media (max-width: 1023.98px) {
    .ecosystem-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ecosystem-flow::before {
        display: none;
    }

    .ecosystem-step {
        min-height: 25rem;
    }
}

@media (max-width: 640px) {
    .ecosystem-flow {
        grid-template-columns: 1fr;
    }

    .ecosystem-step {
        min-height: 0;
    }

    .ecosystem-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .ecosystem-cta a {
        justify-content: center;
        width: 100%;
    }
}

.overview-video-step {
    --step-from: #2563eb;
    --step-to: #059669;
    --step-glow: rgba(37, 99, 235, 0.28);
    position: relative;
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 9999px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--step-from), var(--step-to)) border-box;
    color: var(--step-from);
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10), 0 0 0 5px rgba(255, 255, 255, 0.58);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.overview-video-step:nth-child(1) {
    --step-from: #2563eb;
    --step-to: #06b6d4;
    --step-glow: rgba(37, 99, 235, 0.30);
}

.overview-video-step:nth-child(2) {
    --step-from: #059669;
    --step-to: #84cc16;
    --step-glow: rgba(5, 150, 105, 0.30);
}

.overview-video-step:nth-child(3) {
    --step-from: #ea580c;
    --step-to: #f43f5e;
    --step-glow: rgba(234, 88, 12, 0.30);
}

.overview-video-step::before {
    content: "";
    position: absolute;
    inset: -0.35rem;
    border-radius: inherit;
    background: radial-gradient(circle, var(--step-glow), transparent 66%);
    opacity: 0.35;
    transform: scale(0.86);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: -1;
}

.overview-video-step::after {
    content: "";
    position: absolute;
    inset: 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.78);
    transition: opacity 180ms ease, transform 180ms ease;
}

.overview-video-step:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 42px var(--step-glow), 0 0 0 6px rgba(255, 255, 255, 0.78);
}

.overview-video-step:hover::before {
    opacity: 0.75;
    transform: scale(1);
}

.overview-video-step.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--step-from), var(--step-to));
    color: #ffffff;
    box-shadow: 0 20px 52px var(--step-glow), 0 0 0 6px rgba(255, 255, 255, 0.80);
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.25);
}

.overview-video-step.is-active::before {
    opacity: 0.9;
    transform: scale(1.05);
}

.overview-video-step.is-active::after {
    opacity: 1;
    transform: scale(1);
}

.overview-video-step:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.26);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .overview-video-step {
        width: 2.85rem;
        height: 2.85rem;
    }
}

.home-hero-layout,
.home-hero-copy,
.home-hero-visual {
    min-width: 0;
}

.home-hero-title {
    display: block;
    width: 100%;
    max-width: 42rem;
}

.hero-digital-segment {
    display: inline;
}

.hero-rotating-wrap {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .home-hero-layout {
        flex-direction: row !important;
        align-items: center;
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .home-hero-copy {
        flex: 0 0 min(58%, 720px);
        width: auto;
        max-width: 720px;
        text-align: left !important;
    }

    .home-hero-title {
        max-width: 720px;
    }

    .home-hero-copy p {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 640px;
    }

    .home-hero-actions {
        justify-content: flex-start !important;
    }

    .home-hero-visual {
        flex: 1 1 0;
        width: auto;
        justify-content: flex-end !important;
    }
}

@media (min-width: 1024px) {
    .hero-digital-segment {
        white-space: nowrap;
    }

    .hero-rotating-wrap {
        display: inline-flex;
        width: auto;
        justify-content: flex-start;
        margin-top: 0;
        margin-left: 0.45rem;
        vertical-align: 0.08em;
    }
}

@media (min-width: 1280px) {
    .home-hero-copy {
        flex-basis: 54%;
        max-width: 760px;
    }

    .home-hero-title {
        max-width: 760px;
    }
}

@media (max-width: 767.98px) {
    .home-hero-copy,
    .home-hero-visual {
        width: 100%;
    }
}

.rotating-word {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
    transition: opacity .28s ease, transform .28s ease, color .28s ease;
}

.rotating-word.is-exiting {
    opacity: 0;
    transform: translateY(.45em);
}

.rotating-word.is-entering {
    opacity: 0;
    transform: translateY(-.45em);
}

@media (prefers-reduced-motion: reduce) {
    .rotating-word {
        transition: none;
    }
}
