/* VectorNine Systems landing page: layout only.
   Colour, type, spacing and radius come from design-system/tokens.css;
   buttons come from design-system/components/bundle.css. */

:root {
  color-scheme: dark;
  /* Two hero-copy widths plus the hero gap: keeps every section on one left edge. */
  --page-max: calc(34rem * 2 + var(--space-xl));
  /* Logo height plus the navbar's vertical padding. */
  --nav-height: calc(var(--space-xl) + 2 * var(--space-sm));
}

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

body {
  margin: 0;
  background: var(--background-deep-space);
  color: var(--text-primary-light);
  font: var(--text-body-base);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Navbar ---------- */
.site-nav {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
}
.site-nav__home {
  display: inline-flex;
  border-radius: var(--radius-base);
}
.site-nav__home:focus-visible {
  outline: 2px solid var(--text-primary-light);
  outline-offset: 2px;
}
/* The logo is vector: fix the height, let the width follow its 600:160 ratio. */
.site-nav__logo {
  display: block;
  height: var(--space-xl);
  width: auto;
  aspect-ratio: 600 / 160;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-lg);
}
.hero__copy {
  justify-self: end;
  width: 100%;
  max-width: 34rem;
}
.hero__headline {
  margin: 0;
  color: var(--text-primary-light);
}
.hero__headline span {
  display: block;
}
.hero__sub {
  margin: var(--space-md) 0 0;
  max-width: 30rem;
  color: var(--text-secondary-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.hero__media {
  display: flex;
  justify-content: center;
}
.hero__media img {
  display: block;
  width: 100%;
  max-width: calc(var(--space-xl) * 5);
  height: auto;
}

/* ---------- Architecture Overview ---------- */
.architecture {
  padding: var(--space-xl) var(--space-lg);
}
.architecture__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}
.architecture__title {
  margin: 0 0 var(--space-lg);
  color: var(--text-primary-light);
}
.architecture__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
/* Feature cards reuse .stat-card and .stat-card__title from bundle.css; only the body is new. */
.feature-card__body {
  margin: 0;
  color: var(--text-secondary-muted);
}

/* ---------- Narrow screens: stack, copy first ---------- */
@media (max-width: 768px) {
  .site-nav {
    padding: var(--space-sm) var(--space-md);
  }
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }
  .architecture {
    padding: var(--space-xl) var(--space-md);
  }
  .architecture__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .hero__copy {
    justify-self: start;
  }
  .hero__media img {
    max-width: calc(var(--space-xl) * 3);
  }
}
