:root {
  --bg: #05060F;
  --card: #0F1220;
  --card-alt: #121633;
  --text: #F5F7FF;
  --muted: #A5B1C9;
  --accent: #FFD966;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 22px rgba(255, 217, 102, 0.35);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(255, 216, 102, 0.18), transparent 55%),
    #05060f;
  color: var(--text);
  font-family: var(--font, 'Space Grotesk', 'Inter', system-ui, sans-serif);
  line-height: 1.6;
}

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

.hero {
  position: relative;
  padding: 5rem 5vw;
  background: linear-gradient(135deg, rgba(5, 6, 15, 0.95), rgba(8, 10, 27, 0.9)),
    url('../../img/fortuna.webp') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0.6rem 0;
}

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

.hero__actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
  background: var(--accent);
  color: #05060f;
  box-shadow: var(--glow);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
}

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

main {
  padding: 3rem 5vw 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.disclaimer {
  padding: 1rem 1.25rem;
  background: #11142a;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.95rem;
}

.disclaimer strong {
  color: var(--accent);
}

.module-area__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.module-area__header h2 {
  margin: 0.2rem 0 0;
}

.module-area__header p {
  color: var(--muted);
  max-width: 500px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}

.module-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.module-grid__placeholder {
  grid-column: 1/-1;
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  color: var(--muted);
  animation: pulse 2s infinite ease;
}

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

.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.module-card__media {
  position: relative;
  min-height: 170px;
  overflow: hidden;
}

.module-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1);
}

.module-card__status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.25rem 0.9rem;
  background: rgba(5, 6, 15, 0.85);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.module-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.module-card__badge {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.ghost-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.ghost-link:hover {
  border-bottom-color: var(--accent);
}

.module-card__body h3 {
  margin: 0;
  font-size: 1.25rem;
}

.module-card__subtitle {
  margin: 0;
  color: var(--muted);
}

.module-card__narrative {
  font-size: 0.95rem;
  color: #e4e9ff;
}

.module-card__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.module-card__meta a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.wip-gallery {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--card-alt);
  box-shadow: var(--glow);
}

.wip-gallery__grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.wip-gallery figure {
  background: #0a0b1a;
  padding: 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wip-gallery figcaption {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  color: var(--muted);
}

.cta {
  background: linear-gradient(135deg, rgba(255, 217, 102, 0.08), rgba(5, 6, 15, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1.25rem;
}

.cta h3 {
  margin: 0 0 0.5rem 0;
}

.footer {
  padding: 2rem 5vw 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.module-page {
  min-height: 100vh;
  background: #03040c;
  color: var(--text);
}

.module-page__layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 5vw;
}

.module-page__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.module-page__header h1 {
  margin: 0;
}

.module-page__tag {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-progress {
  margin-top: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: #101428;
  padding: 1.5rem;
}

.work-progress__media {
  border-radius: 0.8rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.work-progress__media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.work-progress__overlay {
  position: absolute;
  inset: 12px;
  border-radius: 0.7rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.work-progress p {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 5vw;
  }
  .module-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
