/* Mindquay landing — harbor portal aesthetic
   Deep navy/teal · gold + red accents from child surfaces · slow water animation */

:root {
  --bg-deep: #050d12;
  --bg-mid: #0a1820;
  --bg-soft: #0e2230;
  --ink: #e8f1f5;
  --ink-dim: #8aa3b0;
  --ink-faint: #4a6470;
  --line: rgba(138, 163, 176, 0.18);
  --line-strong: rgba(138, 163, 176, 0.35);
  --astraeus-gold: #d4af37;
  --astraeus-violet: #8a6dc4;
  --boss-red: #e8222e;
  --boss-red-glow: rgba(232, 34, 46, 0.35);
  --teal: #4ad6c4;
}

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

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 214, 196, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 100%, rgba(212, 175, 55, 0.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 100%, rgba(232, 34, 46, 0.04), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  min-height: 100vh;
}

#quay-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.portal {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 32px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Brand mark ─────────────────────────────────────────────── */

.brand {
  text-align: center;
  margin-bottom: 56px;
  animation: rise 1.2s ease-out;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.mark-bar {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.mark-text {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(74, 214, 196, 0.15);
}

.tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: lowercase;
}

/* ─── Intro ──────────────────────────────────────────────────── */

.intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  animation: rise 1.2s ease-out 0.15s both;
}

.intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 300;
}

.intro-dim {
  color: var(--ink-dim) !important;
  font-size: 13px !important;
  letter-spacing: 0.05em;
  margin-top: 18px !important;
  font-style: italic;
}

/* ─── Vessels ────────────────────────────────────────────────── */

.vessels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  animation: rise 1.2s ease-out 0.3s both;
}

.vessel {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(14, 34, 48, 0.6), rgba(10, 24, 32, 0.4));
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vessel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.vessel:hover::before { transform: translateX(100%); }

.vessel-astraeus { border-left: 2px solid var(--astraeus-gold); color: var(--astraeus-gold); }
.vessel-astraeus:hover {
  border-color: var(--astraeus-gold);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.15), inset 0 0 30px rgba(212, 175, 55, 0.04);
  transform: translateY(-2px);
}

.vessel-boss { border-left: 2px solid var(--boss-red); color: var(--boss-red); }
.vessel-boss:hover {
  border-color: var(--boss-red);
  box-shadow: 0 0 60px var(--boss-red-glow), inset 0 0 30px rgba(232, 34, 46, 0.05);
  transform: translateY(-2px);
}

.vessel-glyph {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.vessel-glyph-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(232, 34, 46, 0.45));
}

.vessel-body {
  flex: 1;
  min-width: 0;
}

.vessel-label {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 4px;
}

.vessel-boss .vessel-label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.vessel-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.vessel-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  font-weight: 300;
  max-width: 540px;
}

.vessel-arrow {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 300;
  opacity: 0.5;
  transition: all 0.4s ease;
}

.vessel:hover .vessel-arrow {
  opacity: 1;
  transform: translateX(6px);
}

/* ─── Dock (footer) ──────────────────────────────────────────── */

.dock {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: rise 1.2s ease-out 0.45s both;
}

.dock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}

.dock-text { color: var(--ink); }
.dock-text-dim { color: var(--ink-dim); }
.dock-sep { color: var(--ink-faint); }
.dock-est { color: var(--ink-faint); font-style: italic; }

/* ─── Animations ─────────────────────────────────────────────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--teal); }
  50% { opacity: 0.5; box-shadow: 0 0 14px var(--teal); }
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 640px) {
  .portal { padding: 56px 20px 32px; }
  .mark-text { font-size: 28px; letter-spacing: 0.32em; }
  .mark-bar { width: 36px; }
  .intro p { font-size: 15px; }
  .vessel { padding: 22px 20px; gap: 16px; }
  .vessel-glyph { width: 44px; height: 44px; }
  .vessel-glyph svg { width: 40px; height: 40px; }
  .vessel-label { font-size: 14px; }
  .vessel-desc { font-size: 12px; }
  .vessel-arrow { font-size: 20px; }
  .dock { font-size: 10px; flex-wrap: wrap; }
}
