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

:root {
  --orange: #E8843A;
  --orange-bright: #F59140;
  --orange-dim: rgba(232, 132, 58, 0.12);
  --orange-glow: rgba(232, 132, 58, 0.25);
  --black: #080808;
  --dark: #0F0F0F;
  --dark-2: #141414;
  --dark-3: #1C1C1C;
  --steel: #242424;
  --mid: #2E2E2E;
  --muted: rgba(255,255,255,0.38);
  --soft: rgba(255,255,255,0.58);
  --bright: rgba(255,255,255,0.88);
  --white: #FFFFFF;
  --light-bg: #F5F4F2;
  --light-2: #EDECEA;
  --ink: #181818;
  --ink-mid: #3A3A3A;
  --ink-muted: #7A7A7A;
  --font-display: 'Bebas Neue', 'Outfit', sans-serif;
  --font: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

a { text-decoration: none; color: inherit; }

/* ===== Scroll Progress ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--orange-glow);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 0;
  transition: all 0.5s var(--ease);
}

.nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.5s var(--ease);
  pointer-events: none;
}

.nav-scrolled {
  padding: 16px 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

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

.nav-logo-img {
  height: 90px;
  width: auto;
  content: url('mechion_negative.svg');
  transition: all 0.3s;
}

.nav-scrolled .nav-logo-img {
  content: url('mechion_negative.svg');
  filter: none;
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-links a:last-child {
  color: var(--white);
  background: var(--orange);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 1.2px;
  transition: all 0.3s var(--ease);
}

.nav-links a:last-child::after { display: none; }

.nav-links a:last-child:hover {
  background: var(--orange-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--orange-glow);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.55;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,8,8,1) 0%, rgba(8,8,8,0.6) 35%, rgba(8,8,8,0.1) 100%),
    linear-gradient(to right, rgba(8,8,8,0.75) 0%, rgba(8,8,8,0.2) 60%, transparent 100%);
}

/* Schematic grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,132,58,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,132,58,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 100px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 32px;
  font-family: var(--mono);
}

.hero-overline::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--orange);
}

.hero-title {
  font-size: clamp(60px, 10vw, 116px);
  font-weight: 800;
  color: var(--white);
  line-height: 0.92;
  letter-spacing: -3px;
  margin-bottom: 32px;
  max-width: 800px;
}

.hero-title em {
  font-style: normal;
  color: var(--orange);
}

.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 52px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-hero:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px var(--orange-glow);
}

.btn-hero:hover::after { opacity: 1; }

.btn-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.35s var(--ease);
  background: transparent;
}

.btn-hero-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-hero-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn-hero-link:hover .arrow { transform: translateX(5px); }

/* Hero stats row */
.hero-stats {
  position: absolute;
  bottom: 0; right: 0;
  display: flex;
  z-index: 2;
}

.hero-stat {
  padding: 32px 40px;
  border-left: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.hero-stat-num span { color: var(--orange); }

.hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5) translateY(-8px); }
  50% { opacity: 0.9; transform: scaleY(1) translateY(0); }
}

/* ===== Sections ===== */
.section-dark {
  padding: 140px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,132,58,0.3), transparent);
}

.section-light {
  padding: 140px 0;
  background: var(--light-bg);
  position: relative;
}

.section-contact {
  padding: 140px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,132,58,0.3), transparent);
}

/* Section labels */
.section-overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--mono);
}

.section-overline::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -1.5px;
  margin-bottom: 72px;
}

.section-dark .section-title { color: var(--white); }
.section-light .section-title { color: var(--ink); }
.section-contact .section-title { color: var(--white); }

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.40s; }
.cert-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cert-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.contact-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.contact-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.contact-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--soft);
  margin-bottom: 24px;
  line-height: 1.85;
  font-weight: 300;
}

.about-text p strong {
  color: var(--white);
  font-weight: 600;
}

.about-visual { position: relative; }

/* Big decorative number */
.visual-card {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  padding: 56px 48px;
  overflow: hidden;
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.visual-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--orange-dim), transparent 70%);
}

.visual-number {
  font-size: 100px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -4px;
}

.visual-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.visual-line {
  width: 40px;
  height: 1px;
  background: var(--orange);
  margin-bottom: 20px;
  opacity: 0.6;
}

.visual-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* About facts row */
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 48px;
  overflow: hidden;
}

.about-fact {
  background: var(--dark);
  padding: 28px 24px;
  text-align: center;
}

.about-fact-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.about-fact-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light-2);
}

.service {
  background: var(--white);
  padding: 52px 40px;
  transition: all 0.4s var(--ease);
  position: relative;
  cursor: default;
}

.service::after {
  content: '';
  position: absolute;
  bottom: 0; left: 40px; right: 40px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service:hover { background: var(--ink); }
.service:hover::after { transform: scaleX(1); }

.service-number {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: var(--mono);
  transition: color 0.3s;
}

.service:hover .service-number { color: var(--orange); }

.service h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  transition: color 0.3s;
  line-height: 1.3;
}

.service:hover h3 { color: var(--white); }

.service p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.8;
  transition: color 0.3s;
  font-weight: 300;
}

.service:hover p { color: rgba(255,255,255,0.5); }

/* Service icon area */
.service-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--light-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s;
  font-size: 18px;
}

.service:hover .service-icon {
  border-color: var(--orange);
  background: var(--orange-dim);
}

/* ===== Certifications ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  padding: 56px 40px;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.cert::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.cert:hover::before { transform: scaleX(1); }

.cert:hover {
  border-color: rgba(232,132,58,0.2);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.cert-badge {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  position: relative;
}

.cert-badge-ring {
  width: 80px; height: 80px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: cert-pulse 3.5s ease-in-out infinite;
}

.cert-badge-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--orange-dim);
}

.cert-badge-text {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.3;
}

@keyframes cert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--orange-dim); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.cert h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cert p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ===== Industries Banner ===== */
.industries-section {
  padding: 80px 0;
  background: var(--orange);
  overflow: hidden;
  position: relative;
}

.industries-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.industries-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  font-family: var(--mono);
}

.industries-track {
  display: flex;
  gap: 0;
  overflow: hidden;
  flex: 1;
}

.industries-scroll {
  display: flex;
  gap: 48px;
  animation: scroll-industries 22s linear infinite;
  white-space: nowrap;
}

.industry-item {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
}

.industry-item::after {
  content: '—';
  opacity: 0.4;
  font-weight: 300;
}

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

/* ===== Contact Section ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-intro p {
  font-size: 16px;
  color: var(--soft);
  line-height: 1.85;
  margin-bottom: 40px;
  font-weight: 300;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--orange);
  color: var(--white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
}

.contact-cta:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--orange-glow);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 32px 36px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.35s var(--ease);
  border-radius: 2px;
}

.contact:hover {
  border-color: rgba(232,132,58,0.2);
  background: var(--dark-3);
}

.contact-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange-dim);
  border: 1px solid rgba(232,132,58,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-body {}

.contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--mono);
}

.contact-value {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.75;
  font-weight: 300;
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.3px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* ===== Background Decorations ===== */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-dim), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-stats { display: none; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1.5px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-hero, .btn-hero-link { width: 100%; max-width: 320px; justify-content: center; }
  .section-dark, .section-light, .section-contact { padding: 88px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .section-title { margin-bottom: 48px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero-content { padding: 0 20px 80px; }
  .industries-section { padding: 48px 0; }
  .contact-wrapper { gap: 40px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 52px; }
}