:root {
  --bg: #0b1020;
  --txt: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --surface: #ffffff;
  --ring: rgba(37, 99, 235, .35);
  --shadow: 0 10px 30px rgba(2, 6, 23, .15);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans';
  color: var(--muted);
  background: #f8fafc;
  line-height: 1.6;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.btn { display:inline-flex; align-items:center; gap:.6rem; border:0; border-radius: 999px; padding: 12px 22px; font-weight:600; text-decoration:none; cursor:pointer; transition:.25s ease; }
.btn-primary { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color:#fff; box-shadow: 0 8px 24px rgba(37,99,235,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow:0 12px 28px rgba(37,99,235,.35); }
.btn-ghost { background: #fff; color: var(--brand); border:1px solid rgba(15, 23, 42, .06); }
.btn-ghost:hover { box-shadow: var(--shadow); }

.badge { display:inline-block; padding:6px 10px; border-radius:999px; background: rgba(37,99,235,.08); color: var(--brand); font-weight:600; font-size:.85rem; }

header.nav {
  position: sticky; top:0; z-index: 50; backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255,255,255,.75); border-bottom: 1px solid rgba(15,23,42,.06);
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.logo { display:flex; align-items:center; gap:.75rem; font-weight:700; color: var(--txt); text-decoration:none; }
.logo img { height: 28px; border-radius: 6px; }
.nav-actions { display:flex; align-items:center; gap:.6rem; }

section { padding: 72px 0; }
.section-title { text-align:center; margin-bottom: 28px; }
.section-title h2 { color: var(--txt); margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.4vw + .5rem, 2.2rem); }
.section-title p { margin:0; max-width:720px; color: var(--muted); margin-inline:auto; }

.features { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border:1px solid rgba(15,23,42,.06); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { margin: 10px 0 6px; color: var(--txt); }
.icon { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background: rgba(37,99,235,.1); }

.steps { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background:#fff; border:1px solid rgba(15,23,42,.06); border-radius: var(--radius); padding:22px; box-shadow: var(--shadow); position:relative; }
.step::before { counter-increment: step; content: counter(step); position:absolute; top:-14px; left:-14px; width:36px; height:36px; border-radius:50%; background: linear-gradient(180deg, var(--brand), var(--brand-2)); color:#fff; display:grid; place-items:center; font-weight:700; box-shadow: var(--shadow); }

.testimonials { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background:#fff; border:1px solid rgba(15,23,42,.06); border-radius: var(--radius); padding:22px; box-shadow: var(--shadow); font-style: italic; }
.quote strong { display:block; margin-top: 10px; font-style: normal; }

details { background:#fff; border:1px solid rgba(15,23,42,.06); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
details + details { margin-top: 10px; }
summary { cursor: pointer; color: var(--txt); font-weight: 600; }

footer { background: #0b1020; color:#cbd5e1; padding: 10px 0; }
footer a { color:#93c5fd; text-decoration: none; }
.logo-footer { display:flex; align-items:center; gap:.75rem; margin-bottom: 8px; height: 24px !important;}
.links { display:flex; gap:16px; flex-wrap:wrap; }
.small { font-size:.9rem; color: var(--muted); }
.narrow { max-width:720px; }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-1 { display:grid; grid-template-columns:1fr; gap:12px; }
.form-actions { display:flex; gap:.6rem; margin-top:12px; }

/* --- CTA section polish --- */
#daftar {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  padding-top: 72px;
  padding-bottom: 72px;
}

.cta-card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  max-width: 860px;
  margin: 10px auto 0;
}

.cta-form .grid-2 { gap: 14px; }
.cta-form .row-gap { margin-top: 8px; }

/* Input & Select */
.cta-form input,
.cta-form select {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.18);
  background: #fff;
  color: var(--txt);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta-form input::placeholder { color: #94a3b8; }
.cta-form input:focus,
.cta-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  background: #fff;
}

/* Actions */
.form-actions { display: flex; gap: .8rem; margin-top: 14px; }
.form-actions .btn-primary { padding: 14px 28px; font-size: 1rem; }

/* ========================= */
/* === NAVIGATION STYLE === */
/* ========================= */
.nav-actions { display:flex; align-items:center; position:relative; }
.nav-toggle { display:none; background:transparent; border:none; font-size:1.6rem; cursor:pointer; }
.nav-menu { list-style:none; display:flex; gap:18px; margin:0; padding:0; }
.nav-menu a { text-decoration:none; color:#0f172a; font-weight:600; padding:8px 16px; border-radius:999px; transition:background .2s; }
.nav-menu a:hover { background:rgba(59,130,246,0.61); }
.nav-menu .cta-link { background:linear-gradient(90deg,#2563eb,#3b82f6); color:#fff; border:none; }

/* ====== TABLE BEAUTY PACK ====== */
.table-wrap {
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 10px;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width:100%; border-collapse:collapse; min-width:720px; color:var(--txt); font-size:.95rem; }
.table thead th { background:linear-gradient(180deg,#f8fafc,#eef2ff); color:var(--txt); text-align:left; padding:12px 14px; border-bottom:1px solid rgba(15,23,42,.08); white-space:nowrap; }
.table tbody td { padding:12px 14px; border-bottom:1px solid rgba(15,23,42,.06); vertical-align:top; }
.table tbody tr:hover { background:rgba(37,99,235,.05); }
.table tbody tr:nth-child(even){background:#f9fbff;}
.t-right{text-align:right;} .t-center{text-align:center;} .t-left{text-align:left;}

/* ========================= */
/* === FIX OVERFLOW SECTION === */
/* ========================= */
html,body{overflow-x:hidden;}
section img,section svg{max-width:100%;height:auto;display:block;}
h1,h2,h3,p,li,.feature,.step{overflow-wrap:anywhere;word-break:break-word;}
@media(max-width:980px){.features,.steps,.pricing,.testimonials{grid-template-columns:1fr 1fr;}}
@media(max-width:620px){.features,.steps,.pricing,.testimonials{grid-template-columns:1fr;}}

/* ===== MOBILE NAV FINAL ===== */
@media (max-width: 820px){
  header.nav{position:sticky;top:0;background:#fff;z-index:1500;}
  .nav-toggle{
    display:inline-flex !important;
    font-size:24px;line-height:1;
    background:none;border:0;cursor:pointer;padding:8px;
  }
  .nav,.nav-inner,.nav-actions{overflow:visible !important;}
  .nav-actions{position:static !important;}
  .nav-menu{
    position:fixed !important;
    top:64px;left:12px;right:12px;
    display:none !important;
    flex-direction:column;gap:6px;
    background:#fff;
    border:1px solid rgba(15,23,42,.12);
    border-radius:14px;
    padding:8px;margin:0;list-style:none;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    z-index:2000;width:auto;max-width:calc(100vw - 24px);
  }
  .nav-menu.open{display:flex !important;}
  .nav-menu a{display:block;padding:10px 14px;border-radius:10px;color:#0f172a;font-weight:600;}
  .nav-menu a:hover{background:rgba(37,99,235,.08);}
  .nav-menu .cta-link{background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff;}
}
@media (min-width:821px){
  .nav-toggle{display:none !important;}
  .nav-menu{position:static !important;display:flex !important;gap:18px;}
}

/* Untuk layout borang responsif di skrin kecil REGISTER*/
@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important; /* tukar jadi 1 lajur */
  }
}

/* ===== Pricing Matrix (Desktop) ===== */
.pricing-matrix {
  margin: 22px 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  overflow: hidden;
  border: 1px solid #e9ecef;
}
.matrix-head {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  background: #f7f8fa;
  border-bottom: 1px solid #e9ecef;
}
.matrix-head div {
  padding: 14px 16px;
  font-weight: 600;
  text-align: center;
  color: #2b2f36;
}
.matrix-head div:first-child { text-align: left; }

.matrix-row {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  border-bottom: 1px solid #eef1f4;
  background: #fff;
}
.matrix-row:last-child { border-bottom: 0; }

.row-label {
  padding: 18px 16px;
  font-weight: 600;
  color: #394150;
  display: flex;
  align-items: center;
}

.option-cell { position: relative; }
.option-cell input[type="radio"]{
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.option-cell label {
  display: block;
  padding: 16px 12px 18px;
  text-align: center;
  cursor: pointer;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  border-left: 1px solid #f0f2f5;
}
.matrix-row .option-cell:first-of-type label { border-left: 1px solid #f0f2f5; }

.price {
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #111827;
}
.circle {
  width: 28px; height: 28px;
  margin: 0 auto 8px;
  border-radius: 999px;
  border: 2px solid #cfd6e4;
  background: #fff;
  position: relative;
}

/* Hover / Checked (desktop) */
.option-cell label:hover {
  background: #f9fbff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
}
.option-cell input:checked + label {
  background: #ecf3ff;
  box-shadow: 0 8px 22px rgba(31,101,255,.18);
  border-color: #cfe0ff;
}
.option-cell input:checked + label .circle { border-color: #1f65ff; }
.option-cell input:checked + label .circle::after{
  content:""; position:absolute; inset:6px; border-radius:999px; background:#1f65ff;
}

/* Desktop padding tweak */
@media (max-width: 720px){
  .matrix-head, .matrix-row {
    grid-template-columns: 120px repeat(3, 1fr);
  }
  .row-label { padding: 14px 10px; }
  .matrix-head div, .option-cell label { padding: 12px 8px; }
}

/* ===== Pricing Matrix — Mobile (≤ 820px) ===== */
@media (max-width: 820px){
  /* sorok header kolum di mobile */
  .pricing-matrix .matrix-head{ display:none !important; }

  /* bersihkan bingkai utama; guna kad per-row */
  .pricing-matrix{
    border:0; box-shadow:none; background:transparent; margin:12px 0;
  }
  .pricing-matrix legend{
    display:block; text-align:center;
    padding:0 0 8px; margin:0 auto 6px;
    font-weight:800; color:#0f172a;
  }

  /* setiap kumpulan user → kad */
  .pricing-matrix .matrix-row{
    grid-template-columns: 1fr;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(2,6,23,.06);
    overflow:hidden;
    margin:12px 0;
  }

  /* tajuk kecil (1/3/5 User) */
  .pricing-matrix .row-label{
    padding:12px 14px;
    background:#f8fafc;
    border-bottom:1px solid #eef2f7;
    font-weight:700; color:#111827;
  }

  /* baris pilihan (plan kiri, harga kanan) */
  .pricing-matrix .option-cell label{
    display:grid;
    grid-template-columns: 1fr auto;
    align-items:center;
    gap:10px;
    text-align:left;
    padding:12px 14px;
    border:0;
    border-top:1px dashed #eef2f7;
    min-height:52px;
    transition: background .15s ease, box-shadow .15s ease;
  }
  .pricing-matrix .option-cell:first-of-type label{ border-top:0; }

  /* label plan dari data-plan */
  .pricing-matrix .option-cell label::before{
    content: attr(data-plan);
    font-weight:600; color:#334155;
  }

  .pricing-matrix .price{
    margin:0; font-size:16px; font-weight:800; color:#0f172a; justify-self:end;
  }

  /* tak perlu bulatan di mobile */
  .pricing-matrix .circle{ display:none; }

  .pricing-matrix .option-cell label:hover{ background:#f9fbff; }
  .pricing-matrix .option-cell input:checked + label{
    background:#eef4ff; box-shadow: inset 3px 0 0 #2563eb;
  }
}

/* Desktop touch-up */
@media (min-width: 821px){
  .pricing-matrix .option-cell label{ min-height: 74px; }
  .pricing-matrix .price{ font-weight: 800; }
}


/* Footer */
.footer-flex {
  display: flex;
  justify-content: space-between; /* kiri & kanan */
  align-items: center;
  background-color: #0b0f1c; /* warna sama macam footer anda */
  color: #fff;
  padding: 10px 20px;
  font-size: 15px;
}

.footer-flex small {
  margin: 0;
}

.footer-flex .emailadmin {
  text-align: right;
}

@media (max-width: 600px) {
  .footer-flex {
    flex-direction: column; /* ubah jadi atas bawah */
    text-align: center;     /* centerkan teks */
    gap: 4px;               /* jarak antara dua baris */
  }
}
