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

/* =========================
   1. ROOT & RESET
========================= */

:root {
    --ink: #392b54;
    --muted: #786e8b;
    --pink: #ff7eb6;
    --yellow: #ffe36e;
    --blue: #91dcff;
    --purple: #c4a5ff;
    --green: #b7f0c2;
    --paper: #fffaf5;
    --white: #fff;
    --shadow: 0 18px 45px rgba(78, 47, 103, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

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

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

/* =========================
   2. HEADER & NAVIGATION
========================= */

.site-header {
    width: min(1160px, 92%);
    margin: auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.22rem;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 15px;
    width: 43px;
    height: 43px;
    box-shadow: 0 5px 18px #f7d9e8;
    font-size: 1.55rem;
}

.brand-dot {
    color: #fa72ac;
    margin-left: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-links a {
    padding: 10px 15px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.92rem;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #ffe2ef;
    color: #c83d82;
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 1.35rem;
    color: var(--ink);
    cursor: pointer;
}

/* =========================
   3. HERO SECTION
========================= */

.hero {
    width: min(1160px, 92%);
    margin: 26px auto 76px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 42px;
    min-height: 480px;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 18px 0;
}

.gradient-text {
    background: linear-gradient(
        100deg,
        #ff6da8,
        #9c78ff 60%,
        #42bde7
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff0f6;
    color: #c64b85;
    padding: 7px 13px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.hero-copy > p,
.page-hero > p {
    max-width: 550px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

/* Tombol */

.btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px #392b5420;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, #ff79b2, #f35c9e);
}

.btn-soft {
    background: #fff;
    color: #7955b9;
    border: 1px solid #eee3ff;
}

/* Statistik kecil */

.tiny-stats {
    display: flex;
    gap: 28px;
    margin-top: 30px;
}

.tiny-stats div {
    display: grid;
    line-height: 1.35;
}

.tiny-stats strong {
    font-size: 1.35rem;
}

.tiny-stats span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* =========================
   4. HERO ART & Nailoong
========================= */

.hero-art {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 45% 55% 52% 48% / 45% 43% 57% 55%;
    background: linear-gradient(
        140deg,
        #ffdfec,
        #f4eaff 55%,
        #d7f4ff
    );
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 350px;
    height: 350px;
    max-width: 95%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(217, 154, 52, 0.2);
}

@media (max-width: 480px) {
    .hero-art {
        height: 320px;
    }

    .hero-image {
        width: 280px;
        height: 280px;
        max-width: 95%;
    }
}


/* =========================
   5. SECTION & HEADING
========================= */

/* Section */
.section {
    width: min(1160px, 92%);
    margin: 0 auto 78px;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin: 12px 0;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

/* Grid Kartu */
.feature-grid,
.fact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Kartu Fitur */
.feature-card {
    display: block;
    padding: 28px;
    border-radius: 26px;
    min-height: 230px;
    text-decoration: none;
    color: #392b54;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 9px 28px #392b5408;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

/* Warna Kartu */
.pink {
    background: #ffe1ed;
}

.blue {
    background: #ddf5ff;
}

.yellow {
    background: #fff1b9;
}

.purple {
    background: #eee3ff;
}

/* Ikon Kartu */
.feature-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    background: #ffffffb8;
    border-radius: 18px;
    font-size: 1.7rem;
}

/* Judul Kartu */
.feature-card h3 {
    margin: 14px 0 5px;
    font-size: 1.25rem;
}

/* Deskripsi */
.feature-card p,
.fact-card p {
    color: #6f637f;
    margin: 0 0 15px;
}


/* Membuat bagian fitur berada di tengah */
.section {
    width: min(1160px, 92%);
    margin: 0 auto 78px;
}

/* Judul dan deskripsi di tengah */
.section-heading {
    text-align: center;
    margin-bottom: 30px;
}


/* Grid Kartu Fitur */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Tampilan HP */
@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   6. FOOTER
========================= */

.site-footer {
    text-align: center;
    padding: 32px 20px 28px;
    background: #fff;
    border-top: 1px solid #f3eaf1;
}

.site-footer .brand {
    justify-content: center;
}

.site-footer p {
    color: var(--muted);
    margin: 10px 0 2px;
}

.site-footer small {
    color: #a59bad;
    font-size: 0.78rem;
}

/* =========================
   7. HALAMAN TENTANG
========================= */

.page-main {
    min-height: 60vh;
}

.page-hero {
    text-align: center;
    padding: 62px 20px 38px;
}

.page-hero > p {
    margin: 0 auto;
}

.about-layout {
    width: min(1000px, 90%);
    margin: 25px auto 70px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}


.about-art img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 25px;
    background: linear-gradient(135deg, #ffe0ed, #e9e0ff);
}

.about-art {
    height: 220px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 35px;
    background: linear-gradient(135deg, #ffe0ed, #e9e0ff);
}

.about-copy h2 {
    font-size: 2rem;
    line-height: 1.2;
}

.about-copy p {
    color: var(--muted);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pill-list span {
    background: #fff;
    padding: 8px 13px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.86rem;
}

.mini-section {
    margin-bottom: 80px;
}

/* =========================
   8. KARTU FAKTA
========================= */

.fact-card {
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.fact-card > span {
    font-size: 2rem;
}

.fact-card h3 {
    margin: 10px 0 5px;
}

/* =========================
   9. GALERI
========================= */

.gallery-grid {
    width: min(1120px, 92%);
    margin: 15px auto 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-card {
    border: 0;
    text-align: left;
    cursor: pointer;
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 28px #392b540c;
    transition: transform 0.2s;
    background: #fff;
    color: var(--ink);
}

.gallery-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
}

.gallery-card img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    display: block;
}

.gallery-pink .gallery-art {
    background: #ffe0ed;
}

.gallery-blue .gallery-art {
    background: #dff5ff;
}

.gallery-yellow .gallery-art {
    background: #fff0b5;
}

.gallery-purple .gallery-art {
    background: #e8ddff;
}

.gallery-green .gallery-art {
    background: #ddf7df;
}

.gallery-orange .gallery-art {
    background: #ffe3c8;
}

.gallery-caption {
    display: grid;
    gap: 2px;
    padding: 16px 20px 19px;
}

.gallery-caption b {
    font-size: 1.08rem;
}

.gallery-caption small {
    color: var(--muted);
}

.gallery-note {
    width: min(900px, 90%);
    margin: 0 auto 70px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================
   10. MODAL GALERI
========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #30213f99;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-box {
    background: #fffaf5;
    border-radius: 28px;
    padding: 35px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    animation: pop 0.22s ease-out;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 9px;
    background: none;
    border: 0;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted);
}

.modal-emoji {
    font-size: 3rem;
}

.modal-box p {
    color: var(--muted);
}

/* =========================
   13. HAL FAVORIT & FAKTA LUCU
========================= */

.favorite-grid,
.facts-grid {
    width: min(1060px, 92%);
    margin: 10px auto 64px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.favorite-card,
.fact-card {
    position: relative;
    background: #fff;
    border: 1px solid #f1e8f4;
    border-radius: 25px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.22s, box-shadow 0.22s;
    overflow: hidden;
}

.favorite-card:hover,
.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 38px #392b5418;
}

.favorite-emoji,
.fact-emoji {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 23px;
    font-size: 2.6rem;
    margin-bottom: 17px;
    background: #ffffffb8;
}

.favorite-card h2,
.fact-card h2 {
    font-size: 1.25rem;
    margin: 8px 0;
    color: var(--ink);
}

.favorite-card p,
.fact-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.96rem;
}

/* Label kategori */

.favorite-tag {
    display: inline-block;
    padding: 5px 11px;
    background: #ffffffb8;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #72558f;
}

/* Variasi warna kartu favorit */

.favorite-pink {
    background: linear-gradient(145deg, #ffe0ed, #fff5f8);
}

.favorite-blue {
    background: linear-gradient(145deg, #d9f4ff, #f5fcff);
}

.favorite-yellow {
    background: linear-gradient(145deg, #fff2ad, #fffbed);
}

.favorite-green {
    background: linear-gradient(145deg, #d9f8df, #f5fff5);
}

.favorite-purple {
    background: linear-gradient(145deg, #eadfff, #faf7ff);
}

.favorite-orange {
    background: linear-gradient(145deg, #ffe2c8, #fff8ef);
}

/* Nomor fakta */

.fact-card {
    padding-top: 31px;
}

.fact-number {
    position: absolute;
    right: 20px;
    top: 18px;
    color: #e6d9ef;
    font-size: 1.45rem;
    font-weight: 900;
}

.fact-emoji {
    background: #fff0f6;
}

/* =========================
   16. AKSESIBILITAS
========================= */

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


/* =========================
   RESPONSIVE NAILOONG LAND
========================= */

/* Tablet dan HP */
@media (max-width: 768px) {

    /* Mencegah halaman melebar ke samping */
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    /* Header */
    .site-header {
        width: 92%;
        min-height: 72px;
        gap: 12px;
        position: relative;
    }

    .brand {
        font-size: 1.05rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% - 2px);
        left: 0;
        right: 0;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 12px;
        background: #fff;
        border: 1px solid #f3eaf1;
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 14px;
        border-radius: 12px;
    }

    /* Beranda */
    .hero {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
        margin: 25px auto 55px;
    }

    .hero-copy h1 {
        font-size: clamp(2.3rem, 8vw, 3.5rem);
        letter-spacing: -1px;
    }

    .hero-copy > p,
    .page-hero > p {
        font-size: 1rem;
    }

    .hero-art {
        width: 100%;
        height: 340px;
    }

    .hero-image {
        width: min(280px, 80%);
        height: auto;
        aspect-ratio: 1;
    }

    .tiny-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Judul halaman */
    .page-hero {
        padding: 40px 18px 25px;
    }

    .section-heading h2,
    .page-hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    /* Tentang Nailoong */
    .about-layout {
        width: 90%;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin: 20px auto 55px;
    }

    .about-art {
        width: 100%;
        max-width: 360px;
        height: 260px;
        margin: auto;
    }

    .about-art img {
        width: 220px;
        height: 220px;
        max-width: 85%;
    }

    .about-copy h2 {
        font-size: 1.7rem;
    }

    /* Kartu fitur dan fakta */
    .feature-grid,
    .fact-grid,
    .favorite-grid,
    .facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .feature-card,
    .favorite-card,
    .fact-card {
        min-width: 0;
        padding: 20px;
    }

    /* Galeri: dua kolom */
    .gallery-grid {
        width: 92%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-card img {
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .gallery-caption {
        padding: 12px;
    }

    .gallery-caption b {
        font-size: 0.98rem;
    }

    /* Modal galeri */
    .modal-box {
        width: 100%;
        max-width: 420px;
        padding: 30px 22px;
    }
}

/* HP kecil */
@media (max-width: 480px) {

    .hero {
        gap: 22px;
        margin-top: 18px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .hero-art {
        height: 290px;
    }

    .hero-image {
        width: min(240px, 82%);
    }

    .hero-actions {
        gap: 10px;
    }

    .btn {
        padding: 11px 15px;
    }

    .tiny-stats {
        gap: 15px;
    }

    .section {
        width: 90%;
        margin-bottom: 55px;
    }

    .feature-grid,
    .fact-grid,
    .favorite-grid,
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card,
    .favorite-card,
    .fact-card {
        padding: 22px;
    }

    .gallery-grid {
        gap: 10px;
    }

    .gallery-card {
        border-radius: 17px;
    }

    .gallery-caption {
        padding: 10px;
    }

    .gallery-caption b {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .gallery-caption small {
        font-size: 0.75rem;
    }

    .gallery-note {
        margin-bottom: 45px;
    }

    .pill-list span {
        font-size: 0.8rem;
    }

    .site-footer {
        padding: 25px 16px;
    }
}
