@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-400.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-700.ttf') format('truetype');
  font-weight: 700;
}

:root {
  --bg-base: #03040a;
  --bg-base-radial: radial-gradient(circle at 20% 20%, rgba(67, 97, 238, 0.16), transparent 28%);
  --bg-surface: #090c14;
  --bg-glass: rgba(14, 17, 28, 0.62);
  --bg-glass-hover: rgba(22, 27, 44, 0.82);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-glow: rgba(0, 240, 255, 0.35);
  --bg-surface-radial: radial-gradient(circle at 100% 0%, rgba(0, 240, 255, 0.14), transparent 40%);

  --text-main: #f0f0f2;
  --text-muted: #a0a4b8;
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.5);
  --accent-indigo: #4361ee;

  --font-heading: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  --container-max: 1200px;
  --section-gutter-x: clamp(1rem, 3vw, 2rem);
  --header-height: 80px;
  --touch-target: 44px;
  --radius-md: 16px;
  --radius-full: 9999px;
  --content-width: 72ch;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  background-image:
    linear-gradient(180deg, #090c14 0%, #03040a 55%, #040611 100%),
    var(--bg-base-radial),
    var(--bg-surface-radial);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-gutter-x);
}

.noise-overlay,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 13, 20, 0.82);
}

.header-container,
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
}

.brand-mark {
  display: block;
}

.menu-toggle,
.nav-toggle {
  width: var(--touch-target);
  height: var(--touch-target);
  border: 0;
  background: transparent;
  position: relative;
  z-index: 1000;
}

.menu-toggle span,
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text-main);
}

.menu-toggle span:nth-child(1),
.nav-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2),
.nav-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3),
.nav-toggle span:nth-child(3) {
  top: 27px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.22), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(114, 31, 162, 0.24), transparent 35%),
    linear-gradient(160deg, rgba(7, 9, 17, 0.1), rgba(3, 4, 12, 0.22) 100%);
}

.hero__grid {
  display: grid;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: min(var(--content-width), 70ch);
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
}

.btn,
.hero__status,
.hero__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.btn-primary {
  color: #03040a;
  background: linear-gradient(135deg, var(--accent-cyan), #8de8f5);
}

.btn-secondary {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.hero__content,
.hero__statement,
.hero__lede,
.section {
  max-width: var(--content-width);
}

@media (max-width: 768px) {
  .menu-toggle,
  .nav-toggle {
    display: inline-flex;
  }

  .nav-primary,
  #site-nav {
    display: none;
  }
}
