/* ============================================================
   SerbaTools — landing page
   Dimuat hanya oleh index.html (landing).
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

.landing-body {
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(37, 99, 235, 0.1), transparent 65%) no-repeat,
    var(--bg);
}

.landing-main {
  max-width: none;
  padding: 0;
}

.brand-link { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.site-header .brand-mark svg { width: 20px; height: 20px; }
.site-header .brand-title { font-size: 17px; }
.site-header .tagline { font-size: 12px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--primary); }
.site-cta { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 12.5px;
  font-weight: 700;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--primary); }
.hero-lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn svg { width: 16px; height: 16px; }
.hero-trust {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 15px; height: 15px; color: #16a34a; flex-shrink: 0; }

/* ---------- Hero mock window ---------- */
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -18px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 68%);
  filter: blur(4px);
  z-index: 0;
}
.mock-window {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px -22px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock-bar span:nth-child(1) { background: #fca5a5; }
.mock-bar span:nth-child(2) { background: #fcd34d; }
.mock-bar span:nth-child(3) { background: #86efac; }
.mock-bar p {
  margin-left: 10px;
  padding: 2px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 11px;
  color: var(--text-faint);
}
.mock-body { padding: 18px; }
.mock-head { display: flex; align-items: center; gap: 10px; }
.mock-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-logo svg { width: 18px; height: 18px; }
.mock-head-text b { display: block; font-size: 13.5px; line-height: 1.3; }
.mock-head-text small { display: block; font-size: 11px; color: var(--text-faint); }
.mock-pill {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
}
.mock-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mock-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
}
.mock-tile svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.mock-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 11.5px;
  font-weight: 600;
}
.mock-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Stats ---------- */
.stats {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4px 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stats div {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stats strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-600);
}
.stats span { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }

/* ---------- Sections ---------- */
.landing-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 0;
  scroll-margin-top: 88px;
}
.section-head { max-width: 700px; margin-bottom: 28px; }
.eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-head h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.section-lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Tool directory ---------- */
.tool-groups {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tool-group {
  grid-column: span 2;
  padding: 18px 16px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tool-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tool-group-head h3 { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.tool-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
}
.tool-list {
  margin-top: 10px;
  list-style: none;
  display: grid;
  gap: 1px;
}
.tool-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tool-list a::after {
  content: "→";
  font-size: 12px;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.15s, transform 0.15s;
}
.tool-list a:hover {
  background: var(--primary-soft);
  color: var(--primary-600);
}
.tool-list a:hover::after { opacity: 1; transform: none; }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { margin-top: 14px; font-size: 15px; letter-spacing: -0.01em; }
.feature-card p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.step h3 { margin-top: 14px; font-size: 15px; }
.step p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Ads ---------- */
.landing-ads {
  max-width: 1160px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.landing-ads .ad-slot { margin: 0 auto; }
.landing-ads .ad-slot-rectangle { margin-top: 0; }

/* ---------- FAQ ---------- */
.landing-faq .seo-faq { margin-top: 0; max-width: 880px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 8px;
  padding: 40px 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 24px 50px -26px rgba(37, 99, 235, 0.7);
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.cta-band p {
  margin-top: 8px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.btn-light {
  background: #fff;
  color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  white-space: nowrap;
}
.btn-light:hover { background: #eef4ff; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 12px; gap: 10px; }
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.footer-brand .brand-mark svg { width: 19px; height: 19px; }
.footer-brand .brand-title { font-size: 17px; font-weight: 700; }
.footer-brand p { font-size: 13px; line-height: 1.65; color: var(--text-muted); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h2 {
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-cols a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-cols a:hover { color: var(--primary); }
.site-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  text-align: center;
}
.site-footer-bottom p { font-size: 12px; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-visual { max-width: 540px; width: 100%; }
  .tool-groups { grid-template-columns: repeat(2, 1fr); }
  .tool-group { grid-column: auto; }
  .cta-band { padding: 34px 32px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-cta { margin-left: auto; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stats div { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 14px 18px; }
  .stats strong { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .site-header-inner { padding: 10px 16px; gap: 14px; }
  .site-header .tagline { display: none; }
  .hero { padding: 40px 16px 36px; }
  .hero-lead { font-size: 15.5px; }
  .landing-section { padding: 56px 16px 0; }
  .landing-ads { padding: 0 16px; margin-top: 44px; }
  .tool-groups { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; border-radius: 18px; }
  .site-footer-inner { padding: 32px 16px 24px; gap: 28px; }
  .footer-cols { gap: 40px; }
  .mock-body { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-list a::after { transition: none; }
}
