/* ==========================================================================
   TheForge Labs — Main Stylesheet
   ========================================================================== */

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

:root {
  /* Core Palette */
  --black: #0B0E14;
  --electric: #3ECFFF;
  --electric-dim: #1BAED8;
  --steel: #6B7A8D;
  --chalk: #F0F4F8;
  --surface: #13181F;
  --surface2: #1A2030;
  --border: #1E2A3A;
  
  /* Accent Colors */
  --success: #34D399;
  --warning: #F9CB42;
  --danger: #E24B4A;
  --purple: #A78BFA;
  
  /* Typography */
  --fs-base: 16px;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-glow: 0 0 40px rgba(62, 207, 255, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--chalk);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--chalk);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-logo span {
  color: var(--electric);
}

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

.nav-links a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--electric);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--chalk);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--electric);
  color: var(--black);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(62, 207, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(62, 207, 255, 0.07) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(62, 207, 255, 0.04) 0%, transparent 70%);
  bottom: -80px;
  left: 10%;
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--electric);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--electric);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--chalk);
  margin-bottom: 1.5rem;
}

h1 .accent {
  color: var(--electric);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--steel);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  background: var(--electric);
  color: var(--black);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(62, 207, 255, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--chalk);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--electric);
  color: var(--electric);
  background: rgba(62, 207, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Hero Visual Card
   -------------------------------------------------------------------------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.health-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.health-card:hover {
  box-shadow: var(--shadow-glow);
}

.hc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hc-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--chalk);
}

.hc-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--electric);
  background: rgba(62, 207, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(62, 207, 255, 0.2);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--steel);
  min-width: 110px;
}

.metric-bar-bg {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s ease;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--chalk);
  min-width: 32px;
  text-align: right;
}

.bar-good { background: var(--electric); }
.bar-ok { background: var(--warning); }
.bar-low { background: var(--danger); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stat-box {
  background: var(--surface2);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--electric);
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--steel);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
}

.marquee-item {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--steel);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--electric);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Sections (Shared)
   -------------------------------------------------------------------------- */
section {
  padding: 100px 5%;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--electric);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--chalk);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--steel);
  max-width: 580px;
  line-height: 1.7;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
#services {
  border-top: 1px solid var(--border);
}

.services-header {
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--black);
  padding: 2rem;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}

.service-card:hover {
  background: var(--surface);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(62, 207, 255, 0.1);
  border: 1px solid rgba(62, 207, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.service-card:hover .service-icon {
  background: rgba(62, 207, 255, 0.15);
  border-color: rgba(62, 207, 255, 0.35);
}

.service-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--electric);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Data Science specific icon color */
.service-card.data-science .service-icon {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

.service-card.data-science .service-icon svg {
  stroke: var(--purple);
}

.service-card.data-science:hover .service-icon {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.35);
}

.service-card.data-science .service-tag {
  color: var(--purple);
  background: rgba(167, 139, 250, 0.08);
}

.service-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 0.5rem;
  letter-spacing: -0.25px;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--steel);
  line-height: 1.6;
}

.service-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--electric);
  background: rgba(62, 207, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Health Check Feature Section
   -------------------------------------------------------------------------- */
#healthcheck {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 3rem;
}

.hc-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hc-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.hc-feature-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--electric);
  background: rgba(62, 207, 255, 0.1);
  border: 1px solid rgba(62, 207, 255, 0.2);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hc-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--chalk);
  margin-bottom: 0.25rem;
}

.hc-feature-text p {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.55;
}

.report-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.report-header {
  background: var(--surface2);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.report-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--chalk);
}

.report-score {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--electric);
}

.report-body {
  padding: 1.25rem;
}

.report-section {
  margin-bottom: 1.25rem;
}

.report-section:last-child {
  margin-bottom: 0;
}

.rs-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.rs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-ok { background: var(--electric); }
.dot-warn { background: var(--warning); }
.dot-bad { background: var(--danger); }

.rs-text {
  color: var(--chalk);
}

.rs-sub {
  color: var(--steel);
  font-size: 0.72rem;
  margin-left: auto;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Process Section
   -------------------------------------------------------------------------- */
#process {
  border-top: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 1px;
  background: linear-gradient(90deg, var(--electric), rgba(62, 207, 255, 0.2));
}

.process-step {
  text-align: center;
  position: relative;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--electric);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, background 0.3s;
}

.step-circle.active {
  border-color: var(--electric);
  background: rgba(62, 207, 255, 0.08);
}

.process-step:hover .step-circle {
  border-color: var(--electric);
  background: rgba(62, 207, 255, 0.05);
}

.step-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--chalk);
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
#stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-big {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -2px;
  color: var(--electric);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   CTA Section with Contact Form
   -------------------------------------------------------------------------- */
#cta {
  background: linear-gradient(135deg, var(--surface) 0%, var(--black) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 207, 255, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#cta .section-title {
  max-width: 600px;
  margin: 0 auto 1rem;
}

#cta .section-sub {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Form Styles */
.contact-form-wrapper {
  max-width: 500px;
  margin: 3rem auto 0;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--chalk);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--steel);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(62, 207, 255, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7A8D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--surface2);
  color: var(--chalk);
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit .btn-primary {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chalk);
  letter-spacing: -0.25px;
}

.footer-logo span {
  color: var(--electric);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--steel);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--chalk);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner,
  .hc-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-grid::before {
    display: none;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .process-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  nav {
    padding: 0 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  section {
    padding: 60px 5%;
  }
  
  .stat-big {
    font-size: 2.5rem;
  }
  
  .contact-form-wrapper {
    margin-top: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smooth page load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text,
.service-card,
.stat-card,
.process-step {
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }
.service-card:nth-child(6) { animation-delay: 0.35s; }
.service-card:nth-child(7) { animation-delay: 0.4s; }
.service-card:nth-child(8) { animation-delay: 0.45s; }
.service-card:nth-child(9) { animation-delay: 0.5s; }
