/* ================================================================
   DESIGN TOKENS
   Palet gelap netral + satu aksen oranye untuk aksi utama, biru
   dipakai secara terbatas untuk kategori "premium" (Dedicated).
   Mono font dipakai khusus untuk angka (harga, slot, spec) untuk
   kesan teknis data-server; Inter untuk semua teks lain.
   ================================================================ */
:root {
    --bg: #0a0a0c;
    --surface: #111114;
    --surface-2: #17171b;
    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.2);

    --text: #f2f2f0;
    --text-dim: #8b8b93;
    --text-faint: #55555c;

    --orange: #f97316;
    --blue: #38bdf8;
    --wa-green: #25D366;
    --discord-blue: #5865F2;

    --radius: 10px;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrap { width: 100%; max-width: 1120px; padding: 0 1.5rem; }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
    width: 100%;
    max-width: 1120px;
    padding: 1.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.2px; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Logo kustom via $logoUrl — efek lembut: glow napas + tilt halus saat hover */
.brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 rgba(249, 115, 22, 0);
    animation: brandLogoGlow 3.2s ease-in-out infinite;
    transition: transform 0.35s ease;
    will-change: transform, box-shadow;
}
.brand-logo:hover { transform: scale(1.08) rotate(3deg); }

@keyframes brandLogoGlow {
    0%, 100% { box-shadow: 0 0 0px rgba(249, 115, 22, 0); }
    50%      { box-shadow: 0 0 12px rgba(249, 115, 22, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo { animation: none; transition: none; }
}
.topbar nav { display: flex; gap: 1.8rem; }
.topbar nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.topbar nav a:hover { color: var(--text); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    width: 100%;
    max-width: 1120px;
    padding: 3.5rem 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero .eyebrow i { font-size: 0.75rem; }

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 620px;
    margin-bottom: 1.1rem;
    color: var(--text);
}
.hero h1 em { color: var(--text-dim); font-style: normal; font-weight: 400; }

.hero p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.4rem;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .number { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.stat .label { font-size: 0.78rem; color: var(--text-faint); }

/* ================================================================
   FILTER TABS — underline style, minim dekorasi
   ================================================================ */
.filter-wrapper {
    width: 100%;
    max-width: 1120px;
    padding: 1.4rem 1.5rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}
.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--bg); background: var(--orange); font-weight: 600; }
.filter-btn { position: relative; }
.filter-btn .new-dot {
    position: absolute; top: 2px; right: 2px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 2px var(--bg);
}
.filter-btn.active .new-dot { box-shadow: 0 0 0 2px var(--orange); background: var(--bg); }

/* ================================================================
   BADGE "BARU" — dipakai di card produk yang baru ditambahkan
   ================================================================ */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--bg);
    background: var(--orange);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* ================================================================
   ANNOUNCEMENT BAR — pengumuman update di atas halaman
   ================================================================ */
.announce-bar {
    width: 100%;
    background: linear-gradient(90deg, rgba(249,115,22,0.14), rgba(56,189,248,0.10));
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
    text-align: center;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.announce-bar strong { color: var(--orange); }
.announce-bar a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(56,189,248,0.5);
}
.announce-bar a:hover { border-bottom-style: solid; }
.announce-bar .announce-close {
    background: none; border: none; color: var(--text-faint);
    cursor: pointer; font-size: 0.9rem; margin-left: 0.4rem; line-height: 1;
}
.announce-bar .announce-close:hover { color: var(--text); }

/* ================================================================
   SECTION LABEL
   ================================================================ */
.section-label {
    width: 100%;
    max-width: 1120px;
    padding: 2.4rem 1.5rem 1.2rem;
    color: var(--text-faint);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.grid-container {
    width: 100%;
    max-width: 1120px;
    padding: 0 1.5rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* ================================================================
   CARD — flat, hairline border, tanpa shadow/glow
   ================================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.4rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.card.hidden { display: none; }
.card:hover { border-color: var(--border-hover); }

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.card-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.card-head .spec-line { font-size: 0.78rem; color: var(--text-faint); margin-top: 3px; }
.card-head i.card-icon { color: var(--orange); font-size: 0.9rem; }
.card.premium .card-head i.card-icon { color: var(--blue); }

/* Price list — pengganti tile grid, jadi baris dengan divider */
.price-list { border-top: 1px solid var(--border); margin-bottom: 1.3rem; }
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.price-row .row-left { display: flex; flex-direction: column; gap: 2px; }
.price-row .row-title { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.price-row .row-sub { font-size: 0.74rem; color: var(--text-faint); font-family: var(--mono); }
.price-row .row-price {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--orange);
    white-space: nowrap;
}
.card.premium .price-row .row-price { color: var(--blue); }
.price-row .row-price .unit { font-size: 0.68rem; color: var(--text-faint); font-weight: 400; margin-left: 3px; }

/* Meta specs — teks tipis dipisah bullet, tanpa kotak/ikon besar */
.meta-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 1.3rem;
    line-height: 1.9;
}
.meta-specs span:not(:last-child)::after { content: '·'; margin: 0 8px; color: var(--text-faint); }
.meta-specs .warranty { color: var(--text); }

/* Action row */
.action-row { display: flex; gap: 0.6rem; width: 100%; }
.btn-action {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 7px; padding: 0.65rem 0.5rem;
    border-radius: 7px;
    font-weight: 600; font-size: 0.82rem;
    text-decoration: none; color: var(--text);
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.2s ease;
}
.btn-action i { font-size: 0.9rem; }
.btn-wa:hover { border-color: var(--wa-green); color: var(--wa-green); }
.btn-discord:hover { border-color: var(--discord-blue); color: var(--discord-blue); }

/* ================================================================
   PAKET HEMAT — flat cards
   ================================================================ */
.pack-grid {
    width: 100%;
    max-width: 1120px;
    padding: 0 1.5rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.pack-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: border-color 0.25s ease;
}
.pack-card:hover { border-color: var(--border-hover); }
.pack-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pack-tag {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 1px;
    color: var(--orange); border: 1px solid rgba(249,115,22,0.35);
    padding: 3px 9px; border-radius: 5px;
}
.pack-card.premium .pack-tag { color: var(--blue); border-color: rgba(56,189,248,0.35); }
.pack-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.pack-price { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--orange); margin-bottom: 1.1rem; }
.pack-card.premium .pack-price { color: var(--blue); }
.pack-includes { list-style: none; margin-bottom: 1.3rem; }
.pack-includes li {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 0.85rem; color: var(--text-dim);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
.pack-includes li:last-child { border-bottom: none; }
.pack-includes li i { color: var(--orange); font-size: 0.7rem; }
.pack-card.premium .pack-includes li i { color: var(--blue); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-section {
    width: 100%;
    max-width: 760px;
    padding: 2rem 1.5rem 1rem;
    margin: 1.5rem 0 3rem;
}
.faq-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.4rem; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1.1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.accordion-header:hover { color: var(--orange); }
.accordion-header i { transition: transform 0.25s ease; font-size: 0.75rem; color: var(--text-faint); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: var(--orange); }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.75;
}
.accordion-item.active .accordion-body { max-height: 300px; padding-bottom: 1.1rem; }

/* ================================================================
   FOOTER — ringkas, tanpa kotak dekoratif
   ================================================================ */
.site-footer {
    width: 100%; max-width: 1120px;
    padding: 2.4rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.4rem; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); letter-spacing: 0.3px; text-transform: uppercase; }
.footer-col p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.75; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.6rem;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-faint); font-size: 0.8rem;
}
.footer-socials { display: flex; gap: 1.1rem; }
.footer-socials a { color: var(--text-faint); font-size: 1.05rem; transition: color 0.2s; }
.footer-socials a:hover { color: var(--orange); }
.footer-tos-link { color: var(--text-faint); font-size: 0.8rem; text-decoration: none; transition: color 0.2s; }
.footer-tos-link:hover { color: var(--orange); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .topbar nav { display: none; }
    .grid-container { grid-template-columns: 1fr; }
    .pack-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .action-row { flex-direction: column; }
    .stats-row { gap: 1.6rem; }
}

/* ================================================================
   UPDATE — Kategori baru: VPS / RDP / VDS + Subdomain & BotJS Register UCP
   Hanya tambahan; tidak mengubah aturan yang sudah ada.
   .card-new = penanda card produk baru (spesifikasi lebih panjang).
   ================================================================ */
.card-note {
    font-size: 0.74rem;
    color: var(--text-faint);
    line-height: 1.7;
    margin-bottom: 1.3rem;
}
.card-note p { margin: 0 0 0.35rem; }
.card-note p:last-child { margin-bottom: 0; }
.card-note b { color: var(--text-dim); font-weight: 600; font-family: inherit; }
.card-note .note-foot { font-style: italic; }
.card-new .price-row .row-left { min-width: 0; }
.card-new .price-row .row-sub { overflow-wrap: anywhere; line-height: 1.55; }
@media (max-width: 640px) {
    /* Spesifikasi panjang: harga turun ke bawah teks agar tidak sempit/meluber di layar kecil */
    .card-new .price-row { flex-wrap: wrap; row-gap: 4px; }
    .card-new .price-row .row-left { flex: 1 1 100%; }
    .card-new { padding: 1.3rem 1.2rem 1.2rem; }
}
