﻿:root {
  color-scheme: dark;
  --ink: #f4ecff;
  --paper: #120a1f;
  --purple-900: #2c0d4f;
  --purple-700: #5b2aa9;
  --purple-500: #7f3bff;
  --purple-300: #b18cff;
  --accent: #ffb350;
  --card: #1b102c;
  --line: #2a1a40;
  --shadow: 0 24px 60px rgba(12, 6, 26, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #2a0d4d 0%, #140a22 50%, #0d0817 100%);
  min-height: 100vh;
  overflow-x: hidden;
  touch-action: pan-y;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", "Times New Roman", serif;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

p {
  margin: 0 0 12px;
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.7;
  z-index: 0;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(160, 124, 244, 0.7), rgba(160, 124, 244, 0));
  top: -180px;
  right: -120px;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 179, 80, 0.4), rgba(255, 179, 80, 0));
  bottom: -240px;
  left: -200px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(127, 59, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 59, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 8, 28, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: auto;
  height: 54px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand-title {
  font-weight: 700;
  margin: 0;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #b9add2;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
  color: #d7c8ff;
}

.site-nav .nav-link {
  position: relative;
  padding-bottom: 4px;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--purple-500);
  transition: width 0.3s ease;
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after {
  width: 100%;
}

.site-nav .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 16px;
}

.nav-dropdown .nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(18, 10, 31, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown.is-open .nav-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #e8dcff;
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(127, 59, 255, 0.2);
}

.nav-menu a::after {
  display: none;
}

.lang-toggle {
  border: 1px solid var(--purple-300);
  background: rgba(36, 18, 58, 0.9);
  color: #e9dcff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(76, 31, 130, 0.45);
}

.hero {
  padding: 110px 0 80px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--purple-300);
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
}

.hero-lead {
  font-size: 1.1rem;
  color: #cdbef0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--purple-500);
  color: white;
  box-shadow: 0 18px 30px rgba(89, 30, 190, 0.55);
}

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

.btn.ghost {
  border-color: var(--purple-300);
  color: #e0d4ff;
  background: transparent;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.metric-number {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}

.metric-label {
  color: #b8a9d7;
  margin: 4px 0 0;
}

.hero-card {
  background: linear-gradient(160deg, rgba(127, 59, 255, 0.25), rgba(255, 179, 80, 0.12));
  border-radius: 32px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card-inner {
  background: var(--card);
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
}

.card-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}

.card-tags span {
  background: rgba(127, 59, 255, 0.16);
  color: #e3d6ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.card-cta {
  font-weight: 600;
  color: #e3d6ff;
}

.search-panel {
  display: grid;
  gap: 12px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-row input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 6, 20, 0.6);
  color: var(--ink);
  padding: 12px 16px;
  font-size: 0.95rem;
}

.search-row input[type="search"]::placeholder {
  color: #b6a7d2;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.search-results li {
  background: rgba(18, 10, 31, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-results li:hover,
.search-results li:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(12, 6, 26, 0.45);
}

.search-results-title {
  font-weight: 700;
}

.search-results-meta {
  color: #b9abda;
  font-size: 0.85rem;
}

.search-note {
  color: #b9abda;
  font-size: 0.9rem;
  margin: 0;
}

.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 40px;
}

.section-lead {
  max-width: 560px;
  color: #c6b7e6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(16, 8, 32, 0.6);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.work {
  background: linear-gradient(180deg, #140a22 0%, #0f081a 100%);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.work-carousel {
  --card-width: clamp(220px, 28vw, 280px);
  --card-gap: 28px;
  --visible-cards: 3;
  display: grid;
  align-items: center;
  padding: 6px 0 10px;
  position: relative;
}

.work-viewport {
  overflow: hidden;
  padding: 22px 64px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  contain: layout paint;
}

.work-track {
  display: flex;
  gap: var(--card-gap);
  width: max-content;
  align-items: center;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card {
  width: var(--card-width);
  background: var(--card);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  will-change: transform, box-shadow, border-color, opacity;
  position: relative;
  transform: translateZ(0);
}

.work-card-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(12, 6, 26, 0.5);
}

.work-card-logo-tight {
  width: 28px;
  height: 28px;
}

.logo-tight {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.work-card-link {
  cursor: pointer;
}

.work-card.is-active {
  transform: scale(1.14);
  box-shadow: 0 34px 80px rgba(35, 16, 72, 0.78);
  border-color: rgba(255, 209, 140, 0.75);
}

.work-card.is-prev,
.work-card.is-next {
  transform: scale(1);
  opacity: 0.9;
}

.work-card:not(.is-active):not(.is-prev):not(.is-next) {
  transform: scale(0.98);
  opacity: 0.85;
}

.work-track.is-measuring .work-card {
  transform: none !important;
}

.work-card.placeholder {
  background: linear-gradient(160deg, rgba(127, 59, 255, 0.18), rgba(255, 179, 80, 0.08));
  color: #d7c8ff;
}

.work-card-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #b8a9d7;
  font-weight: 700;
  margin: 0 0 10px;
}

.carousel-btn {
  border: 2px solid var(--purple-300);
  background: linear-gradient(160deg, rgba(127, 59, 255, 0.65), rgba(255, 179, 80, 0.45));
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 16px 26px rgba(25, 10, 50, 0.55);
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 18px 30px rgba(76, 31, 130, 0.65);
  filter: brightness(1.05);
}

.work-panel {
  background: var(--card);
  border-radius: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.work-panel.alt {
  background: linear-gradient(180deg, rgba(127, 59, 255, 0.18), rgba(255, 179, 80, 0.12));
}

.work-list {
  padding-left: 18px;
  color: #c4b6e4;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill-grid span {
  border: 1px solid rgba(111, 41, 199, 0.3);
  color: #e4d8ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.contact-card {
  background: var(--card);
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-value {
  font-weight: 700;
  font-size: 1.2rem;
}

.contact-note {
  color: #b9abda;
}

.contact-label-discord {
  margin-top: 16px;
}

.site-footer {
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  background: rgba(15, 8, 28, 0.8);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #b8abd8;
}


.project-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #cdbef0;
  display: grid;
  gap: 10px;
}

.project-list li {
  line-height: 1.6;
}

.project-disclaimer {
  margin-top: 18px;
  color: #b9abda;
}

.store-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.store-card {
  background: linear-gradient(140deg, rgba(127, 59, 255, 0.25), rgba(255, 179, 80, 0.15));
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover,
.store-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(16, 8, 32, 0.7);
}

.store-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #b9abda;
  font-weight: 600;
}

.store-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4ecff;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .work-carousel {
    --visible-cards: 1;
    --card-gap: 18px;
  }

  .hero {
    padding-top: 70px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .work-viewport {
    padding: 20px 52px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .carousel-btn.prev {
    left: 6px;
  }

  .carousel-btn.next {
    right: 6px;
  }
}

@media (max-width: 520px) {
  .work-carousel {
    --card-width: min(68vw, 260px);
  }

  .work-viewport {
    padding: 20px 34px;
    min-height: 280px;
  }
}

.hero-copy,
.hero-card,
.section {
  animation: fadeUp 0.7s ease both;
}

.hero-card {
  animation-delay: 0.1s;
}

.section:nth-of-type(2) {
  animation-delay: 0.15s;
}

.section:nth-of-type(3) {
  animation-delay: 0.2s;
}

.section:nth-of-type(4) {
  animation-delay: 0.25s;
}
