@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-VariableFont_opsz,wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display/DMSerifDisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #090b09;
  --surface: #10140f;
  --surface-2: #151a13;
  --surface-card: rgba(16, 20, 15, 0.72);
  --text: #f2f4ed;
  --muted: #8e9687;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #b7e44f;
  --accent-hover: #c7f46a;
  --purple: #a855f7;
  --max: clamp(1200px, 70vw, 1600px);
  --nav-height: clamp(76px, 4.5vw, 104px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  background: none;
  border: none;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 11, 9, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  width: clamp(46px, 3.2vw, 68px);
  height: clamp(46px, 3.2vw, 68px);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
}

.nav-links a {
  padding: clamp(10px, 0.8vw, 14px) clamp(14px, 1.1vw, 22px);
  color: var(--muted);
  border-radius: 8px;
  font-size: clamp(13px, 0.85vw, 16px);
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.nav-links .nav-discord {
  background: var(--accent);
  color: #0c1108;
  font-weight: 700;
  margin-left: 6px;
}

.nav-links .nav-discord:hover {
  background: var(--accent-hover);
  color: #0c1108;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { bottom: 16px; }

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  bottom: 22px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 20px) 24px 30px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 9, 0.62) 0%, rgba(9, 11, 9, 0.72) 55%, var(--bg) 100%),
    radial-gradient(circle at 50% 42%, transparent 0%, rgba(9, 11, 9, 0.28) 65%, rgba(9, 11, 9, 0.64) 100%);
}

.hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-background-image.is-active {
  opacity: 1;
}

.hero-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 800px);
  height: min(90vw, 600px);
  background: radial-gradient(circle, rgba(183, 228, 79, 0.08) 0%, rgba(9, 11, 9, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: clamp(700px, 50vw, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
}

.hero h1 {
  font-size: clamp(64px, 8.5vw, 140px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.065em;
  margin-bottom: clamp(20px, 1.8vw, 32px);
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  font-size: clamp(16px, 1.2vw, 20px);
  color: rgba(242, 244, 237, 0.78);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: clamp(28px, 2.5vw, 42px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: clamp(50px, 3.2vw, 62px);
  padding: 0 clamp(22px, 1.6vw, 34px);
  border-radius: 10px;
  font-size: clamp(13px, 0.85vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #0c1108;
  border: 1px solid var(--accent);
}

.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-scroll {
  position: relative;
  z-index: 2;
  margin-top: auto;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.hero-scroll:hover {
  opacity: 1;
  color: var(--accent);
}

.scroll-arrow {
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(2px); }
}

.section {
  padding: clamp(80px, 6vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.section-badge {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-purple {
  color: var(--purple);
}

.section h2 {
  font-size: clamp(48px, 5.5vw, 92px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.section h2 span {
  color: var(--muted);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.project-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-lead {
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 14px;
}

.project-desc {
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.65;
  margin-bottom: 24px;
}

.project-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.pillar-item strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

.pillar-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.crystal {
  background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.035) 50%, transparent 100%);
}

.crystal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 480px);
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
}

.crystal-copy p {
  max-width: 560px;
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.6;
}

.crystal-copy strong {
  color: var(--purple);
}

.crystal-visual {
  position: relative;
  min-height: clamp(340px, 26vw, 440px);
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.crystal-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(168, 85, 247, 0.18);
  border-radius: 50%;
  filter: blur(60px);
}

.crystal-grid-line {
  position: absolute;
  background: rgba(168, 85, 247, 0.08);
}

.crystal-grid-line-v { inset: 0 auto 0 50%; width: 1px; }
.crystal-grid-line-h { inset: 50% 0 auto; height: 1px; }

.crystal-shard {
  position: relative;
  width: 105px;
  height: 152px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, #f3e8ff 0%, #a855f7 50%, #6b21a8 100%);
  clip-path: polygon(50% 0, 100% 24%, 83% 100%, 17% 100%, 0 24%);
  box-shadow: 
    0 0 0 10px rgba(168, 85, 247, 0.04),
    0 0 55px rgba(168, 85, 247, 0.35);
  animation: crystalFloat 5s ease-in-out infinite alternate;
}

@keyframes crystalFloat {
  0% { transform: translateY(-5px) rotate(16deg); }
  100% { transform: translateY(5px) rotate(20deg); }
}

.crystal-shard i, .crystal-shard b, .crystal-shard em {
  position: absolute;
  display: block;
}

.crystal-shard i {
  width: 16px; height: 64px; left: 24px; top: 20px;
  background: rgba(255, 255, 255, 0.3);
}

.crystal-shard b {
  width: 38px; height: 10px; left: 18px; bottom: 29px;
  background: rgba(59, 7, 100, 0.3);
}

.crystal-shard em {
  width: 14px; height: 40px; right: 19px; top: 40px;
  background: rgba(74, 10, 125, 0.3);
}

.creators-heading {
  margin-bottom: 40px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
}

.creator-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 1.4vw, 24px);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: clamp(86px, 6vw, 104px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.creator-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.creator-card:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.18);
}

.creator-card:hover::after {
  width: 100%;
}

.avatar-wrap {
  width: clamp(44px, 3vw, 54px);
  height: clamp(44px, 3vw, 54px);
  border-radius: 50%;
  overflow: hidden;
  background: #182012;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.avatar-pawelul {
  background: #8b5cf6;
}

.creator-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-meta strong {
  font-size: clamp(15px, 1.1vw, 18px);
  letter-spacing: -0.02em;
}

.creator-meta span {
  font-size: 12px;
  color: var(--muted);
}

.creator-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.creator-card:hover .creator-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.discord-panel {
  position: relative;
  background: linear-gradient(120deg, var(--surface) 0%, #0d120c 60%, #11180d 100%);
  border: 1px solid rgba(183, 228, 79, 0.2);
  border-radius: 16px;
  padding: clamp(36px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

.discord-copy {
  max-width: 600px;
}

.discord-right {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.discord-note p {
  color: var(--muted);
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.6;
}

.button-discord {
  width: 100%;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  color: #555d52;
  font-size: 13px;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .section-container {
    width: calc(100% - 32px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    background: rgba(9, 11, 9, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.98);
    z-index: 1050;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-links a {
    font-size: 19px;
    font-weight: 700;
    padding: 12px 24px;
  }

  .nav-links .nav-discord {
    margin-left: 0;
    margin-top: 10px;
    width: min(100%, 280px);
    text-align: center;
    font-size: 16px;
  }

  .hero {
    min-height: 100dvh;
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: 25px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .project-grid, .crystal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .creator-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .creator-card {
    padding: 12px 14px !important;
    min-height: 74px !important;
    gap: 10px !important;
  }

  .avatar-wrap {
    width: 38px !important;
    height: 38px !important;
  }

  .creator-meta strong {
    font-size: 14px !important;
  }

  .creator-meta span {
    font-size: 11px !important;
  }

  .discord-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .discord-right {
    max-width: 100%;
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(52px, 15vw, 68px);
  }

  .creator-grid {
    grid-template-columns: 1fr !important;
  }
}

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

  .scroll-arrow,
  .crystal-shard {
    animation: none;
  }

  .hero-background-image {
    transition: none;
  }
}

.error-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(183, 228, 79, 0.1), transparent 48%);
  pointer-events: none;
}

.error-home {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.error-home img {
  width: clamp(48px, 4vw, 64px);
  height: auto;
}

.error-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.error-content h1 {
  margin-bottom: clamp(32px, 2.5vw, 42px);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.error-content h1 span {
  color: var(--accent);
}

.error-content p {
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
}

.project-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 6px;
}

.pillar-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(183, 228, 79, 0.16), rgba(183, 228, 79, 0.03));
  border: 1px solid rgba(183, 228, 79, 0.22);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(183, 228, 79, 0.08);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar-item:hover .pillar-icon {
  transform: translateY(-2px);
  border-color: rgba(183, 228, 79, 0.45);
  box-shadow: 0 0 25px rgba(183, 228, 79, 0.16);
}

.pillar-text strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.pillar-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

@media (max-width: 680px) {
  .project-pillars {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
