/* ==========================================================================
   SIMWAR — Halaman Beranda
   Gaya khusus beranda. Token dan komponen dasar tetap memakai style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(58px, 7vw, 88px) clamp(68px, 8vw, 104px);
    background:
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.3), transparent 46%),
        radial-gradient(circle at 14% 92%, rgba(34, 211, 238, 0.12), transparent 42%),
        linear-gradient(158deg, #060b1f 0%, #081231 52%, #060b1f 100%);
    color: var(--white);
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(0.9);
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 11, 31, 0.94) 0%, rgba(6, 11, 31, 0.76) 46%, rgba(6, 11, 31, 0.5) 100%),
        linear-gradient(180deg, rgba(6, 11, 31, 0.25), rgba(6, 11, 31, 0.72));
}

.home-hero__bg .hero__grid {
    mask-image: radial-gradient(ellipse at 62% 38%, #000 4%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse at 62% 38%, #000 4%, transparent 68%);
}

.home-hero__bg .glow--blue {
    top: -220px;
    right: -6%;
}

.home-hero__bg .glow--cyan {
    right: 30%;
    bottom: -260px;
}

.home-hero__ring {
    position: absolute;
    top: 50%;
    right: -160px;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    transform: translateY(-50%);
}

.home-hero__ring::before,
.home-hero__ring::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.home-hero__ring::before {
    inset: 84px;
}

.home-hero__ring::after {
    inset: 176px;
}

.home-hero__beam {
    position: absolute;
    top: 8%;
    left: 7%;
    width: 1px;
    height: 58%;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.45), transparent);
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: clamp(36px, 5vw, 68px);
}

.home-hero__copy {
    max-width: 620px;
}

.home-hero__title {
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(2.45rem, 5.2vw, 4.35rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.home-hero__lead {
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    line-height: 1.75;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.home-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.home-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-hero__meta .icon {
    color: var(--cyan-400);
}

/* --------------------------------------------------------------------------
   2. Mockup aplikasi (placeholder HTML/CSS)
   -------------------------------------------------------------------------- */
.home-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.home-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    width: min(100%, 420px);
    padding: 18px 0 26px;
}

.home-mockup__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.4);
    filter: blur(90px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home-mockup__device {
    position: relative;
    width: min(100%, 316px);
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 44px;
    background: linear-gradient(165deg, #1a2a55, #080f24 70%);
    box-shadow:
        0 52px 110px -38px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: rotate(-2.5deg);
}

.home-mockup__notch {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 2;
    width: 72px;
    height: 16px;
    border-radius: var(--radius-pill);
    background: #05091a;
    transform: translateX(-50%);
}

.home-mockup__screen {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 456px;
    padding: 30px 18px 18px;
    border-radius: 34px;
    background: linear-gradient(180deg, #f9fbff 0%, #eaf1ff 100%);
    color: var(--ink);
}

.home-mockup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.home-mockup__brand {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-mockup__tag {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: var(--blue-50);
    color: var(--blue-700);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.home-mockup__placeholder {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 26px 20px;
    border: 1.5px dashed #c3d3ee;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 44%, rgba(37, 99, 235, 0.07), transparent 68%),
        rgba(255, 255, 255, 0.68);
    text-align: center;
}

.home-mockup__image {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 26, 51, 0.1);
    border-radius: 22px;
    background: #0b1530;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-mockup__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-mockup__placeholder .icon {
    width: 34px;
    height: 34px;
    color: var(--blue-500);
    opacity: 0.85;
}

.home-mockup__placeholder strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.home-mockup__placeholder span {
    max-width: 24ch;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

.home-mockup__foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--muted-light);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

.home-mockup__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--cyan-500);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.home-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.55);
    color: var(--ink);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-float strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.home-float small {
    display: block;
    color: var(--muted);
    font-size: 0.62rem;
    line-height: 1.4;
}

.home-float__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-600);
}

.home-float__icon--cyan {
    background: var(--cyan-100);
    color: #0e7490;
}

.home-float--stock {
    top: 14%;
    left: -14px;
    animation: home-float 8s var(--ease) infinite;
}

.home-float--margin {
    right: -18px;
    bottom: 12%;
    animation: home-float 9s var(--ease) infinite reverse;
}

@keyframes home-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

/* --------------------------------------------------------------------------
   3. Manfaat
   -------------------------------------------------------------------------- */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.benefit-card {
    position: relative;
    padding: clamp(22px, 2.4vw, 28px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s var(--ease),
        border-color 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.benefit-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-md);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 15px;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.22), transparent 62%),
        var(--blue-50);
    color: var(--blue-600);
}

.benefit-card h3 {
    margin-bottom: 9px;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.benefit-card p {
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. Modul utama
   -------------------------------------------------------------------------- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 14px;
}

.module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: inherit;
    transition:
        transform 0.3s var(--ease),
        border-color 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: var(--shadow-md);
}

.module-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.module-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--blue-50);
    color: var(--blue-600);
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease);
}

.module-card:hover .module-card__icon {
    background: var(--blue-600);
    color: var(--white);
}

.module-card__number {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

.module-card h3 {
    margin-bottom: 7px;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.32;
}

.module-card p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   5. Cara kerja
   -------------------------------------------------------------------------- */
.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.flow__step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 19px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.flow__number {
    color: var(--cyan-400);
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
}

.flow__step strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.flow__step:not(:nth-child(4n)):not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -11px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid rgba(34, 211, 238, 0.65);
    border-right: 1.5px solid rgba(34, 211, 238, 0.65);
    transform: translateY(-50%) rotate(45deg);
}

.flow__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 70ch;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    line-height: 1.7;
}

.flow__note .icon {
    margin-top: 3px;
    color: var(--cyan-400);
}

/* --------------------------------------------------------------------------
   6. Margin laba
   -------------------------------------------------------------------------- */
.margin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    align-items: center;
    gap: clamp(32px, 5vw, 68px);
}

.margin-copy .section-title {
    margin-bottom: 18px;
}

.margin-copy__text {
    max-width: 58ch;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

.margin-copy__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--muted-light);
    font-size: 0.77rem;
    line-height: 1.6;
}

.margin-copy__note .icon {
    color: var(--blue-500);
}

.margin-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 34px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 4%, rgba(34, 211, 238, 0.2), transparent 38%),
        linear-gradient(150deg, #101f4b, #060b1f 76%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.margin-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.margin-card__label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.margin-card__tag {
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
}

.margin-list {
    margin: 0;
}

.margin-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.margin-row dt {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 500;
}

.margin-row dd {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.margin-highlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.margin-highlight__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.margin-highlight__item span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.margin-highlight__item strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.margin-highlight__item--accent {
    border-color: rgba(34, 211, 238, 0.32);
    background:
        linear-gradient(140deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.14));
}

.margin-highlight__item--accent strong {
    color: var(--cyan-300);
}

.margin-card__foot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.74rem;
    line-height: 1.6;
}

.margin-card__foot .icon {
    margin-top: 1px;
    color: var(--cyan-400);
}

/* --------------------------------------------------------------------------
   7. Responsif
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
    .home-hero__inner {
        gap: 36px;
    }

    .home-float--stock {
        left: -6px;
    }

    .home-float--margin {
        right: -8px;
    }

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

@media (max-width: 900px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
    }

    .home-hero__copy {
        max-width: 640px;
    }

    .home-hero__visual {
        order: 2;
        margin-top: 12px;
    }

    .home-mockup {
        width: min(100%, 400px);
    }

    .home-hero__ring {
        top: 74%;
        right: -260px;
    }

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

    .margin-card {
        max-width: 480px;
    }

    .flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .flow .flow__step::after {
        display: none;
    }

    .flow .flow__step:not(:nth-child(2n)):not(:last-child)::after {
        display: block;
    }
}

@media (max-width: 720px) {
    .home-hero {
        padding-block: 46px 62px;
    }

    .home-hero__title {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .home-hero__actions .btn {
        flex: 1 1 auto;
    }

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

    .module-card {
        padding: 19px;
    }
}

@media (max-width: 560px) {
    .home-hero__actions .btn {
        width: 100%;
    }

    .home-hero__meta {
        gap: 8px 16px;
    }

    .home-mockup {
        width: min(100%, 330px);
        padding-bottom: 44px;
    }

    .home-mockup__screen {
        min-height: 410px;
        padding: 28px 15px 16px;
    }

    .home-float {
        padding: 8px 11px;
    }

    .home-float--stock {
        top: 9%;
        left: -4px;
    }

    .home-float--margin {
        right: -4px;
        bottom: 6%;
    }

    .benefit-grid,
    .module-grid,
    .flow {
        grid-template-columns: 1fr;
    }

    .flow .flow__step::after {
        display: none;
    }

    .margin-highlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .home-float {
        display: none;
    }

    .home-mockup {
        width: 100%;
    }
}
