/* Kirmai — shared design tokens & chrome */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff4ff;
  --background: #ffffff;
  --surface: #f9fafb;
  --surface-2: #f3f4f6;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --success: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 22px 50px -16px rgba(37, 99, 235, 0.45);
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 28px; }
.container-sm { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  padding: 14px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text);
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary); position: relative;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.32);
}
.logo-mark::before, .logo-mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; position: absolute; top: 50%;
  transform: translateY(-50%);
}
.logo-mark::before { left: 6px; }
.logo-mark::after  { right: 6px; opacity: 0.55; }

.header-right { display: inline-flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.lang-switch button {
  font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--text-light);
  background: transparent; border: 0;
  padding: 5px 9px; border-radius: 999px;
  cursor: pointer; transition: background .15s, color .15s;
  min-width: 30px; line-height: 1;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] {
  background: #fff; color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; font-family: inherit;
  font-size: 17px; font-weight: 700;
  padding: 16px 28px; border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6, var(--primary));
  color: #fff; cursor: pointer; border: 0; text-decoration: none;
  box-shadow:
    0 22px 44px -12px rgba(37, 99, 235, 0.55),
    0 4px 0 0 rgba(29, 78, 216, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  letter-spacing: -0.01em; min-height: 54px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  color: var(--text-light);
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }

/* Generic page section */
.page {
  flex: 1;
  padding: 56px 0 80px;
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 800;
  margin: 0 0 16px;
  text-wrap: balance;
}
.page h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
}
.page p { color: var(--text-light); margin: 0 0 14px; line-height: 1.65; }
.page p strong { color: var(--text); font-weight: 600; }
.page ul { color: var(--text-light); padding-left: 22px; margin: 0 0 14px; }
.page ul li { margin-bottom: 6px; line-height: 1.6; }

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 22px 36px 28px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.site-footer .footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.site-footer strong { color: var(--text-light); font-weight: 600; }
.footer-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .site-header { padding: 12px 18px; }
  .site-footer { padding: 18px 18px 24px; }
  .site-footer .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page { padding: 36px 0 56px; }
}
