/* ============================================
   candidate.fyi Landing Page Styles
   Pure CSS - No build step required
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables - Brand Colors */
:root {
  --brand-cream: #FDF2A3;
  --brand-navy: #15004E;
  --brand-accent: #32C2AD;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-cream);
  color: var(--brand-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

strong {
  font-weight: 600;
}

/* Layout */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  padding: 2rem 1.5rem 0;
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  margin-left: calc((100% - 80rem) / 2 - 50px);
}

.header-logo {
  height: 3rem;
  width: auto;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 1.5rem;
  }
}

.section-center {
  text-align: center;
}

/* Text Colors */
.text-navy { color: var(--brand-navy); }
.text-accent { color: var(--brand-accent); }
.text-navy-70 { color: rgba(21, 0, 78, 0.7); }
.text-navy-60 { color: rgba(21, 0, 78, 0.6); }
.text-navy-40 { color: rgba(21, 0, 78, 0.4); }

/* Background Colors */
.bg-cream { background-color: var(--brand-cream); }
.bg-navy { background-color: var(--brand-navy); }
.bg-accent { background-color: var(--brand-accent); }
.bg-white { background-color: white; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-accent);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: white;
  color: var(--brand-navy);
  border: 1px solid rgba(21, 0, 78, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(21, 0, 78, 0.05);
}

/* Cards */
.card {
  background: white;
  border: 1px solid rgba(21, 0, 78, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-lg {
  border-radius: 1.5rem;
  padding: 2.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: white;
  color: var(--brand-navy);
  border: 1px solid rgba(21, 0, 78, 0.1);
}

.badge-accent {
  background-color: rgba(50, 194, 173, 0.1);
  color: var(--brand-accent);
  border-color: rgba(50, 194, 173, 0.2);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

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

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(21, 0, 78, 0.1);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(21, 0, 78, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-navy);
  border-radius: 4px;
}

/* ============================================
   Animations
   ============================================ */

/* Fade Up Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bar Grow Animation */
@keyframes barGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* Animation Classes - Initial State */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation-fill-mode: forwards;
}

/* Animation Types */
.animate-fade-up.animated {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in.animated {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-right.animated {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Animation Delays */
.delay-100.animated { animation-delay: 0.1s; }
.delay-200.animated { animation-delay: 0.2s; }
.delay-300.animated { animation-delay: 0.3s; }
.delay-400.animated { animation-delay: 0.4s; }
.delay-500.animated { animation-delay: 0.5s; }
.delay-600.animated { animation-delay: 0.6s; }
.delay-700.animated { animation-delay: 0.7s; }
.delay-800.animated { animation-delay: 0.8s; }

/* Bar Chart Animation */
.bar-animate {
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1s ease-out;
}

.bar-animate.animated {
  transform: scaleY(1);
}

/* HubSpot Form Container */
.hubspot-form-container {
  min-height: 300px;
}

/* Responsive text */
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

@media (min-width: 768px) {
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-5xl { font-size: 3rem; }
}

/* Font weights */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Leading */
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
