/* =============================================================================
   TYPOGRAPHY.CSS - PulseForce.AI Font System
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Font Family */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes */
  --font-size-h1: 56px;
  --font-size-h1-mobile: 36px;
  --font-size-h2: 44px;
  --font-size-h2-mobile: 28px;
  --font-size-h3: 28px;
  --font-size-h3-mobile: 22px;
  --font-size-h4: 20px;
  --font-size-body: 16px;
  --font-size-body-lg: 18px;
  --font-size-body-sm: 14px;
  --font-size-caption: 12px;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.3;
  --line-height-relaxed: 1.6;
}

/* Base Typography */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-800);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

h1 {
  font-size: var(--font-size-h1-mobile);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-h2-mobile);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-size-h3-mobile);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--color-primary-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-pink);
}

/* Text Highlights */
.highlight--orange {
  color: var(--color-primary-orange);
}

.highlight--pink {
  color: var(--color-primary-pink);
}

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

.highlight--gradient {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight--white {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight--purple-glow {
  color: #D88DA8;
  text-shadow: 0 2px 20px rgba(216, 141, 168, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Boring text - orange color before strikethrough */
.highlight--boring {
  color: var(--color-primary-orange);
  position: relative;
  display: inline-block;
}

/* Strikethrough effect - added dynamically after typing completes */
.highlight--boring.highlight--strikethrough::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 8px;
  background-color: #F97316;
  transform: translateY(-50%);
  animation: strikethroughReveal 1s ease-in-out forwards;
}

@keyframes strikethroughReveal {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Legacy strikethrough class for backwards compatibility */
.highlight--strikethrough:not(.highlight--boring) {
  color: var(--color-primary-orange);
  position: relative;
  display: inline-block;
}

.highlight--strikethrough:not(.highlight--boring)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 4px;
  background: var(--color-primary-orange);
  transform: translateY(-50%);
  animation: strikethrough 0.8s ease-out 1s forwards;
  transform-origin: left;
  opacity: 0;
}

/* Hero Title Animation */
@keyframes strikethrough {
  0% {
    width: 0;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Hero title - no CSS animation, typewriter handles the reveal */
.hero__title {
  opacity: 1;
}

/* Text is revealed by typewriter - no separate fade animations needed */
.hero__title .highlight--boring,
.hero__title .highlight--purple-glow {
  opacity: 1;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: var(--color-white); }
.text-dark { color: var(--color-dark-bg); }
.text-gray { color: var(--color-gray-600); }

.text-lg { font-size: var(--font-size-body-lg); }
.text-sm { font-size: var(--font-size-body-sm); }

.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Desktop Typography */
@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-h1);
  }

  h2 {
    font-size: var(--font-size-h2);
  }

  h3 {
    font-size: var(--font-size-h3);
  }
}
