/* ============================================================
   G7X DEFENSE — Cinematic Single Page
   Inspired by Mach Industries / Anduril modern defense aesthetic
   ============================================================ */

/* -----------------------------------------------------------
   Tokens
   ----------------------------------------------------------- */
:root {
  /* Color */
  --bg: #000000;
  --bg-alt: #050505;
  --bg-elevated: #0a0a0a;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.65);
  --fg-dim: rgba(255, 255, 255, 0.42);
  --fg-subtle: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #ffffff;

  /* Type — exact Mach Industries fonts: Chakra Petch + JetBrains Mono */
  --font-display: "Chakra Petch", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Chakra Petch", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing */
  --container: 1440px;
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --pad-y: clamp(2.5rem, 8vh, 7rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.8s;

  /* Header */
  --header-h: 76px;

  /* Layout */
  --section-min-h: 100vh;
}

/* -----------------------------------------------------------
   Reset
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100vh;
}
img, video, svg { display: block; max-width: 100%; }
button {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--fg); color: var(--bg); }

/* -----------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------- */
.container {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  z-index: 2;
}

.section {
  position: relative;
  min-height: var(--section-min-h);
  width: 100%;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--pad-y)) 0 var(--pad-y);
  overflow: hidden;
}

/* -----------------------------------------------------------
   Background media
   ----------------------------------------------------------- */
.bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg-fallback {
  position: absolute;
  inset: 0;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.7);
}
.bg-fallback-hero {
  background-image:
    radial-gradient(ellipse at 30% 30%, rgba(40, 60, 80, 0.25), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(20, 30, 50, 0.18), transparent 55%),
    linear-gradient(135deg, #050505 0%, #000 100%);
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: saturate(0.85) contrast(1.05) brightness(0.78);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: opacity;
}
.bg-video[data-loaded="true"] {
  opacity: 1;
}
.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 35%,
      rgba(0, 0, 0, 0.35) 65%,
      rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.55) 80%,
      rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}
.bg-overlay-hero {
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.78) 25%,
      rgba(0, 0, 0, 0.5) 55%,
      rgba(0, 0, 0, 0.35) 80%,
      rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.25) 30%,
      rgba(0, 0, 0, 0.45) 70%,
      rgba(0, 0, 0, 0.95) 100%);
}
.bg-overlay-integration {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.85) 80%),
    linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.85));
}

/* Static grid bg for integration section */
.bg-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}
.bg-static-dark {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(40, 50, 70, 0.12), transparent 60%),
    var(--bg);
}

/* -----------------------------------------------------------
   Page loader
   ----------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loader-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--fg);
}
.loader-logo {
  height: 64px;
  width: auto;
  display: block;
  filter: invert(1);
  opacity: 0.96;
}
.loader-bar {
  width: 64px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateX(-100%);
  animation: loaderSlide 1.4s var(--ease) infinite;
}
@keyframes loaderSlide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* -----------------------------------------------------------
   Header
   ----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    background-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  position: relative;
  transition: opacity 0.3s var(--ease);
}
.brand:hover { opacity: 0.82; }

.brand-lockup {
  height: 52px;
  width: auto;
  display: block;
  filter: invert(1) drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
  transition: filter 0.3s var(--ease);
}

@media (max-width: 980px) {
  .brand-lockup { height: 42px; }
}
@media (max-width: 600px) {
  .brand-lockup { height: 34px; }
}

.primary-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.primary-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.primary-nav a:hover { color: var(--fg); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}
.primary-nav .nav-cta {
  color: var(--fg);
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 3rem var(--pad-x);
  gap: 0.5rem;
  transform: translateY(-110%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.mobile-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.mobile-drawer a.drawer-secondary {
  font-size: 1.05rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* -----------------------------------------------------------
   Section indicator (Mach style 01/05)
   ----------------------------------------------------------- */
.section-indicator {
  position: fixed;
  left: var(--pad-x);
  bottom: 2rem;
  z-index: 30;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fg-muted);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.section-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.indicator-current {
  font-size: 1rem;
  color: var(--fg);
  min-width: 1.6em;
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.indicator-sep {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin: 0 0.05rem;
}
.indicator-total {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(3px); }

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */
.section-hero {
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
  padding-top: calc(var(--header-h) + 2rem);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero-meta-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--fg-muted);
}
.hero-meta-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-transform: none;
}
.hero-title .line {
  display: block;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.partners-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
}
.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.partners-list span {
  position: relative;
}
.partners-list span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--fg-dim);
  border-radius: 50%;
  transform: translateY(-50%);
}

.scroll-cue {
  position: absolute;
  right: var(--pad-x);
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  z-index: 4;
}
.scroll-cue:hover { color: var(--fg); }
.scroll-cue-arrow {
  width: 1px;
  height: 36px;
  background: var(--fg-muted);
  position: relative;
  overflow: hidden;
}
.scroll-cue-arrow::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--fg);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0); }
  100% { transform: translateY(200%); }
}

/* -----------------------------------------------------------
   Product sections — STACKED: text-zone on top, video-zone below
   No text overlay on video. Mach Industries layout.
   ----------------------------------------------------------- */
.section-product {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  align-items: stretch;
  background: var(--bg);
}

.text-zone {
  flex: 0 0 auto;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  position: relative;
  background: var(--bg);
}
.text-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
}
.text-zone .container {
  position: relative;
  z-index: 2;
}

.video-zone {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  overflow: hidden;
  background: #000;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease) 0.1s, transform 1s var(--ease) 0.1s;
  will-change: opacity, transform;
}
@media (max-width: 768px) {
  .video-zone {
    aspect-ratio: auto;
    height: 52vh;
    min-height: 280px;
    max-height: none;
  }
}

/* Sentrycs (and any product without a video) — let text-zone fill viewport */
.section-product:not(:has(> .video-zone)) .text-zone {
  min-height: 100vh;
}
.video-zone.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.video-zone .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  background: #000;
  filter: saturate(0.95) contrast(1.05) brightness(0.95);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.video-zone .bg-video[data-loaded="true"] { opacity: 1; }

.video-frame-meta {
  position: absolute;
  left: var(--pad-x);
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}
.video-frame-meta::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
  animation: livePulse 1.6s var(--ease) infinite;
}
.video-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.05); }
}

/* Product meta + name + tagline + body */
.product-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.product-meta .num {
  color: var(--fg);
}
.product-meta .layer {
  color: var(--fg-muted);
  position: relative;
  padding-left: 1.25rem;
}
.product-meta .layer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.6rem;
  height: 1px;
  background: var(--fg-dim);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 8.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0.05em;
}
.product-name span {
  display: inline-block;
}
.product-name-large {
  font-size: clamp(3rem, 10vw, 10rem);
}

.product-tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--fg-muted);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.product-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.product-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 60ch;
}
.specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.specs > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.specs > div:last-child { border-bottom: 0; }
.specs dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}
.specs dd {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--fg);
  margin: 0;
  letter-spacing: 0.005em;
}

/* -----------------------------------------------------------
   CrossFire integration section
   ----------------------------------------------------------- */
.section-integration {
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 6rem;
}
.section-integration .container { max-width: 1280px; }

.section-integration .product-name { margin-bottom: 1.5rem; }
.section-integration .product-tagline { margin-bottom: 1.75rem; }
.section-integration .product-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 70ch;
  margin-bottom: 4rem;
}

.architecture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 4rem 0 5rem;
  padding: 3rem clamp(1rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    rgba(0,0,0,0.4);
  position: relative;
}
.architecture::before,
.architecture::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--fg-muted);
}
.architecture::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.architecture::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.arch-row {
  width: 100%;
  display: flex;
  justify-content: center;
}
.arch-layer {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 70px 130px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.arch-layer:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.arch-layer-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.1em;
}
.arch-layer-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
}
.arch-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}
.arch-node {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
  white-space: nowrap;
}
.arch-node:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.arch-node-primary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.arch-bridge {
  width: 1px;
  height: 28px;
  display: flex;
  justify-content: center;
}
.arch-bridge span {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--fg-dim), transparent);
}

.arch-layer-command {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-color: var(--line-strong);
  position: relative;
}
.arch-layer-command::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin: -4px;
  pointer-events: none;
}
.arch-layer-note {
  grid-column: 2 / -1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  margin-top: 0.4rem;
  line-height: 1.6;
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-grid li {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.01);
}
.value-grid li:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}
.value-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}
.value-grid h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.value-grid p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* -----------------------------------------------------------
   About
   ----------------------------------------------------------- */
.section-about {
  min-height: auto;
  padding: 8rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2.25rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.5rem;
  height: 1px;
  background: var(--fg-dim);
}
.about-intro h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
  max-width: 18ch;
}
.about-intro p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 60ch;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 4vw, 3rem);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
}

/* -----------------------------------------------------------
   Contact
   ----------------------------------------------------------- */
.section-contact {
  min-height: 90vh;
  padding: 8rem 0;
  align-items: center;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 1rem 0 1.5rem;
}
.contact-title span { display: block; }
.contact-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 50ch;
  margin-bottom: 3rem;
}
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--fg);
  margin-bottom: 5rem;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-cta:hover {
  gap: 1.5rem;
}
.contact-cta span {
  font-size: 0.9em;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.contact-cta:hover span {
  transform: translateX(4px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.contact-block { max-width: 36ch; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  margin-bottom: 0.85rem;
}
.contact-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg);
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.site-footer {
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}
.footer-lockup {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  filter: invert(1);
  margin-bottom: 1.4rem;
}
@media (max-width: 768px) {
  .footer-lockup { max-width: 260px; }
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--fg);
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--fg-muted);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}

/* -----------------------------------------------------------
   Reveal animation
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease) var(--reveal-delay, 0s),
    transform 0.9s var(--ease) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger inside hero */
.hero-meta.is-visible { --reveal-delay: 0s; }
.hero-title .line:nth-child(1) { --reveal-delay: 0.1s; }
.hero-title .line:nth-child(2) { --reveal-delay: 0.18s; }
.hero-title .line:nth-child(3) { --reveal-delay: 0.26s; }
.hero-sub.is-visible        { --reveal-delay: 0.45s; }
.hero-cta.is-visible        { --reveal-delay: 0.55s; }
.hero-partners.is-visible   { --reveal-delay: 0.65s; }

/* Contact title stagger */
.contact-title span:nth-child(1) { --reveal-delay: 0s; }
.contact-title span:nth-child(2) { --reveal-delay: 0.08s; }
.contact-title span:nth-child(3) { --reveal-delay: 0.16s; }

/* -----------------------------------------------------------
   Reduce motion
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue-arrow::before { animation: none; }
  .loader-bar::before { animation: none; }
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
    --section-min-h: 100svh;
  }

  .primary-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .product-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .specs > div {
    grid-template-columns: 7rem 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 2rem;
  }

  .arch-layer {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  .arch-layer-name {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }
  .arch-nodes {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .arch-layer-note {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand-col {
    grid-column: auto;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .scroll-cue { display: none; }

  .section-indicator {
    bottom: 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 520px) {
  :root {
    --pad-x: 1.25rem;
    --pad-y: 2rem;
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-partners { gap: 1rem 1.25rem; }
  .partners-list { gap: 0.75rem 1.25rem; }
  .partners-list span:not(:last-child)::after {
    right: -0.75rem;
  }

  .product-meta { gap: 0.85rem; }
  .product-meta .layer { padding-left: 0.85rem; }

  .specs > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Tablet portrait */
@media (max-width: 768px) and (min-width: 521px) {
  .specs > div {
    grid-template-columns: 6.5rem 1fr;
  }
}
