/* Space Grotesk self hosted (latin, variable weight), replacing the Google Fonts
   CDN link so the site fits the shared strict CSP (own the software). Pinned from
   fonts.gstatic.com spacegrotesk/v22. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Variable.woff2?v=06408904") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

/* Space Mono self hosted (latin), same reason. Pinned from spacemono/v17. */
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/SpaceMono-400.woff2?v=fb4a81a2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/SpaceMono-700.woff2?v=2d46bd15") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
  color: var(--color-fg);
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(circle at bottom, rgba(79, 70, 229, 0.18), transparent 55%),
    var(--color-bg);
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.page {
  flex: 1 0 auto;
}

/* Fixed overlapping header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  pointer-events: none;
}

.header-inner {
  max-width: 1120px;
  margin: 0.85rem auto 0.5rem;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: radial-gradient(
      circle at top left,
      rgba(34, 211, 238, 0.25),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.92);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.nav a {
  position: relative;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--color-muted);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-fg);
  background-color: rgba(15, 23, 42, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.8);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Hero / landing section fills viewport */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 5rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.4),
      rgba(15, 23, 42, 0.95)
    );
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Ensure hero accounts visually for header overlap */
@media (min-width: 640px) {
  .hero {
    padding-top: 6rem;
  }
}

.hero-content {
  max-width: 720px;
  text-align: left;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  max-width: 32rem;
  text-shadow: 0 2px 4px #000;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-fg);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    border-color 150ms ease;
}

.btn-primary {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-fg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-color: transparent;
}

.btn-secondary {
  background-color: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-fg);
  border-color: rgba(245, 245, 245, 0.4);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-fg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background-color: rgba(245, 245, 245, 0.08);
  border-color: rgba(245, 245, 245, 0.8);
}

/* Main content section for agent cards */
.agents {
  padding: 0.25rem;
  border-top: 1px solid var(--color-border-subtle);
  background: radial-gradient(
      circle at top left,
      rgba(34, 211, 238, 0.12),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(79, 70, 229, 0.2),
      transparent 55%
    ),
    var(--color-surface); /* dark surface so grid gaps are still visible */
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
}

.agent-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: stretch;
  gap: 0.5rem;
}

@media (min-width: 960px) {
  .hero {
    justify-content: flex-start;
  }

  .hero-content {
    margin-left: 4rem;
  }

  .agent-grid {
    max-width: 1200px;
  }
}

/* Footer at bottom */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--color-border-subtle);
  padding: 1rem 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-note {
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-owner {
  max-width: 1120px;
  margin: 0.25rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.legal-page .legal {
  max-width: 720px;
  margin: 6rem auto 3rem;
  padding: 0 1.5rem;
}

.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.legal h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.legal p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.legal-intro {
  margin-top: 0.5rem;
}

.legal-owner {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  .agents {
  }

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


