/* =============================================================================
   Ops Armada · marketing site
   Design system — Linear-quiet + operator signature.
   Type: Satoshi (display + body) · JetBrains Mono (accent)
   ========================================================================== */

:root {
  /* Color */
  --bg:        #08090b;          /* ink */
  --bg-elev:   #0b0d12;          /* slight elevation */
  --bg-card:   #0d1018;          /* card surface */
  --bg-card-2: #11151f;          /* card deeper */
  --text:      #e8eaef;          /* primary */
  --text-2:    #9098a8;          /* secondary */
  --text-3:    #5a6175;          /* tertiary */
  --line:        rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.10);
  --line-hover:  rgba(255, 255, 255, 0.18);
  --signal:        #ff7a1a;
  --signal-dim:    #c25c12;
  --signal-soft:   rgba(255, 122, 26, 0.10);
  --signal-glow:   rgba(255, 122, 26, 0.20);
  --beta:          #ffb066;
  --beta-soft:     rgba(255, 176, 102, 0.10);
  --beta-line:     rgba(255, 176, 102, 0.40);

  /* Type */
  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --gutter: 32px;
  --gutter-tight: 24px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* Atmospheric background — subtle directional vignette + grain */
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 122, 26, 0.06), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(80, 110, 180, 0.05), transparent 60%);
  background-attachment: fixed;
}

/* SVG noise overlay — tiny, fixed, very low opacity */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

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

a { color: var(--text); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--signal); }

::selection { background: var(--signal); color: #0a0c12; }

/* -- Typography ------------------------------------------------------------ */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.04;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}

.eyebrow--with-rule {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--text-2);
}
.eyebrow__rule {
  width: 36px; height: 1px;
  background: linear-gradient(to right, transparent, var(--signal) 40%, var(--signal));
}

/* -- Layout primitives ----------------------------------------------------- */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--gutter);
  border-top: 1px solid var(--line);
  position: relative;
}

.section__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.section__col--left { padding-top: 6px; }
.section__col--right { max-width: 760px; }

.section__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
}
.section__body {
  font-size: 1.075rem;
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.6;
}
.section__body--narrow { max-width: 52ch; }

/* -- Reveal-on-scroll ------------------------------------------------------ */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
html.js .products__grid > .product:nth-child(1).is-revealed { transition-delay: 0ms; }
html.js .products__grid > .product:nth-child(2).is-revealed { transition-delay: 70ms; }
html.js .products__grid > .product:nth-child(3).is-revealed { transition-delay: 140ms; }
html.js .products__grid > .product:nth-child(4).is-revealed { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -- Ticker (top status bar) ----------------------------------------------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ticker__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 11px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ticker__sep { color: var(--line-strong); }
.ticker__cell--live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.ticker__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 122, 26, 0); }
}

/* -- Nav ------------------------------------------------------------------- */

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text);
}
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; padding: 2px;
}
.brand__name {
  font-weight: 700; font-size: 1rem;
  letter-spacing: -0.005em;
}
.nav__links {
  display: flex; align-items: center; gap: 28px;
  font-size: 0.94rem;
  color: var(--text-2);
}
.nav__links a:not(.nav__cta) {
  color: var(--text-2);
  position: relative;
}
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.nav__cta:hover {
  border-color: var(--signal);
  color: var(--text);
  background: var(--signal-soft);
}

/* -- Hero ------------------------------------------------------------------ */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px var(--gutter) 140px;
  position: relative;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }

.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 32px;
  color: var(--text);
}
.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-2);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}

/* Hero radar — signature operator mark */
.hero__radar {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: clamp(420px, 56vw, 760px);
  height: clamp(420px, 56vw, 760px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}
.hero__radar-units circle {
  transform-origin: center;
  animation: radarBlink 4s ease-in-out infinite;
}
.hero__radar-units circle:nth-child(1) { animation-delay: 0s; }
.hero__radar-units circle:nth-child(2) { animation-delay: 0.2s; }
.hero__radar-units circle:nth-child(3) { animation-delay: 1.6s; }
.hero__radar-units circle:nth-child(4) { animation-delay: 2.4s; }
.hero__radar-units circle:nth-child(5) { animation-delay: 3.2s; }
@keyframes radarBlink {
  0%, 90%, 100% { opacity: 1; }
  92%, 96%      { opacity: 0.3; }
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--line-hover); }
.btn__arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--text);
  border-color: var(--text);
  color: #0a0c12;
}
.btn--primary:hover {
  background: #fff; border-color: #fff;
  color: #0a0c12;
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--line-hover);
  background: rgba(255,255,255,0.02);
}

/* -- About section --------------------------------------------------------- */

.section--about { padding-top: 80px; padding-bottom: 80px; }
.section--about .section__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section--about .section__title { margin-bottom: 28px; }

/* -- Products section ------------------------------------------------------ */

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.product {
  background: var(--bg-card);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 220ms ease;
}
.product:hover { background: var(--bg-card-2); }

.product__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.product__mark {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.mk__a { color: var(--signal); }
.mk__b { color: var(--text); }

.product__title {
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--text);
  margin-top: 12px;
}
.product__body {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}
.product__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  align-self: stretch;
  transition: color 180ms ease;
}
.product__cta-arrow {
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product__cta:hover { color: var(--signal); }
.product__cta:hover .product__cta-arrow { transform: translateX(3px); }

.product--soon .product__title,
.product--soon .product__body { opacity: 0.92; }

/* Status badges */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid;
  white-space: nowrap;
}
.badge--beta {
  color: var(--beta);
  border-color: var(--beta-line);
  background: var(--beta-soft);
}
.badge--soon {
  color: var(--text-3);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

/* -- Work section ---------------------------------------------------------- */

.case {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.case__media {
  position: relative;
  display: block;
  line-height: 0;
  background: #000;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.case__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 240ms ease;
}
.case__media:hover img {
  transform: scale(1.02);
  opacity: 0.96;
}
.case__media-corner {
  position: absolute;
  bottom: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(8, 9, 11, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case__body {
  padding: 36px 36px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 14px;
  justify-content: center;
}
.case__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
}
.case__title {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--text);
}
.case__lede {
  color: var(--text-2);
  font-size: 0.99rem;
  line-height: 1.55;
}
.case__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: 4px;
}
.case__cta:hover { color: var(--signal); }
.case__cta:hover span:last-child { transform: translateX(3px); }
.case__cta span:last-child { transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1); display: inline-block; }

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

.foot {
  max-width: var(--container);
  margin: 80px auto 0;
  padding: 56px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.foot__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.foot__brand {
  display: flex; gap: 16px; align-items: flex-start;
}
.foot__brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; }
.foot__name {
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 1.05rem;
  color: var(--text);
}
.foot__tagline {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: 2px;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  justify-self: end;
  width: 100%;
  max-width: 360px;
}
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.foot__col a {
  color: var(--text-2);
  font-size: 0.94rem;
}
.foot__col a:hover { color: var(--text); }
.foot__muted { color: var(--text-3); font-size: 0.94rem; }

.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.foot__build {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2);
}

/* -- Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
  .section__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section__col--left { padding-top: 0; }
  .section { padding-top: 88px; padding-bottom: 88px; }

  .products__grid { grid-template-columns: 1fr; }

  .case { grid-template-columns: 1fr; }
  .case__media { border-right: 0; border-bottom: 1px solid var(--line); }

  .foot__top { grid-template-columns: 1fr; }
  .foot__cols { justify-self: start; max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .ticker__inner { gap: 10px; }
  .ticker__inner .ticker__sep:nth-of-type(2),
  .ticker__inner .ticker__sep:nth-of-type(4) { display: none; }
  .ticker__inner .ticker__cell:nth-of-type(2) { display: none; }

  .nav__links { gap: 18px; }
  .nav__links a:not(.nav__cta) { display: none; }

  .hero { padding: 56px var(--gutter) 96px; }
  .hero__radar { right: -32%; opacity: 0.7; }

  .hero__title { letter-spacing: -0.03em; }

  .product { padding: 28px 24px 24px; }
  .case__body { padding: 28px 24px; }

  .foot__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
