/* ============================================================
   style.css — AdaTugas Landing Page
   v2 Upgrade: Lebih opinionated, lebih manusiawi, kurang AI slop
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* --- Design Tokens --- */
:root {
  --ink:       #0d1117;
  --ink-2:     #1c2333;
  --ink-3:     #2d3748;
  --fg:        #111827;
  --muted:     #6b7280;
  --muted-2:   #9ca3af;
  --line:      #e5e7eb;
  --soft:      #f9fafb;
  --bg:        #ffffff;

  /* Accent: Biru decisive, bukan indigo/purple generic */
  --blue:      #1d4ed8;
  --blue-dark: #1e40af;
  --blue-light:#dbeafe;
  --blue-mid:  #3b82f6;

  /* Warm accent */
  --amber:     #f59e0b;
  --amber-soft:#fffbeb;

  --green:     #059669;
  --green-soft:#d1fae5;
  --red:       #dc2626;
  --red-soft:  #fee2e2;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 50px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
}

html[data-theme=dark] {
  --fg:        #e6edf3;
  --muted:     #8b949e;
  --muted-2:   #6e7681;
  --line:      #21262d;
  --soft:      #161b22;
  --bg:        #0d1117;
  --ink-2:     #161b22;
  --ink-3:     #21262d;

  --blue:      #58a6ff;
  --blue-dark: #388bfd;
  --blue-light:#1c2b3a;
  --blue-mid:  #388bfd;

  --amber:     #f0c674;
  --amber-soft:#271d05;
  --green:     #3fb950;
  --green-soft:#122312;
  --red:       #f85149;
  --red-soft:  #2d1616;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,.3);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.4);
}

html[data-theme=light] { color-scheme: light; }
html[data-theme=dark]  { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

/* Minimal background — bukan aurora blur berlebihan */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 15% -5%, rgba(29,78,216,.05), transparent),
    radial-gradient(ellipse 50% 30% at 85% 105%, rgba(245,158,11,.04), transparent);
  pointer-events: none;
  z-index: 0;
}
html[data-theme=dark] body::before {
  background:
    radial-gradient(ellipse 70% 40% at 15% -5%, rgba(88,166,255,.07), transparent),
    radial-gradient(ellipse 50% 30% at 85% 105%, rgba(240,198,116,.04), transparent);
}

.page {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a { color: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ============================================================
   NAV
   ============================================================ */
nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 48px));
  z-index: 1000;
  transition: top .4s cubic-bezier(.16,1,.3,1), width .4s cubic-bezier(.16,1,.3,1),
              background .3s, border-radius .4s, box-shadow .3s, border-color .3s;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
}

nav.scrolled {
  top: 12px;
  width: min(720px, calc(100% - 32px));
  height: 54px;
  padding: 0 8px 0 20px;
  background: var(--bg);
  border-color: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
html[data-theme=dark] nav.scrolled {
  background: var(--ink-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--fg);
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.05); }

.nav-right { display: flex; align-items: center; gap: 8px; }

.theme {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  transition: background .2s, color .2s;
}
.theme:hover { color: var(--fg); background: var(--line); }
html[data-theme=dark] .theme { background: var(--ink-3); }

.pill-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  cursor: pointer;
  color: var(--fg);
}
.pill-link:hover { background: var(--soft); border-color: var(--muted-2); }
.pill-link.primary {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
}
.pill-link.primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(29,78,216,.3);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 148px 0 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}

.hero-left { max-width: 580px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.4); }
}

h1 {
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--fg);
}
h1 em {
  font-style: normal;
  color: var(--blue);
}

.lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: 600 14.5px 'Plus Jakarta Sans', system-ui;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.btn:hover {
  background: var(--soft);
  border-color: var(--muted-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
}
.btn.primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(29,78,216,.35);
  transform: translateY(-2px);
}

/* Notif mockup */
.notif-stack { position: relative; height: 180px; }
.notif-card {
  position: absolute;
  left: 0;
  width: 300px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-lg);
  opacity: 0;
}
html[data-theme=dark] .notif-card { background: var(--ink-2); }

.notif-card .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.notif-card.email .ic { background: var(--blue-light); color: var(--blue); }
.notif-card.telegram .ic { background: #e0f3ff; color: #0088cc; }
html[data-theme=dark] .notif-card.telegram .ic { background: #0a2233; color: #5ab6ff; }
.notif-card .body { text-align: left; }
.notif-card .t1 { font-weight: 700; font-size: 13px; }
.notif-card .t2 { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.notif-card.email { top: 0; transform: rotate(-2deg); z-index: 1; animation: cardIn1 .7s cubic-bezier(.16,1,.3,1) .2s forwards; }
.notif-card.telegram { top: 60px; left: 20px; transform: rotate(1.5deg); z-index: 2; animation: cardIn2 .7s cubic-bezier(.16,1,.3,1) .45s forwards; }

@keyframes cardIn1 { from{opacity:0;transform:translateY(-10px) rotate(-2deg)} to{opacity:1;transform:translateY(0) rotate(-2deg)} }
@keyframes cardIn2 { from{opacity:0;transform:translateY(10px) rotate(1.5deg)} to{opacity:1;transform:translateY(0) rotate(1.5deg)} }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}
.section-header p { color: var(--muted); font-size: 15px; max-width: 480px; margin: 0 auto; }

/* Feature grid — solid borders, bukan glassmorphism */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.feature {
  padding: 32px 28px;
  background: var(--bg);
  transition: background .2s;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(2) { border-right: none; }
.feature:nth-child(4) { border-right: none; }
.feature:nth-child(3), .feature:nth-child(4) { border-bottom: none; }
.feature:hover { background: var(--soft); }
html[data-theme=dark] .feature { background: var(--ink-2); }
html[data-theme=dark] .feature:hover { background: var(--ink-3); }

.feature .fic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 17px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 0; }

/* Steps — numbered, garis connector */
.steps-section { padding: 72px 0; }
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.step { padding: 0 16px; text-align: center; position: relative; z-index: 1; }
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  margin: 0 auto 18px;
}
html[data-theme=dark] .step .num { background: var(--bg); }
.step h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 0; }

/* CTA Band — solid biru, bukan glassmorphism */
.cta-band {
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  margin: 0 0 80px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  position: relative; z-index: 1;
}
.cta-band p { margin: 0 0 28px; color: rgba(255,255,255,.8); font-size: 15px; position: relative; z-index: 1; }
.cta-band .btn { background: #fff; color: var(--blue); border-color: transparent; position: relative; z-index: 1; }
.cta-band .btn:hover { background: rgba(255,255,255,.92); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 52px; text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--fg); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--blue); }

.social { display: flex; gap: 12px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.social a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .2s;
}
.social a:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }

/* Animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.show { opacity: 1; transform: none; }
.enter { opacity: 0; transform: translateY(10px); animation: enterIn .6s cubic-bezier(.16,1,.3,1) forwards; }
.d1{animation-delay:.1s}.d2{animation-delay:.2s}.d3{animation-delay:.3s}
@keyframes enterIn { to{opacity:1;transform:none} }

/* ============================================================
   KONTEN STATIS: /privacy-policy/, /tos/, /tutorial/
   ============================================================ */
.content-page { max-width: 760px; margin: 0 auto; padding: 120px 24px 90px; position: relative; z-index: 1; }
.content-hero { text-align: center; margin-bottom: 36px; }
.content-hero h1 { font-size: clamp(24px, 3.8vw, 36px); letter-spacing: -.03em; font-weight: 800; margin: 0 0 10px; }
.content-hero .updated { color: var(--muted); font-size: 13px; }

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 40px 8px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
html[data-theme=dark] .legal-card { background: var(--ink-2); }
.legal-card section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-card section:last-child { border-bottom: none; margin-bottom: 0; }
.legal-card h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.legal-card h2 .n { width: 24px; height: 24px; border-radius: 6px; background: var(--blue-light); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.legal-card p { color: var(--muted); font-size: 14.5px; line-height: 1.75; margin: 0 0 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 8px 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.legal-card li { margin-bottom: 6px; }
.legal-card strong { color: var(--fg); }
.legal-card a { color: var(--blue); font-weight: 600; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; margin-bottom: 20px; transition: color .2s, transform .2s; }
.back-link:hover { color: var(--blue); transform: translateX(-2px); }

.tut-hero { text-align: center; padding: 120px 0 20px; }
.tut-nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 24px 0 52px; }
.tut-nav a { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--muted); transition: all .2s; }
.tut-nav a:hover { color: var(--blue); border-color: var(--blue); }

.tut-section { padding: 16px 0 52px; }
.tut-section h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 800; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.tut-section h2 i { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-light); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.tut-section .sd { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; max-width: 600px; }
.tut-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.tut-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--bg); }
html[data-theme=dark] .tut-item { background: var(--ink-2); }
.tut-item h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 7px; }
.tut-item h3 i { color: var(--blue); font-size: 12px; width: 14px; }
.tut-item p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

.cmd-list { display: flex; flex-direction: column; gap: 10px; }
.cmd-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; background: var(--bg); display: flex; gap: 14px; align-items: flex-start; }
html[data-theme=dark] .cmd-item { background: var(--ink-2); }
.cmd-item code { background: var(--blue-light); color: var(--blue); font: 700 12px/1 'JetBrains Mono', monospace; padding: 5px 9px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; margin-top: 1px; }
.cmd-item .cd { flex: 1; min-width: 0; }
.cmd-item .cd .t1 { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.cmd-item .cd .t2 { color: var(--muted); font-size: 12px; line-height: 1.6; }
.cmd-item .cd .ex { display: inline-block; margin-top: 6px; background: var(--soft); color: var(--fg); font: 600 11px/1.5 'JetBrains Mono', monospace; padding: 5px 9px; border-radius: 6px; word-break: break-word; }

.step-flow { display: flex; flex-direction: column; }
.step-flow .sf-item { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.step-flow .sf-item:last-child { padding-bottom: 0; }
.step-flow .sf-item:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 0; width: 1px; background: var(--line); }
.step-flow .sf-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; position: relative; z-index: 1; }
.step-flow .sf-body { padding-top: 5px; }
.step-flow .sf-body h3 { font-size: 14.5px; font-weight: 700; margin: 0 0 4px; }
.step-flow .sf-body p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

@media (prefers-reduced-motion: reduce) { *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important} }

@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } .notif-stack { display: none; } }
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-right: none; }
  .feature:nth-child(3) { border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: none; }
  .steps-row { grid-template-columns: repeat(2,1fr); }
  .steps-row::before { display: none; }
  .step { padding: 0 8px 24px; }
  .cta-band { padding: 44px 28px; }
}
@media (max-width: 520px) {
  .steps-row { grid-template-columns: 1fr; }
  nav { height: 68px; }
  .pill-link { padding: 7px 12px; font-size: 12px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .legal-card { padding: 26px 20px 6px; }
  .tut-grid { grid-template-columns: 1fr; }
  .cmd-item { flex-direction: column; gap: 8px; }
}
