/* ============================================================
   1. IMPORT FONT
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

/* ============================================================
   2. CSS VARIABLES (ubah warna tema di sini)
   ============================================================ */
:root {
    --primary: #2a4b96;
    --primary-dark: #173061;
    --bg-page: #f6f5ff;
    --bg-card: #ffffff;
    --bg-footer: #f6f5ff;
    --text-main: #252525;
    --text-muted: #6b6b6b;
    --border-color: #e5e3f0;

    --radius-card: 0.75rem;
    --shadow-card: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);

    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-page);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   4. LAYOUT: Center Container
   ============================================================ */
.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm);
}

/* ============================================================
   5. CARD UTAMA
   ============================================================ */
.box {
    width: 100%;
    max-width: 600px;
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden; /* agar sudut anak ikut rounded */
    animation: fadeInUp 0.5s ease-out;
}

/* Animasi masuk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   6. HEADING: Logo + Nama Perusahaan
   ============================================================ */
.box-heading {
    background-color: var(--primary);
    color: #ffffff;
    padding: var(--spacing-lg) var(--spacing-md);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;

    border-radius: var(--radius-card) var(--radius-card) 0 0;
    text-align: center;
}

.image-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;

    background-color: #ffffff;
    border-radius: 50%;
    /* padding: 0.5rem; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.company-name {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.company-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;

    /* Warna lebih lembut (karena heading background biru) */
    color: rgba(255, 255, 255, 0.85);

    /* Jarak dari judul utama (opsional, tapi biar rapi) */
    margin-top: -0.25rem;
}

/* ============================================================
   7. BODY: Isi Konten
   ============================================================ */
.box-body {
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--bg-card);
    text-align: center;
}

.box-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.box-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Tombol primary */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 5px;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(108, 92, 231, 0.4);
    outline-offset: 2px;
}

/* ============================================================
   8. FOOTER: Split Kiri-Kanan
   ============================================================ */
.box-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-color);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    font-size: 0.875rem;
    color: var(--text-muted);

    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-md: 1.25rem;
    }

    .company-name {
        font-size: 1.25rem;
    }

    .image-logo {
        width: 60px;
        height: 60px;
    }

    .box-title {
        font-size: 1.1rem;
    }

    /* Footer tumpuk vertikal di mobile */
    .box-footer {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }
}

/* ============================================================
   10. DARK MODE (opsional, otomatis mengikuti sistem)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #1a1a2e;
        --bg-card: #252540;
        --bg-footer: #1f1f38;
        --text-main: #eaeaea;
        --text-muted: #a0a0b8;
        --border-color: #35355a;
        --shadow-card: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
    }
}

/* ============================================================
   11. REDUCED MOTION (aksesibilitas)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hapus rule lama ini: */
/* .btn-logo img { ... } */

/* ============================================================
   12. BUTTON DOWNLOAD (Link Style)
   ============================================================ */
.btn-link1 {
    display: flex;
    align-items: center;
    gap: 1rem;

    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 1rem;

    background-color: #e6e9f3;
    border: 1px solid #b7bed8;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: all 0.2s ease;
}

.btn-link1:hover {
    border-color: #8089a7;
    box-shadow: 0 6px 16px rgba(42, 75, 150, 0.15);
    transform: translateY(-2px);
}

.btn-link1:active {
    transform: translateY(0);
}

.btn-link1:focus-visible {
    outline: 3px solid rgba(42, 75, 150, 0.4);
    outline-offset: 2px;
}

/* === KIRI: Logo === */
.btn-logo1 {
    flex-shrink: 0;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #eff1f7;
    border-radius: 0.5rem;

    /* BARU: styling icon */
    font-size: 1.5rem;
    color: #6c5ce7;
    transition: all 0.2s ease;
}

/* === KANAN: Icon === */
.btn-icon1 {
    flex-shrink: 0;
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #707ca8;
    color: #ffffff;
    border-radius: 50%;

    /* BARU: styling icon */
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn-link1:hover .btn-icon1 {
    background-color: #566499;
    border: 1px solid #3d4d86;
}

/* link 2 */
.btn-link2 {
    display: flex;
    align-items: center;
    gap: 1rem;

    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 1rem;

    background-color: #f3ede6;
    border: 1px solid #d8cbb7;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: all 0.2s ease;
}

.btn-link2:hover {
    border-color: #a79680;
    box-shadow: 0 6px 16px rgba(42, 75, 150, 0.15);
    transform: translateY(-2px);
}

.btn-link2:active {
    transform: translateY(0);
}

.btn-link2:focus-visible {
    outline: 3px solid rgba(42, 75, 150, 0.4);
    outline-offset: 2px;
}

/* === KIRI: Logo === */
.btn-logo2 {
    flex-shrink: 0;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #fffaf5;
    border-radius: 0.5rem;

    /* BARU: styling icon */
    font-size: 1.5rem;
    color: #e7945c;
    transition: all 0.2s ease;
}

/* === KANAN: Icon === */
.btn-icon2 {
    flex-shrink: 0;
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #a89070;
    color: #ffffff;
    border-radius: 50%;

    /* BARU: styling icon */
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn-link2:hover .btn-icon2 {
    background-color: #997a56;
    border: 1px solid #866c3d;
}

/* link 3 */
.btn-link3 {
    display: flex;
    align-items: center;
    gap: 1rem;

    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 1rem;

    background-color: #f3e6e6;
    border: 1px solid #d8b7b7;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: all 0.2s ease;
}

.btn-link3:hover {
    border-color: #a78080;
    box-shadow: 0 6px 16px rgba(42, 75, 150, 0.15);
    transform: translateY(-2px);
}

.btn-link3:active {
    transform: translateY(0);
}

.btn-link3:focus-visible {
    outline: 3px solid rgba(42, 75, 150, 0.4);
    outline-offset: 2px;
}

/* === KIRI: Logo === */
.btn-logo3 {
    flex-shrink: 0;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #fff5f5;
    border-radius: 0.5rem;

    /* BARU: styling icon */
    font-size: 1.5rem;
    color: #e75c5c;
    transition: all 0.2s ease;
}

/* === KANAN: Icon === */
.btn-icon3 {
    flex-shrink: 0;
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #a87070;
    color: #ffffff;
    border-radius: 50%;

    /* BARU: styling icon */
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn-link3:hover .btn-icon3 {
    background-color: #995656;
    border: 1px solid #863d3d;
}

/* --- TENGAH: Teks --- */
.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    text-align: left;
}

.btn-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
