/* ============================================================
   SwiftSend Base Styles — mobile-first, modern reset
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--cyan-hover); }
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--s-4);
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: var(--t-h4); font-weight: 700; }

p {
  margin: 0 0 var(--s-4);
  max-width: 65ch;
}

ul, ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
}
.section-dark  { background: var(--bg-deep);      color: var(--text-light); }
.section-light { background: var(--bg-light);     color: var(--text-dark); }
.section-alt   { background: var(--bg-light-alt); color: var(--text-dark); }

/* Subtle dividing glow line between adjacent sections — adds rhythm without harsh borders */
.section + .section::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.12), transparent);
  pointer-events: none;
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4,
.section-alt h1, .section-alt h2, .section-alt h3, .section-alt h4 {
  color: var(--text-dark);
}
.section-light a, .section-alt a { color: var(--cyan); }
.section-light a:hover, .section-alt a:hover { color: var(--cyan-hover); }

.eyebrow {
  display: inline-block;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: var(--s-4);
}
.section-light .eyebrow, .section-alt .eyebrow { color: var(--cyan-on-light); }

.muted { color: var(--text-muted); }
.section-light .muted, .section-alt .muted { color: var(--text-dark-muted); }

/* ============================================================
   Grid helpers (responsive)
   ============================================================ */

.grid {
  display: grid;
  gap: var(--s-6);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }

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

/* ============================================================
   Visibility helpers
   ============================================================ */

.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;
}

.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

/* ============================================================
   Motion preferences
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
