/* RTnet.id — landing page
   Palet mengikuti logo & aplikasi: hijau zaitun #6B8E32, aksen limau #A8C845. */

:root {
  --brand-50: #f3f7ea;
  --brand-100: #e4edcf;
  --brand-200: #cadda3;
  --brand-300: #a8c46b;
  --brand-500: #6b8e32;
  --brand-600: #587629;
  --brand-700: #465e21;
  --brand-800: #354719;
  --brand-900: #243112;
  --lime: #a8c845;
  --lime-soft: #eef5d6;

  --ink: #16200f;
  --ink-2: #3d4636;
  --muted: #6f7868;
  --line: #e5e9df;
  --bg: #ffffff;
  --bg-tint: #f6f8f1;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 20px 50px -24px rgba(36, 49, 18, 0.35);
  --shadow-soft: 0 8px 30px -16px rgba(36, 49, 18, 0.25);
  --hero-gradient: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-500) 60%, #93b347 100%);

  --container: 1180px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ───────── Tombol ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 10px 24px -12px rgba(107, 142, 50, 0.8); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand-300); color: var(--brand-700); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand-700); background: var(--brand-50); }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--lime-soft); color: var(--brand-900); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav > a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.main-nav > a:hover { background: var(--brand-50); color: var(--brand-700); }
.header-actions { display: flex; gap: 8px; }
.nav-actions-mobile { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(168, 200, 69, 0.22), rgba(168, 200, 69, 0) 62%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.035em; margin: 18px 0 20px; }
.hero h1 .accent {
  background: var(--hero-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: #fff; background: var(--brand-500); border-radius: 50%; padding: 3px; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; max-width: 620px; margin-left: auto; mix-blend-mode: multiply; } /* latar putih gambar menyatu */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.float-card strong { font-size: 15px; }
.float-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); font-size: 18px; }
.float-card--kas { left: 2%; bottom: 18%; }
.float-card--surat { right: 2%; top: 6%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ───────── Manfaat ───────── */
.benefits { padding: 8px 0 24px; }
.benefit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--hero-gradient); border-radius: var(--radius-lg); color: #fff;
  box-shadow: var(--shadow);
}
.benefit { padding: 26px 24px; position: relative; }
.benefit + .benefit::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: rgba(255,255,255,.2); }
.benefit strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.benefit span { display: block; margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.85); }

/* ───────── Bagian umum ───────── */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section-head--left { text-align: left; margin: 0 0 32px; }

/* Fitur */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--brand-200); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, white);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin: 20px 0 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* Showcase */
.showcase { background: linear-gradient(180deg, var(--bg-tint), #fff); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.showcase-copy h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; margin: 12px 0 24px; }
.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 7.8-7.8L18.8 7.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.check-list strong { color: var(--ink); }
.phones { position: relative; height: 620px; }
.phone { position: absolute; width: 270px; filter: drop-shadow(0 30px 40px rgba(36, 49, 18, 0.28)); }
.phone--front { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.phone--back { left: 4%; top: 70px; transform: rotate(-7deg); z-index: 2; width: 240px; opacity: .97; }
.phone--side { right: 4%; top: 70px; transform: rotate(7deg); z-index: 1; width: 240px; opacity: .97; }

/* Peran */
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.roles-visual img { border-radius: var(--radius-xl); mix-blend-mode: multiply; }
.role-list { display: grid; gap: 14px; }
.role {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.role p { color: var(--ink-2); font-size: 15.5px; }
.role-badge {
  justify-self: start; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.role-badge--warga { background: var(--lime-soft); }

/* Langkah */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--hero-gradient); color: #fff; font-weight: 800; font-size: 20px;
}
.step h3 { font-size: 20px; margin: 18px 0 8px; }
.step p { color: var(--muted); }
.step:not(:last-child)::after {
  content: ''; position: absolute; right: -14px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid var(--brand-300); border-right: 2px solid var(--brand-300); transform: translateY(-50%) rotate(45deg);
}

/* Harga */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px;
}
.plan--featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow); transform: translateY(-6px); }
.plan-badge {
  position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px;
  background: var(--lime); color: var(--brand-900); font-size: 12px; font-weight: 800; letter-spacing: .03em;
}
.plan h3 { font-size: 20px; }
.plan-desc { color: var(--muted); font-size: 14.5px; margin-top: 4px; min-height: 22px; }
.plan-price { margin: 22px 0 4px; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.plan-period { color: var(--muted); font-size: 14px; }
.plan-monthly { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-500); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan--skeleton { min-height: 380px; background: linear-gradient(90deg, var(--bg-tint) 25%, #fff 50%, var(--bg-tint) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pricing-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 28px; }
.pricing-fallback { grid-column: 1 / -1; text-align: center; padding: 36px; border: 1px dashed var(--brand-200); border-radius: var(--radius-lg); background: var(--bg-tint); }
.pricing-fallback p { color: var(--ink-2); margin-bottom: 18px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq-list details[open] { border-color: var(--brand-200); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-weight: 700; font-size: 16.5px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); font-weight: 800; transition: transform .2s;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding-bottom: 18px; color: var(--ink-2); }

/* CTA */
.cta { padding: 40px 0 96px; }
.cta-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px;
  background: var(--hero-gradient); border-radius: var(--radius-xl); padding: 56px; overflow: hidden; position: relative;
}
.cta-copy h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.cta-copy p { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 17px; }
.cta-visual { background: #fff; border-radius: var(--radius-lg); padding: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 24px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 340px; font-size: 15px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-2); font-weight: 600; cursor: pointer; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Tombol WhatsApp melayang */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 12px 28px -10px rgba(31,168,85,.7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* Animasi muncul saat digulir */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ───────── Responsif ───────── */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(3)::before { display: none; }
}

@media (max-width: 920px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 2px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
  }
  .main-nav.open > a { padding: 12px; font-size: 16px; }
  .main-nav.open .nav-actions-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

  .hero { padding-top: 28px; }
  .hero-grid, .showcase-grid, .roles-grid, .faq-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero-visual img { margin: 0 auto; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .phones { height: 520px; }
  .phone--front { width: 230px; }
  .phone--back, .phone--side { width: 200px; top: 60px; }
  .roles-visual { order: 2; }
  .cta-inner { padding: 40px 28px; }
  .section-head--left { text-align: center; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .feature-grid, .benefit-grid { grid-template-columns: 1fr; }
  .benefit + .benefit::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .float-card { padding: 8px 12px; }
  .float-card strong { font-size: 13px; }
  .float-icon { width: 30px; height: 30px; font-size: 15px; }
  .phones { height: 440px; }
  .phone--front { width: 200px; }
  .phone--back, .phone--side { width: 160px; }
  .phone--back { left: -2%; }
  .phone--side { right: -2%; }
  .role { grid-template-columns: 1fr; gap: 8px; }
  .plan--featured { transform: none; }
}
