/* ============================================
   LaunchReady.ai Base Styles
   Reset, body defaults, utilities, animations
   ============================================ */

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  background: var(--surface-deepest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-display);
  line-height: var(--line-height-heading);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
}

h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.06em;
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

/* ---- Skip Link (Accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-xs);
  color: var(--text-primary);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

/* Legacy class name support */
.si {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

/* ---- Section Defaults ---- */
section {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }
}

/* ---- Section Label ---- */
.section-label,
.lbl {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.section-label::after,
.lbl::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
}

/* ---- Body Text Block ---- */
.body-txt {
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 620px;
  margin-bottom: var(--space-lg);
}

/* ---- Reveal Animation System ---- */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rv.on {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal-delay-1, .d1 { transition-delay: 0.1s; }
.reveal-delay-2, .d2 { transition-delay: 0.25s; }
.reveal-delay-3, .d3 { transition-delay: 0.4s; }
.reveal-delay-4, .d4 { transition-delay: 0.55s; }

/* ---- Keyframe Animations ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

@keyframes streakAnim {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(250%); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rv.on {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Responsive Typography ---- */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  .container,
  .si {
    padding: 0 var(--space-xl);
  }
}

@media (min-width: 1200px) {
  .container,
  .si {
    padding: 0 var(--space-xl);
  }
}

/* ---- Noise Texture Overlay ---- */
.noise-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
