/* Self-Hosted Local Font Definitions (100% Offline & Instant Loading) */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/PressStart2P-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/Silkscreen-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/Silkscreen-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Bold.ttf') format('truetype');
}

/* ==========================================================================
   WM LABS - Clean Pixel Aquarium Launchpad Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #031c47;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(30, 41, 59, 0.88);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-glow: rgba(56, 189, 248, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-coral: #fb7185;
  --accent-gold: #fbbf24;
  --accent-purple: #c084fc;

  /* Typography */
  --font-pixel: 'Silkscreen', monospace, system-ui;
  --font-arcade: 'Press Start 2P', monospace;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations & Blurs */
  --glass-blur: blur(14px);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.3);

  /* Transitions */
  --anim-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --anim-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* Fullscreen Aquarium Canvas */
#aquarium-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

/* UI Overlay Layer */
.ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.interactive {
  pointer-events: auto;
}

/* ==========================================================================
   Navigation Bar (Header) - Brand Left, Menu Perfectly Centered
   ========================================================================== */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(180deg, rgba(3, 15, 38, 0.85) 0%, rgba(3, 15, 38, 0.25) 75%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid var(--accent-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  image-rendering: pixelated;
  transition: transform var(--anim-fast);
}

.brand-group:hover .brand-icon-box {
  transform: scale(1.08) rotate(-3deg);
}

.brand-icon-box svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-cyan);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-arcade);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}


/* Nav Menu - Centered horizontally in the header */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.65rem;
  border-radius: 30px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-arcade);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--anim-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--anim-smooth);
}

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

.modal-window {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border-glass-glow);
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  transform: scale(0.95) translateY(12px);
  transition: all var(--anim-smooth);
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--anim-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

/* ==========================================================================
   Product Detail Dossier (Slide-over Drawer)
   ========================================================================== */
/* ==========================================================================
   Product Dossier Popup Window (Fish Click Popup)
   ========================================================================== */
/* ==========================================================================
   Product Dossier Popup Window (Fish Click Popup)
   ========================================================================== */
.product-modal-window {
  max-width: 1080px;
  width: 94%;
  max-height: 90vh;
  padding: 2.6rem 3rem;
  background: rgba(11, 18, 35, 0.97);
  border: 1px solid var(--border-glass-glow);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.16);
  border-radius: 20px;
}

.product-modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-cycle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 7px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--anim-fast);
}

.modal-cycle-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
}

.product-modal-left {
  display: flex;
  flex-direction: column;
}

.product-modal-right {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 3rem;
}

.modal-footer-actions {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 920px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .product-modal-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.8rem;
  }
  .product-modal-window {
    padding: 1.8rem;
    max-height: 92vh;
  }
}

.product-hero-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.product-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--drawer-accent, #38bdf8) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.product-avatar-preview {
  width: 96px;
  height: 72px;
  background: rgba(2, 6, 23, 0.6);
  border: 1.5px solid var(--drawer-accent, #38bdf8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.product-avatar-preview canvas {
  image-rendering: pixelated;
  max-width: 86px;
  max-height: 58px;
}

.product-meta-block {
  flex: 1;
}

.product-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.badge-tag {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-status {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-category {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.product-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.product-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.section-label {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-description-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 1.8rem;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.highlights-list li::before {
  content: '▶';
  color: var(--drawer-accent, #38bdf8);
  font-size: 0.7rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  text-align: center;
}

.metric-value {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


.btn-primary-launch {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.6);
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-pixel);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
  transition: all var(--anim-fast);
}

.btn-primary-launch:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.6);
  transform: translateY(-2px);
}

.domain-note {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   Products Shelf Overlay Grid
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.product-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all var(--anim-fast);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--card-accent, var(--accent-cyan));
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.card-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   About Us & Contact Modal Styles
   ========================================================================== */
.content-modal-header {
  margin-bottom: 1.25rem;
}

.modal-main-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.modal-main-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.manifesto-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  transition: border-color var(--anim-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-menu {
    position: static;
    transform: none;
    width: 100%;
    justify-content: space-around;
  }


}
