/* ============================================================
   AGORA EXCHANGE — style.css
   Luxury Cyber Aesthetic · Desktop & Mobile
   ============================================================ */

/* ========== ROOT VARIABLES ========== */
:root {
  --bg-main: #000000;
  --bg-alt: #0d0d0f;
  --bg-panel: rgba(255, 255, 255, 0.03);
  --bg-panel-strong: rgba(255, 255, 255, 0.06);

  --text-main: #ffffff;
  --text-dim: #bfc3ce;
  --text-soft: #999dae;

  --accent: #4dd8ff;
  --accent-soft: rgba(77, 216, 255, 0.5);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-heavy: rgba(255, 255, 255, 0.15);

  --radius: 14px;
  --radius-sm: 8px;

  --shadow-1: 0 3px 15px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 6px 30px rgba(0, 0, 0, 0.5);

  --transition: 0.25s ease;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #101622 0, #020308 45%, #000000 100%);
  color: var(--text-main);
  font-family: "Inter", "SF Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Disable selection glow on mobile */
body * {
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar sleek mode */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 40px;
}

/* ========== APP SHELL ========== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== UTILITY STYLES ========== */
.hidden {
  display: none !important;
}

.btn {
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.btn-primary:hover {
  background: #6ee4ff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #000;
}

.btn-ghost {
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-dim); /* visible even idle */
  font-weight: 500;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(77, 216, 255, 0.08);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 999;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
}

.brand-mark-small {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 16px;
  font-weight: 600;
}
.brand-subline {
  font-size: 11px;
  color: var(--text-soft);
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

/* CTA in nav */
.nav-cta {
  padding: 9px 16px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #000;
  font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover {
  background: #6ee4ff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
}

/* ============================================================
   VIEW SYSTEM
   ============================================================ */

.site-main {
  width: 100%;
  flex: 1;
}

.view {
  display: none;
  padding: 100px 26px 120px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.6s ease forwards;
}

.view.is-active {
  display: block;
}

.view-header {
  margin-bottom: 38px;
}

.view-kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.view-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.view-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.1;
}

.hero-highlight {
  color: var(--accent);
}

.hero-body {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.hero-stat-label {
  color: var(--text-soft);
  font-size: 12px;
}
.hero-stat-value {
  font-size: 22px;
  font-weight: 700;
}

/* Hero right panels */
.hero-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-1);
  margin-bottom: 22px;
}

.hero-panel-primary {
  background: var(--bg-panel-strong);
}

.panel-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.panel-body {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}

.panel-list {
  list-style: none;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.signal-label {
  font-size: 13px;
  color: var(--text-soft);
}

.link-inline {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

/* ============================================================
   CARDS / GRID SYSTEM
   ============================================================ */

.grid-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.grid-three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(12px);
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.card-list {
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Product cards: keep CTA visually anchored lower */
.product-card .btn-secondary {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

/* CTA row spacing */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Pills */
.section-inline {
  margin-top: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.pill {
  padding: 16px;
  background: var(--bg-panel-strong);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  min-width: 180px;
}

.pill-label {
  font-weight: 600;
  color: var(--accent);
  margin-right: 6px;
}

.pill-text {
  font-size: 14px;
  color: var(--text-dim);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row-inline {
  display: flex;
  gap: 16px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

input,
select,
textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(77, 216, 255, 0.4);
}

textarea {
  resize: vertical;
}

.form-footnote {
  font-size: 13px;
  color: var(--text-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #050505;
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
  padding-top: 50px;
  padding-bottom: 36px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 32px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-body {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 6px;
  padding: 0;
  text-align: left;
}
.footer-link:hover {
  color: var(--accent);
}

.footer-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-form input {
  flex: 1;
}

.footer-bottom {
  max-width: 1400px;
  margin: 34px auto 0;
  padding: 0 26px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: var(--text-soft);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
}

.footer-bottom-link {
  color: var(--text-soft);
  margin-left: 16px;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
}
.footer-bottom-link:hover {
  color: var(--accent);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1000px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .view {
    padding: 80px 20px 90px;
  }

  .view-title {
    font-size: 32px;
  }

  .hero-title {
    font-size: 38px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .grid-two-column,
  .grid-three-column {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  /* Mobile Nav */
  .site-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    left: auto;
    background: rgba(5, 7, 14, 0.97);
    border: 1px solid var(--border-light);
    padding: 18px;
    border-radius: var(--radius);
    width: min(240px, 80vw);
    flex-direction: column;
    backdrop-filter: blur(18px);
    display: none;
    box-shadow: var(--shadow-2);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
  }

  .nav-link {
    font-size: 15px;
    text-align: left;
  }

  .nav-cta {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
    width: 34px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle-bar {
    width: 100%;
    height: 4px;
    background: var(--text-main);
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
  }

  .header-inner {
    padding-inline: 16px;
  }

  .view {
    padding: 80px 16px 80px;
  }

  .view-title {
    font-size: 28px;
  }

  .view-subtitle {
    font-size: 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-layout {
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    flex-direction: row;
    row-gap: 18px;
  }

  .grid-two-column,
  .grid-three-column {
    grid-template-columns: 1fr;
  }

  .product-card .btn-secondary {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .form-row-inline {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-bottom-links {
    margin-left: -4px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 15px;
  }

  .site-header {
    border-bottom-width: 0.5px;
  }

  .view {
    padding-top: 76px;
    padding-bottom: 70px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-body {
    font-size: 15px;
  }

  .hero-meta {
    flex-direction: column;
  }

  .card {
    padding: 20px;
  }

  .btn {
    width: 100%;
  }

  .footer-inner {
    padding-inline: 16px;
  }

  .footer-bottom {
    padding-inline: 16px;
  }
}

/* ============================
   MOBILE FIX — UNIFORM PILL WIDTHS
   ============================ */

@media (max-width: 640px) {
  .pill-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .pill {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    min-height: 54px;

    /* Ensures all pills appear the same width visually */
    box-sizing: border-box;
  }

  .pill-label {
    flex-shrink: 0;
    min-width: 72px; /* keeps labels aligned */
  }

  .pill-text {
    flex: 1;
  }
}

/* ============================
   CONTACT PAGE — Nudge Aside Card Down Slightly
   ============================ */

.view-contact .contact-aside .card {
  margin-top: 1.5rem; /* adjust this value up/down as needed */
}

/* ============================================
   LOGO OUTLINE FIX — CLEAN + ERROR-FREE
   ============================================ */

.brand-mark,
.brand-mark-small {
  background: transparent !important;
  border: 2px solid rgba(0, 200, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 6px;
}

/* Header logo size */
.brand-mark .brand-logo-image {
  width: 34px;
  height: auto;
}

/* Footer logo size */
.brand-mark-small .brand-logo-image {
  width: 28px;
 height: auto;
}

/* ============================================================
   PRODUCT CARD — Consistent height + stronger bottom spacing
   ============================================================ */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1.25rem; /* subtle extra spacing at bottom */
}

.product-card .card-body,
.product-card .card-list {
  flex-grow: 1; /* pushes the button downward */
}

.product-card .btn-secondary {
  margin-top: 1.75rem; /* EXTRA breathing room above button */
  align-self: flex-start;
}

/* =========================================
   GALLERY / SHOWCASE
   ========================================= */

.view-gallery .view-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #e5e7eb;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.filter-btn.is-active {
  background: radial-gradient(circle at top left, #4f46e5, #020617);
  border-color: #4f46e5;
  transform: translateY(-1px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.gallery-item {
  background: radial-gradient(
      circle at top left,
      rgba(148, 163, 184, 0.12),
      rgba(15, 23, 42, 0.98)
    );
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.95);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-figure {
  overflow: hidden;
  border-radius: 0.85rem;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #020617, #000);
}

.gallery-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.gallery-desc {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .gallery-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
}

/* ==============================
   Hades Toast / Agora Signal
   ============================== */

.hades-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  padding: 0.9rem 1rem;
  background: rgba(4, 12, 28, 0.96);
  border-radius: 0.9rem;
  border: 1px solid rgba(100, 255, 218, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
  transform: translateX(130%);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease-out;
}

.hades-toast.is-visible {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}

.hades-toast.is-hiding {
  transform: translateX(130%);
  opacity: 0;
  pointer-events: none;
}

.hades-image-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(
    circle at 30% 0%,
    rgba(100, 255, 218, 0.45),
    transparent 55%
  );
}

.hades-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.85));
}

.hades-text {
  flex: 1;
  min-width: 0;
}

.hades-label {
  margin: 0 0 0.1rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.hades-message {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #e5edff;
}

.hades-message span {
  color: #64ffda;
  font-weight: 500;
}

.hades-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0 0 0.4rem;
  transition: color 150ms ease-out;
}

.hades-close:hover {
  color: #64ffda;
}

/* Mobile: move up a bit & tighten */
@media (max-width: 640px) {
  .hades-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    max-width: none;
  }

  .hades-image-wrap {
    width: 52px;
    height: 52px;
  }

  .hades-message {
    font-size: 0.8rem;
  }
}

/* ==============================
   Showcase Updates Modal
   ============================== */

.showcase-modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at top right,
      rgba(100, 255, 218, 0.06),
      transparent 55%
    ),
    rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition:
    opacity 260ms ease-out,
    backdrop-filter 260ms ease-out;
  backdrop-filter: blur(0px);
}

.showcase-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.showcase-modal-panel {
  position: relative;
  max-width: 520px;
  width: 100%;
  padding: 1.5rem 1.6rem 1.35rem;
  border-radius: 1rem;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.9)
    );
  border: 1px solid rgba(100, 255, 218, 0.32);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.showcase-modal-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.showcase-modal-title {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  color: #e5edff;
}

.showcase-modal-list {
  margin: 0 0 0.65rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.96);
}

.showcase-modal-list li + li {
  margin-top: 0.25rem;
}

.showcase-modal-foot {
  margin: 0 0 0.9rem;
  font-size: 0.83rem;
  color: rgba(148, 163, 184, 0.98);
}

.showcase-modal-cta {
  width: 100%;
  justify-content: center;
}

.showcase-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 150ms ease-out;
}

.showcase-modal-close:hover {
  color: #64ffda;
}

@media (max-width: 640px) {
  .showcase-modal-panel {
    padding: 1.35rem 1.2rem 1.1rem;
  }

  .showcase-modal-title {
    font-size: 1.1rem;
  }

  .showcase-modal-list {
    font-size: 0.84rem;
  }
}

/* Hades / Showcase modal art */
.showcase-modal-panel {
  position: relative;
  overflow: hidden;
}

.showcase-modal-hero {
  position: absolute;
  right: -20px;
  top: -10px;
  width: 180px;
  opacity: 0.22;
  pointer-events: none;
}

.showcase-modal-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(100, 255, 218, 0.45));
}

/* Keep text above the illustration */
.showcase-modal-kicker,
.showcase-modal-title,
.showcase-modal-list,
.showcase-modal-foot,
.showcase-modal-cta {
  position: relative;
  z-index: 1;
}

/* On small screens, shrink / fade him a bit */
@media (max-width: 768px) {
  .showcase-modal-hero {
    width: 130px;
    opacity: 0.18;
    right: -10px;
    top: -5px;
  }
}

/* ================================================
   Showcase Modal — Enhanced Dark Mesh Background
   ================================================ */

.showcase-modal-panel {
  position: relative;
  overflow: hidden;
  background: rgba(8, 14, 26, 0.92); /* Slightly darker */
  backdrop-filter: blur(18px);
  border: 1px solid rgba(120, 220, 255, 0.12);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55); /* Heavier drop shadow */
}

/* Background container for mesh */
.showcase-modal-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.40; /* Slightly darker than before */
}

/* Canvas fills the modal */
#showcase-mesh {
  width: 100%;
  height: 100%;
  display: block;
}

/* NEW: subtle darkening overlay on top of canvas */
.showcase-modal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.25) 0%,    /* center darker a bit */
    rgba(0, 0, 0, 0.45) 100%   /* edges fade to darker */
  );
  pointer-events: none;
  z-index: 2;
}

/* Modal content sits above everything */
.showcase-modal-panel > *:not(.showcase-modal-bg) {
  position: relative;
  z-index: 10;
}

.showcase-modal-close {
  position: absolute;
  top: -8px;      /* ← move it UP */
  right: 12px;   /* slight adjustment to keep symmetry */
  z-index: 20;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.showcase-modal-close:hover {
  color: #64ffda;
  transform: scale(1.12);
}
