/* ─── Theme tokens ─────────────────────────────────────────────────────── */
:root,
[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-alt: #0f0f13;
  --card: #141418;
  --border: #26262d;
  --text: #ececef;
  --muted: #9a9aa4;
  --accent: #e3b341;
  --on-accent: #0a0a0b;
  --ring: rgba(227, 179, 65, 0.35);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f6f8;
  --card: #ffffff;
  --border: #e6e6ec;
  --text: #0d0d12;
  --muted: #5c5c66;
  --accent: #a9781a;
  --on-accent: #ffffff;
  --ring: rgba(169, 120, 26, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}
.icon-btn:hover { border-color: var(--accent); }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }

/* language switcher */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 6px 9px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1; }
.lang-switch a:hover:not(.active) { color: var(--text); }
.lang-switch a.active { background: var(--accent); color: var(--on-accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-icon--light { display: none; }
[data-theme="light"] .theme-icon--dark { display: none; }
[data-theme="light"] .theme-icon--light { display: inline; }

/* burger */
.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }
.mobile-menu a { padding: 10px 0; color: var(--muted); font-weight: 500; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 8px; }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(64px, 12vw, 130px) 0 clamp(48px, 8vw, 90px); }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.2rem); font-weight: 800; max-width: 16ch; }
.hero-sub { margin: 22px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ─── Stats ────────────────────────────────────────────────────────────── */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 32px 16px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat-num { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 800; }
.stat-label { color: var(--muted); font-size: 14px; }

/* ─── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 52ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: 12px 0 0; font-size: 1.1rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
.subsection-gap { margin-top: 60px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 1.3rem; margin: 12px 0 10px; }
.card p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 16px 0 0; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.principles li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 2px solid var(--accent); }
.principles strong { font-size: 1.05rem; }
.principles span { color: var(--muted); }

/* chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--muted);
  font-weight: 500;
  background: var(--card);
}

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}
a.contact-card:hover { border-color: var(--accent); }
.contact-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-value { font-weight: 600; font-size: 1.1rem; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px 24px 28px; }
.footer-brand p { color: var(--muted); margin: 8px 0 0; max-width: 32ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 18px 24px 40px; border-top: 1px solid var(--border); }
.legal { color: var(--muted); font-size: 13px; margin: 0; }

/* ─── Fade-in animation ────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .btn-primary.btn-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .about-grid, .contact { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(odd) { border-left: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
