/* ===================
   FETCHLY THEME
   Forest green + warm amber on cream
   Fonts: Syne (display) + DM Sans (body)
   =================== */

:root {
  --green-deep: #0F2318;
  --green-dark: #1B4332;
  --green-mid: #2D6A4F;
  --amber: #E8A427;
  --amber-light: #F2C94C;
  --amber-dim: #C48F1A;
  --cream: #F9F6F0;
  --cream-dark: #EDE8DF;
  --white: #FFFFFF;
  --text-dark: #0F2318;
  --text-mid: #2D6A4F;
  --text-muted: #6B7F72;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--green-deep); }

/* === TYPOGRAPHY HELPERS === */
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-top: var(--space-4);
}

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(249, 246, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  overflow: hidden;
  background: var(--cream);
}

.hero-rail {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber) 0%, var(--green-dark) 100%);
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--space-16) 5% var(--space-16) 6%;
  gap: var(--space-10);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--green-dark);
  margin-bottom: var(--space-6);
}

.hero-headline em {
  font-style: normal;
  color: var(--amber);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.hero-stat { display: flex; flex-direction: column; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: var(--cream-dark);
}

/* Hero Visual */
.hero-right { position: relative; display: flex; justify-content: center; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.scanner-wrap {
  background: var(--green-deep);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 164, 39, 0.2);
}

.scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 50%, transparent 100%);
  box-shadow: 0 0 20px var(--amber), 0 0 60px rgba(232,164,39,0.4);
  animation: scanDown 3s ease-in-out infinite;
}

@keyframes scanDown {
  0%   { top: 0; opacity: 1; }
  80%  { top: calc(100% - 3px); opacity: 1; }
  100% { top: calc(100% - 3px); opacity: 0; }
}

.job-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.job-card {
  background: rgba(249, 246, 240, 0.06);
  border: 1px solid rgba(232, 164, 39, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  animation: fadeCard 0.4s ease both;
}

.job-card:nth-child(1) { animation-delay: 0.3s; }
.job-card:nth-child(2) { animation-delay: 0.6s; }
.job-card:nth-child(3) { animation-delay: 0.9s; }
.job-card:nth-child(4) { animation-delay: 1.2s; }

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

.jc-source {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.jc-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
}

.jc-co {
  font-size: 0.75rem;
  color: rgba(249, 246, 240, 0.5);
  grid-column: 1;
}

.jc-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  grid-column: 2;
  justify-self: end;
}

.jc-status.applied  { color: #52C97E; }
.jc-status.scanning { color: var(--amber); }
.jc-status.queued   { color: rgba(249,246,240,0.4); }

.scanning-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: 999px;
  border: 1px solid rgba(232,164,39,0.3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

/* === MANIFESTO === */
.manifesto {
  background: var(--green-dark);
  padding: var(--space-16) 5%;
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

.manifesto-bar {
  flex-shrink: 0;
  width: 4px;
  height: 120px;
  background: var(--amber);
  border-radius: 2px;
  margin-top: 4px;
}

.manifesto-body { flex: 1; }

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  font-style: italic;
}

.manifesto-attribution {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* === FEATURES === */
.features {
  padding: var(--space-16) 5%;
  background: var(--cream);
}

.features-header {
  max-width: 680px;
  margin-bottom: var(--space-12);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(232, 164, 39, 0.3);
  box-shadow: 0 8px 32px rgba(27, 67, 50, 0.08);
}

.feature-icon {
  margin-bottom: var(--space-5);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === HOW IT WORKS === */
.howitworks {
  padding: var(--space-16) 5%;
  background: var(--cream-dark);
}

.howitworks-header {
  margin-bottom: var(--space-12);
}

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 900px;
}

.step {
  flex: 1;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
}

.step-connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: var(--amber);
  opacity: 0.5;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(232, 164, 39, 0.25);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === STATS === */
.stats {
  background: var(--green-dark);
  padding: var(--space-12) 5%;
}

.stats-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(249, 246, 240, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-2);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(232, 164, 39, 0.2);
}

/* === CLOSING === */
.closing {
  padding: var(--space-16) 5%;
  background: var(--cream);
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-icon {
  margin: 0 auto var(--space-8);
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.closing-sub {
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.closing-vibe {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
}

/* === FOOTER === */
.site-footer {
  background: var(--green-deep);
  padding: var(--space-10) 5%;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cream);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(249, 246, 240, 0.4);
  margin-bottom: var(--space-3);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(249, 246, 240, 0.25);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-tagline { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    padding: var(--space-10) 5% var(--space-12);
    gap: var(--space-8);
  }

  .hero-right { order: -1; }
  .hero-visual { max-width: 360px; }

  .hero-headline { font-size: 3rem; }

  .manifesto-inner { flex-direction: column; gap: var(--space-5); }
  .manifesto-bar { width: 60px; height: 3px; }

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

  .steps { flex-direction: column; gap: var(--space-4); }
  .step-connector { width: 40px; height: 20px; }

  .stats-inner {
    flex-direction: column;
    gap: var(--space-6);
  }
  .stat-divider { width: 40px; height: 1px; }
}
