/* ===== Wasdeq Games — light theme ===== */
:root {
  --bg: #f7f5ff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f0ff;
  --border: rgba(99, 80, 180, 0.14);
  --text: #1a1430;
  --text-muted: #5c5675;
  --accent: #7c3aed;
  --accent-2: #0891b2;
  --accent-hot: #db2777;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #0891b2 50%, #db2777 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(8, 145, 178, 0.1));
  --shadow: 0 16px 40px rgba(80, 60, 140, 0.1);
  --radius: 1rem;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.wasdeq-body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ----- Navbar ----- */
.navbar-spacer {
  height: 72px;
}

.wasdeq-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: 0 1px 0 rgba(124, 58, 237, 0.04);
}

.wasdeq-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 0.45rem;
  flex-shrink: 0;
}

.brand-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wasdeq-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
}

.wasdeq-nav .nav-link:hover,
.wasdeq-nav .nav-link:focus {
  color: var(--text) !important;
}

.wasdeq-nav .navbar-toggler {
  border-color: var(--border);
}

.wasdeq-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 20, 48, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Buttons ----- */
.btn-wasdeq {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #ffffff;
  background-image: var(--gradient);
  background-size: 160% 160%;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  color: #ffffff;
}

.btn-wasdeq:hover,
.btn-wasdeq:focus {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
  color: #ffffff;
}

.btn-wasdeq-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-wasdeq-outline:hover,
.btn-wasdeq-outline:focus {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

/* ----- Hero ----- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(124, 58, 237, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(8, 145, 178, 0.08), transparent 50%),
    var(--bg);
}

.min-vh-hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 5%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.7) 0%, transparent 70%);
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  bottom: 0;
  left: -40px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55) 0%, transparent 70%);
  opacity: 0.4;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(8, 145, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  margin-bottom: 2rem;
}

.hero-card {
  position: relative;
  padding: 1px;
  border-radius: calc(var(--radius) + 4px);
}

.hero-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient);
  opacity: 0.35;
  filter: blur(14px);
  z-index: 0;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #ffffff 0%, #f5f2ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card-quote {
  position: relative;
  padding: 0.25rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-card-quote i {
  color: var(--accent);
  font-size: 1.4rem;
  opacity: 0.75;
}

.hero-card-quote p {
  margin: 0.35rem 0 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
  text-decoration: none;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ----- Sections ----- */
.section-pad {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #efeaff 0%, #f7f5ff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.section-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.section-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ----- Game cards ----- */
.game-card {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(80, 60, 140, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 18px 36px rgba(80, 60, 140, 0.12);
}

.game-card-media {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ddd6fe 0%, #c4b5fd 45%, #a5f3fc 100%);
  overflow: hidden;
}

.game-card-media-a {
  background: linear-gradient(145deg, #c4b5fd 0%, #a5f3fc 55%, #67e8f9 100%);
}

.game-card-media-b {
  background: linear-gradient(145deg, #fbcfe8 0%, #ddd6fe 50%, #a5f3fc 100%);
}

.game-card-media-c {
  background: linear-gradient(145deg, #ddd6fe 0%, #c4b5fd 45%, #99f6e4 100%);
}

.game-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-card-icon {
  font-size: 2.75rem;
  color: rgba(26, 20, 48, 0.55);
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
}

.game-badge {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-2);
  border: 1px solid rgba(8, 145, 178, 0.3);
  box-shadow: 0 4px 12px rgba(26, 20, 48, 0.12);
}

.game-badge-soon {
  color: var(--accent-hot);
  border-color: rgba(219, 39, 119, 0.3);
}

.game-badge-lab {
  color: var(--accent);
  border-color: rgba(124, 58, 237, 0.3);
}

.game-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.game-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.game-meta i {
  color: var(--accent);
  margin-right: 0.25rem;
}

/* ----- Studio ----- */
.studio-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.studio-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.studio-list i {
  color: var(--accent-2);
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.studio-panel {
  padding: 0.25rem;
}

.value-tile {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 4px 14px rgba(80, 60, 140, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.value-tile:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 8px 20px rgba(80, 60, 140, 0.08);
}

.value-tile i {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.65rem;
  display: inline-block;
}

.value-tile h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.value-tile p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ----- Craft ----- */
.craft-card {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 14px rgba(80, 60, 140, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.craft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow: 0 12px 28px rgba(80, 60, 140, 0.1);
}

.craft-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.craft-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.craft-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ----- CTA / Join ----- */
.section-cta {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.cta-panel {
  background:
    radial-gradient(ellipse 80% 80% at 20% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 70% at 90% 100%, rgba(8, 145, 178, 0.1), transparent 50%),
    #ffffff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 3rem 1.5rem;
  box-shadow: var(--shadow);
}

.cta-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 0.65rem;
  filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.2));
}

.cta-form {
  max-width: 480px;
}

.cta-input {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 999px 0 0 999px !important;
  padding-left: 1.25rem !important;
}

.cta-input::placeholder {
  color: var(--text-muted);
}

.cta-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.18) !important;
  border-color: var(--accent) !important;
}

.cta-form .btn-wasdeq {
  border-radius: 0 999px 999px 0;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Contact ----- */
.contact-actions .btn {
  min-width: 12rem;
}

/* ----- Message page ----- */
.message-section {
  min-height: calc(100vh - 72px - 12rem);
  display: flex;
  align-items: center;
}

.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2.75rem 1.75rem;
  box-shadow: var(--shadow);
}

.message-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  display: block;
  border-radius: 0.55rem;
}

.message-card-success {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(8, 145, 178, 0.1), transparent 55%),
    var(--bg-card);
}

.message-card-error {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(219, 39, 119, 0.08), transparent 55%),
    var(--bg-card);
}

.message-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.message-card-success .message-icon {
  color: var(--accent-2);
}

.message-card-error .message-icon {
  color: var(--accent-hot);
}

.message-title {
  margin-bottom: 0.85rem;
}

.message-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 28rem;
}

/* ----- Footer ----- */
.wasdeq-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.08);
}

.social-itch-icon {
  display: block;
}

.footer-divider {
  border-color: var(--border);
  margin: 1.5rem 0 1rem;
  opacity: 1;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ----- Focus / a11y ----- */
.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.2);
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.5rem 0;
  }

  .cta-panel {
    padding: 2rem 1.15rem;
  }

  .hero-section {
    padding-bottom: 3rem;
  }

  .scroll-hint {
    display: none;
  }
}
