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

:root {
    --bg: #0f172a;
    --bg-alt: #111c33;
    --card: #16213b;
    --card-2: #1b2a4a;
    --border: rgba(148, 163, 184, 0.14);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --primary-2: #0ea5e9;
    --accent: #fbbf24;
    --green: #34d399;
    --radius: 16px;
    --shadow: 0 18px 45px rgba(2, 6, 23, 0.55);
    --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

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

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

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

/* ===== Tombol ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #062033;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35);
}

.btn--ghost {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.navbar__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #062033;
    font-family: var(--mono);
    font-weight: 800;
    font-size: 0.95rem;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar__link {
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar__link:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}

.navbar__toggle span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 150px 0 90px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 15% 10%, rgba(56, 189, 248, 0.16), transparent 60%),
        radial-gradient(500px 300px at 85% 80%, rgba(52, 211, 153, 0.12), transparent 60%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--primary);
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__text p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero__visual {
    position: relative;
}

.code-card {
    background: #0b1324;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-family: var(--mono);
    font-size: 0.9rem;
    overflow: hidden;
}

.code-card__head {
    display: flex;
    gap: 7px;
    padding: 0.8rem 1rem;
    background: rgba(148, 163, 184, 0.06);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot--red {
    background: #f87171;
}

.dot--yellow {
    background: #fbbf24;
}

.dot--green {
    background: #34d399;
}

.code-card pre {
    padding: 1.2rem 1.3rem 1.5rem;
    overflow-x: auto;
}

.code-card code {
    line-height: 1.75;
}

.kw {
    color: #c084fc;
}

.fn {
    color: #38bdf8;
}

.str {
    color: #86efac;
}

.var {
    color: #fbbf24;
}

/* ===== Stats ===== */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.4);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.4rem 0;
    text-align: center;
}

.stat__value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===== Section umum ===== */
.section {
    padding: 5.5rem 0;
}

.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    max-width: 40rem;
    margin-bottom: 3rem;
}

.section__head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    letter-spacing: -0.4px;
    margin: 0.5rem 0 0.9rem;
}

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

.section__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
}

/* ===== Tentang ===== */
.about > p {
    color: var(--muted);
    max-width: 46rem;
    margin-bottom: 1rem;
}

.about > p strong {
    color: var(--text);
}

.about__values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.6rem;
}

.value {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.value:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}

.value__icon {
    font-size: 1.9rem;
    display: inline-block;
    margin-bottom: 0.9rem;
}

.value h3 {
    margin-bottom: 0.45rem;
    font-size: 1.08rem;
}

.value p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cards--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.9rem 1.7rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.45);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.card__icon svg {
    width: 25px;
    height: 25px;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.12rem;
}

.card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.card--community {
    display: flex;
    flex-direction: column;
}

.card--community p {
    flex: 1;
}

.card__count {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 1rem;
}

.card__link {
    margin-top: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ===== Jadwal & Kalender ===== */
.schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    margin-top: 3.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.schedule__info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.schedule__info > p {
    color: var(--muted);
    margin-bottom: 1.3rem;
    font-size: 0.94rem;
}

.schedule__list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.schedule__list li {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
}

.schedule__list time {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--primary);
    white-space: nowrap;
    font-weight: 600;
}

.calendar {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.3rem;
}

.calendar__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.calendar__head button {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s;
}

.calendar__head button:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar__dow {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 700;
    padding: 0.3rem 0;
}

.calendar__day {
    position: relative;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.45rem 0;
    border-radius: 8px;
    transition: background 0.2s;
}

.calendar__day--dim {
    color: rgba(148, 163, 184, 0.4);
}

.calendar__day--today {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #062033;
    font-weight: 700;
}

.calendar__day--event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== CTA ===== */
.section--cta {
    padding-bottom: 0;
}

.cta {
    text-align: center;
    background:
        radial-gradient(500px 250px at 50% 0%, rgba(56, 189, 248, 0.14), transparent 65%),
        var(--card);
    border: 1px solid var(--border);
    border-radius: 22px 22px 0 0;
    padding: 4rem 2rem 3rem;
}

.cta h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    letter-spacing: -0.4px;
    margin-bottom: 0.8rem;
}

.cta > p {
    color: var(--muted);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.cta__form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.cta__form input {
    flex: 1 1 200px;
    max-width: 240px;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta__form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.cta__form input::placeholder {
    color: var(--muted);
}

.cta__note {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta__note.is-success {
    color: var(--green);
}

.cta__note.is-error {
    color: #f87171;
}

.cta__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--border);
}

.cta__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cta__link:hover {
    color: var(--primary);
}

.cta__icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.cta__icon--discord {
    background: #8b5cf6;
}

.cta__icon--telegram {
    background: #22d3ee;
}

/* ===== Footer ===== */
.footer {
    background: #0a1120;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2.2rem;
}

.footer__brand {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer p {
    color: var(--muted);
    font-size: 0.88rem;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.footer__nav a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--primary);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 1.4rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__visual {
        max-width: 560px;
    }

    .cards,
    .cards--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__values {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        background: rgba(13, 20, 38, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 1rem 5%;
        display: none;
    }

    .navbar__menu.is-open {
        display: flex;
    }

    .navbar__link {
        padding: 0.7rem 0.9rem;
    }

    .hero {
        padding-top: 130px;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .footer__inner {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .cards,
    .cards--4,
    .about__values {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
    }

    .cta__form {
        flex-direction: column;
        align-items: stretch;
    }

    .cta__form input {
        max-width: none;
    }

    .schedule {
        padding: 1.4rem;
    }
}