@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk/space-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk/space-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #000615;
  --bg-2: #071427;
  --elev: #0e1d34;
  --text: #f4f6f8;
  --muted: #8b95a8;
  --silver: #c5cdd8;
  --blue: #0069f8;
  --blue-text: #4d9fff;
  --line: rgba(244, 246, 248, 0.12);
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    animation-duration: 0s !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .geo-spin-cw,
  .geo-spin-ccw {
    animation: none !important;
    transform: none !important;
  }
}

a { color: var(--blue-text); text-underline-offset: 0.16em; }
a:hover { color: #7eb8ff; }
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  background: var(--elev);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Nav — simplified from the owner's header concept */
.site-header {
  padding: 1rem 0 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(14, 29, 52, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.7rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand .pvs-mark-svg {
  width: 46px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.12rem;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-text);
}

.brand-sub::before,
.brand-sub::after {
  content: "";
  width: 1.1rem;
  height: 1px;
  background: var(--blue);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 0.25rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
}

.nav-links a:hover { color: var(--text); }

/* Hero lockup */
.hero {
  padding: 3.25rem 0 4rem;
  text-align: center;
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero-mark {
  width: min(280px, 72vw);
  height: auto;
}

.hero-wordmark {
  margin: 0;
  font-size: clamp(1.6rem, 6.5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-wordmark .peak {
  color: var(--text);
  font-weight: 700;
}

.hero-wordmark .velocity {
  color: var(--blue);
  font-weight: 700;
}

.hero-software {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.7rem 0 0;
  font-weight: 500;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
}

.hero-software::before,
.hero-software::after {
  content: "";
  width: min(4.5rem, 18vw);
  height: 1px;
  background: var(--blue);
}

.hero-tagline {
  margin: 1.75rem 0 0;
  color: var(--silver);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Sections */
section {
  padding: 0 0 4.5rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.products {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 14px;
  padding: 1.35rem 1.3rem 1.4rem;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status-live { color: var(--blue-text); }

.card p {
  margin: 0;
  color: var(--silver);
  font-size: 0.98rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}

.card-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.contact p {
  margin: 0 0 0.6rem;
  color: var(--silver);
}

.contact a.mail {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}

.contact a.mail:hover { color: var(--blue-text); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--silver);
  text-decoration: none;
  margin-left: 1rem;
}

.site-footer a:first-child { margin-left: 0; }

.site-footer a:hover { color: var(--text); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0;
}

@media (min-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 4rem)); }
  .nav-bar { padding: 0.75rem 1.25rem 0.75rem 1rem; }
  .brand .pvs-mark-svg { width: 54px; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0.1em; }
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-lockup {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 2.25rem;
  }
  .hero-mark { width: min(300px, 36vw); }
  .hero-copy { text-align: left; padding-top: 0.5rem; }
  .hero-software { justify-content: flex-start; }
  .hero-tagline { text-align: left; }
  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
  .card { padding: 1.5rem 1.4rem 1.55rem; }
}

@media (min-width: 1100px) {
  .hero { padding: 5.5rem 0 6.5rem; }
  .hero-mark { width: 340px; }
  .hero-wordmark { letter-spacing: 0.08em; }
}

/* Subtle Metatron / Flower of Life field behind the hero mark */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-geo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 48%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 48%, #000 20%, transparent 72%);
}

.hero-geo {
  display: block;
  width: min(46rem, 160%);
  height: auto;
  flex: 0 0 auto;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.geo-spin-cw {
  animation: geo-spin 180s linear infinite;
  transform-origin: 0 0;
}

.geo-spin-ccw {
  animation: geo-spin 240s linear infinite reverse;
  transform-origin: 0 0;
}

@keyframes geo-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 720px) {
  .hero-geo-layer {
    /* Keep the field around the logo, not under the wordmark */
    justify-content: flex-start;
    padding-left: max(0px, calc((100% - 1120px) / 2 - 4rem));
    -webkit-mask-image: radial-gradient(ellipse 48% 80% at 28% 50%, #000 18%, transparent 70%);
    mask-image: radial-gradient(ellipse 48% 80% at 28% 50%, #000 18%, transparent 70%);
  }
  .hero-geo {
    width: min(42rem, 70vw);
    margin-left: 0;
    transform: translate(-6%, 0);
  }
}

/* Privacy and support pages (they use bare <main>, no #content) */
main:not(#content) {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

main:not(#content) h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--text);
}

main:not(#content) h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 0.45rem;
  color: var(--text);
}

main:not(#content) p,
main:not(#content) li {
  color: var(--silver);
}

main:not(#content) p {
  margin: 0 0 1rem;
}

main:not(#content) ul {
  padding-left: 1.2rem;
}

main:not(#content) .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

main:not(#content) nav {
  margin: 2.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

main:not(#content) nav a {
  color: var(--text);
}

/* 404 page — static, no motion */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-404 .notfound {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

.page-404 .notfound-geo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 42%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 42%, #000 18%, transparent 72%);
}

.page-404 .notfound-geo {
  display: block;
  width: min(36rem, 150%);
  height: auto;
}

.page-404 .notfound-inner {
  position: relative;
  z-index: 1;
}

.page-404 .notfound-mark {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  margin: 0 auto 1.75rem;
}

.page-404 .notfound-message {
  margin: 0 0 1.5rem;
  color: var(--silver);
  font-size: 1.15rem;
  font-weight: 400;
}

.page-404 .notfound-home {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}

.page-404 .notfound-home:hover {
  color: var(--blue-text);
}

@media (min-width: 720px) {
  .page-404 .notfound {
    padding: 4.5rem 0 6rem;
  }
  .page-404 .notfound-mark {
    width: min(260px, 28vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-404 * {
    animation: none !important;
    transition: none !important;
  }
}
