/* styles.css — saltwater game studios
   clean studio theme: near-black canvas, one reef-aqua accent, crisp type,
   flat bordered cards. imagery is the game's own 2D sprites. no frameworks. */

:root {
  --bg: #05080e;
  --bg-raise: #0a1018;
  --panel: #0b121c;
  --edge: #1c2836;
  --edge-hi: #2f4256;
  --aqua: #2dd4bf;
  --aqua-dim: #1a8f81;
  --ink: #e8eef2;
  --ink-dim: #8fa3b3;
  --ink-faint: #5c6f80;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(90% 60% at 50% -10%, #0c1a26 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(45, 212, 191, 0.3); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand span { color: var(--ink-dim); font-weight: 400; }
.nav-fish { width: 30px; height: 30px; object-fit: contain; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--aqua); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 96svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6vw 90px;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--aqua);
  margin-bottom: 18px;
}

.wordmark {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.tagline {
  max-width: 540px;
  margin: 22px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--ink-dim);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-solid {
  background: var(--aqua);
  color: #04231e;
  font-weight: 700;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(45, 212, 191, 0.3); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--edge-hi);
}
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); transform: translateY(-2px); }

/* scattered school of sprites around the hero */
.hero-school { position: absolute; inset: 0; pointer-events: none; }
.school-fish {
  position: absolute;
  width: clamp(56px, 7vw, 104px);
  opacity: 0.9;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
  animation: swim 8s ease-in-out infinite;
}
.s1 { top: 16%; left: 9%; }
.s2 { top: 24%; right: 11%; animation-delay: -1.5s; }
.s3 { bottom: 22%; left: 14%; animation-delay: -3s; }
.s4 { bottom: 16%; right: 9%; animation-delay: -4.5s; }
.s5 { top: 52%; left: 3.5%; width: clamp(44px, 5vw, 76px); opacity: 0.65; animation-delay: -5.5s; }
.s6 { top: 46%; right: 3.5%; width: clamp(44px, 5vw, 76px); opacity: 0.65; animation-delay: -6.5s; }

@keyframes swim {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

/* ---------------- shared section chrome ---------------- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 5vw 20px;
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-lede {
  max-width: 660px;
  color: var(--ink-dim);
  margin-bottom: 44px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- featured game ---------------- */
.feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.gametitle {
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--aqua);
  margin-bottom: 18px;
}

.lede { color: var(--ink-dim); font-size: 1.05rem; max-width: 520px; }

.feature-list {
  list-style: none;
  margin-top: 34px;
  display: grid;
  gap: 20px;
}
.feature-list li {
  border-left: 2px solid var(--edge-hi);
  padding-left: 18px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: border-color 0.25s;
}
.feature-list li:hover { border-color: var(--aqua); }
.feature-list strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 2px;
}

.feature-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 12px;
  transition: transform 0.25s, border-color 0.25s;
}
.feature-mosaic img:hover { transform: translateY(-4px) scale(1.04); border-color: var(--aqua-dim); }

/* ---------------- stats ---------------- */
.stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 7vw, 110px);
  flex-wrap: wrap;
  margin-top: 90px;
  padding: 40px 5vw;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: var(--bg-raise);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label {
  color: var(--ink-faint);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

/* ---------------- dex ---------------- */
.dex-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  font-family: var(--font);
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--edge-hi);
  background: transparent;
  color: var(--ink-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover { color: var(--ink); border-color: var(--aqua-dim); }
.pill.active {
  background: var(--aqua);
  border-color: var(--aqua);
  color: #04231e;
  font-weight: 700;
}

.dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.dex-card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 16px 12px 12px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.dex-card:hover { transform: translateY(-4px); border-color: var(--aqua-dim); }
.dex-card.hidden { display: none; }
.dex-card img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  transition: transform 0.25s;
}
.dex-card:hover img { transform: scale(1.1); }
.dex-num {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--aqua);
  margin-top: 8px;
}
.dex-name { display: block; font-size: 0.86rem; font-weight: 600; margin-top: 2px; }
.dex-family { display: block; font-size: 0.72rem; color: var(--ink-faint); margin-top: 1px; }

.dex-note { margin-top: 26px; color: var(--ink-faint); font-size: 0.9rem; text-align: center; }

/* ---------------- socials ---------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}
.social-card:hover { transform: translateY(-4px); border-color: var(--aqua-dim); }
.social-card svg { width: 26px; height: 26px; margin-bottom: 10px; color: var(--ink-dim); transition: color 0.2s; }
.social-card:hover svg { color: var(--aqua); }
.social-name { font-weight: 700; font-size: 1rem; }
.social-handle { color: var(--ink-faint); font-size: 0.82rem; }

/* ---------------- footer ---------------- */
.footer {
  margin-top: 100px;
  padding: 40px 5vw 50px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.86rem;
  border-top: 1px solid var(--edge);
}
.footer-fish { width: 54px; margin-bottom: 8px; animation: swim 9s ease-in-out infinite; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-mosaic { max-width: 480px; }
}
@media (max-width: 680px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .s5, .s6 { display: none; }
  .school-fish { opacity: 0.55; }
  .section { padding-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .school-fish, .footer-fish { animation: none; }
  html { scroll-behavior: auto; }
}
