@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --background: #050d19;
  --background-soft: #071426;
  --panel: #0a1c32;
  --panel-light: #0d2440;
  --border: rgba(77, 226, 255, 0.42);
  --border-strong: #4de2ff;
  --cyan: #4de2ff;
  --cyan-soft: rgba(77, 226, 255, 0.12);
  --text: #effaff;
  --muted: #9cb5c8;
  --green: #6af0be;
  --warning: #f2cf72;
  --radius-large: 28px;
  --radius-medium: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(26, 130, 190, 0.16),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #071426 0%,
      var(--background) 60%,
      #030912 100%
    );
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.page-glow-left {
  top: 140px;
  left: -220px;
  background: #00c8ff;
}

.page-glow-right {
  right: -220px;
  bottom: 40px;
  background: #1268ff;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(5, 16, 30, 0.86);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 13px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--cyan-soft);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel-light);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--cyan);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 102px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.hero-description,
.project-card p,
.project-tile p,
.info-card p,
.contact-card p,
.download-card p,
.hero-card p,
.disclaimer-card p,
.section-heading > p:last-child {
  color: var(--muted);
}

.hero-description {
  max-width: 650px;
  font-size: 1.08rem;
}

.hero-actions,
.project-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary-button {
  border-color: var(--cyan);
  color: #03101a;
  background: var(--cyan);
}

.primary-button:hover {
  background: #7cecff;
}

.secondary-button {
  border-color: var(--border);
  color: var(--text);
  background: var(--cyan-soft);
}

.secondary-button:hover {
  border-color: var(--cyan);
  background: rgba(77, 226, 255, 0.18);
}

.hero-card,
.project-card,
.project-tile,
.info-card,
.download-card,
.contact-card,
.disclaimer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(
      145deg,
      rgba(12, 35, 61, 0.96),
      rgba(6, 21, 39, 0.96)
    );
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.status {
  width: fit-content;
  padding: 6px 11px;
  display: inline-flex;
  border-radius: 999px;
  color: var(--green);
  background: rgba(106, 240, 190, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-top: 24px;
}

.feature-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.feature-list div {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(77, 226, 255, 0.16);
  border-radius: 13px;
  background: rgba(2, 12, 23, 0.3);
}

.feature-list strong {
  color: var(--text);
}

.feature-list span {
  color: var(--cyan);
  text-align: right;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.project-tile {
  min-height: 430px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.featured-project {
  background:
    radial-gradient(
      circle at top right,
      rgba(77, 226, 255, 0.14),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(12, 42, 70, 0.96),
      rgba(6, 21, 39, 0.96)
    );
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.project-label {
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-logo,
.empty-icon {
  width: 70px;
  height: 70px;
  margin-top: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 20px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 1.2rem;
  font-weight: 900;
}

.project-tile h3 {
  margin-top: 20px;
}

.project-actions {
  margin-top: auto;
}

.project-actions .button {
  flex: 1;
}

.empty-project {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  background: rgba(8, 26, 46, 0.46);
}

.empty-project .empty-icon {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 400;
}

.project-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
}

.project-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 22px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 1.22rem;
  font-weight: 900;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.project-subtitle {
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list span {
  padding: 8px 11px;
  border: 1px solid rgba(77, 226, 255, 0.22);
  border-radius: 11px;
  color: #d8f7ff;
  background: rgba(77, 226, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 650;
}

.preview-section {
  padding-top: 46px;
}

.slideshow {
  width: 100%;
}

.slideshow-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: #020914;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.slideshow-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.slideshow-frame img.changing {
  opacity: 0;
  transform: scale(0.985);
}

.slide-button {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: rgba(5, 16, 30, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.slide-button:hover {
  border-color: var(--cyan);
  background: rgba(13, 36, 64, 0.96);
}

.slide-button:active {
  transform: translateY(-50%) scale(0.94);
}

.slide-previous {
  left: 18px;
}

.slide-next {
  right: 18px;
}

.slide-counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  display: flex;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5, 16, 30, 0.82);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 700;
}

.slide-dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slide-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(77, 226, 255, 0.1);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.slide-dot:hover {
  border-color: var(--cyan);
}

.slide-dot.active {
  width: 30px;
  border-color: var(--cyan);
  background: var(--cyan);
}

.disclaimer-card {
  margin-top: 22px;
  padding: 24px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  border-color: rgba(242, 207, 114, 0.45);
  background:
    linear-gradient(
      145deg,
      rgba(60, 49, 20, 0.32),
      rgba(6, 21, 39, 0.96)
    );
}

.standalone-disclaimer {
  margin-top: 0;
}

.disclaimer-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 207, 114, 0.7);
  border-radius: 16px;
  color: var(--warning);
  background: rgba(242, 207, 114, 0.1);
  font-size: 1.4rem;
  font-weight: 900;
}

.disclaimer-card h3 {
  color: #fff5d1;
}

.disclaimer-card p {
  margin-bottom: 0;
}

.download-section,
.contact-section {
  padding-top: 40px;
}

.download-card,
.contact-card {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.unavailable {
  cursor: not-allowed;
  opacity: 0.7;
}

.unavailable:hover {
  transform: none;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.info-card {
  padding: 30px;
}

.info-card p {
  margin-bottom: 0;
}

.discord-box {
  min-width: 310px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 12, 23, 0.44);
}

.discord-box > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.discord-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-row strong {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--cyan);
}

.discord-row button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: var(--cyan-soft);
  cursor: pointer;
}

.discord-row button:hover {
  border-color: var(--cyan);
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid rgba(77, 226, 255, 0.14);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0;
}

.footer-disclaimer {
  text-align: center;
}

footer a {
  color: var(--cyan);
  font-weight: 700;
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(5, 16, 30, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .project-grid,
  .download-card,
  .contact-card,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .discord-box {
    min-width: 0;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .site-header,
  .section,
  footer {
    width: calc(100% - 20px);
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
  }

  .brand span:last-child {
    max-width: 180px;
    font-size: 0.9rem;
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 72px;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4rem);
  }

  .hero-actions,
  .project-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-tile,
  .project-card {
    min-height: 0;
    padding: 22px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-header,
  .project-top {
    flex-direction: column;
  }

  .slideshow-frame {
    border-radius: 20px;
  }

  .slide-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.7rem;
  }

  .slide-previous {
    left: 10px;
  }

  .slide-next {
    right: 10px;
  }

  .slide-counter {
    right: 10px;
    bottom: 10px;
  }

  .disclaimer-card {
    grid-template-columns: 1fr;
  }

  .download-card,
  .contact-card,
  .info-card {
    padding: 24px;
  }

  .discord-row {
    align-items: stretch;
    flex-direction: column;
  }

  .discord-row button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}