/* ====== Base ====== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* ===== Theme (Light default variables) ===== */
:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #dfe3ea;
  --surface: #ffffff;
  --surface2: #f3f5f9;
  --hover: #f3f3f3;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] {
  --bg: #0f1115;
  --text: #e9e9ea;
  --muted: #a0a4ad;
  --border: #232634;
  --surface: #141824;
  --surface2: #101522;
  --hover: #1c2233;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 500px) {
  .container {
    width: 94%;
    padding: 0 10px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;

  background: color-mix(in srgb, var(--surface2) 55%, transparent);
  color: var(--text);
  font-weight: 600;
  line-height: 1;

  transition:
    background 140ms ease,
    transform 120ms ease,
    border-color 140ms ease;
}

.btn:hover {
  background: var(--hover);
  border-color: color-mix(in srgb, var(--border) 55%, var(--text));
}

.btn:active {
  transform: translateY(1px);
}

.btn.btn-ghost {
  background: transparent;
  border-color: var(--border);
}
.btn.btn-ghost:hover {
  background: var(--hover);
}
.btn.btn-primary {
  background: color-mix(in srgb, var(--surface2) 80%, transparent);
  border-color: color-mix(in srgb, var(--border) 70%, var(--text));
}
.btn.btn-primary:hover {
  background: var(--hover);
}

.btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 55%, transparent);
  outline-offset: 3px;
}

.muted {
  color: var(--muted);
}

/* ====== Theme toggle button ====== */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--hover);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #111; /* placeholder logo block */
}

h1,
h2,
h3,
p {
  margin: 0;
}
/* ====== Simple Hero / Grid placeholders ====== */
.hero {
  padding: 70px 0;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  line-height: 1.15;
  letter-spacing: -0.3px;
}
@media (max-width: 700px) {
  .hero {
    padding: 44px 0;
  }
  .hero h1 {
    font-size: 32px;
  }
}
.hero p {
  margin: 0 0 18px;
}

.page-hero--simple {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}
.page-hero--simple h1 {
  margin-bottom: 12px;
}

.page-hero--simple .hero-lead {
  max-width: 65ch;
  color: var(--muted);
}
