:root {
  --background: #090d16;
  --surface: #111827;
  --surface-light: #182233;
  --text: #f8fafc;
  --muted: #aab4c5;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #6d5dfc;
  --accent-hover: #8578ff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(109, 93, 252, 0.15), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

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

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

nav h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 110px 0;
  text-align: center;
}

.hero .container {
  max-width: 900px;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero p {
  max-width: 760px;
  margin: 30px auto 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.section {
  padding: 100px 0;
}

.section h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section > .container > p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
}

.gray {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.card {
  min-height: 185px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.015)
    ),
    var(--surface);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 93, 252, 0.55);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

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

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  list-style: none;
}

.categories li {
  padding: 12px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-light);
  color: #dbe3ef;
  font-weight: 600;
}

#contact {
  background:
    radial-gradient(circle at center, rgba(109, 93, 252, 0.13), transparent 30rem);
}

#contact p {
  margin-top: 8px;
}

footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

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

  .hero {
    min-height: auto;
    padding: 100px 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  nav {
    min-height: 68px;
  }

  nav h2 {
    max-width: 180px;
    font-size: 1rem;
  }

  .button {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero {
    padding: 84px 0;
  }

  .section {
    padding: 74px 0;
  }

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

  .card {
    min-height: auto;
  }
}