/* ==========================================================================
   MOOREZY Base Styles
   Global resets, typography hierarchy, and layout utilities shared by
   every page. Loaded after Bootstrap + tokens.css, before components.css.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--mz-font-sans);
  color: var(--mz-slate-900);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mz-font-display);
  font-weight: 700;
  color: var(--mz-navy-950);
  letter-spacing: -0.01em;
}

::selection {
  background-color: var(--mz-cyan-200);
  color: var(--mz-navy-950);
}

a {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--mz-cyan-500);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Container / section rhythm ---- */

.mz-container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 992px) {
  .mz-container {
    padding-inline: 2rem;
  }
}

.mz-section {
  position: relative;
  padding-block: 3.5rem;
}

@media (min-width: 768px) {
  .mz-section {
    /* Tightened from 7rem -- back-to-back sections were stacking two
       full paddings (top of one + bottom of the next) into a single
       gap wide enough to read as genuine dead space, especially where
       neither section has a background tint to visually carry the eye
       through the transition. */
    padding-block: 5rem;
  }
}

.mz-section--muted {
  background-color: var(--mz-slate-50);
}

/* Trims one side of a section's normal padding-block, for boundaries
   where the default top+bottom padding stacking with the next/previous
   section reads as a bigger dead gap than anywhere else on the page --
   e.g. Powerful Features closes with a full-width bar that already acts
   as a visual stop, so its own bottom padding on top of Ecosystem's top
   padding (both plain white, no tint to carry the eye through) was
   nearly double any other section-to-section gap. Reusable for any
   future pair with the same problem rather than a one-off fix. */
.mz-section--tight-bottom {
  padding-bottom: 1.5rem;
}
.mz-section--tight-top {
  padding-top: 2rem;
}

.mz-section--dark {
  background-color: var(--mz-navy-800);
  color: #ffffff;
}

.mz-section--dark h1,
.mz-section--dark h2,
.mz-section--dark h3,
.mz-section--dark h4 {
  color: #ffffff;
}

/* Trial: a very slight diagonal cut on the top/bottom edges instead of
   a perfectly flat rectangle, echoing the hero's diagonal panel. Kept
   subtle (~1.2rem rise over the full section width, a few degrees) so
   it reads as "designed" rather than gimmicky, and confined to a
   single section for now -- extend to the other dark sections only if
   this direction is approved. Section padding (5-7rem) comfortably
   clears the clipped corner, so no heading/copy is at risk of being cut. */
.mz-section--angled {
  clip-path: polygon(0 1.2rem, 100% 0, 100% calc(100% - 1.2rem), 0 100%);
}

/* Same idea, but only the top edge is cut. Used where the section directly
   above is a different color (so the diagonal reads) but the section
   directly below is the SAME dark color (e.g. the CTA sitting right above
   the navy footer) -- clipping that bottom edge would just expose a stray
   white wedge of the page background between two navy blocks instead of a
   clean transition, since nothing dark sits behind the section to fill it. */
.mz-section--angled-top {
  clip-path: polygon(0 1.2rem, 100% 0, 100% 100%, 0 100%);
}

/* ---- Typography scale ---- */

.mz-display-xl {
  font-size: 2.5rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.mz-display-lg {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mz-display-md {
  font-size: 1.875rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.mz-display-sm {
  font-size: 1.5rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .mz-display-xl { font-size: var(--mz-text-display-xl); }
  .mz-display-lg { font-size: var(--mz-text-display-lg); }
  .mz-display-md { font-size: var(--mz-text-display-md); }
  .mz-display-sm { font-size: var(--mz-text-display-sm); }
}

.mz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--mz-cyan-100);
  color: var(--mz-cyan-600);
}

.mz-section--dark .mz-eyebrow {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--mz-cyan-300);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mz-text-muted {
  color: var(--mz-slate-600);
}

.mz-section--dark .mz-text-muted {
  color: var(--mz-slate-300);
}

.mz-lede {
  font-size: 1.0625rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .mz-lede {
    font-size: 1.125rem;
  }
}

/* ---- Backgrounds ---- */

.mz-bg-grid {
  background-image:
    linear-gradient(rgba(3, 148, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 148, 252, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.mz-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  background: rgba(3, 148, 252, 0.22);
}

/* The hero's glow blob intentionally pokes above the section's own top
   edge for a soft ambient-light effect, but the navbar sits directly
   above the hero in normal flow with a transparent background at the
   top of the page -- without clipping, the glow bleeds up through the
   transparent navbar and washes out the nav text/logo. Clipping it to
   the hero section keeps the glow effect while keeping the navbar crisp. */
.mz-hero {
  overflow: hidden;
}

/* Any section with a .mz-glow blob needs to clip it -- the glow's fixed
   pixel width (700-820px) is wider than the viewport on small screens,
   and without a clipping boundary it silently forces the whole page to
   become horizontally scrollable (the CTA section's glow was doing this
   at anything under ~700px wide). */
.mz-section-clip {
  overflow: hidden;
}

/* ---- Scroll reveal (paired with assets/js/scroll-reveal.js) ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity var(--mz-duration-hero) var(--mz-ease-premium),
              transform var(--mz-duration-hero) var(--mz-ease-premium);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-reveal-group] > * {
  transition-delay: calc(var(--mz-stagger-index, 0) * 100ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
