/* ============================================
   Diriga Technologies — variant 4 styles
   ============================================ */

:root {
  --navy: #042C53;
  --blue: #378ADD;
  --charcoal: #2C2C2A;
  --white: #ffffff;
  --gray: #F1EFE8;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--large {
  padding: 16px 40px;
  font-size: 17px;
}

/* ============================================
   Brand-family bar
   ============================================ */

.brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--charcoal);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.brand-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-bar__link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.brand-bar__link:hover {
  color: var(--white);
}

.brand-bar__link--active {
  font-weight: 500;
  color: var(--white);
}

/* ============================================
   Main nav
   ============================================ */

.main-nav {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 999;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

.main-nav--solid {
  background: rgba(4, 44, 83, 0.95);
  backdrop-filter: blur(8px);
}

.main-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav__logo {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.main-nav__links {
  display: flex;
  gap: 32px;
}

.main-nav__links a {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.main-nav__links a:hover {
  opacity: 1;
}

.main-nav__cta {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--blue);
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.main-nav__cta:hover {
  opacity: 0.9;
}

/* ============================================
   Hero section
   ============================================ */

.hero {
  position: relative;
  width: 100%;
}

.hero__spacer {
  height: 600vh;
  pointer-events: none;
}

.hero__canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__fallback {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background: var(--navy);
}

.hero__fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Text overlays ---- */

.hero__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 48px 48px;
  pointer-events: none;
  opacity: 0;
}

.hero__overlay a,
.hero__overlay button {
  pointer-events: auto;
}

.hero__overlay--center {
  align-items: center;
  text-align: center;
  padding: 96px 24px 48px;
}

.hero__overlay--left {
  align-items: flex-start;
  max-width: 560px;
  padding-left: 8%;
}

.hero__overlay--right {
  align-items: flex-start;
  margin-left: auto;
  max-width: 560px;
  padding-right: 8%;
  padding-left: calc(100% - 560px - 8%);
}

.hero__overlay--specs {
  pointer-events: none;
}

.hero__overlay h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero__overlay h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.hero__overlay p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero__overlay ul {
  margin-bottom: 24px;
}

.hero__overlay li {
  font-size: 15px;
  opacity: 0.8;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.hero__overlay li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Spec labels for exploded view */

.spec-label {
  position: absolute;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0;
  white-space: nowrap;
}

.spec-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--blue);
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.5;
}

.spec-label--cyber {
  top: 18%;
  right: 20%;
}

.spec-label--it {
  top: 36%;
  right: 18%;
}

.spec-label--compliance {
  top: 56%;
  left: 18%;
}

.spec-label--ai {
  top: 74%;
  left: 20%;
}

/* ============================================
   Sections below hero
   ============================================ */

.trust-bar,
.final-cta,
.footer {
  position: relative;
  z-index: 3;
}

/* ---- Trust bar ---- */

.trust-bar {
  background: var(--white);
  color: var(--charcoal);
  padding: 48px 0;
}

.trust-bar__items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-bar__icon {
  font-size: 28px;
  line-height: 1;
}

.trust-bar__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---- Final CTA ---- */

.final-cta {
  background: var(--navy);
  text-align: center;
  padding: 120px 24px;
}

.final-cta h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
}

/* ---- Footer ---- */

.footer {
  background: var(--charcoal);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__col h3 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  opacity: 0.6;
}

.footer__col p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
}

.footer__col ul li {
  margin-bottom: 8px;
}

.footer__col ul a {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer__col ul a:hover {
  opacity: 1;
}

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.footer__legal p {
  font-size: 13px;
  opacity: 0.5;
}

/* ============================================
   Mobile fallback
   ============================================ */

@media (max-width: 767px) {
  .hero__canvas {
    display: none !important;
  }

  .hero__fallback {
    display: block;
    position: relative;
    height: auto;
    aspect-ratio: 16/9;
  }

  .hero__spacer {
    height: auto;
  }

  .hero__overlay {
    position: relative;
    height: auto;
    opacity: 1;
    padding: 48px 24px;
  }

  .hero__overlay--right {
    padding-left: 24px;
    max-width: 100%;
  }

  .hero__overlay--left {
    padding-left: 24px;
  }

  .hero__overlay--specs {
    display: none;
  }

  .hero__overlay h1 {
    font-size: 32px;
  }

  .hero__overlay h2 {
    font-size: 28px;
  }

  .spec-label {
    display: none;
  }

  .main-nav__links {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .final-cta h2 {
    font-size: 28px;
  }

  .trust-bar__items {
    gap: 24px;
  }
}
