/* ==========================================================================
   Base + Reset + Layout shell
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.18; color: var(--color-text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container-app { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: 20px; }

/* App shell — fixed navbar/footer, ajax content area */
#app-root { display: flex; flex-direction: column; min-height: 100vh; }
#app-content {
  flex: 1 0 auto;
  padding-top: var(--navbar-h);
  min-height: calc(100vh - var(--navbar-h));
}

/* Section rhythm */
.section { padding: 84px 0; }
.section--tight { padding: 52px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-family: var(--font-ui); font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-primary); background: var(--gradient-soft);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
.section-head p { color: var(--color-muted); font-size: 1.06rem; margin: 0; }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Utility */
.muted { color: var(--color-muted); }
.center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.gap-sm { gap: 12px; } .gap { gap: 20px; } .gap-lg { gap: 32px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--color-primary-rgb), .35); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--color-primary-rgb), .55); }

/* Accessibility */
:focus-visible { outline: 3px solid rgba(var(--color-secondary-rgb), .55); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
