:root {
  --bg: #030713;
  --bg-soft: #071126;
  --surface: #0b1730;
  --surface-strong: #101f42;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6fbff;
  --muted: #a9b8d3;
  --cyan: #25d8ff;
  --green: #7cff2e;
  --purple: #bb6cff;
  --pink: #ff55d7;
  --warning: #ffd166;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 17, 38, 0.94), var(--bg) 44%),
    linear-gradient(135deg, rgba(37, 216, 255, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(187, 108, 255, 0.1), transparent 32%),
    var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 19, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner,
.section,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(124, 255, 46, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(37, 216, 255, 0.28);
}

.brand span {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 42px;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 7, 19, 0.92), rgba(3, 7, 19, 0.62) 42%, rgba(3, 7, 19, 0.2)),
    linear-gradient(180deg, transparent 58%, var(--bg) 100%),
    url("../img/banner.png") center / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 82%);
  content: "";
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 36px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 96px 0 124px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-title h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(3.1rem, 10vw, 6.6rem);
}

.hero-subtitle {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.18rem, 3vw, 1.7rem);
  font-weight: 800;
}

.hero-text {
  max-width: 690px;
  margin: 16px 0 0;
  font-size: 1.06rem;
}

.hero-actions,
.section-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  color: #031020;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 26px rgba(37, 216, 255, 0.25);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

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

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.button-small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.92rem;
}

.button-disabled {
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
}

.section {
  padding: 76px 0;
}

.section-title {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.section-title p {
  max-width: 650px;
  margin: 12px 0 0;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: stretch;
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(37, 216, 255, 0.13), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow);
}

.feature-panel h2,
.feature-panel h3 {
  margin: 0;
}

.feature-panel p {
  margin: 16px 0 0;
}

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

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

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 23, 48, 0.88);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover {
  border-color: rgba(37, 216, 255, 0.38);
  background: rgba(13, 28, 60, 0.94);
  transform: translateY(-2px);
}

.project-image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-strong);
}

.project-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-card:hover .project-image-link img {
  transform: scale(1.035);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-meta,
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-meta {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag,
.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 900;
}

.tag {
  color: var(--cyan);
  background: rgba(37, 216, 255, 0.12);
}

.status-live {
  color: #04140a;
  background: var(--green);
}

.status-dev {
  color: #170521;
  background: var(--purple);
}

.status-soon {
  color: #1a1200;
  background: var(--warning);
}

.project-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.project-card p {
  flex: 1;
  margin: 10px 0 18px;
  overflow-wrap: anywhere;
}

.project-card-footer time {
  color: var(--muted);
  font-size: 0.86rem;
}

.project-card-footer {
  flex-wrap: wrap;
}

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

.pill-card,
.note-band,
.info-card,
.video-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 23, 48, 0.74);
}

.pill-card,
.info-card,
.contact-panel {
  padding: 22px;
}

.founder-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(37, 216, 255, 0.13), transparent 38%),
    linear-gradient(135deg, transparent 52%, rgba(124, 255, 46, 0.1)),
    rgba(11, 23, 48, 0.78);
  box-shadow: var(--shadow);
}

.founder-panel img {
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(124, 255, 46, 0.28);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(37, 216, 255, 0.24);
}

.founder-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.founder-panel p:last-child {
  margin-bottom: 0;
}

.pill-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.18rem;
}

.note-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(124, 255, 46, 0.1), transparent),
    rgba(11, 23, 48, 0.74);
}

.note-badge {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #031020;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 1000;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 216, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.page-hero .section {
  padding-top: 68px;
  padding-bottom: 54px;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: #031020;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.video-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  overflow: hidden;
}

.video-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.video-card-body {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 16px 0;
}

.video-card h3,
.info-card h2,
.contact-panel h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.video-card p {
  flex: 1;
  margin: 8px 0 16px;
}

.info-card p,
.contact-panel p {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-item span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-item a {
  color: var(--cyan);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 19, 0.94);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 34px 0;
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--cyan);
  font-weight: 800;
}

.game-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 17, 38, 0.88), var(--bg)),
    url("../img/banner.png") center / cover fixed;
}

.game-shell {
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.game-placeholder {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 6vw, 56px);
  background: rgba(3, 7, 19, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
}

.game-placeholder img {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  border-radius: 50%;
}

.game-placeholder h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 1.02;
}

.game-placeholder p {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 1.08rem;
}

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

  .featured-layout,
  .video-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

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

  .founder-panel img {
    width: 132px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(3, 7, 19, 0.8), rgba(3, 7, 19, 0.88)),
      linear-gradient(180deg, transparent 58%, var(--bg) 100%),
      url("../img/banner.png") center / cover no-repeat;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(3, 7, 19, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
  }

  .hero,
  .hero-content {
    min-height: 690px;
  }

  .hero-content {
    padding: 82px 0 110px;
  }

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

  .section-title,
  .footer-inner {
    display: block;
  }

  .section {
    padding: 58px 0;
  }

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

  .video-card img {
    aspect-ratio: 16 / 9;
  }

  .video-card-body {
    padding: 16px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

@media (max-width: 460px) {
  .header-inner,
  .section,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1120px);
  }

  .brand span {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: 2.85rem;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .section-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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