:root {
  --bg: #0a0a0c;
  --bg-elevated: #121216;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
  --max: 960px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.85);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 0 0 2.5rem;
  text-align: center;
  width: 100%;
}

.hero-logo {
  height: 48px;
  width: auto;
  margin: 0 auto 2rem;
  display: block;
}

.hero-hypercube {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 3.5 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  margin: 0;
  display: block;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 18ch;
  margin: 0 auto 1.25rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #e4e4e7;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section p + p {
  margin-top: 1rem;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* About page */
.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 36rem;
}

.prose {
  max-width: 40rem;
  padding-bottom: 4rem;
}

.prose p {
  color: var(--muted);
}

.prose p + p {
  margin-top: 1.1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

@media (max-width: 560px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .nav-links {
    gap: 1.1rem;
  }
}

/* About banner — shorter than home */
.about-banner-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}
.about-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 3.5 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}
.page-hero {
  padding-top: 2.5rem;
}
