:root {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #d4d4d4;
  --card: #111111;
  --border: #262626;
  --focus: #e5e5e5;
  --header-height: 64px;
  --content-max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: #ffffff;
  color: #000000;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

.header-inner {
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

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

.inquiry-link {
  border: 1px solid var(--accent);
  color: var(--fg) !important;
  padding: 6px 10px;
  border-radius: 999px;
}

main {
  padding-top: calc(var(--header-height) + 24px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, #222222 0%, #000000 55%);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  padding: 24px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 24px;
}

.cta {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}

.content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.section-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

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

.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
}

.simple-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

@media (max-width: 1023px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    padding: 0 16px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 72px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    gap: 10px;
  }

  #particle-canvas {
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  #particle-canvas {
    display: none !important;
  }

  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
