:root {
  color-scheme: dark;
  --bg: #030405;
  --surface: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8fb;
  --muted: #9ca6b6;
  --accent: #b6ff4d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(182, 255, 77, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(77, 255, 136, 0.08), transparent 24rem),
    linear-gradient(180deg, #060807, var(--bg) 62%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
}

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

.nav a:hover {
  color: var(--text);
}

.primary-button,
.discord-button {
  border: 1px solid rgba(182, 255, 77, 0.45);
  color: #071007;
  background: var(--accent);
  font-weight: 800;
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0 120px;
}

.hero {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 130px);
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.7rem, 9vw, 8.6rem);
  line-height: 0.86;
}

.hero p:not(.eyebrow),
.section-heading h2 {
  max-width: 760px;
}

.hero p:not(.eyebrow),
.card p,
.service-list p {
  color: var(--muted);
  line-height: 1.58;
}

.hero p:not(.eyebrow) {
  font-size: clamp(1.12rem, 2vw, 1.5rem);
}

.actions {
  margin-top: 30px;
}

.section {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.section + .section {
  margin-top: 72px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card span {
  display: block;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-list p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.discord-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px 0;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .project-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .discord-button {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}
