:root {
  --bg-main: #0b0b0f;
  --bg-secondary: #0f0f14;
  --bg-card: #111118;
  --border: #1f1f2a;
  --accent-primary: #6c5ce7;
  --accent-secondary: #00e5ff;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --gradient-primary: linear-gradient(135deg, #6c5ce7, #00e5ff);
  --gradient-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(0, 229, 255, 0.15));
  --font-body: "Inter", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  --hero-size: clamp(3.2rem, 7vw, 4rem);
  --section-title: clamp(2.1rem, 4vw, 2.25rem);
  --card-title: 1.25rem;
  --text-base: 1rem;
  --text-small: 0.875rem;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 10px 40px rgba(108, 92, 231, 0.25);
  --shadow-glow-strong: 0 24px 80px rgba(108, 92, 231, 0.24);
  --container-width: 1200px;
  --space-section: 100px;
  --space-page-top: 170px;
  --space-page-top-compact: 150px;
  --transition-base: 220ms ease;
  --transition-slow: 420ms ease;
  --navbar-height: 88px;
  --z-navbar: 50;
  --z-overlay: 45;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg-main);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: move-grid 5s linear infinite;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  position: relative;
}

section {
  position: relative;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: var(--hero-size);
}

h2 {
  font-size: var(--section-title);
}

h3 {
  font-size: var(--card-title);
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-line {
  width: 96px;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-primary);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}