/* ═══════════════════════════════════════════════════════════
   HYPERSPHERE TECHNOLOGIES — GLOBAL STYLES
   Resets, base typography, utility classes.
   Import order: tokens.css → global.css → components.css
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Chakra+Petch:wght@400;600;700&display=swap');

/* ── Trademark & Superscript ─────────────────────────────── */
sup,
.tm {
  font-size: 0.5em;
  font-weight: 400;
  vertical-align: super;
  line-height: 0;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  color: var(--text-heading);
  text-transform: uppercase;
}

/* Chakra Petch is always uppercase wherever it's used.
   For heading tags this is handled above. For other elements
   using var(--font-heading), add text-transform: uppercase
   to their own rule. */

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

p {
  line-height: var(--leading-loose);
  color: var(--text-body);
}

strong { font-weight: var(--weight-semi); }

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

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

/* ── Section Base ────────────────────────────────────────── */
.section {
  padding-block: var(--section-y);
}

.section--lg {
  padding-block: var(--section-y-lg);
}

.section--sm {
  padding-block: var(--section-y-sm);
}

/* ── Section Header (eyebrow + title + subtitle) ─────────── */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--space-3);
}

.eyebrow--teal   { color: var(--hs-teal); }
.eyebrow--orange { color: var(--hs-orange); }
.eyebrow--muted  { color: var(--text-muted); }

.section-title {
  margin-bottom: var(--space-4);
}

.section-title .hl {
  color: var(--hs-teal-bright);
}

.section-title .hl--orange {
  color: var(--hs-orange);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-body);
  line-height: var(--leading-loose);
  max-width: 580px;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ease-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--hs-teal);
  color: var(--white);
  border-color: var(--hs-teal);
}
.btn-primary:hover {
  background: var(--text-heading);
  border-color: var(--text-heading);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--hs-teal);
  border-color: var(--hs-teal);
}
.btn-secondary:hover {
  background: var(--hs-teal);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border-color: var(--text-heading);
}
.btn-ghost:hover {
  border-color: var(--hs-teal);
  color: var(--hs-teal);
}

.btn-orange {
  background: var(--hs-orange);
  color: var(--white);
  border-color: var(--hs-orange);
}
.btn-orange:hover {
  background: var(--hs-orange-mid);
  border-color: var(--hs-orange-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  font-size: var(--text-base);
  padding: 0.9rem 2rem;
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1.1rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-light);
  border: none;
  margin: 0;
}

/* ── Tag / Badge ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--hs-ice);
  color: var(--hs-teal);
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Grid Helpers ────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

/* ── Flex Helpers ────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ── Text Utilities ──────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-teal    { color: var(--hs-teal); }
.text-bright  { color: var(--hs-teal-bright); }
.text-orange  { color: var(--hs-orange); }

/* ── Spacing Utilities ───────────────────────────────────── */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ── Responsive Helpers ──────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-y: var(--space-16);
    --container-pad: var(--space-5);
  }
}
