@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #2457d6;
    --brand-dark: #1c43ad;
    --ink: #17243b;
    --muted: #66758b;
    --surface: #fff;
    --canvas: #f5f7fb;
    --line: #e3e9f2;
    --shadow-sm: 0 8px 24px rgba(23, 36, 59, .06);
    --shadow-lg: 0 24px 60px rgba(23, 36, 59, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--surface);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid rgba(36, 87, 214, .28);
    outline-offset: 3px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    padding: 12px max(5vw, 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #fff;
    background: rgba(19, 35, 65, .97);
    box-shadow: 0 6px 24px rgba(10, 24, 48, .12);
    backdrop-filter: blur(16px);
}

.navbar .logo {
    display: flex;
    align-items: center;
    min-width: 110px;
    justify-self: start;
}

.navbar .brand-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.navbar .logo img {
    display: block;
    width: auto;
    height: 42px;
    padding: 5px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 38px);
    justify-self: center;
}

.nav-links a {
    position: relative;
    padding: 10px 0;
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    content: '';
    background: #7ea5ff;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

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

.lang-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 128px;
    min-height: 56px;
    padding: 12px 22px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-select:hover {
    background: rgba(255, 255, 255, .16);
}

.lang-select svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 20px;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.login-btn:hover {
    color: #fff;
    background: #3a6ce5;
    border-color: #3a6ce5;
    box-shadow: 0 8px 18px rgba(36, 87, 214, .25);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    min-height: 490px;
    padding: 76px max(8vw, 24px);
    overflow: hidden;
    background: radial-gradient(ellipse at 78% 48%, #e7efff 0, rgba(231, 239, 255, .45) 28%, transparent 59%), linear-gradient(135deg, #fbfcff, #f4f7fd);
}

.hero::before {
    position: absolute;
    top: -210px;
    right: 14%;
    width: 430px;
    height: 430px;
    content: '';
    border: 1px solid rgba(36, 87, 214, .08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(55%, 660px);
    max-width: none;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: var(--ink);
    font-size: clamp(2.35rem, 4.1vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.12;
}

.hero-content p {
    max-width: 580px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.mulai-btn {
    min-height: 48px;
    padding: 12px 24px;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(36, 87, 214, .2);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}

.mulai-btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 1;
    width: min(40%, 480px);
    max-width: none;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 30px rgba(23, 36, 59, .1));
}

.key-features,
.background-purpose,
.governance-security,
.temporary-procedure {
    padding-right: max(8vw, 24px) !important;
    padding-left: max(8vw, 24px) !important;
}

.key-features h2,
.background-purpose h2,
.governance-security h2 {
    color: var(--ink) !important;
    font-size: clamp(1.65rem, 2.5vw, 2.1rem) !important;
    letter-spacing: -.035em;
}

.public-preview-modal {
    width: min(760px, calc(100% - 32px));
    max-height: min(82vh, 760px);
    margin: auto;
    padding: 26px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.public-preview-modal::backdrop {
    background: rgba(13, 27, 49, .58);
    backdrop-filter: blur(4px);
}

.public-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.public-preview-header h2 {
    margin-top: 10px;
    overflow-wrap: anywhere;
    font-size: 1.3rem;
    letter-spacing: -.03em;
}

.public-preview-category {
    display: inline-block;
    padding: 5px 10px;
    color: var(--brand);
    background: #edf3ff;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.public-preview-header button {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    color: var(--muted);
    background: #f4f6fa;
    border: 0;
    border-radius: 10px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.public-preview-meta {
    padding: 14px 0;
    color: var(--muted);
    font-size: .82rem;
}

.public-preview-text {
    max-height: 52vh;
    overflow: auto;
    padding: 18px;
    color: #33435c;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.access-request-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.access-request-form label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
}

.access-request-form input,
.access-request-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.access-request-form textarea {
    resize: vertical;
}

.request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.request-actions > button:first-child {
    padding: 10px 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
}

.request-actions .mulai-btn {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 9px;
}

.request-status {
    padding: 12px;
    color: #854d0e;
    background: #fff8e7;
    border-radius: 9px;
    font-size: .87rem;
    line-height: 1.5;
}

.access-notice,
.workflow-guide {
    padding-right: max(8vw, 24px) !important;
    padding-left: max(8vw, 24px) !important;
}

.access-notice {
    background: var(--canvas) !important;
}

.notice-card {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
}

.notice-card h3 {
    color: var(--brand) !important;
}

.key-features {
    background: #fff;
}

.feature-item {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-item:hover,
.pillar-item:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-3px);
}

.feature-item h4,
.pillar-item h4 {
    color: var(--brand) !important;
}

.workflow-guide {
    background: #142541 !important;
}

.global-footer {
    background: #101b2e !important;
}

.global-footer a:hover {
    color: #fff !important;
}

.footer-grid {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.footer-copyright {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.page-header {
    background: linear-gradient(120deg, #172c50, #2457d6) !important;
}

.page-header h1 {
    letter-spacing: -.04em;
}

.background-purpose {
    background: var(--canvas) !important;
}

.background-purpose p,
.temporary-procedure p,
.temporary-procedure li,
.pillar-item p {
    color: var(--muted) !important;
}

.pillar-item {
    border: 1px solid var(--line);
    border-left-width: 4px !important;
    border-radius: 14px !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.coming-soon-notice .alert-box {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
}

.temporary-procedure {
    max-width: 1200px;
    margin: 0 auto;
}

.footer,
.global-footer {
    line-height: 1.65;
}

@media (max-width: 800px) {
    .navbar {
        display: flex;
        padding: 12px 5%;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .navbar .logo {
        min-width: auto;
    }

    .nav-links {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        gap: 24px;
        justify-self: auto;
    }

    .nav-actions {
        margin-left: auto;
        justify-self: auto;
    }

    .hero {
        min-height: 0;
        padding: 58px 7%;
        gap: 25px;
    }

    .hero-content {
        width: 58%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .hero-image {
        width: 38%;
    }

    .features-grid,
    .footer-grid,
    .pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .footer-grid {
        gap: 28px !important;
    }
}

@media (max-width: 560px) {
    .navbar {
        min-height: auto;
        padding: 10px 5%;
    }

    .navbar .logo img {
        height: 34px;
    }

    .nav-links {
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        font-size: .86rem;
    }

    .nav-actions {
        gap: 8px;
    }

    .lang-select {
        min-width: 92px;
        min-height: 44px;
        gap: 8px;
        padding: 8px 13px;
        font-size: .95rem;
    }

    .lang-select svg {
        width: 20px;
        height: 20px;
    }

    .login-btn {
        min-height: 38px;
        padding: 8px 14px;
        font-size: .85rem;
    }

    .hero {
        flex-direction: column;
        padding: 48px 7% 38px;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        max-width: 520px;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 1rem;
    }

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

    .key-features,
    .background-purpose,
    .governance-security,
    .temporary-procedure,
    .access-notice,
    .workflow-guide {
        padding-right: 6% !important;
        padding-left: 6% !important;
    }

    .features-grid,
    .footer-grid,
    .pillars {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .feature-item,
    .pillar-item {
        padding: 24px !important;
    }

    .global-footer {
        padding: 42px 6% 18px !important;
    }

    .page-header {
        padding: 44px 7% !important;
    }

    .page-header h1 {
        font-size: 2rem !important;
    }

    .page-header p {
        font-size: 1rem !important;
    }

    .public-preview-modal {
        width: 100%;
        max-width: none;
        max-height: 90dvh;
        margin: auto 0 0;
        padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
