/* =========================================================
   Naito TopUp — naitotopup.online
   Stylesheet utama (landing page & seluruh halaman internal)
   ========================================================= */

:root {
  --bg: #0b0e18;
  --bg-soft: #101527;
  --surface: #151b31;
  --surface-2: #1b233f;
  --border: #26304f;
  --text: #e8ecf7;
  --muted: #9aa3bd;
  --primary: #6d5dfc;
  --primary-2: #22d3ee;
  --accent: #ff5d8f;
  --success: #2dd4a7;
  --warning: #fbbf24;
  --grad: linear-gradient(135deg, #6d5dfc 0%, #22d3ee 100%);
  --grad-warm: linear-gradient(135deg, #ff5d8f 0%, #fbbf24 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --maxw: 1180px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: inside; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ Typography ============ */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.08rem; }

.section-title { text-align: center; margin-bottom: 12px; }
.section-sub {
  text-align: center; color: var(--muted); max-width: 680px;
  margin: 0 auto 44px; font-size: 1.05rem;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(109, 93, 252, .55); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-accent { background: var(--grad-warm); color: #1a1020; box-shadow: 0 12px 30px -10px rgba(255, 93, 143, .5); }
.btn-outline { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 14, 24, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(38, 48, 79, .6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow);
}
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: .95rem; transition: color .15s, background .15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active { color: #fff; background: rgba(109, 93, 252, .16); }

.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; cursor: pointer; font-family: inherit; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .18s ease; box-shadow: var(--shadow); z-index: 70;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .93rem; }
.dropdown-menu a:hover { background: rgba(109, 93, 252, .18); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: #fff;
  font-size: 1.3rem; border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
}

/* ============ Hero ============ */
.hero { position: relative; padding: 72px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(109,93,252,.25), transparent 60%),
    radial-gradient(600px 400px at 85% 30%, rgba(34,211,238,.2), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border-radius: 999px; background: rgba(109,93,252,.14); border: 1px solid rgba(109,93,252,.35);
  color: #cdc6ff; font-weight: 600; font-size: .9rem; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: #fff; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 26px; box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom: 18px; }
.order-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.order-field { flex: 1; min-width: 140px; }
.order-field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.order-field input, .order-field select {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); color: #fff; font-family: inherit; font-size: .95rem;
}
.order-field input:focus, .order-field select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 12px 0; }
.price-note b { color: var(--success); }
.trust-ticks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.tick { font-size: .8rem; color: var(--muted); background: rgba(255,255,255,.05); padding: 5px 11px; border-radius: 999px; }

/* ============ Sections ============ */
.section { padding: 66px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 56px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat-card .num { font-size: 1.9rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .lbl { color: var(--muted); font-size: .9rem; }

/* Service cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-5px); border-color: rgba(109,93,252,.6); box-shadow: var(--shadow); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; background: rgba(109,93,252,.16);
  display: grid; place-items: center; font-size: 1.6rem;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link { color: var(--primary-2); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }

/* Popular games */
.game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; transition: .2s;
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.6); }
.game-card .g-icon { font-size: 2.1rem; margin-bottom: 8px; }
.game-card h4 { font-size: .98rem; margin-bottom: 4px; }
.game-card span { font-size: .8rem; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px; width: 34px; height: 34px;
  border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.step h4 { margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.testi .stars { color: var(--warning); letter-spacing: 2px; margin-bottom: 10px; }
.testi p { color: var(--text); font-size: .95rem; margin-bottom: 16px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; }
.testi .who b { display: block; font-size: .92rem; }
.testi .who span { color: var(--muted); font-size: .8rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; color: var(--text); font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit;
}
.faq-q .chev { transition: transform .2s; color: var(--primary-2); font-size: 1.2rem; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* CTA banner */
.cta-banner {
  background: var(--grad); border-radius: 24px; padding: 44px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 24px; }
.cta-banner .btn { background: #fff; color: #4b3ae0; }

/* ============ SEO / Article prose ============ */
.prose { max-width: 860px; margin: 0 auto; color: #cdd3e6; }
.prose h2 { margin: 34px 0 14px; color: #fff; }
.prose h3 { margin: 26px 0 12px; color: #fff; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 4px; color: #cdd3e6; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; }
.callout {
  background: rgba(109,93,252,.12); border: 1px solid rgba(109,93,252,.4);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0;
}
.callout b { color: #fff; }
.table-wrap { overflow-x: auto; margin: 22px 0; }
table.pricelist { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pricelist th, .pricelist td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.pricelist th { background: var(--surface-2); color: #fff; font-weight: 700; }
.pricelist tr:hover td { background: rgba(255,255,255,.03); }
.pricelist td:last-child, .pricelist th:last-child { text-align: right; }
.price-tag { color: var(--success); font-weight: 700; }

/* ============ Breadcrumb & page header ============ */
.page-head { padding: 46px 0 8px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--primary-2); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.05rem; }

/* ============ Blog ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(109,93,252,.6); box-shadow: var(--shadow); }
.blog-thumb {
  height: 160px; background: var(--grad); display: grid; place-items: center;
  font-size: 3rem; color: #fff;
}
.blog-thumb.t2 { background: linear-gradient(135deg, #ff5d8f, #fbbf24); }
.blog-thumb.t3 { background: linear-gradient(135deg, #22d3ee, #2dd4a7); }
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { color: var(--muted); font-size: .8rem; }
.blog-body h3 { font-size: 1.15rem; }
.blog-body h3 a:hover { color: var(--primary-2); }
.blog-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.read-more { color: var(--primary-2); font-weight: 700; font-size: .9rem; }

/* ============ Contact & forms ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); color: #fff; font-family: inherit; font-size: .95rem;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.info-card h3 { margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { font-size: 1.3rem; }
.info-row b { display: block; }
.info-row span, .info-row a { color: var(--muted); font-size: .93rem; }

/* ============ Footer ============ */
.site-footer { background: #080b13; border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { margin-bottom: 16px; color: #fff; font-size: 1rem; }
.footer-col p { color: var(--muted); font-size: .92rem; margin: 14px 0; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--primary-2); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 1.1rem; }
.social a:hover { background: var(--grad); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted); font-size: .85rem; }
.footer-bottom a { color: var(--primary-2); }

/* Back to top */
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad); color: #fff; border: none; cursor: pointer; font-size: 1.2rem;
  opacity: 0; visibility: hidden; transition: .25s; z-index: 50; box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--surface-2);
    flex-direction: column; align-items: stretch; padding: 16px; gap: 6px;
    border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: .25s; z-index: 55;
  }
  .main-nav.open { transform: translateY(0); }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--bg-soft); }
  .cards-grid, .testi-grid, .steps, .game-grid, .blog-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .section { padding: 50px 0; }
}
