/* ============================================================
   Union Corp Bot — landing & halaman legal
   Tema sama dengan panel admin (web/public/app.css) dan gambar stats bot (structure/statsCanvas.js):
   latar biru berlapis (assets/lobes.jpg = paintLobes) untuk hero & pita, konten di latar terang,
   kartu putih bertepi royal, teks navy, judul teks stiker, aksi utama pill kuning bertepi navy.
   ============================================================ */

:root {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-2: #f6f8fd;
  --surface-3: #eaf0fa;
  --line: rgba(27, 35, 99, 0.09);
  --ink: #1b2363;
  --ink-2: #3f4f8f;
  --ink-3: #66709c;
  --royal: #1f6fd6;
  --royal-ink: #1a5fba;
  --yellow: #ffd23f;
  --outline: #251f63;
  --on-blue: #ffffff;
  --on-blue-2: rgba(255, 255, 255, 0.82);
  --on-blue-line: rgba(255, 255, 255, 0.2);

  --maxw: 1200px;
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 24px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 120ms;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--royal-ink);
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* Latar lobes + lapisan navy (sama dengan header gambar stats) supaya teks putih kebaca */
.blue {
  background: linear-gradient(rgba(22, 24, 96, 0.5), rgba(22, 24, 96, 0.3)), url(assets/lobes.jpg) center / cover;
  color: var(--on-blue);
}

.blue :focus-visible,
.nav-inner > :focus-visible {
  outline-color: var(--on-blue);
}

/* Teks stiker: putih, outline navy tebal, bayangan turun navy */
.sticker {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 8px var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--outline);
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 2px solid var(--outline);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.btn:hover {
  background: var(--surface-3);
}

/* aksi utama = pill kuning bertepi navy dengan bayangan turun, seperti pill gambar stats */
.btn-primary {
  background: var(--yellow);
  color: var(--outline);
  box-shadow: 0 3px 0 var(--outline);
}

.btn-primary:hover {
  background: #ffc61a;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--outline);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* di atas latar biru, tombol kedua transparan bertepi putih */
.blue .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--on-blue);
}

.blue .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Navigasi (menimpa hero / pita legal) ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-blue);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--on-blue-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.nav-links a:not(.btn):hover {
  color: var(--on-blue);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--on-blue);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100vh, 880px);
  padding: 112px 0 80px;
  background:
    linear-gradient(90deg, rgba(22, 24, 96, 0.62) 0%, rgba(22, 24, 96, 0.3) 55%, rgba(22, 24, 96, 0.15) 100%),
    url(assets/lobes.jpg) center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  animation: enter 400ms var(--ease) both;
}

.hero-visual {
  animation-delay: 80ms;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--on-blue-2);
  font-size: 15px;
  font-weight: 500;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 500px;
  margin-top: 24px;
  color: var(--on-blue-2);
  font-size: 17px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--on-blue-line);
  list-style: none;
}

.hero-facts b {
  display: block;
  color: var(--on-blue);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-facts span {
  color: var(--on-blue-2);
  font-size: 14px;
}

/* Produk: pesan bot di Discord berisi gambar !activestats asli */
.discord {
  padding: 16px 20px 20px;
  border-radius: 12px;
  background: #313338;
  color: #dbdee1;
  font-family: 'gg sans', var(--font);
  box-shadow: 0 24px 60px rgba(10, 12, 60, 0.45);
}

.dc-reply {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px 52px;
  color: #b5bac1;
  font-size: 13px;
}

.dc-reply::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 9px;
  width: 26px;
  height: 10px;
  border: 2px solid #4e5058;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}

.dc-reply .dc-av {
  width: 16px;
  height: 16px;
  font-size: 9px;
}

.dc-reply b {
  color: #c9cdfb;
  font-weight: 500;
}

.dc-msg {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 12px;
}

.dc-av {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  font-weight: 600;
  overflow: hidden;
}

.dc-av img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.dc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 22px;
}

.dc-head b {
  color: #f2f3f5;
  font-weight: 500;
}

.dc-tag {
  padding: 0 4px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* centang aplikasi terverifikasi, seperti badge Discord */
.dc-tag svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dc-time {
  color: #949ba4;
  font-size: 12px;
}

.dc-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 8px;
}

.hero-visual figcaption {
  margin-top: 12px;
  color: var(--on-blue-2);
  font-size: 13px;
  text-align: right;
}

/* ---------- Section umum ---------- */
.block {
  padding: 96px 0;
}

.block + .block {
  padding-top: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 17px;
}

/* Kartu putih bertepi royal, sama dengan kartu panel admin */
.card {
  background: var(--surface);
  border: 2px solid var(--royal);
  border-radius: var(--r-panel);
  box-shadow: 0 4px 14px rgba(20, 22, 100, 0.08);
}

/* Fitur: satu kartu, isi dibagi garis tipis */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.feature {
  padding: 28px 24px 32px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.feature:nth-child(4n + 1) {
  border-left: 0;
}

.feature:nth-child(-n + 4) {
  border-top: 0;
}

.feature .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--royal);
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.feature p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

/* Sosial */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r-card);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}

.social:hover {
  background: var(--surface-2);
}

.social .si {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.social .si svg {
  width: 22px;
  height: 22px;
}

.social .meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social .t {
  font-weight: 600;
  line-height: 1.3;
}

.social .h {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.3;
}

/* Ajakan gabung: pita lobes membulat */
.cta {
  padding: 64px 48px;
  border-radius: var(--r-panel);
  text-align: center;
}

.cta h2 {
  font-size: 40px;
  line-height: 1.2;
}

.cta p {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--on-blue-2);
  font-size: 17px;
}

.cta .btn {
  margin-top: 32px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer .brand {
  color: var(--ink);
}

.footer p {
  max-width: 340px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 15px;
}

.footer h4 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer ul a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.footer ul a:hover {
  color: var(--royal-ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

.footer-bottom a {
  color: var(--ink-3);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--royal-ink);
}

/* ---------- Halaman legal ---------- */
.legal-hero {
  padding: 136px 0 96px;
  text-align: center;
}

.legal-hero .kicker {
  margin-bottom: 12px;
}

.legal-hero h1 {
  font-size: 44px;
  line-height: 1.2;
}

.legal-hero .updated {
  margin-top: 16px;
  color: var(--on-blue-2);
  font-size: 15px;
}

.legal-body {
  max-width: 840px;
  margin: -48px auto 0;
  padding: 0 24px 96px;
}

.legal-card {
  padding: 40px;
}

.legal-card .intro {
  color: var(--ink-2);
}

.legal-card h2 {
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.legal-card h2 .n {
  margin-right: 8px;
  color: var(--royal);
}

.legal-card p {
  margin-bottom: 12px;
  color: var(--ink-2);
}

.legal-card ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--ink-2);
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-copy p {
    max-width: 600px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature:nth-child(n) {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .feature:nth-child(2n + 1) {
    border-left: 0;
  }

  .feature:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }

  .nav-inner {
    height: 64px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 2px solid var(--royal);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(20, 22, 100, 0.25);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    color: var(--ink);
  }

  .nav-links a:not(.btn):hover {
    color: var(--ink);
    background: var(--surface-2);
  }

  .nav-links .btn {
    margin: 4px 0 0;
  }

  .hero {
    min-height: 0;
    padding: 96px 0 56px;
    background:
      linear-gradient(rgba(22, 24, 96, 0.55), rgba(22, 24, 96, 0.35)),
      url(assets/lobes.jpg) center / cover;
  }

  .hero h1 {
    font-size: 34px;
  }

  .sticker {
    -webkit-text-stroke-width: 6px;
    text-shadow: 0 3px 0 var(--outline);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-facts {
    gap: 20px;
  }

  .hero-facts b {
    font-size: 18px;
  }

  .hero-facts span {
    font-size: 12px;
  }

  .dc-msg > .dc-av img {
    width: 20px;
    height: 20px;
  }

  .discord {
    padding: 12px 12px 14px;
  }

  .dc-reply {
    display: none;
  }

  .dc-msg {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0 10px;
  }

  .dc-msg > .dc-av {
    width: 32px;
    height: 32px;
  }

  .hero-visual figcaption {
    text-align: left;
  }

  .block {
    padding: 64px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature:first-child {
    border-top: 0;
  }

  .social-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta {
    padding: 48px 24px;
  }

  .cta h2 {
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .legal-hero {
    padding: 112px 0 88px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-card {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

.nav-links a[aria-current='page'] {
  color: var(--on-blue);
}
