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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink-2);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.4vw, var(--fs-5xl)); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: var(--fs-xl); font-weight: 700; }
h5 { font-size: var(--fs-lg); font-weight: 700; }
h6 { font-size: var(--fs-md); font-weight: 700; }

p { color: var(--c-ink-3); }

::selection { background: var(--c-accent); color: var(--c-bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

#demos{
  padding-top: 0;
}

.section { padding-block: clamp(64px, 10vw, 144px); }
.section-sm { padding-block: clamp(40px, 6vw, 80px); }

.section-dark { background: var(--c-bg); color: var(--c-ink-inv); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.7); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--c-primary-soft);
  color: var(--c-primary-darker);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(109,198,29,0.2);
}
.section-dark .eyebrow {
  background: rgba(109,198,29,0.18);
  color: #BFE988;
  border-color: rgba(109,198,29,0.3);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, var(--fs-lg));
  line-height: var(--lh-base);
  color: var(--c-ink-3);
  max-width: 70ch;
}
.section-dark .lead { color: rgba(255,255,255,0.78); }

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

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.mx-auto { margin-inline: auto; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-360 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 12px; }
.stack-4 > * + * { margin-top: 16px; }
.stack-6 > * + * { margin-top: 24px; }
.stack-8 > * + * { margin-top: 32px; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head h2 { margin-top: 4px; }

.skip-link {
  position: absolute; left: 0; top: -40px;
  padding: 10px 16px;
  background: var(--c-accent);
  color: var(--c-bg);
  z-index: var(--z-modal);
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { top: 0; }

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

[hidden] { display: none !important; }
