@font-face {
  font-family: "Yoster";
  src: url("assets/yoster.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Splash";
  src: url("assets/splash-screen-font.ttf") format("truetype");
  font-display: swap;
}

:root {
  --water-bright: #62b8ea;
  --water-mid: #2f86be;
  --water-deep: #1f506d;
  --sand: #dfbf6a;
  --sand-bright: #f6dc9a;
  --wood: #47312a;
  --gold: #d49b3f;
  --foam: #d7f4ff;
  --seaweed: #4c8d38;
  --ink: #0f2f42;
  --card-bg: rgba(9, 40, 57, 0.88);
  --content-width: 1100px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(140, 210, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #5eb5e8 0%, #2c7cad 40%, #1b4a67 78%, #143748 100%);
  color: var(--foam);
  font-family: "Yoster", monospace;
  line-height: 1.55;
  overflow-x: hidden;
}

.water-overlay {
  position: fixed;
  inset: 0;
  background-image: url("assets/water.png");
  background-size: 260px;
  background-repeat: repeat;
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

/* ===================================================
   HERO
   =================================================== */

.hero {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1.75rem auto 1.5rem;
  border: 3px solid rgba(6, 22, 32, 0.9);
  background:
    linear-gradient(150deg, rgba(10, 68, 105, 0.97) 0%, rgba(14, 96, 144, 0.88) 50%, rgba(55, 148, 200, 0.8) 100%);
  box-shadow:
    inset 0 1px 0 rgba(200, 235, 255, 0.22),
    inset 0 -1px 0 rgba(6, 22, 32, 0.5),
    0 30px 56px rgba(6, 22, 32, 0.6),
    0 2px 8px rgba(6, 22, 32, 0.4);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.8rem;
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle water texture inside hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/water.png");
  background-size: 260px;
  opacity: 0.06;
  pointer-events: none;
}

/* Sand floor */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    linear-gradient(0deg, rgba(7, 30, 42, 0.72), transparent),
    url("assets/sand.png");
  background-size: auto, 480px;
  background-repeat: no-repeat, repeat;
  opacity: 0.85;
  pointer-events: none;
}

.hero-inner,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.logo {
  width: min(390px, 100%);
  image-rendering: pixelated;
  animation: logoBob 4.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(6, 22, 32, 0.55));
}

.eyebrow {
  margin: 1.1rem 0 0.4rem;
  color: var(--sand-bright);
  letter-spacing: 2px;
  font-size: 0.82rem;
  text-transform: uppercase;
  opacity: 0.85;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Splash", "Yoster", monospace;
  color: #ffcb6d;
  text-shadow: 2px 2px 0 rgba(42, 22, 10, 0.85), 0 0 28px rgba(212, 155, 63, 0.2);
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.intro {
  margin: 0;
  max-width: 55ch;
  color: #c5e8f8;
  line-height: 1.68;
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* ===================================================
   BUTTONS
   =================================================== */

.btn {
  display: inline-block;
  padding: 0.68rem 1.25rem;
  border: 2px solid rgba(8, 22, 32, 0.9);
  text-decoration: none;
  font-family: "Splash", "Yoster", monospace;
  font-size: 1rem;
  transition: transform var(--ease), filter var(--ease), box-shadow var(--ease);
  position: relative;
  cursor: pointer;
  user-select: none;
}

/* Pixel-art inner highlight bevel */
.btn::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px);
  filter: saturate(1.1) brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(180deg, #f7cc70 0%, #d68d2e 100%);
  color: #2a1708;
  box-shadow: 0 5px 0 #8c5818, 0 7px 14px rgba(6, 22, 32, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 7px 0 #8c5818, 0 9px 20px rgba(6, 22, 32, 0.45);
}

.btn-secondary {
  background: linear-gradient(180deg, #e6f8ff 0%, #70c2e4 100%);
  color: #0c2e3e;
  box-shadow: 0 5px 0 #2e75a0, 0 7px 14px rgba(6, 22, 32, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 7px 0 #2e75a0, 0 9px 20px rgba(6, 22, 32, 0.45);
}

.socials {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.socials a {
  color: rgba(215, 244, 255, 0.75);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(215, 244, 255, 0.28);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

.socials a:hover {
  color: var(--foam);
  border-color: rgba(215, 244, 255, 0.7);
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  width: min(460px, 100%);
  border: 3px solid rgba(4, 16, 24, 0.7);
  box-shadow:
    0 0 0 1px rgba(200, 235, 255, 0.16),
    0 18px 36px rgba(6, 22, 32, 0.6),
    inset 0 1px 0 rgba(200, 235, 255, 0.14);
  image-rendering: pixelated;
}

/* ===================================================
   MAIN LAYOUT
   =================================================== */

main {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto 2rem;
  display: grid;
  gap: 1.2rem;
}

/* ===================================================
   PANELS
   =================================================== */

.panel {
  border: 3px solid rgba(5, 20, 30, 0.9);
  background:
    linear-gradient(160deg, rgba(11, 62, 90, 0.95) 0%, rgba(8, 46, 68, 0.92) 100%),
    url("assets/ui-wood.png");
  background-size: auto, 128px;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow:
    inset 0 1px 0 rgba(200, 235, 255, 0.18),
    inset 0 0 0 1px rgba(200, 235, 255, 0.06),
    0 10px 28px rgba(6, 22, 32, 0.4);
  position: relative;
  overflow: hidden;
}

/* Top shimmer accent */
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(98, 184, 234, 0.6), rgba(214, 239, 251, 0.8), rgba(98, 184, 234, 0.6), transparent);
  pointer-events: none;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(98, 184, 234, 0.2);
  position: relative;
}

/* Gold underline accent on headings */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sand-bright), transparent);
}

/* ===================================================
   FEATURE CARDS
   =================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 2px solid rgba(4, 18, 27, 0.95);
  background: var(--card-bg);
  padding: 1.25rem 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

/* Gold top bar */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sand-bright), var(--gold));
}

/* Inner border highlight */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 235, 255, 0.1);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 14px 32px rgba(6, 22, 32, 0.55),
    0 0 0 1px rgba(98, 184, 234, 0.35),
    inset 0 0 24px rgba(98, 184, 234, 0.04);
}

.species-sprite {
  display: block;
  margin: 0.4rem auto 1.1rem;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 10px rgba(6, 22, 32, 0.55));
  transition: transform 220ms ease, filter 220ms ease;
}

.card:hover .species-sprite {
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 8px 14px rgba(6, 22, 32, 0.65)) brightness(1.05);
}

.species-bass,
.species-catfish {
  width: 96px;
  height: 96px;
  background-size: 288px 384px;
  background-position: -96px -96px;
}

.species-bass {
  background-image: url("assets/bass.png");
}

.species-catfish {
  background-image: url("assets/catfish.png");
}

.species-crawfish {
  width: 80px;
  height: 77px;
  background-image: url("assets/crawfish.png");
  background-size: 240px 308px;
  background-position: -80px -77px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  color: var(--sand-bright);
  text-shadow: 1px 1px 0 rgba(42, 22, 10, 0.7);
}

.card p {
  margin: 0;
  color: #b5e2f8;
  font-size: 0.9rem;
  line-height: 1.62;
}

/* ===================================================
   ECO-SIM AD SECTION
   =================================================== */

.ad-panel {
  /* inherits .panel */
}

.ad-lede {
  font-family: "Splash", "Yoster", monospace;
  color: var(--sand-bright);
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  text-shadow: 1px 1px 0 rgba(42, 22, 10, 0.6);
  margin: 0 0 1.2rem;
}

.ad-points {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.ad-points li {
  margin: 0;
  padding: 0.9rem 1rem;
  background: rgba(8, 38, 56, 0.7);
  border: 1px solid rgba(98, 184, 234, 0.18);
  border-left: 3px solid var(--water-bright);
  color: #d5f2ff;
  line-height: 1.58;
  font-size: 0.9rem;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.ad-points li:hover {
  background: rgba(12, 52, 76, 0.8);
  border-left-color: var(--sand-bright);
  transform: translateX(2px);
}

.ad-points strong {
  color: var(--sand-bright);
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.95rem;
}

.ad-tagline {
  margin: 0.2rem 0 0.9rem;
  color: #aae6ff;
  line-height: 1.62;
  font-size: 0.92rem;
  font-style: italic;
}

.copy-snippets {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  color: #c2eaff;
  line-height: 1.58;
}

.copy-snippets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.copy-snippets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--sand);
  opacity: 0.7;
}

.copy-snippets li + li {
  margin-top: 0.5rem;
}

/* ===================================================
   TRAILER
   =================================================== */

.trailer-panel h2 {
  margin-bottom: 1.2rem;
}

.video-shell {
  border: 3px solid rgba(28, 14, 8, 0.95);
  background:
    linear-gradient(180deg, rgba(24, 12, 6, 0.5), rgba(24, 12, 6, 0.65)),
    url("assets/ui-wood.png");
  background-size: auto, 128px;
  padding: 0.75rem;
  box-shadow:
    inset 0 1px 0 rgba(180, 120, 50, 0.25),
    inset 0 0 0 1px rgba(180, 120, 50, 0.1),
    0 10px 28px rgba(6, 22, 32, 0.5);
}

.video-shell video {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

/* ===================================================
   FOOTER
   =================================================== */

footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(6, 22, 32, 0.9);
  background: rgba(7, 28, 42, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(200, 235, 255, 0.12),
    0 6px 20px rgba(6, 22, 32, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

footer p {
  margin: 0;
  font-family: "Splash", "Yoster", monospace;
  color: var(--sand-bright);
  font-size: 1.05rem;
  text-shadow: 1px 1px 0 rgba(42, 22, 10, 0.7);
}

footer a {
  color: #9ae6ff;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(154, 230, 255, 0.3);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

footer a:hover {
  color: var(--foam);
  border-color: rgba(215, 244, 255, 0.65);
}

/* ===================================================
   SWIMMING FISH
   =================================================== */

.fish-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.fish {
  position: absolute;
  width: 96px;
  height: 96px;
  display: block;
  --frame-step: 96px;
  --frame-row: -96px;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-size: 288px 384px;
  background-position: 0 var(--frame-row);
  opacity: 0.88;
}

.fish-a {
  top: 16%;
  left: -18%;
  animation: swimRight 16s linear infinite, swimFrames 540ms linear infinite;
}

.fish-b {
  top: 68%;
  left: -25%;
  animation: swimRight 22s linear 3s infinite, swimFrames 500ms linear infinite;
}

.fish-c {
  top: 40%;
  left: -20%;
  animation: swimRight 19s linear 8s infinite, swimFrames 580ms linear infinite;
}

.sprite-minnow {
  background-image: url("assets/minnow.png");
}

.sprite-trout {
  background-image: url("assets/trout.png");
}

.sprite-salmon {
  background-image: url("assets/salmon.png");
}

/* ===================================================
   BUBBLES
   =================================================== */

.bubble {
  position: absolute;
  bottom: -30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(221, 251, 255, 0.72);
  background: rgba(199, 243, 255, 0.22);
  animation: bubbleRise linear forwards;
}

/* ===================================================
   KEYFRAMES
   =================================================== */

@keyframes swimRight {
  0%   { transform: translateX(0) translateY(0); }
  35%  { transform: translateX(49vw) translateY(-7px); }
  65%  { transform: translateX(94vw) translateY(6px); }
  100% { transform: translateX(140vw) translateY(0); }
}

@keyframes swimFrames {
  0%,   32.99% { background-position: 0 var(--frame-row); }
  33%,  65.99% { background-position: calc(var(--frame-step) * -1) var(--frame-row); }
  66%,  100%   { background-position: calc(var(--frame-step) * -2) var(--frame-row); }
}

@keyframes logoBob {
  0%,  100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes bubbleRise {
  from {
    transform: translateY(0) scale(0.4);
    opacity: 0;
  }
  10%  { opacity: 0.9; }
  to   {
    transform: translateY(-85vh) scale(1.45);
    opacity: 0;
  }
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.6rem;
  }

  .hero-art {
    order: -1;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero,
  main,
  footer {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .hero {
    margin-top: 0.75rem;
    padding: 1.2rem;
  }

  .panel {
    padding: 1.3rem 1.2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .ad-points {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .fish {
    width: 84px;
    height: 84px;
    --frame-step: 84px;
    --frame-row: -84px;
    background-size: 252px 336px;
    background-position: 0 var(--frame-row);
    opacity: 0.74;
  }
}
