/* ═══════════════════════════════════════════════════════════
   RAZE DEFENCE — Brand-compliant stylesheet
   Fonts: Michroma (display), Barlow (body), Source Code Pro (data)
   Colors: Charcoal #3A3A3A, Silver #A8A9AD, Crimson #8B1A1A,
           Ice White #F0F2F5, White #FFFFFF, Gunmetal #2B2D33
   ═══════════════════════════════════════════════════════════ */

/* ── Font Faces ── */
@font-face {
  font-family: 'Michroma';
  src: url('../fonts/Michroma-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Source Code Pro';
  src: url('../fonts/SourceCodePro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Source Code Pro';
  src: url('../fonts/SourceCodePro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

/* ── Variables ── */
:root {
  --charcoal: #3A3A3A;
  --silver: #A8A9AD;
  --crimson: #8B1A1A;
  --ice-white: #F0F2F5;
  --white: #FFFFFF;
  --gunmetal: #2B2D33;

  --font-display: 'Michroma', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ice-white);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* ── Typography (from brand type scale) ── */
.display {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
}

h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
}

h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.overline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--crimson);
}

.body-large {
  font-size: 18px;
  line-height: 1.6;
}

.body-emphasis {
  font-weight: 600;
  line-height: 1.6;
}

.caption {
  font-size: 14px;
  line-height: 1.5;
}

.code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(240, 242, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 169, 173, 0.2);
  transition: background 0.3s ease;
}

.nav--scrolled {
  background: rgba(240, 242, 245, 0.97);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav__logo {
  height: 48px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--charcoal);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width 0.25s ease;
}

.nav__link:hover {
  color: var(--crimson);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile menu button */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gunmetal);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Geometric grid pattern evoking precision optics */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      var(--gunmetal) 0%,
      #1a1b1f 30%,
      #2B2D33 60%,
      #1f2025 100%
    );
}

/* Crimson accent beam */
.hero__beam {
  position: absolute;
  top: 0;
  right: 15%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(139, 26, 26, 0.4) 30%,
    rgba(139, 26, 26, 0.15) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero__beam--2 {
  right: 14.5%;
  opacity: 0.3;
  width: 2px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 32px 80px;
  width: 100%;
}

.hero__overline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--crimson);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--ice-white);
  margin-bottom: 32px;
  max-width: 700px;
  line-height: 1.2;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.hero__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--silver);
  max-width: 600px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero__cta {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ice-white);
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.65s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.9s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--crimson), transparent);
  margin: 0 auto 8px;
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
}

/* ── Mission Section ── */
.mission {
  padding: 120px 32px;
  background: var(--ice-white);
}

.mission__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mission__overline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--crimson);
  margin-bottom: 16px;
}

.mission__heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--charcoal);
  margin-bottom: 56px;
}

.mission__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.mission__card {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border-radius: 4px;
  border-top: 3px solid var(--crimson);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mission__card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mission__card-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--silver);
  margin-bottom: 16px;
}

.mission__card-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
}

/* ── Contact / Footer ── */
.footer {
  background: var(--gunmetal);
  padding: 64px 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  height: 48px;
  width: auto;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(168, 169, 173, 0.5);
}

.footer__contact {
  text-align: right;
}

.footer__contact-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--crimson);
  margin-bottom: 16px;
}

.footer__contact-item {
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver);
}

.footer__contact-item a {
  transition: color 0.2s ease;
}

.footer__contact-item a:hover {
  color: var(--ice-white);
}

.footer__divider {
  max-width: 1200px;
  margin: 40px auto 0;
  border: none;
  border-top: 1px solid rgba(168, 169, 173, 0.12);
  padding-top: 24px;
  text-align: center;
}

.footer__divider-text {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(168, 169, 173, 0.3);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mission__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer__contact {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav__inner {
    height: 72px;
  }

  .nav__logo {
    height: 38px;
  }

  .nav__links {
    display: none;
  }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ice-white);
    padding: 24px 32px;
    border-bottom: 1px solid rgba(168, 169, 173, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .nav__toggle {
    display: block;
  }

  .hero__content {
    padding: 100px 20px 60px;
  }

  .hero__heading {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .hero__body {
    font-size: 16px;
  }

  .hero__cta {
    font-size: 15px;
  }

  .mission {
    padding: 64px 20px;
  }

  .mission__heading {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .mission__card {
    padding: 24px 20px;
  }

  .footer {
    padding: 48px 0;
  }

  .footer__inner {
    padding: 0 20px;
  }

  .footer__logo {
    height: 38px;
  }
}
