@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --bg-dark: #06090e;
  --bg-surface: #0b111a;
  --bg-card: rgba(13, 20, 32, 0.85);
  --brand-green: #00a859;
  --brand-green-light: #00e676;
  --brand-green-glow: rgba(0, 168, 89, 0.35);
  --accent-cyan: #00e5ff;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 168, 89, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', "SFMono-Regular", Consolas, Menlo, monospace;
  --container-max: 1280px;
  --space-section: clamp(2.5rem, 6vw, 4.5rem);
  --space-container-x: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 0.55vw + 13px, 18px);
}

body,
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 168, 89, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 85% 35%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 2.4vw + 1.8rem, 2.85rem);
  line-height: 1.18;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 1.95rem;
  line-height: 1.25;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

h4 {
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

strong {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  background: #fff;
  color: #06090e;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
