@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --bg: #080406;
  --bg-alt: #12070c;
  --surface: #1a0b14;
  --text: #f7f0f3;
  --muted: #c7a9ba;
  --accent: #b00046;
  --accent-purple: #5b2bff;
  --accent-soft: rgba(176, 0, 70, 0.2);
  --accent-purple-soft: rgba(91, 43, 255, 0.2);
  --card-border: rgba(255, 255, 255, 0.09);
  --shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --font-main: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-display: "DM Serif Display", "Georgia", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(176, 0, 70, 0.22), transparent 40%),
    radial-gradient(circle at 75% 12%, rgba(91, 43, 255, 0.22), transparent 42%),
    radial-gradient(circle at 85% 55%, rgba(255, 64, 128, 0.12), transparent 45%),
    linear-gradient(160deg, rgba(12, 6, 10, 0.95), rgba(6, 3, 6, 0.95)),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

main {
  position: relative;
  z-index: 1;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(8, 4, 6, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: 6rem 0 5rem;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(220px, 0.9fr);
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-text {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-purple));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(176, 0, 70, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 3;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(176, 0, 70, 0.55);
}

.hero-glow {
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  margin: 0 auto;
  background: radial-gradient(circle, rgba(176, 0, 70, 0.45), rgba(91, 43, 255, 0.35), transparent 72%);
  filter: blur(0.5px);
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

section {
  padding: 4.5rem 0;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.2rem;
}

section p {
  color: var(--muted);
  max-width: 720px;
}

.about {
  background: linear-gradient(160deg, rgba(26, 11, 20, 0.9), rgba(18, 7, 12, 0.9));
  position: relative;
  z-index: 1;
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(91, 43, 255, 0.18), transparent 50%),
    linear-gradient(320deg, rgba(176, 0, 70, 0.2), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 2.5rem;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  position: relative;
  z-index: 1;
}

.assets-grid .asset-card:nth-child(odd) {
  margin-top: 8px;
}

.asset-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, border 0.2s ease;
  position: relative;
  z-index: 1;
}

.asset-card:hover {
  border-color: rgba(176, 0, 70, 0.65);
  box-shadow: 0 22px 48px rgba(176, 0, 70, 0.22), 0 10px 24px rgba(91, 43, 255, 0.18);
}

.asset-image {
  background: linear-gradient(135deg, rgba(176, 0, 70, 0.35), rgba(91, 43, 255, 0.2), rgba(8, 4, 6, 0.25));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.asset-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.asset-body h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.asset-body p {
  color: var(--muted);
  flex: 1;
}

.asset-body a {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 0, 70, 0.7);
  color: var(--text);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  z-index: 3;
}

.asset-body a:hover,
.asset-body a:focus-visible {
  background: var(--accent);
  color: #fff;
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.button-secondary {
  background: transparent;
  border: 1px solid rgba(176, 0, 70, 0.6);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 3;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: linear-gradient(120deg, rgba(176, 0, 70, 0.95), rgba(91, 43, 255, 0.85));
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.button-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: transparent;
}

.asset-card.placeholder {
  animation: pulse 1.6s ease-in-out infinite;
}

.asset-card.placeholder .asset-image,
.asset-card.placeholder .asset-title,
.asset-card.placeholder .asset-description,
.asset-card.placeholder .asset-button {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.asset-card.placeholder .asset-title {
  height: 18px;
  width: 70%;
}

.asset-card.placeholder .asset-description {
  height: 56px;
}

.asset-card.placeholder .asset-button {
  height: 34px;
  width: 60%;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.links {
  background: linear-gradient(160deg, rgba(12, 6, 10, 0.9), rgba(18, 7, 12, 0.95));
  position: relative;
  z-index: 1;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pill {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  transition: transform 0.2s ease, border 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-to-top {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--text);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 8, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(176, 0, 70, 0.35);
  box-shadow: var(--shadow);
  width: min(1200px, 96vw);
  max-height: 92vh;
  padding: 1.5rem;
  position: relative;
  animation: modalIn 0.2s ease;
}

.modal-content {
  background: #12070c;
  border-radius: 14px;
  padding: 0.8rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@keyframes modalIn {
  from {
    transform: translateY(8px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 5vw;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 5rem;
  }

  .hero-inner {
    gap: 1.8rem;
  }
}
