/* ========================================
   Shared base styles
   Reset + typography defaults + layout primitives
   (container, section, btn, footer)
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--outline-muted);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__logo-img {
  border-radius: var(--corner-s);
}

.nav__logo-mark {
  color: var(--accent);
  font-weight: 700;
}

/* ========================================
   Container
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.container--narrow {
  max-width: 760px;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section--cta {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 65% at 50% 100%, var(--accent-soft), transparent 70%),
    var(--surface);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 1em;
  text-align: center;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-l);
  line-height: 1.65;
}

.section__lead + .section__lead {
  margin-top: calc(-1 * var(--space-s));
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--corner-s);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.btn--small {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.btn--large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, black);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--outline);
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-color: var(--text);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: var(--space-l) 0;
  border-top: 1px solid var(--outline-muted);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  flex-wrap: wrap;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  font-size: 1rem;
  font-weight: 600;
}

.footer__legal {
  display: flex;
  gap: var(--space-l);
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.footer__legal a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
