/* ==========================================================================
 * JJDigital.my.id — SHARED DESIGN SYSTEM  (v3 — DARK PREMIUM, neon glow)
 * Dark default + aksen neon gradasi biru->violet->cyan, glassmorphism, glow,
 * tipografi display, aurora animasi + grid. Semua nama class dipertahankan.
 * ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --text:        #ECECF7;
  --text-2:      rgba(236,236,247,.80);
  --canvas:      #07070F;
  --surface:     #0F0F1C;
  --surface-2:   #1A1A2E;
  --border:      rgba(255,255,255,.10);
  --blue:        #3B9EFF;
  --blue-soft:   rgba(59,158,255,.14);
  --violet:      #8B5CFF;
  --violet-soft: rgba(139,92,255,.16);
  --cyan:        #22E0E6;
  --green:       #2ED584;
  --green-soft:  rgba(46,213,132,.16);
  --orange:      #FFAE57;
  --orange-soft: rgba(255,174,87,.16);
  --red:         #FF6B6B;
  --red-soft:    rgba(255,107,107,.16);
  --grad:        linear-gradient(120deg, #3B9EFF 0%, #8B5CFF 50%, #22E0E6 100%);
  --grad-soft:   linear-gradient(120deg, rgba(59,158,255,.16), rgba(139,92,255,.16) 55%, rgba(34,224,230,.16));
  --glow:        0 0 0 1px rgba(139,92,255,.35), 0 14px 44px rgba(139,92,255,.38);
  --neon:        0 0 20px rgba(59,158,255,.55);
  --card-bg:     rgba(255,255,255,.045);
  --glass:       rgba(10,10,20,.72);
  --radius:      16px;
  --radius-sm:   11px;
  --shadow:      0 1px 2px rgba(0,0,0,.5), 0 12px 34px rgba(0,0,0,.45);
  --maxw:        1120px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display:'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  position: relative; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(139,92,255,.35); color: #fff; }

body::before {
  content: ''; position: fixed; inset: -30% -10% auto -10%; height: 95vh; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 52% at 16% 14%, rgba(59,158,255,.42), transparent 68%),
    radial-gradient(40% 48% at 84% 10%, rgba(139,92,255,.40), transparent 68%),
    radial-gradient(46% 46% at 60% 42%, rgba(34,224,230,.26), transparent 70%);
  filter: blur(20px); animation: auroraFloat 18s ease-in-out infinite alternate;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% -5%, #000, transparent 60%);
          mask-image: radial-gradient(circle at 50% -5%, #000, transparent 60%);
}
@keyframes auroraFloat { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(28px) scale(1.1); } }

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
section { padding: 74px 24px; position: relative; }
.container { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #C9BCFF; background: var(--violet-soft);
  border: 1px solid rgba(139,92,255,.35); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: inset 0 0 12px rgba(139,92,255,.15);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(59,158,255,.95); }
.section-title {
  font-size: 36px; margin-bottom: 14px; letter-spacing: -.03em; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(139,92,255,.35));
}
.section-sub { font-size: 17px; color: var(--text-2); max-width: 640px; margin: 0 auto 44px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 12px 24px; border-radius: 999px; font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; text-align: center; position: relative;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #080F1F; font-weight: 700; box-shadow: 0 6px 22px rgba(59,158,255,.42); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); filter: brightness(1.08) saturate(1.08); }
.btn-wa { background: #25D366; color: #06210F; font-weight: 700; box-shadow: 0 6px 22px rgba(37,211,102,.42); }
.btn-wa:hover { background: #2be070; transform: translateY(-2px); box-shadow: 0 0 26px rgba(37,211,102,.6); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--border); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--violet); color: #fff; box-shadow: 0 0 20px rgba(139,92,255,.4); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 9px 16px; font-size: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -.02em; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 0 18px rgba(139,92,255,.55); overflow: hidden; }
.brand img.logo { background: none; object-fit: cover; padding: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--cyan); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

.grid { display: grid; gap: 24px; }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(139,92,255,.55); box-shadow: 0 0 0 1px rgba(139,92,255,.35), 0 18px 46px rgba(0,0,0,.55), 0 0 34px rgba(139,92,255,.28); }
.surface { background: var(--surface); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
input, textarea, select {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text); padding: 12px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: rgba(236,236,247,.4); }
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,255,.22), 0 0 18px rgba(139,92,255,.25); }
textarea { resize: vertical; min-height: 110px; }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(20px);
  background: #16162A; color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; max-width: 90vw;
  border: 1px solid var(--border); box-shadow: 0 12px 34px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #2A1414; border-color: rgba(255,107,107,.4); color: #FFD9D6; }
.toast.success { background: #0F241A; border-color: rgba(46,213,132,.4); color: #C9F7E1; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 18px; color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.social-row a:hover { border-color: var(--violet); box-shadow: 0 0 18px rgba(139,92,255,.45); transform: translateY(-3px); }

.hidden { display: none !important; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.dark { border: 2px solid rgba(255,255,255,.18); border-top-color: var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { display:inline-block; padding:4px 11px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.02em; }
.badge.blue { background:var(--blue-soft); color:#8FC6FF; border:1px solid rgba(59,158,255,.35); }
.badge.green { background:var(--green-soft); color:#8FEFC2; border:1px solid rgba(46,213,132,.35); }
.badge.orange { background:var(--orange-soft); color:#FFD3A0; border:1px solid rgba(255,174,87,.35); }
.badge.red { background:var(--red-soft); color:#FFB3B0; border:1px solid rgba(255,107,107,.35); }

.hero { position: relative; }
.hero .eyebrow { animation: floatY 4s ease-in-out infinite; }
.hero h1 { animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both; text-shadow: 0 2px 40px rgba(59,158,255,.25); }
.hero p.sub { animation: riseIn .7s .08s cubic-bezier(.2,.7,.2,1) both; }
.hero .cta-row { animation: riseIn .7s .16s cubic-bezier(.2,.7,.2,1) both; }
.hero .trust b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.price-card.popular { border-color: rgba(139,92,255,.55); box-shadow: var(--glow); transform: translateY(-4px); }
.price-card.popular:hover { transform: translateY(-8px); }
.price-card .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.price-card .price small { -webkit-text-fill-color: var(--text-2); color: var(--text-2); }
.contact-card .ico { background: var(--grad) !important; color: #08111f !important; box-shadow: 0 0 22px rgba(139,92,255,.45); }
.testi-card .who .av { background: var(--grad) !important; color: #08111f !important; }
.testi-card .stars { filter: drop-shadow(0 0 8px rgba(255,193,7,.5)); }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 65px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 8px 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-links .btn { margin: 8px 24px; }
  .nav-toggle { display: block; }
  .section-title { font-size: 28px; }
  section { padding: 52px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; animation: none !important; transition: none !important; } }
