/* ============================================
   DEVFORCE99 — TACTICAL ENGINEERING DIVISION
   one-page brief / static deploy
   ============================================ */

:root {
  --bg: #0a0c0a;
  --bg-elev: #11141a;
  --bg-card: #0e1118;
  --bg-card-hover: #131722;
  --border: #1f2530;
  --border-bright: #3a4250;
  --text: #d8dde5;
  --text-dim: #8a93a3;
  --text-dimmer: #5a6170;
  --accent: #ffae00;
  --accent-dim: #b07800;
  --accent-soft: rgba(255, 174, 0, 0.08);
  --green: #4ade80;
  --red: #ef4444;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', 'Menlo', 'Courier New', monospace;
  --max-w: 1280px;
  --pad-x: 48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a { color: inherit; }

/* ===== BACKGROUNDS ===== */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 174, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 174, 0, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.009) 3px,
    rgba(255, 255, 255, 0.009) 4px
  );
  pointer-events: none;
  z-index: 100;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 12, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2.5px;
  color: var(--text);
}

.logo__meta {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 1.5px;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
  padding: 4px 0;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__links a::before {
  content: '[ ';
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
  margin-right: -4px;
}

.nav__links a::after {
  content: ' ]';
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
  margin-left: -4px;
}

.nav__links a:hover::before,
.nav__links a:hover::after {
  opacity: 1;
  margin: 0;
}

.nav__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green), 0 0 4px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--pad-x) 100px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  opacity: 0.7;
}

.hero__corner--tl { top: 48px; left: var(--pad-x); border-right: none; border-bottom: none; }
.hero__corner--tr { top: 48px; right: var(--pad-x); border-left: none; border-bottom: none; }
.hero__corner--bl { bottom: 48px; left: var(--pad-x); border-right: none; border-top: none; }
.hero__corner--br { bottom: 48px; right: var(--pad-x); border-left: none; border-top: none; }

.hero__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 56px;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 2.5px;
  opacity: 0.85;
}

.hero__title {
  font-size: clamp(52px, 9.5vw, 148px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.92;
  margin-bottom: 48px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero__title-line--accent::after {
  content: '_';
  animation: blink 1.1s steps(2, start) infinite;
  color: var(--accent);
  margin-left: 4px;
}

@keyframes blink {
  to { visibility: hidden; }
}

.hero__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 64px;
  font-weight: 400;
}

.hero__sub strong {
  color: var(--accent);
  font-weight: 700;
}

.hero__stats {
  display: flex;
  gap: 72px;
  margin-bottom: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  position: relative;
}

.hero__stats::before,
.hero__stats::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
}
.hero__stats::before { top: -7px; left: -7px; border-right: none; border-bottom: none; }
.hero__stats::after { bottom: -7px; right: -7px; border-left: none; border-top: none; }

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__number {
  display: inline-flex;
  align-items: baseline;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}

.stat__value, .stat__prefix, .stat__suffix {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1;
}

.stat__value--inf { font-size: 44px; }

.stat__label {
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-top: 4px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-decoration: none;
  border: 1.5px solid var(--border-bright);
  transition: all 0.18s ease;
  cursor: pointer;
  background: transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 4px 4px 0 var(--bg-card);
}

.btn--primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 0 0 0 1px var(--accent), 6px 6px 0 var(--bg-card), 0 0 32px rgba(255, 174, 0, 0.25);
}

.btn--ghost {
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--pad-x);
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 72px;
  border-left: 2px solid var(--accent);
  padding-left: 28px;
}

.section-head__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-head__title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 16px;
}

.section-head__sub {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ===== OPS / CAPABILITIES ===== */
.ops__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.op-card {
  background: var(--bg);
  padding: 44px 36px;
  position: relative;
  transition: background 0.2s;
}

.op-card:hover {
  background: var(--bg-card);
}

.op-card--accent {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}

.op-card--accent:hover {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-card) 100%);
}

.op-card__num {
  display: block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 24px;
  font-weight: 700;
}

.op-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.op-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ===== INTEL / PROOF OF WORK ===== */
.intel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.mission {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.mission::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.mission::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  border-bottom: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.mission:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.mission:hover::before,
.mission:hover::after {
  opacity: 1;
}

.mission--feat {
  border-color: var(--border-bright);
}

.mission__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 10.5px;
  letter-spacing: 2px;
}

.mission__id {
  color: var(--accent);
  font-weight: 600;
}

.mission__status {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.mission__status::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.mission__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.mission__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 24px;
  flex-grow: 1;
}

.mission__desc strong {
  color: var(--accent);
  font-weight: 600;
}

.mission__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-dimmer);
  letter-spacing: 1.5px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.mission__link {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  transition: color 0.15s;
}

.mission__link:hover {
  color: var(--text);
}

.intel__ecosystem {
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.bullet-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 56px;
  margin-top: 28px;
}

.bullet-list li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
}

.bullet-list li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.bullet-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== COMMAND / OPERATOR ===== */
.operator {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  border: 1px solid var(--border);
  padding: 56px;
  background: var(--bg-card);
  position: relative;
}

.operator::before,
.operator::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
}
.operator::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.operator::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.operator__id {
  border-right: 1px solid var(--border);
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.operator__avatar {
  width: 120px;
  height: 120px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 28px;
  position: relative;
}

.operator__avatar::before,
.operator__avatar::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.operator__avatar::before {
  width: 1px;
  height: 100%;
  left: 50%;
  opacity: 0.2;
}

.operator__avatar::after {
  width: 100%;
  height: 1px;
  top: 50%;
  opacity: 0.2;
}

.operator__crosshair {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.operator__rank {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.operator__name {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.operator__handle {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.operator__bio p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 18px;
}

.operator__bio p:last-child {
  margin-bottom: 0;
}

.operator__bio strong {
  color: var(--accent);
  font-weight: 600;
}

.operator__links {
  grid-column: 1 / -1;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 12px;
}

.operator__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.5px;
  transition: color 0.15s;
}

.operator__links a:hover {
  color: var(--accent);
}

/* ===== ENGAGE ===== */
.engage__panel {
  border: 1px solid var(--border-bright);
  padding: 72px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 60%);
  position: relative;
}

.engage__corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
}
.engage__corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.engage__corner--tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.engage__corner--bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.engage__corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.engage__copy {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 48px;
}

.engage__copy-accent {
  color: var(--accent);
  font-weight: 600;
}

.engage__channels {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 32px;
  border: 1px solid var(--border-bright);
  text-decoration: none;
  background: var(--bg);
  transition: all 0.2s ease;
  min-width: 300px;
  position: relative;
}

.channel:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.channel__label {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 600;
}

.channel__value {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
}

.channel__hint {
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px var(--pad-x);
  background: var(--bg);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--text-dim);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__motto {
  color: var(--accent);
  font-weight: 600;
}

.footer__version {
  color: var(--text-dimmer);
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  :root { --pad-x: 24px; }

  .nav {
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav__links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .nav__status { order: 2; }

  .hero {
    padding: 80px 24px 80px;
    min-height: auto;
  }
  .hero__corner--tl, .hero__corner--bl { left: 24px; }
  .hero__corner--tr, .hero__corner--br { right: 24px; }
  .hero__corner--tl, .hero__corner--tr { top: 32px; }
  .hero__corner--bl, .hero__corner--br { bottom: 32px; }
  .hero__meta {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
  }
  .hero__stats {
    flex-wrap: wrap;
    gap: 32px;
  }
  .stat__value, .stat__prefix, .stat__suffix { font-size: 28px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .section { padding: 80px 24px; }
  .section-head { margin-bottom: 48px; }

  .ops__grid { grid-template-columns: 1fr; }
  .intel__grid { grid-template-columns: 1fr; }
  .bullet-list { grid-template-columns: 1fr; }

  .operator {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px;
  }
  .operator__id {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 28px;
  }

  .engage__panel { padding: 36px 28px; }
  .engage__copy { font-size: 16px; }
  .engage__channels { flex-direction: column; }
  .channel { min-width: 0; }

  .footer__row {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .nav__links { gap: 4px; font-size: 10px; }
  .hero__title { letter-spacing: -2px; }
  .operator__avatar { width: 96px; height: 96px; font-size: 28px; }
  .operator__name { font-size: 26px; }
}
