:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  /* Shared colors and typography */
  --color-page-background: #06131d;
  --color-hero-background: #071722;
  --color-sections-background: #101b2b;
  --color-text-primary: #f7f9fc;
  --color-text-secondary: #c5ccd4;
  --color-accent-gold: #f3bb55;
  --color-accent-orange: #ffae55;
  --font-body: 'DM Sans', sans-serif;
  --font-display: Manrope, sans-serif;

  /* Shared layout controls */
  --spacing-section-block: 52px;
  --spacing-section-block-mobile: 40px;
  --size-content-max: 1120px;

  /* App identity */
  --size-brand-icon: 96px;
  --size-brand-name: 28px;
  --spacing-brand-gap: 18px;
  --size-brand-icon-mobile: 81px;
  --size-brand-name-mobile: 28px;
  --spacing-brand-gap-mobile: 14px;

  /* Privacy callout and QR code */
  --spacing-privacy-callout-gap: 86px;
  --spacing-privacy-callout-gap-mobile: 30px;
  --size-privacy-qr: 248px;
  --size-privacy-qr-mobile: 100px;
  --color-privacy-qr-border: rgba(255, 255, 255, .62);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 53% 39%, #182b3e 0, transparent 48%),
    var(--color-page-background);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

/* Shared page-width utility */
.wrap {
  width: min(var(--size-content-max), calc(100% - 68px));
  margin-inline: auto;
}

/* Shared section background and separators */
.product-sections {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-sections-background);
}

.product-sections::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0a1727 0%,
    rgba(6, 18, 30, .64) 14%,
    rgba(6, 18, 30, .72) 70%,
    var(--color-sections-background) 100%
  );
  content: '';
  pointer-events: none;
}

.section-divider {
  width: min(var(--size-content-max), calc(100% - 68px));
  height: 1px;
  margin-inline: auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(226, 237, 249, .25) 18%,
    rgba(244, 187, 85, .38) 50%,
    rgba(226, 237, 249, .25) 82%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(244, 187, 85, .08);
}

.product-sections > .section-divider:first-child {
  margin-top: var(--spacing-section-block);
}

.site-footer-transition {
  position: relative;
  isolation: isolate;
  background: var(--color-page-background);
}

@media (max-width: 700px) {
  :root {
    --spacing-section-block: var(--spacing-section-block-mobile);
  }

  .wrap,
  .section-divider {
    width: calc(100% - 36px);
  }

  .product-sections::before {
    background: linear-gradient(
      180deg,
      #0a1727 0%,
      rgba(6, 18, 30, .72) 24%,
      rgba(6, 18, 30, .86) 68%,
      var(--color-sections-background) 100%
    );
  }
}

@media (max-width: 390px) {
  .wrap,
  .section-divider {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
