/* =========================================================
   FORGED TECHNOLOGIES — Complete Stylesheet
   3-page static site: homepage, case study, about
   ========================================================= */

/* ---------------------------------------------------------
   1. Reset and Base
   --------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------
   2. Container
   --------------------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   3. Navigation
   --------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

nav.nav-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #1f1f1f;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e0e0e0;
  text-decoration: none;
}

.logo span {
  color: #606060;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #909090;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: white;
  color: #0a0a0a;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: #e0e0e0;
  color: #0a0a0a;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 20px;
  gap: 16px;
  border-bottom: 1px solid #1f1f1f;
}

.mobile-menu a {
  color: #909090;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: white;
}

/* ---------------------------------------------------------
   4. Hero
   --------------------------------------------------------- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: #0a0a0a;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
}

.hero-sub {
  font-size: 18px;
  color: #909090;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #0a0a0a;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #222;
  border-color: #3a3a3a;
}

/* ---------------------------------------------------------
   5. Stats Bar
   --------------------------------------------------------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat-card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
  min-width: 160px;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: #3a3a3a;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-value.blue  { color: #3b82f6; }
.stat-value.green  { color: #22c55e; }
.stat-value.orange { color: #f97316; }
.stat-value.purple { color: #a855f7; }

.stat-label {
  font-size: 11px;
  color: #606060;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ---------------------------------------------------------
   6. Section Bases
   --------------------------------------------------------- */
.section-light {
  background: #fafafa;
  color: #1a1a1a;
  padding: 80px 0;
}

.section-dark {
  background: #0a0a0a;
  padding: 80px 0;
}

.section-light h2,
.section-dark h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-light h2 { color: #0a0a0a; }
.section-dark h2  { color: white; }

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-align: center;
}

.section-label.blue   { color: #3b82f6; }
.section-label.green  { color: #22c55e; }
.section-label.orange { color: #f97316; }

.section-sub {
  text-align: center;
  color: #606060;
  font-size: 17px;
  max-width: 560px;
  margin: -4px auto 48px;
}

/* ---------------------------------------------------------
   7. Pain Point Cards
   --------------------------------------------------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
}

.pain-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.pain-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 15px;
  color: #606060;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   8. Flow Steps
   --------------------------------------------------------- */
.flow-steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #161616;
  border: 2px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: #3b82f6;
}

.flow-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e0e0e0;
}

.flow-step p {
  font-size: 13px;
  color: #606060;
  line-height: 1.5;
}

.step-connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 2px;
  background: #2a2a2a;
}

.flow-step:last-child .step-connector {
  display: none;
}

.tech-callout {
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  color: #606060;
  font-size: 14px;
  margin-top: 48px;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   9. Architecture Diagram
   --------------------------------------------------------- */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 20px 0;
}

.arch-box {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  min-width: 180px;
  flex-shrink: 0;
}

.arch-box.accent {
  border-top: 3px solid #3b82f6;
}

.arch-box-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.arch-box-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-box-items span {
  font-size: 13px;
  color: #606060;
  font-family: 'JetBrains Mono', monospace;
}

.arch-arrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
  min-width: 120px;
}

.arch-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.arch-arrow.right {
  flex-direction: row;
}

.arch-arrow.left {
  flex-direction: row-reverse;
}

.arch-arrow::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #2a2a2a;
}

.arch-arrow-label {
  font-size: 10px;
  color: #606060;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.arch-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.arch-feature {
  text-align: center;
}

.arch-feature h4 {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.arch-feature p {
  font-size: 13px;
  color: #606060;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   10. Pricing
   --------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: all 0.2s;
}

.pricing-card.featured {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6, 0 8px 30px rgba(59, 130, 246, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.price {
  font-size: 40px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
  display: block;
}

.pricing-timeline {
  font-size: 13px;
  color: #909090;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card li:last-child {
  border-bottom: none;
}

.check {
  color: #22c55e;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}

.pricing-cta.primary {
  background: #0a0a0a;
  color: white;
}

.pricing-cta.primary:hover {
  background: #222;
}

.pricing-cta.outline {
  background: white;
  color: #0a0a0a;
  border: 1px solid #d0d0d0;
}

.pricing-cta.outline:hover {
  border-color: #999;
}

.pricing-note {
  text-align: center;
  font-style: italic;
  color: #606060;
  font-size: 15px;
  max-width: 600px;
  margin: 32px auto 0;
}

/* ---------------------------------------------------------
   11. Results Grid
   --------------------------------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.result-card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.result-before {
  font-size: 13px;
  color: #606060;
}

.result-after {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: -0.02em;
  display: block;
}

.result-after.blue   { color: #3b82f6; }
.result-after.green  { color: #22c55e; }
.result-after.orange { color: #f97316; }
.result-after.purple { color: #a855f7; }

.result-label {
  font-size: 12px;
  color: #909090;
}

/* ---------------------------------------------------------
   12. Testimonial
   --------------------------------------------------------- */
.testimonial {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-size: 20px;
  color: #e0e0e0;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}

.testimonial blockquote::before {
  content: '\201C';
  font-size: 60px;
  color: #2a2a2a;
  position: absolute;
  top: -20px;
  left: -10px;
  font-style: normal;
  line-height: 1;
}

.testimonial cite {
  font-size: 14px;
  color: #606060;
  font-style: normal;
}

/* ---------------------------------------------------------
   13. About Snapshot
   --------------------------------------------------------- */
.about-snapshot {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-snapshot h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.about-snapshot p {
  font-size: 17px;
  color: #606060;
  margin-bottom: 12px;
}

.about-snapshot .about-company {
  font-size: 14px;
  color: #909090;
  margin-bottom: 16px;
}

/* ---------------------------------------------------------
   14. CTA Section
   --------------------------------------------------------- */
.cta-section {
  background: #0a0a0a;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59,130,246,0.08) 0%, transparent 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid #1f1f1f;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: white;
}

.cta-section p {
  color: #909090;
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-section .contact-email {
  margin-top: 20px;
  margin-bottom: 0;
  color: #606060;
  font-size: 14px;
}

.contact-email a {
  color: #3b82f6;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   15. Text Links
   --------------------------------------------------------- */
.text-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link.dark {
  color: #3b82f6;
}

/* ---------------------------------------------------------
   16. Footer
   --------------------------------------------------------- */
footer {
  background: #0a0a0a;
  border-top: 1px solid #1f1f1f;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #606060;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #606060;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #909090;
}

.footer-sep {
  color: #2a2a2a;
}

/* ---------------------------------------------------------
   17. Case Study Page Specific
   --------------------------------------------------------- */
.case-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.case-meta-item {
  text-align: center;
}

.meta-label {
  display: block;
  font-size: 12px;
  color: #606060;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meta-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-top: 4px;
}

.case-content {
  max-width: 700px;
  margin: 0 auto;
}

.case-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}

.case-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 24px 0 12px;
}

.case-content p {
  font-size: 16px;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.7;
}

.case-content ul,
.case-content ol {
  padding-left: 20px;
  color: #444;
  margin-bottom: 16px;
}

.case-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}


.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  font-size: 17px;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-values h4 {
  color: #0a0a0a;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
}

.about-values p {
  color: #606060;
  margin-bottom: 24px;
  font-size: 16px;
}

/* ---------------------------------------------------------
   19. Page Hero for Subpages
   --------------------------------------------------------- */
.page-hero {
  background: #0a0a0a;
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero h1,
.page-hero h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: #909090;
  font-size: 18px;
}

/* ---------------------------------------------------------
   20. Responsive — 768px breakpoint
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    flex-direction: column;
    gap: 32px;
  }

  .step-connector {
    display: none;
  }

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

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

  .stats-bar {
    flex-direction: column;
    align-items: center;
  }

  .arch-diagram {
    flex-direction: column;
    gap: 16px;
  }

  .arch-arrows {
    flex-direction: row;
    padding: 8px 0;
    min-width: auto;
  }

  .arch-arrow.right,
  .arch-arrow.left {
    flex-direction: column;
  }

  .arch-features {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .case-meta {
    gap: 20px;
  }

  .page-hero {
    padding-top: 100px;
  }

  .section-light,
  .section-dark {
    padding: 60px 0;
  }
}
