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

/* =====================
   ROOT VARIABLES
   ===================== */
:root {
  --red: #F02C2C;
  --white: #FFF4F4;
  --offwhite: #F7F5F2;
  --black: #000000;
  --dark: #080808;
  --light: #F7F5F2;
  --charcoal: #1a1a1a;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; overflow-x: hidden; background: var(--black); color: var(--white); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* =====================
   UNIVERSAL BUTTON EFFECT
   ===================== */
.btn {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--red);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .3s;
  background: transparent;
  color: var(--red);
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform .3s ease;
  z-index: -1;
}
.btn:hover { color: var(--white); }
.btn:hover::before { transform: translateX(0); }

.btn-solid {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
}
.btn-solid::before { background: #cc2020; }
.btn-solid:hover { color: var(--white); }

.btn-white-outline {
  color: var(--white);
  border-color: #333;
}
.btn-white-outline::before { background: var(--red); }
.btn-white-outline:hover { border-color: var(--red); }

.btn-white-fill {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white-fill::before { background: var(--black); }
.btn-white-fill:hover { color: var(--white); border-color: var(--black); }

.btn-full { width: 100%; text-align: center; clip-path: none; }

/* =====================
   NAVIGATION
   ===================== */
.site-nav {
  background: rgba(0,0,0,0.97);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #111;
  transition: background .3s, box-shadow .3s;
}
.site-nav.scrolled {
  background: rgba(0,0,0,0.99);
  box-shadow: 0 2px 40px rgba(240,44,44,0.08);
}
.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  animation: navline 1.5s ease forwards .3s;
}
@keyframes navline { to { width: 100%; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}
.nav-logo-arrows { display: flex; gap: 3px; }
.arr1 { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid rgba(255,244,244,0.4); }
.arr2 { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid var(--white); }
.nav-logo-text { font-family: 'Space Mono', monospace; font-size: 16px; font-weight: 700; letter-spacing: 5px; color: var(--white); }
.nav-logo-sub { font-size: 9px; letter-spacing: 3px; color: #444; margin-top: 2px; font-family: 'Space Mono', monospace; }

.nav-menu { display: flex; gap: 12px; list-style: none; }
.nav-menu a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  padding: 8px 16px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: color .3s, border-color .3s;
  cursor: pointer;
  display: block;
}
.nav-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform .3s;
  z-index: -1;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); border-color: var(--red); }
.nav-menu a:hover::before, .nav-menu a.active::before { transform: translateX(0); }

.nav-cta-wrap { display: flex; align-items: center; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all .3s; }
.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 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px; left: 0; right: 0;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-bottom: 2px solid var(--red);
  opacity: 0;
  transform: translateY(-10px);
  transition: all .3s;
}
.mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  padding: 14px 16px;
  border: 1px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  transition: color .3s;
  display: block;
}
.mobile-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform .3s;
  z-index: -1;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu a:hover::before { transform: translateX(0); }

/* =====================
   PAGE WRAP
   ===================== */
.page-wrap { margin-top: 73px; }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 500px;
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240,44,44,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,44,44,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: scan 3s linear infinite;
  opacity: 0.3;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }
.hero-content { position: relative; z-index: 2; max-width: 580px; }
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 5px;
  color: var(--red); margin-bottom: 24px;
  opacity: 0; animation: fadein .8s ease forwards .3s;
}
.hero-h1 {
  font-size: 50px; font-weight: 900;
  line-height: 1.05; margin-bottom: 28px;
  text-transform: uppercase; color: var(--white);
  opacity: 0; animation: slidein .8s ease forwards .5s;
}
.hero-h1 .accent { color: var(--red); }
.hero-sub {
  color: #555; font-size: 14px; line-height: 1.9;
  margin-bottom: 40px; max-width: 480px;
  opacity: 0; animation: fadein .8s ease forwards .9s;
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadein .8s ease forwards 1.1s;
}
.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 42%; display: flex; align-items: center; justify-content: center;
}
.pulse-ring {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(240,44,44,0.15);
  animation: pulse 2.5s ease-out infinite;
}
.pulse-ring:nth-child(2) { animation-delay: .8s; width: 200px; height: 200px; }
.pulse-ring:nth-child(3) { animation-delay: 1.6s; width: 120px; height: 120px; }
@keyframes pulse { 0% { transform: scale(.8); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.hero-icon {
  width: 72px; height: 72px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
  animation: iconpulse 2s ease-in-out infinite; z-index: 2;
}
@keyframes iconpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.hero-icon-arrows { display: flex; gap: 3px; }
.ico-arr1 { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 18px solid rgba(255,244,244,0.4); }
.ico-arr2 { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 18px solid var(--white); }

@keyframes fadein { to { opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =====================
   TICKER
   ===================== */
.ticker { background: var(--red); padding: 10px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-block; animation: ticker 22s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 3px; color: var(--white); padding: 0 40px; text-transform: uppercase; }
.ticker-dot { color: rgba(255,244,244,0.4); }

/* =====================
   STATS
   ===================== */
.stats { background: var(--light); padding: 48px 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border-top: 3px solid var(--red); }
.stat { padding: 28px; text-align: center; position: relative; overflow: hidden; border-right: 1px solid #e0ddd9; }
.stat:last-child { border-right: none; }
.stat::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .4s ease; }
.stat:hover::before { transform: scaleY(1); }
.stat-n { font-family: 'Space Mono', monospace; font-size: 38px; font-weight: 700; color: var(--red); position: relative; z-index: 1; transition: color .4s; }
.stat:hover .stat-n { color: var(--white); }
.stat-l { font-size: 10px; letter-spacing: 3px; color: #999; margin-top: 6px; text-transform: uppercase; position: relative; z-index: 1; transition: color .4s; }
.stat:hover .stat-l { color: rgba(255,244,244,0.8); }

/* =====================
   SECTION LABELS
   ===================== */
.section-tag { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 4px; color: var(--red); margin-bottom: 8px; text-transform: uppercase; }
.section-h2-light { font-size: 32px; font-weight: 900; text-transform: uppercase; color: var(--white); line-height: 1.1; margin-bottom: 48px; }
.section-h2-dark { font-size: 32px; font-weight: 900; text-transform: uppercase; color: #111; line-height: 1.1; margin-bottom: 48px; }

/* =====================
   SERVICES
   ===================== */
.services { background: var(--light); padding: 80px 40px; border-top: 1px solid #e8e5e1; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: #ddd; }
.svc { background: var(--light); padding: 32px; position: relative; overflow: hidden; cursor: default; transition: background .3s; }
.svc::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--red); transition: height .4s ease; }
.svc:hover { background: #fff; }
.svc:hover::before { height: 100%; }
.svc-num { font-family: 'Space Mono', monospace; font-size: 10px; color: #ccc; letter-spacing: 2px; margin-bottom: 16px; transition: color .3s; }
.svc:hover .svc-num { color: var(--red); }
.svc-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #111; margin-bottom: 10px; }
.svc-p { font-size: 13px; color: #888; line-height: 1.7; }

/* =====================
   ABOUT
   ===================== */
.about { background: var(--black); padding: 80px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acard { background: #080808; padding: 24px; border: 1px solid #111; position: relative; overflow: hidden; transition: border-color .3s; }
.acard::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .4s; transform-origin: left; }
.acard:hover { border-color: #222; }
.acard:hover::after { transform: scaleX(1); }
.acard-h { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--white); font-weight: 700; margin-bottom: 8px; letter-spacing: 1px; }
.acard-p { font-size: 12px; color: #444; line-height: 1.6; }
.about-p { color: #444; font-size: 14px; line-height: 1.9; margin-bottom: 16px; }

/* =====================
   SECTORS
   ===================== */
.sectors { background: var(--offwhite); padding: 80px 40px; border-top: 1px solid #e0ddd9; }
.sectors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 40px; }
.sector { background: #fff; padding: 36px 20px; text-align: center; border: 1px solid #e8e5e1; position: relative; overflow: hidden; transition: all .3s; cursor: default; }
.sector::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: translateY(100%); transition: transform .4s ease; }
.sector:hover { border-color: var(--red); }
.sector:hover::before { transform: translateY(0); }
.sector i { color: var(--red); font-size: 32px; margin-bottom: 16px; display: block; position: relative; z-index: 1; transition: color .4s; }
.sector:hover i { color: var(--white); }
.sector-h { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #999; position: relative; z-index: 1; transition: color .4s; }
.sector:hover .sector-h { color: var(--white); }

/* =====================
   CTA STRIP
   ===================== */
.cta-strip { background: var(--red); padding: 80px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px); background-size: 40px 40px; }
.cta-h { font-size: 36px; font-weight: 900; text-transform: uppercase; color: var(--white); margin-bottom: 12px; position: relative; }
.cta-tagline { font-family: 'Space Mono', monospace; font-size: 12px; color: rgba(255,244,244,0.7); margin-bottom: 36px; letter-spacing: 2px; position: relative; }

/* =====================
   CONTACT
   ===================== */
.contact { background: var(--light); padding: 80px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid #e0ddd9; }
.contact-sub { color: #999; font-size: 13px; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-row { display: flex; align-items: center; gap: 14px; color: #888; font-size: 13px; font-family: 'Space Mono', monospace; transition: color .3s; }
.contact-info-row:hover { color: var(--red); }
.contact-info-row i { color: var(--red); font-size: 16px; min-width: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input,
.contact-form textarea { background: #fff; border: 1px solid #ddd; color: #111; padding: 14px 18px; font-size: 13px; width: 100%; outline: none; font-family: 'Inter', sans-serif; transition: border-color .3s; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { height: 100px; resize: none; }
.contact-form ::placeholder { color: #bbb; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 1px; }

/* =====================
   FOOTER
   ===================== */
.site-footer { background: var(--black); padding: 24px 40px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #111; flex-wrap: wrap; gap: 12px; }
.footer-l { font-family: 'Space Mono', monospace; color: #333; font-size: 10px; letter-spacing: 1px; }
.footer-r { font-family: 'Space Mono', monospace; color: var(--red); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .site-nav { padding: 16px 24px; }
  .nav-menu { display: none; }
  .nav-cta-wrap { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 24px; flex-direction: column; }
  .hero-visual { display: none; }
  .hero-h1 { font-size: 36px; }
  .stats { padding: 32px 24px; }
  .stat-n { font-size: 28px; }
  .services { padding: 60px 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .section-h2-dark, .section-h2-light { font-size: 24px; }
  .about { padding: 60px 24px; grid-template-columns: 1fr; gap: 40px; }
  .sectors { padding: 60px 24px; }
  .sectors-grid { grid-template-columns: repeat(2,1fr); }
  .cta-strip { padding: 60px 24px; }
  .cta-h { font-size: 26px; }
  .contact { padding: 60px 24px; grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding: 20px 24px; }
}

@media (max-width: 520px) {
  .hero-h1 { font-size: 28px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 3px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; text-align: center; clip-path: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid #e0ddd9; }
  .cta-h { font-size: 22px; }
  .section-h2-dark, .section-h2-light { font-size: 20px; }
  .cta-strip { padding: 40px 24px; }
}
.form-message {
  display: none;
  padding: 16px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.6;
  border-left: 3px solid;
  margin-bottom: 12px;
}
.form-message.success {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #15803d;
}
.form-message.error {
  background: #fef2f2;
  border-color: #F02C2C;
  color: #b91c1c;
}
.field-error { border-color: #F02C2C !important; background: #fff8f8 !important; }
.field-error-msg {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #F02C2C;
  letter-spacing: 1px;
  margin-top: 4px;
  margin-bottom: 4px;
}