/* KUGI — shared base
   Design tokens, reset, nav and footer. Loaded by every page,
   before the page-specific sheet (home.css / policy.css). */

:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --surface: rgba(10, 11, 12, 0.03);
  --surface-2: rgba(10, 11, 12, 0.06);
  --border: rgba(10, 11, 12, 0.09);
  --border-strong: rgba(10, 11, 12, 0.18);
  --text: #0a0b0c;
  --text-dim: #545a60;
  --text-faint: #878e94;
  --ink: #0a0b0c;
  --brand: #07dc2e;
  --brand-deep: #05a823;
  --brand-dim: rgba(7, 220, 46, 0.12);
  --brand-glow: rgba(7, 220, 46, 0.35);
  --gold: #f5b301;
  --gold-deep: #9a6b00;
  --gold-dim: rgba(245, 179, 1, 0.14);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --shadow-card: 0 1px 2px rgba(10,11,12,0.04), 0 16px 40px -24px rgba(10,11,12,0.25);
  --shadow-pop: 0 24px 60px -28px rgba(10,11,12,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

::selection { background: var(--brand); color: #04120a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: #fff; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(10,11,12,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(10,11,12,0.5); }
header.nav .btn-primary { padding: 10px 20px; font-size: 14px; }

/* ---------- Navbar ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(10,11,12,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 24px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.97);
}
.mobile-menu a { padding: 12px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: flex; }

/* ---------- Footer ---------- */
footer { padding: 70px 0 40px; border-top: 1px solid var(--border); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.foot-brand p { color: var(--text-dim); font-size: 14px; margin-top: 16px; max-width: 300px; }
.foot-brand .brand { font-size: 19px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 11px; transition: color .15s ease; }
.foot-col a:hover { color: var(--text); }
.foot-col a.current { color: var(--brand-deep); font-weight: 600; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13.5px; flex-wrap: wrap; gap: 14px; }
.foot-social { display: flex; gap: 14px; }
.foot-social a { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all .15s ease; }
.foot-social a:hover { border-color: rgba(7,220,46,0.5); background: var(--brand-dim); }
.foot-social svg { width: 17px; height: 17px; fill: var(--text-dim); }
.foot-social a:hover svg { fill: var(--brand-deep); }

/* ---------- Responsive (shared) ---------- */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-inner { height: 66px; }
  .brand img { width: 40px; height: 40px; border-radius: 10px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { justify-content: center; text-align: center; }
}
