html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

.font-display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Subtle grain texture over the whole page, matching brand style rules */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* Terminal-style blinking cursor on the logo mark */
.cursor-blink {
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Header gains background + border once page is scrolled */
#site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: #2a2a2a;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.2s ease;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor-blink {
    animation: none;
  }
}
