/* =============================================
   FORGENEST LABS — SHARED STYLESHEET
   Colors: #F5821F (orange) | #353C47 (charcoal) | #0D0F12 (black)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Barlow:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --orange:      #F5821F;
  --orange-dim:  #C4661A;
  --orange-glow: rgba(245,130,31,0.18);
  --charcoal:    #353C47;
  --charcoal2:   #252B34;
  --dark:        #141820;
  --darker:      #0D0F12;
  --light:       #E8E9EC;
  --mid:         #7A8190;
  --border:      rgba(245,130,31,0.15);
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --font-mono:   'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--darker);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
::selection { background: var(--orange); color: #000; }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 6%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  background: rgba(13,15,18,0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(13,15,18,0.97);
  border-bottom-color: rgba(245,130,31,0.28);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; cursor: pointer; }
.nav-logo:hover { opacity: 0.88; transition: opacity 0.2s; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-family: var(--font-head); font-weight: 900; font-size: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--light);
}
.nav-logo-text span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid);
  position: relative; padding-bottom: 4px; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--orange) !important; color: #000 !important;
  padding: 8px 20px !important; border-radius: 3px !important;
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--orange-dim) !important; color: #fff !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--light);
  transition: all 0.3s; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(13,15,18,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 6%; z-index: 999; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid);
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: color 0.25s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--orange); }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 6% 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 72% 55%, rgba(245,130,31,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 65% at 15% 75%, rgba(53,60,71,0.45) 0%, transparent 60%),
    var(--darker);
}
.hex-grid {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--orange);
  letter-spacing: 0.24em; text-transform: uppercase;
  margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--orange);
}
h1.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  line-height: 0.92; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--light); margin-bottom: 28px;
}
h1.hero-title .accent { color: var(--orange); }
h1.hero-title .dim { color: var(--charcoal); }
.hero-sub {
  font-size: 1.05rem; color: var(--mid);
  max-width: 500px; line-height: 1.8; margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 3px; cursor: pointer;
  transition: all 0.25s; border: none; outline: none;
}
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover {
  background: var(--orange-dim); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(245,130,31,0.38);
}
.btn-outline { background: transparent; color: var(--light); border: 1px solid rgba(255,255,255,0.18); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.72rem; }

/* ---- SECTIONS ---- */
section { padding: 100px 6%; position: relative; }
.section-label {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--orange);
  letter-spacing: 0.24em; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--orange);
}
h2.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--light); margin-bottom: 18px;
}
h2.section-title .accent { color: var(--orange); }
.section-intro {
  font-size: 1rem; color: var(--mid);
  max-width: 580px; line-height: 1.8; margin-bottom: 60px;
}

/* ---- DIVIDER ---- */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,130,31,0.3), transparent);
}

/* ---- CARDS ---- */
.card {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 6px; padding: 36px 30px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: rgba(245,130,31,0.32); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(245,130,31,0.06); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 50px; height: 50px;
  background: rgba(245,130,31,0.1); border: 1px solid rgba(245,130,31,0.22);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; font-size: 1.35rem;
}
.card h3 {
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--light); margin-bottom: 12px;
}
.card p { font-size: 0.91rem; color: var(--mid); line-height: 1.78; }
.card-number {
  position: absolute; bottom: 18px; right: 22px;
  font-family: var(--font-mono); font-size: 2.8rem; color: rgba(245,130,31,0.05);
  pointer-events: none; line-height: 1;
}

/* ---- GRIDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--charcoal2); border: 1px solid var(--border);
  border-radius: 8px; padding: 60px 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--orange);
}
.cta-banner::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(245,130,31,0.04); pointer-events: none;
}
.cta-banner h3 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.4rem); text-transform: uppercase; color: var(--light); margin-bottom: 10px;
}
.cta-banner p { color: var(--mid); max-width: 460px; font-size: 0.94rem; line-height: 1.75; }
.cta-banner-actions { flex-shrink: 0; }

/* ---- STATS ---- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.stat-item {
  padding: 36px 28px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-head); font-weight: 900;
  font-size: 2.6rem; color: var(--orange); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid); font-family: var(--font-head); font-weight: 600;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark); border-top: 1px solid var(--border); padding: 64px 6% 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 0.87rem; color: var(--mid); max-width: 260px; margin-top: 14px; line-height: 1.72; }
.footer-col h4 {
  font-family: var(--font-head); font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--light); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.87rem; color: var(--mid); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.76rem; color: var(--mid); font-family: var(--font-head); letter-spacing: 0.06em;
}
.footer-bottom .accent { color: var(--orange); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  min-height: 44vh; display: flex; align-items: flex-end;
  padding: 150px 6% 64px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 80% at 85% 45%, rgba(245,130,31,0.07) 0%, transparent 70%), var(--darker);
}
.page-hero-content { position: relative; z-index: 2; }

/* ---- SECTION NUMBER INDICATOR ---- */
.section-number {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--mid);
  letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.section-number span {
  color: var(--orange);
}
.section-number::after {
  content: ''; flex: 1; max-width: 40px; height: 1px;
  background: var(--border);
}

/* ---- PIPELINE ---- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 60px;
}
.pipeline-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(245,130,31,0.15), var(--orange));
  z-index: 0;
}
.pipeline-item {
  position: relative; z-index: 1;
  padding: 0 24px 0 0;
  display: flex; flex-direction: column;
}
.pipeline-item:last-child { padding-right: 0; }
.pipeline-node {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--darker); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; position: relative;
  transition: border-color 0.3s;
}
.pipeline-node.active {
  border-color: var(--orange);
  background: rgba(245,130,31,0.06);
  box-shadow: 0 0 28px rgba(245,130,31,0.15);
}
.pipeline-node-num {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.08em; color: var(--mid);
}
.pipeline-node.active .pipeline-node-num { color: var(--orange); }
.pipeline-status {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 10px;
}
.pipeline-status.done { color: #4ade80; }
.pipeline-status.current { color: var(--orange); }
.pipeline-status.upcoming { color: var(--mid); }
.pipeline-phase {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--light);
  margin-bottom: 10px;
}
.pipeline-desc {
  font-size: 0.86rem; color: var(--mid); line-height: 1.7;
}

@media (max-width: 900px) {
  .pipeline-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pipeline-grid::before { display: none; }
}
@media (max-width: 500px) {
  .pipeline-grid { grid-template-columns: 1fr; }
}

/* ---- FORM ---- */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label {
  font-family: var(--font-head); font-weight: 600; font-size: 0.71rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid);
}
.form-group input, .form-group textarea, .form-group select {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 4px; padding: 14px 16px; color: var(--light);
  font-family: var(--font-body); font-size: 0.94rem;
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,130,31,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- REVEAL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 36px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 72px 5%; }
  .hero { padding: 110px 5% 60px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cta-banner { padding: 30px 22px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
}
