:root {
  --bg: #05080b;
  --bg-2: #081015;
  --surface: rgba(10, 17, 22, 0.78);
  --surface-strong: rgba(14, 23, 30, 0.92);
  --line: rgba(169, 255, 76, 0.24);
  --line-cyan: rgba(65, 237, 244, 0.38);
  --line-violet: rgba(191, 112, 255, 0.36);
  --text: #f2f8f1;
  --muted: #9ba8a6;
  --muted-2: #71807d;
  --green: #b7ff48;
  --green-2: #6fff94;
  --cyan: #42e7f4;
  --violet: #bd70ff;
  --gold: #e6bb57;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 8%, rgba(66, 231, 244, 0.12), transparent 32rem),
    radial-gradient(circle at 18% 14%, rgba(183, 255, 72, 0.11), transparent 29rem),
    linear-gradient(180deg, #05070a 0%, var(--bg) 48%, #030507 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(183, 255, 72, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 231, 244, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(130deg, transparent 0 34%, rgba(183, 255, 72, 0.1) 34.1%, transparent 34.7%),
    linear-gradient(50deg, transparent 0 64%, rgba(66, 231, 244, 0.08) 64.1%, transparent 64.6%);
  opacity: 0.35;
}

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

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 40px, var(--max));
  min-height: 74px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(183, 255, 72, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 0 12px rgba(183, 255, 72, 0.35));
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a,
.header-action,
.button {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

.header-action {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--green);
  background: rgba(183, 255, 72, 0.03);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-action svg,
.button svg {
  width: 18px;
  height: 18px;
}

.header-action:hover,
.header-action:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.header-action:hover,
.header-action:focus-visible {
  border-color: var(--green);
  background: rgba(183, 255, 72, 0.11);
}

main {
  overflow: hidden;
}

.section-grid,
.projects-section,
.vision-section,
.contact-section,
.site-footer {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 70px 0 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--green);
  font-size: 6.3rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 0 42px rgba(183, 255, 72, 0.2);
}

.hero-copy p {
  max-width: 560px;
  margin: 28px 0 0;
  color: #dce7e4;
  font-size: 1.24rem;
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button.primary {
  border-color: rgba(183, 255, 72, 0.78);
  color: #071008;
  background: linear-gradient(135deg, var(--green), #e3ff79);
  box-shadow: 0 18px 60px rgba(183, 255, 72, 0.16);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 22px 72px rgba(183, 255, 72, 0.24);
}

.button.secondary {
  border-color: rgba(66, 231, 244, 0.34);
  color: var(--text);
  background: rgba(8, 16, 21, 0.64);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(66, 231, 244, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(66, 231, 244, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  background: #06080d;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.hero-visual::before {
  background:
    linear-gradient(90deg, rgba(5, 8, 11, 0.92), transparent 34%),
    linear-gradient(180deg, transparent 62%, rgba(5, 8, 11, 0.74));
}

.hero-visual::after {
  border: 1px solid rgba(183, 255, 72, 0.18);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(11, 19, 24, 0.92), rgba(5, 9, 12, 0.92)),
    var(--surface);
}

.project-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-card:hover::after {
  opacity: 1;
}

.project-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
}

.project-icon svg {
  width: 18px;
  height: 18px;
}

.section-heading h2,
.vision-section h2,
.contact-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.vision-section p,
.contact-section p,
.project-content p,
.project-content li,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.vision-section p,
.contact-section p {
  max-width: 760px;
  margin: 22px 0 0;
}

.projects-section {
  padding: 78px 0 44px;
}

.section-heading {
  display: flex;
  gap: 26px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 380px;
  margin: 0;
}

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

.project-card {
  min-width: 0;
  border: 1px solid rgba(183, 255, 72, 0.18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.project-card.rune {
  border-color: rgba(66, 231, 244, 0.28);
}

.project-card.cats {
  border-color: rgba(191, 112, 255, 0.28);
}

.project-media {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-media {
  align-content: center;
  gap: 10px;
  justify-items: stretch;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(183, 255, 72, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(7, 14, 17, 0.4), rgba(5, 8, 11, 0.92));
}

.forum-post {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(183, 255, 72, 0.17);
  background: rgba(1, 4, 6, 0.56);
}

.forum-post span {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(183, 255, 72, 0.5);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(183, 255, 72, 0.38), transparent);
}

.forum-post p {
  margin: 0;
  color: #d7ead4;
  font-size: 0.82rem;
  line-height: 1.35;
}

.forum-post.user-hidden {
  color: var(--green);
  opacity: 0.78;
}

.artwork-media {
  background: #030408;
}

.project-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.project-content {
  padding: 22px;
}

.project-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--green);
}

.rune .project-title-row {
  color: var(--cyan);
}

.cats .project-title-row {
  color: var(--violet);
}

.project-title-row h3 {
  margin: 0;
  color: currentColor;
  font-size: 1.35rem;
  line-height: 1.1;
}

.project-content p {
  margin: 18px 0 0;
}

.project-content ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.project-content li {
  position: relative;
  padding-left: 20px;
}

.project-content li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.vision-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  padding: 78px 0;
}

.vision-mark {
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border: 1px solid rgba(183, 255, 72, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle, rgba(183, 255, 72, 0.16), transparent 56%),
    rgba(183, 255, 72, 0.03);
  box-shadow: inset 0 0 60px rgba(183, 255, 72, 0.08);
}

.vision-mark svg {
  width: 118px;
  color: var(--green);
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 0 24px rgba(183, 255, 72, 0.3));
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, auto);
  gap: 34px;
  align-items: center;
  margin-bottom: 64px;
  padding: 34px;
  border: 1px solid rgba(183, 255, 72, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(183, 255, 72, 0.08), transparent 42%),
    rgba(10, 17, 22, 0.74);
  box-shadow: var(--shadow);
}

.contact-section p {
  max-width: 650px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 36px 0 46px;
  border-top: 1px solid rgba(66, 231, 244, 0.14);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 440px;
  margin: 0;
}

.footer-note {
  color: var(--muted-2);
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 28px, var(--max));
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-top: 54px;
  }

  .hero h1 {
    max-width: none;
    font-size: 4.7rem;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }

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

  .vision-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-grid,
  .projects-section,
  .vision-section,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .header-action {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    padding: 38px 0 28px;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-copy p {
    font-size: 1.05rem;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 280px;
  }

  .projects-section,
  .vision-section {
    padding: 52px 0;
  }

  .section-heading h2,
  .vision-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }

  .project-media {
    min-height: 190px;
  }

  .vision-mark {
    width: 100%;
    height: 180px;
  }

  .contact-section {
    padding: 24px;
  }

  .contact-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
