/* ============================================================
   BuatWebUMKM — Shared Design System
   ============================================================ */

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

:root {
  --bg:        oklch(0.12 0.022 152);
  --bg2:       oklch(0.15 0.022 152);
  --surface:   oklch(0.18 0.020 152);
  --surface2:  oklch(0.21 0.018 152);
  --border:    oklch(0.24 0.016 152);
  --border2:   oklch(0.30 0.014 152);

  --text:      oklch(0.93 0.016 152);
  --text2:     oklch(0.68 0.028 152);
  --text3:     oklch(0.50 0.024 152);

  --sage:      oklch(0.58 0.110 152);
  --sage-d:    oklch(0.48 0.108 152);
  --sage-dim:  oklch(0.58 0.110 152 / 0.12);
  --sage-l:    oklch(0.58 0.110 152 / 0.22);

  --gold:      oklch(0.78 0.108 78);
  --gold-d:    oklch(0.68 0.108 78);
  --gold-dim:  oklch(0.78 0.108 78 / 0.10);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--sage); color: var(--bg);
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; padding: 0 32px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
nav.stuck {
  background: oklch(0.12 0.022 152 / 0.94);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { font-size: 16px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.nav-brand span { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text2); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  padding: 9px 20px; border-radius: 8px;
  background: var(--sage-l); border: 1px solid var(--sage);
  color: var(--sage) !important; font-weight: 700 !important;
  transition: all .15s;
}
.nav-cta:hover { background: var(--sage); color: var(--bg) !important; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; color: var(--text2); padding: 4px; }
.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: oklch(0.12 0.022 152 / 0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 22px; font-weight: 700; color: var(--text2); }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .nav-cta { font-size: 16px !important; padding: 14px 32px; }

@media (max-width: 700px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── LAYOUT ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 720px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 32px; }
hr.rule { border: none; border-top: 1px solid var(--border); }

/* ── TYPOGRAPHY ── */
.label {
  font-size: 11px; font-weight: 700; color: var(--text3);
  letter-spacing: .10em; text-transform: uppercase; margin-bottom: 14px;
}
.h1 { font-size: clamp(40px, 7.5vw, 88px); font-weight: 900; letter-spacing: -.04em; line-height: 1.0; text-wrap: balance; }
.h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.lead { font-size: clamp(15px, 2vw, 18px); color: var(--text2); line-height: 1.7; }
.body { font-size: 14px; color: var(--text2); line-height: 1.75; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-size: 14px; font-weight: 700; border: none;
  transition: all .18s; line-height: 1; font-family: inherit;
}
.btn-sage { background: var(--sage); color: var(--bg); }
.btn-sage:hover { background: var(--sage-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text2); border: 1.5px solid var(--border2); }
.btn-ghost:hover { color: var(--text); border-color: var(--text3); }
.btn-lg { padding: 16px 32px; font-size: 15px; border-radius: 12px; }

/* ── UNIFIED GRID CONTAINER ── */
.grid-box { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.grid-box-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.grid-box-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.grid-box-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.grid-cell { background: var(--bg); padding: 36px 32px; }
.grid-cell-surface { background: var(--bg2); }
.grid-cell:hover { background: var(--bg2); transition: background .15s; }
@media (max-width: 820px) { .grid-box-3 { grid-template-columns: 1fr; } .grid-box-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-box-2 { grid-template-columns: 1fr; } .grid-box-4 { grid-template-columns: 1fr; } }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 120px 32px 64px; border-bottom: 1px solid var(--border); }
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero .h2 { margin-top: 12px; }
.page-hero .lead { margin-top: 14px; max-width: 560px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px 32px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: start;
}
.footer-brand { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.footer-brand span { color: var(--sage); }
.footer-tagline { font-size: 12px; color: var(--text3); line-height: 1.6; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--text3); margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--text2); }
.footer-bottom { max-width: 1100px; margin: 28px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom span { font-size: 11px; color: var(--text3); }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── FLOAT CTA (mobile) ── */
.float-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 10px 16px 20px; display: none;
  background: linear-gradient(to top, var(--bg) 55%, transparent);
}
.float-cta a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--sage); color: var(--bg);
  font-weight: 800; font-size: 15px; font-family: inherit;
  padding: 16px; border-radius: 12px; min-height: 56px;
  box-shadow: 0 8px 32px oklch(0.58 0.110 152 / 0.28);
}
@media (max-width: 700px) { .float-cta { display: block; } body { padding-bottom: 100px; } }

/* ── CTA ROW (inline responsive CTA boxes) ── */
.cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-row-btns {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 640px) {
  .cta-row { grid-template-columns: 1fr; gap: 24px; }
  .cta-row-btns { flex-direction: row; flex-wrap: wrap; }
}

/* ── MOBILE SPACING ── */
@media (max-width: 700px) {
  .page-hero { padding-top: 80px; padding-bottom: 32px; }
  section { padding-top: 56px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
