/* base.css — tokens, reset, nav, footer, buttons. Loaded on every page.
   Tuned to the danny.com feel: warm off-white, big-radius glass cards,
   SF Pro, restrained shadows. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f1f1ef;
  --bg-soft: #f6f6f4;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #8e8e93;
  --hairline: #e8e8e4;
  --accent: #4F5BD5;
  --accent-ink: #3a4bbf;
  --radius: 30px;
  --radius-icon: 22px;
  --font-body: -apple-system, BlinkMacSystemSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body > main, body > .hub-main, body > .app-main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-soft); }

/* nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(20px);
  background: rgb(241 241 239 / 0.72);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); }
.nav-links { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 14px; border-radius: 999px; color: var(--ink-soft);
  font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); background: rgb(0 0 0 / 0.05); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); text-decoration: none; }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.btn[disabled] { pointer-events: none; }

/* footer */
.site-footer { border-top: 1px solid var(--hairline); background: var(--bg-soft); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 32px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.footer-brand { font-weight: 700; }
.footer-base { color: var(--ink-soft); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}