/* =========================================================
   BHAKTINET — Landing + Form (mobile-first)
   - Sudah termasuk Dark/Light mode + transisi halus
   - Fix strip gelap di bawah pada mode terang
   ========================================================= */

/* --------- TOKENS --------- */
:root{
  /* default = dark tokens */
  --bg:#0b1220;
  --panel:#0f172a;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --accent:#22c55e;
  --blue:#3b82f6;
  --ring:rgba(59,130,246,.5);
}

/* Light tokens override */
html[data-theme="light"]{
  --bg:#f8fafc;
  --panel:#ffffff;
  --muted:#475569;
  --text:#0f172a;
  --accent:#16a34a;
  --blue:#2563eb;
  --ring:rgba(37,99,235,.35);
}

/* --------- BASE --------- */
*{box-sizing:border-box}
html{margin:0;height:100%;background:transparent} /* penting: jangan ada bg di <html> */
body{
  margin:0;min-height:100%;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;
  color:var(--text);
  /* default (dark) background */
  background: radial-gradient(1200px 800px at 10% -10%, #1e293b 0, #0f172a 40%, #0b1220 100%) fixed;
}
/* light background override (fix strip gelap) */
html[data-theme="light"] body{
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) fixed;
}

/* Transisi halus antar tema */
html, body, nav, footer, .card, .price-card, .feat, .form-card, 
input[type="text"],input[type="tel"],textarea,select, .seg, .btn{
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 16px}
@media(min-width:640px){.container{padding:0 20px}}

/* --------- NAV --------- */
.nav{
  position:sticky;top:0;z-index:40;
  background:rgba(2,6,23,.7);backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.logo{width:36px;height:36px;border-radius:10px;background:conic-gradient(from 180deg,#22c55e,#3b82f6,#a855f7,#22c55e);box-shadow:inset 0 0 10px rgba(255,255,255,.3)}
.nav-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn{appearance:none;border:1px solid rgba(148,163,184,.3);background:transparent;color:var(--text);padding:12px 14px;border-radius:12px;font-weight:600;cursor:pointer}
.btn:hover{border-color:rgba(148,163,184,.6)}
.btn.primary{border:0;background:linear-gradient(180deg,var(--accent),#16a34a);color:#04110a;box-shadow:0 8px 24px rgba(34,197,94,.35)}
.btn.wifiku{background:linear-gradient(180deg,#3b82f6,#2563eb);color:#fff}
.btn.lapor {background: linear-gradient(180deg, #ef4444, #dc2626) !important; color: #fff !important;
}

@media(max-width:480px){
  .nav-actions{width:100%}
  .nav-actions .btn{flex:1 1 100%}
}

/* Light nav override */
html[data-theme="light"] .nav{
  background: rgba(255,255,255,.9);
  border-bottom-color: rgba(0,0,0,.05);
  backdrop-filter: blur(8px);
}

/* --------- HERO --------- */
.hero{padding:56px 0 32px}
.hero-grid{display:grid;gap:22px;grid-template-columns:1fr}
@media(min-width:900px){.hero-grid{grid-template-columns:1.2fr .8fr;align-items:center}}
.title{font-size:clamp(20px,6vw,32px);line-height:1.15;margin:0 0 12px}
.lead{color:var(--muted);font-size:clamp(15px,2.6vw,18px);margin-bottom:18px}
.cta{display:flex;gap:10px;flex-wrap:wrap}
.card{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px}
.mock{height:220px;border-radius:16px;border:1px dashed rgba(148,163,184,.25);display:grid;place-items:center;color:var(--muted)}
@media(min-width:900px){.mock{height:260px}}
@media(max-width:480px){.cta .btn{flex:1 1 100%; text-align:center; padding:14px 16px}}

/* --------- FEATURES --------- */
.section{padding:32px 0}
.grid{display:grid;gap:14px}
@media(min-width:700px){.grid.cols-3{grid-template-columns:repeat(3,1fr)}}
.feat{padding:16px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(2,6,23,.5)}
.feat h3{margin:6px 0 6px;font-size:1.05rem}
.muted{color:var(--muted)}

/* --------- PRICING --------- */
.pricing{display:grid;gap:14px}
@media(min-width:900px){.pricing{grid-template-columns:repeat(3,1fr)}}
.price-card{padding:18px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:rgba(2,6,23,.5)}
.price-card h4{margin:0 0 6px}
.price{font-size:24px;font-weight:800;margin:6px 0 12px}
@media(min-width:640px){.price{font-size:28px}}
.list{margin:0 0 14px;padding-left:18px}
.list li{margin:6px 0}

/* --------- FOOTER --------- */
footer{
  padding:22px 0;color:var(--muted);
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:28px;text-align:center;
}
/* dark footer look */
html[data-theme="dark"] footer{
  background:#0b1220;
}
/* light footer look (matching body) */
html[data-theme="light"] footer{
  background:#f1f5f9;
  color:#475569;
  border-top-color:rgba(15,23,42,.08);
}

/* --------- FORM --------- */
.wrapper{min-height:100dvh;display:grid;place-items:center;padding:16px}
@media(min-width:640px){.wrapper{padding:24px}}
.form-card{
  width:100%;max-width:680px;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;box-shadow:0 15px 50px rgba(0,0,0,.45);overflow:hidden
}
.form-card header{padding:18px 18px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:12px}
.form-card h1{font-size:1.06rem;margin:0;letter-spacing:.2px}
@media(min-width:640px){.form-card h1{font-size:1.15rem}}
.form-card .sub{font-size:.85rem;color:var(--muted);margin-top:2px}
form{padding:16px 18px 20px;display:grid;gap:12px}
.row{display:grid;gap:12px}
@media(min-width:640px){.row.two{grid-template-columns:1fr 1fr;gap:14px}}
label{font-size:.92rem;color:var(--text);display:block;margin-bottom:6px}
input[type="text"],input[type="tel"],textarea,select{
  width:100%;padding:12px 14px;border-radius:12px;
  border:1px solid rgba(148,163,184,.25);
  background:rgba(2,6,23,.6);color:var(--text);
  outline:none;transition:box-shadow .2s,border-color .2s,transform .05s;font-size:16px
}
input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--ring)}
textarea{resize:vertical;min-height:88px}
.tiny{font-size:.78rem;color:var(--muted)}
.seg{display:grid;grid-template-columns:1fr 1fr;background:rgba(2,6,23,.6);border-radius:12px;border:1px solid rgba(148,163,184,.25);overflow:hidden;max-width:100%}
.seg input{display:none}
.seg label{margin:0;padding:12px 12px;text-align:center;cursor:pointer;border-right:1px solid rgba(148,163,184,.18)}
.seg label:last-child{border-right:0}
.seg input:checked+label{background:linear-gradient(180deg,rgba(59,130,246,.25),rgba(59,130,246,.05));color:#fff}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
button{appearance:none;border:0;border-radius:12px;padding:12px 16px;font-weight:700;cursor:pointer;transition:transform .05s,box-shadow .2s,background .2s}
button.primary{background:linear-gradient(180deg,#22c55e,#16a34a);color:#04110a;box-shadow:0 10px 30px rgba(34,197,94,.35)}
button.primary:active{transform:translateY(1px)}
button.ghost{background:transparent;border:1px solid rgba(148,163,184,.35);color:var(--text)}
.error{color:#ef4444;font-size:.9rem}
.form-footer{padding:12px 18px 18px;color:var(--muted);font-size:.82rem;text-align:center}

/* input/seg di LIGHT */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] textarea,
html[data-theme="light"] select{
  background:#ffffff;border-color:rgba(15,23,42,.15);color:#0f172a;
}
html[data-theme="light"] .seg{
  background:#ffffff;border-color:rgba(15,23,42,.15);
}
html[data-theme="light"] .seg input:checked + label{
  background: linear-gradient(180deg, rgba(37,99,235,.15), rgba(37,99,235,.05));
  color:#0f172a;
}

/* panel/card di LIGHT */
html[data-theme="light"] .feat,
html[data-theme="light"] .price-card,
html[data-theme="light"] .card,
html[data-theme="light"] .form-card{
  background:#ffffff;border-color:rgba(15,23,42,.08);
  box-shadow:0 4px 10px rgba(0,0,0,.04);
}

/* --------- UTIL --------- */
.logo-img{
  height:38px;width:auto;border-radius:8px;margin-right:8px;vertical-align:middle;
}
