/* ============================================
   FaceFact — AI Emotion Scanner
   Colors: clinical white, electric blue accent,
   cool grays. Light-mode tech aesthetic.
   ============================================ */

/* --- Reset & Base --- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #1A1A2E;
  background-color: #FAFBFC;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Focus --- */

:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 3px;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0F172A;
}

a {
  color: #2563EB;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1D4ED8;
}

code, .mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* --- Layout --- */

.section {
  padding: 4rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

/* --- Dividers --- */

.divider {
  border: none;
  border-top: 1px solid #E2E8F0;
  max-width: 64rem;
  margin: 0 auto;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.nav-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.125rem;
  color: #0F172A;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand:hover {
  color: #0F172A;
}

.nav-brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #2563EB;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748B;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2563EB;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 6rem 1.25rem 4rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-inner {
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563EB;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-badge-pulse {
  width: 6px;
  height: 6px;
  background-color: #2563EB;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #0F172A;
  margin-bottom: 1.5rem;
}

.hero-heading em {
  font-style: normal;
  color: #2563EB;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.65;
  color: #64748B;
  max-width: 38rem;
  font-weight: 400;
}

/* ============================================
   Scan Output — Feature Demo
   ============================================ */

.scan-section {
  background-color: #F1F5F9;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.scan-inner {
  padding: 4rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

.scan-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 2rem;
}

.scan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.scan-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scan-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}

.scan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.scan-card-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.06em;
}

.scan-card-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #16A34A;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.scan-card-status::before {
  content: "";
  width: 5px;
  height: 5px;
  background-color: #16A34A;
  border-radius: 50%;
}

.scan-card-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.scan-card-desc {
  font-size: 0.9375rem;
  color: #64748B;
  line-height: 1.6;
}

/* ============================================
   How It Works
   ============================================ */

.how-section .section-heading {
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: #64748B;
  max-width: 36rem;
  margin-bottom: 3rem;
  line-height: 1.65;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  counter-reset: step-counter;
}

.step-item {
  counter-increment: step-counter;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563EB;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 0.9375rem;
  color: #64748B;
  line-height: 1.6;
}

/* ============================================
   Report Card — Weekly Summary
   ============================================ */

.report-section {
  background-color: #0F172A;
  border-top: 1px solid #1E293B;
  border-bottom: 1px solid #1E293B;
}

.report-inner {
  padding: 4rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

.report-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 1rem;
}

.report-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #F8FAFC;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.report-sub {
  font-size: 1rem;
  color: #64748B;
  max-width: 38rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.report-stat {
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1.5rem;
}

.report-stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.report-stat-value .accent {
  color: #2563EB;
}

.report-stat-label {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.5;
}

.report-stat-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
  background-color: #0F172A;
  border: 1px solid #334155;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.75rem;
}

/* ============================================
   Testimonials
   ============================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.review-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1.5rem;
}

.review-text {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: normal;
}

.review-attr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0F172A;
}

.review-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.04em;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.cta-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.cta-button {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #FFFFFF;
  background-color: #2563EB;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #1D4ED8;
  color: #FFFFFF;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid #E2E8F0;
  padding: 2.5rem 1.25rem;
}

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

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-dot {
  width: 8px;
  height: 8px;
  background-color: #2563EB;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #2563EB;
}

.footer-rule {
  border-top: 1px solid #E2E8F0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #94A3B8;
}

.footer-credit {
  font-size: 0.8125rem;
  color: #94A3B8;
}

.footer-credit a {
  color: #64748B;
  text-decoration: underline;
  text-decoration-color: #CBD5E1;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: #2563EB;
  text-decoration-color: #2563EB;
}

/* ============================================
   Responsive — 640px+
   ============================================ */

@media (min-width: 640px) {
  .section {
    padding: 5rem 2rem;
  }

  .nav {
    padding: 1rem 2rem;
  }

  .hero {
    padding: 8rem 2rem 5rem;
  }

  .scan-inner,
  .report-inner {
    padding: 5rem 2rem;
  }

  .scan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    padding: 2.5rem 2rem;
  }
}

/* ============================================
   Responsive — 900px+
   ============================================ */

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

  .hero {
    padding: 10rem 2rem 6rem;
  }

  .scan-inner,
  .report-inner {
    padding: 6rem 2rem;
  }

  .scan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .report-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    gap: 2.25rem;
  }

  .steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* Mobile nav fix — hide cramming link list on phones (brand stays) */
@media (max-width: 639px) {
  .nav-links { display: none; }
}
