/* ============================================================
   Lokga Community — Small tools connect kindness
   Self-contained stylesheet. No external dependencies.
   ============================================================ */

:root {
  --bg: #fffaf6;
  --bg-alt: #fdf1e8;
  --surface: #ffffff;
  --text: #2a211c;
  --text-soft: #6b5d54;
  --border: #f0e2d6;
  --primary: #f2704a;
  --primary-dark: #d9542e;
  --accent: #14a09a;
  --mark-a: var(--primary);
  --mark-b: var(--accent);
  --mark-bg: var(--bg);
  --shadow: 0 12px 40px rgba(180, 96, 60, 0.12);
  --shadow-sm: 0 4px 16px rgba(180, 96, 60, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1512;
    --bg-alt: #221a15;
    --surface: #241c17;
    --text: #f6ece4;
    --text-soft: #b9a99d;
    --border: #38291f;
    --primary: #ff855f;
    --primary-dark: #f2704a;
    --accent: #2bc0b8;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--primary-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand-mark { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.brand-name { letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-cta {
  color: #fff !important;
  background: var(--primary) !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--primary); }
.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-soft);
  margin: 0 0 34px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stats span { color: var(--text-soft); font-size: 0.95rem; }

.hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(242, 112, 74, 0.35), transparent 68%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 720px;
  font-weight: 800;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 48px;
}

/* ---------- Mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 24px;
}
.mission-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 760px;
}
.mission-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.mission-point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.mp-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.mission-point h3 { margin: 0 0 8px; font-size: 1.2rem; }
.mission-point p { margin: 0; color: var(--text-soft); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-icon { font-size: 2.2rem; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
}
.card h3 { margin: 0 0 10px; font-size: 1.4rem; }
.card p { margin: 0 0 22px; color: var(--text-soft); flex-grow: 1; }
.card-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-dark);
  align-self: flex-start;
}
.card-link:hover { text-decoration: underline; }
.card-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

/* ---------- Values ---------- */
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 48px;
}
.values-list li { display: flex; gap: 20px; }
.v-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.values-list h3 { margin: 0 0 6px; font-size: 1.25rem; }
.values-list p { margin: 0; color: var(--text-soft); }

/* ---------- Contribute ---------- */
.contribute-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.contribute-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contribute-steps li {
  font-size: 1.05rem;
  color: var(--text);
}
.contribute-steps strong { color: var(--primary); margin-right: 8px; }
.contribute-steps code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}
.contribute-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contribute-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { margin: 0; font-weight: 700; }
.footer-tag { margin: 0; color: var(--text-soft); font-size: 0.9rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--primary-dark); }
.footer-legal {
  width: 100%;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin: 16px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .contribute-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { gap: 28px; }
}

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