:root {
  --bg-base: #0a0a0b;
  --bg-surface: rgba(18, 18, 20, 0.86);
  --bg-surface-soft: rgba(28, 28, 31, 0.72);
  --border-strong: rgba(52, 52, 58, 0.92);
  --text-primary: #f9fafb;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/space-grotesk/space-grotesk-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter/inter-latin-500-normal.woff2") format("woff2");
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Inter", system-ui, sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.1), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

.site-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to bottom, rgba(14, 14, 16, 0.94), rgba(14, 14, 16, 0.72));
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  filter: invert(1);
  flex-shrink: 0;
}

.brand-text {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-link,
.header-link:visited {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.header-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface-soft);
}

.header-link-accent {
  color: var(--accent);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  max-width: 680px;
  padding: 48px 0;
}

.eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  max-width: 38ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
}

.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    min-height: calc(100vh - 64px);
    padding: 32px 0;
  }
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .header-actions {
    width: 100%;
  }

  .header-link,
  .header-link:visited,
  .button {
    width: 100%;
    justify-content: center;
  }

  .hero {
    gap: 18px;
  }
}
