/* ==========================================================
   Landing Page Payment Gateway - Biru Minimalis
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --primary: #2196f3;
    --primary-dark: #1976d2;
    --primary-light: #90caf9;
    --primary-soft: #dcecfb;
    --navy: #1f3f78;
    --text: #3a5a8c;
    --bg-hero: #e3f1fd;
    --bg-section: #f6fafe;
    --bg-alt: #eaf4fe;
    --white: #ffffff;
    --accent: #ffb300;
    --radius: 999px;
    --shadow: 0 10px 30px rgba(33, 150, 243, 0.12);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg-section);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-align: justify;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

section[id] {
    scroll-margin-top: 90px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 620px;
    margin-bottom: 48px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 14px;
}

.section-title::before {
    content: "";
    flex-shrink: 0;
    width: 52px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.text-primary {
    color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(33, 150, 243, 0.35);
}

.btn-outline {
    color: var(--primary);
    background: var(--white);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--primary);
}

.btn-light {
    color: var(--primary-dark);
    background: var(--white);
    border-color: var(--white);
}

.btn-light:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost-light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost-light:hover {
    color: var(--primary-dark);
    background: var(--white);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1150px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 36px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--navy);
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

header nav a {
    position: relative;
    padding: 6px 0;
    font-weight: 500;
    color: var(--navy);
    transition: color 0.25s;
}

header nav a:hover,
header nav a.active {
    color: var(--primary);
}

header nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s;
}

header nav a:not(.btn):hover::after,
header nav a.active:not(.btn)::after {
    width: 100%;
}

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

header nav .btn {
    padding: 9px 26px;
    font-size: 0.95rem;
}

header nav .btn-outline {
    color: var(--primary);
}

header nav .btn-outline:hover,
header nav .btn:hover {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: var(--primary-soft);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 150px 0 90px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 10% 90%, rgba(144, 202, 249, 0.35), transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(144, 202, 249, 0.3), transparent 45%),
        var(--bg-hero);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    flex: 1;
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7a5200;
    background: #fff1c7;
    border-radius: var(--radius);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 480px;
}

.hero-image::before,
.hero-image::after {
    content: "";
    position: absolute;
    z-index: 0;
}

.hero-image::before {
    width: 85%;
    height: 85%;
    right: -2%;
    top: 8%;
    background: linear-gradient(145deg, var(--primary-light), #64b5f6);
    border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%;
    opacity: 0.85;
}

.hero-image::after {
    width: 70px;
    height: 70px;
    left: 2%;
    bottom: 8%;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.8;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    height: auto;
}

/* ==========================================================
   KEUNGGULAN
   ========================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature {
    padding: 32px 28px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 50%;
}

.feature h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--navy);
}

/* ==========================================================
   METODE PEMBAYARAN
   ========================================================== */
.methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    text-align: center;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.method:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(33, 150, 243, 0.2);
}

.method-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 110px;
    padding: 16px;
    margin-bottom: 18px;
    background: var(--bg-section);
    border-radius: 16px;
}

.method-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.method h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--navy);
}

.method-fee {
    padding: 4px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: var(--radius);
}

.empty {
    padding: 40px;
    text-align: center;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

/* ==========================================================
   CTA
   ========================================================== */
.cta {
    padding: 0 0 100px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 56px 56px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(33, 150, 243, 0.35);
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -60px;
    top: -90px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.cta-box > * {
    position: relative;
}

.cta-box h2 {
    margin-bottom: 8px;
    font-size: 2rem;
    line-height: 1.25;
}

.cta-box p {
    max-width: 480px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    color: #d6e8fb;
    background: var(--navy);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 44px;
}

footer .brand {
    margin-bottom: 12px;
    color: var(--white);
}

footer .brand img {
    background: var(--white);
}

.footer-brand p {
    max-width: 380px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    list-style: none;
}

.footer-contact i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.footer-contact small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-contact a {
    color: var(--white);
    transition: color 0.25s;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 20px 24px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    color: var(--white);
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    transition: transform 0.25s;
}

.to-top:hover {
    transform: translateY(-4px);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1000px) {
    header {
        padding: 12px 24px;
    }

    header nav {
        gap: 20px;
    }
}

@media (max-width: 860px) {
    /* navbar mobile */
    header {
        top: 12px;
        width: calc(100% - 24px);
        padding: 10px 14px 10px 18px;
        border-radius: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    header nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.97);
        border-radius: 16px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    }

    .menu-open nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header nav a:not(.btn) {
        padding: 12px 16px;
        border-radius: 12px;
    }

    header nav a:not(.btn):hover,
    header nav a.active:not(.btn) {
        background: var(--primary-soft);
    }

    header nav a:not(.btn)::after {
        display: none;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 6px;
    }

    header nav .btn {
        padding: 12px 26px;
    }

    /* konten */
    .section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 130px;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        max-width: 340px;
    }

    .section-head {
        max-width: none;
    }

    .cta-box {
        padding: 40px 28px;
        text-align: center;
        justify-content: center;
    }

    .cta-box p {
        margin-inline: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .section-title {
        font-size: 1.9rem;
    }

    .methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .method {
        padding: 16px;
    }

    .method-logo {
        height: 90px;
    }

    .cta-box h2 {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}