/* ==========================================================================
   BASE.CSS — RESETS, TYPOGRAPHY & CORE PRIMITIVES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Box-sizing & Resets
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

figure {
  margin: 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  border: 0;
}

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

/* --------------------------------------------------------------------------
   2. HTML Headings & Core Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-black);
}

[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6) {
  color: var(--color-white);
}

h1 {
  font-size: 44px;
  line-height: 56px;
  letter-spacing: -0.44px;
}

h2 {
  font-size: 44px;
  line-height: 56px;
  letter-spacing: -0.16px;
}

h3 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.16px;
}

h4 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.16px;
}

h5 {
  font-size: 20px;
  line-height: 28px;
}

h6 {
  font-size: 16px;
  line-height: 24px;
}

p {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

ul,
ol {
  margin-top: 32px;
  margin-bottom: 32px;
  padding-left: 40px;
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
}

li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
}

blockquote {
  margin: 40px 0;
  padding: 57px 120px;
  border: none;
  border-left: 10px solid var(--color-purple-primary);
  border-radius: var(--radius-lg);
  background-color: #fbfaff;
  color: var(--color-black);
  text-align: center;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
}

/* --------------------------------------------------------------------------
   3. Design System Typography Scale Classes
   -------------------------------------------------------------------------- */
/* Display Headings */
.text-display-1 {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: -0.48px;
}

.text-display-2 {
  font-family: var(--font-heading);
  font-size: 50px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: -0.32px;
}

.text-heading-3 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.16px;
}

.text-heading-4 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.16px;
}

.text-heading-stat {
  font-family: var(--font-body);
  font-size: 96px;
  line-height: 100px;
  font-weight: 500;
}

/* Subheadings */
.text-subheading-2-regular {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.24px;
}

.text-subheading-2-bold {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.16px;
}

.text-subheading-3 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
}

.text-subheading-3-medium {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
}

.text-subheading-3-inter {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
}

.text-subheading-4 {
  font-size: 18px;
  line-height: 32px;
}

/* Body Text */
.text-body-1 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.text-body-1-satoshi {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.text-body-1-bold {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.text-body-2 {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.08px;
}

.text-body-2-medium {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.08px;
}

.text-body-2-semibold {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.08px;
}

.text-body-3 {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.08px;
}

.text-body-3-semibold {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.08px;
}

/* Eyebrows / Captions */
.text-caption-uppercase {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.56px;
  text-transform: uppercase;
}

.text-caption-large {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.64px;
  text-transform: uppercase;
}

.text-micro {
  font-family: var(--font-heading);
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-reading {
  max-width: var(--container-reading);
}

.container-sm {
  max-width: var(--container-sm);
}

/* --------------------------------------------------------------------------
   5. Utility Classes (Spacing, Flex, Grid, Colors)
   -------------------------------------------------------------------------- */
/* Text Align */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Color Utilities */
.color-text-main {
  color: var(--color-text-main);
}

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

.color-text-white {
  color: var(--color-white);
}

.color-text-purple {
  color: var(--color-purple-primary);
}

.bg-black {
  background-color: var(--color-black);
}

.bg-purple {
  background-color: var(--color-purple-primary);
}

.bg-yellow {
  background-color: var(--color-yellow);
}

.bg-off-white {
  background-color: var(--color-purple-light);
}

/* Opacities */
.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

/* Margins Top */
.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-28 {
  margin-top: 28px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-48 {
  margin-top: 48px;
}

.mt-56 {
  margin-top: 56px;
}

.mt-60 {
  margin-top: 60px;
}

.mt-64 {
  margin-top: 64px;
}

.mt-72 {
  margin-top: 72px;
}

/* Margins Left */
.ml-4 {
  margin-left: 4px;
}

.ml-8 {
  margin-left: 8px;
}

.ml-12 {
  margin-left: 12px;
}

.ml-16 {
  margin-left: 16px;
}

.ml-24 {
  margin-left: 24px;
}

/* Horizontal Dividers */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border-subtle);
}

.divider-vertical {
  width: 1px;
  height: 24px;
  background-color: var(--color-border-divider);
  margin-left: 12px;
  margin-right: 12px;
}

/* Screen-reader-only utility — visually hidden, still announced */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   SKIP LINK — keyboard accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--color-black, #0d0d10);
  color: var(--color-white, #ffffff);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--color-purple-accent, #6853ff);
  outline-offset: 2px;
}

[data-theme="dark"] .skip-link {
  background: var(--color-white, #ffffff);
  color: var(--color-black, #0d0d10);
}

/* --------------------------------------------------------------------------
   6. Responsive Typography & Container Breakpoints
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .container {
    max-width: 728px;
  }

  blockquote {
    padding: 40px;
  }
}

@media screen and (max-width: 767px) {
  h2 {
    font-size: 32px;
    line-height: 40px;
  }

  blockquote {
    padding: 30px;
  }

  .text-display-1 {
    font-size: 50px;
    line-height: 58px;
  }

  .text-display-2 {
    font-size: 45px;
    line-height: 55px;
  }

  .text-heading-3 {
    font-size: 32px;
    line-height: 38px;
  }

  .text-heading-4 {
    font-size: 30px;
    line-height: 36px;
  }

  .text-subheading-2-bold {
    font-size: 22px;
    line-height: 30px;
  }

  .text-subheading-3,
  .text-subheading-3-medium,
  .text-subheading-3-inter {
    font-size: 18px;
    line-height: 28px;
  }
}

@media screen and (max-width: 479px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  blockquote {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
  }

  .text-display-1 {
    font-size: 45px;
    line-height: 50px;
  }

  .text-display-2 {
    font-size: 42px;
    line-height: 48px;
  }

  .text-heading-3 {
    font-size: 30px;
    line-height: 36px;
  }

  .text-heading-4 {
    font-size: 28px;
    line-height: 34px;
  }

  .text-subheading-2-bold {
    line-height: 28px;
  }

  .text-subheading-3,
  .text-subheading-3-medium,
  .text-subheading-3-inter {
    line-height: 26px;
  }
}