:root {
    /* ===== GANTI WARNA DI SINI SAJA ===== */
    /* Palet aktif: Cyan Cream (biru cerah ke krem lembut) */
    --g1: #00B7FF;
    --g2: #6fd8ec;
    --g3: #b4ebd6;
    --g4: #FFFFC7;
    /* 4 warna gradient latar: tua ke muda */
    --accent: #00337a;
    --accent-2: #0a4fb0;
    /* warna judul, tombol, cincin foto */
    --ink: #0b2447;
    /* warna teks */

    --bg: var(--g2);
    --panel: #ffffff;
    --muted: color-mix(in srgb, var(--ink) 80%, transparent);
    --line: color-mix(in srgb, var(--ink) 10%, transparent);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

a {
    color: inherit
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px
}

/* =========================================================
   LATAR (latar tetap bergerak halus, kartu tidak)
   ========================================================= */
.stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 64px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 35%, var(--g3) 65%, var(--g4) 100%);
    background-size: 300% 300%;
    animation: tide 16s ease-in-out infinite
}

.stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .65), transparent 55%)
}

.stage::after {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .85), transparent 66%);
    filter: blur(18px);
    animation: orb 22s ease-in-out infinite alternate
}

@keyframes tide {

    0%,
    100% {
        background-position: 0% 0%
    }

    50% {
        background-position: 100% 100%
    }
}

@keyframes orb {
    from {
        transform: translate(-12vw, 0)
    }

    to {
        transform: translate(72vw, 55vh)
    }
}

@keyframes ripple {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1)
    }

    50% {
        transform: translate(-50%, -50%) scale(1.14)
    }
}

.glow {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 1100px;
    height: 1100px;
    max-width: 160%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .9) 0%, transparent 55%), repeating-radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0 2px, transparent 2px 80px);
    animation: ripple 9s ease-in-out infinite;
    -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
    mask-image: radial-gradient(circle, #000 25%, transparent 68%)
}

/* =========================================================
   JUDUL
   ========================================================= */
header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px
}

h1 {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(2.3rem, 5vw, 3.3rem);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -.01em
}

h1 .accent {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

p.sub {
    margin: 16px auto 0;
    max-width: 470px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7
}

/* =========================================================
   KARTU — 4 kartu satu baris, susunan lengkung, tanpa animasi
   ========================================================= */
.cards {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    width: 100%;
    max-width: 1240px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 22px;
    flex-wrap: wrap
}

.card {
    --r: 0deg;
    position: relative;
    display: flex;
    width: 260px;
    text-decoration: none;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--accent) 22%, transparent));
    box-shadow: 0 30px 54px -26px rgba(20, 60, 140, .38);
    transform: rotate(var(--r));
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s
}

/* kemiringan statis; dua kartu tengah sedikit terangkat */
.card:nth-child(4n+1) {
    --r: -2deg
}

.card:nth-child(4n+2) {
    --r: -.8deg;
    z-index: 2;
    margin-bottom: 26px
}

.card:nth-child(4n+3) {
    --r: .8deg;
    z-index: 2;
    margin-bottom: 26px
}

.card:nth-child(4n+4) {
    --r: 2deg
}

.card:hover,
.card:focus-visible {
    transform: translateY(-8px) rotate(0) scale(1.03);
    box-shadow: 0 44px 66px -24px rgba(20, 60, 140, .5)
}

.inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-radius: 17px;
    overflow: hidden
}

.chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: #f3f7fc;
    border-bottom: 1px solid var(--line)
}

.chrome i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2)
}

.chrome i:first-child {
    background: #ff6b6b
}

.chrome i:nth-child(2) {
    background: #f7c948
}

.chrome i:nth-child(3) {
    background: #4ade80
}

.chrome span {
    margin-left: 8px;
    flex: 1;
    font-size: .66rem;
    color: var(--muted);
    background: #e4edf8;
    border-radius: 6px;
    padding: 3px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.thumb {
    aspect-ratio: 16/10;
    background: #eef3fa;
    overflow: hidden
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1)
}

.card:hover .thumb img {
    transform: scale(1.06)
}

.body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px
}

.body h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 0 6px
}

.body p {
    margin: 0 0 16px;
    font-size: .84rem;
    line-height: 1.55;
    color: var(--muted)
}

.go {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .84rem;
    font-weight: 500;
    color: var(--accent);
    padding-top: 14px;
    border-top: 1px solid var(--line)
}

.go svg {
    width: 28px;
    height: 28px;
    padding: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform .3s
}

.card:hover .go svg {
    transform: translateX(4px)
}

/* =========================================================
   RESPONSIF
   ========================================================= */

/* Layar sedang: 2 kartu per baris, tanpa susunan lengkung */
@media (max-width:1140px) {
    .cards {
        max-width: 560px
    }

    .card:nth-child(n) {
        --r: 0deg;
        margin-bottom: 0
    }
}

/* Mobile: 1 kolom */
@media (max-width:600px) {
    .stage {
        padding-top: 48px
    }

    .cards {
        flex-direction: column;
        align-items: center;
        gap: 20px
    }

    .card {
        width: min(340px, 100%)
    }
}

@media (prefers-reduced-motion:reduce) {

    .stage,
    .stage::after,
    .glow {
        animation: none !important
    }

    .card,
    .thumb img,
    .go svg {
        transition: none !important
    }
}