:root {
  --sky: #e3f6ff;
  --sky-soft: #f4faff;
  --water: #6fe4f5;
  --water-deep: #007d9c;
  --lagoon: #9ef3f3;
  --foam: #ffffff;
  --sand: #fadc8c;
  --sand-soft: #fff6d6;
  --coral: #ff765e;
  --ink: #0b2d3c;
  --muted: #628797;
  --line: rgba(11, 45, 60, 0.08);
  --line-active: rgba(0, 125, 156, 0.25);
  --panel: rgba(255, 255, 255, 0.65);
  --panel-hover: rgba(255, 255, 255, 0.92);
  --shadow: 0 30px 70px rgba(11, 57, 74, 0.07);
  --shadow-active: 0 40px 90px rgba(0, 125, 156, 0.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 125, 156, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 125, 156, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.8), transparent 35%),
    linear-gradient(180deg, var(--sky-soft) 0%, #e8f7fd 400px, #f2fafc 1200px, #ffffff 100%);
  background-size: 40px 40px, 40px 40px, auto, auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100;
  display: flex;
  width: min(1200px, calc(100% - 40px));
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(20px) saturate(160%);
  transition: all 0.5s var(--ease-out);
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: 
    linear-gradient(90deg, transparent 24px, rgba(0, 125, 156, 0.04) 24px, rgba(0, 125, 156, 0.04) 40%, transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  content: "";
}

.site-header.is-scrolled {
  top: 0;
  width: 100%;
  height: 64px;
  border-left: none;
  border-right: none;
  border-top: none;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 40px rgba(11, 57, 74, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: all 0.3s var(--ease-out);
}

.brand:hover .brand-mark {
  background: var(--ink);
  color: #fff;
}

.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  height: 44px;
  align-items: center;
  padding: 0 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--water-deep);
  background: rgba(0, 125, 156, 0.06);
  border: 1px solid rgba(0, 125, 156, 0.15);
}

.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding: 120px max(40px, calc((100vw - 1200px) / 2)) 160px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: oceanDrift 30s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 250, 253, 0.96) 0%, rgba(244, 250, 253, 0.82) 35%, rgba(244, 250, 253, 0.2) 70%, rgba(244, 250, 253, 0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(227, 246, 255, 0.8) 90%, #e3f6ff 100%);
  content: "";
}

.surface-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: color-burn;
  opacity: 0.4;
  background: repeating-linear-gradient(45deg, rgba(0, 125, 156, 0.05) 0 2px, transparent 2px 16px);
}

.wave-layer {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.wave-a {
  bottom: -20px;
  height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23e3f6ff' fill-opacity='0.7' d='M0,32L120,42.7C240,53,480,75,720,74.7C960,75,1200,53,1320,42.7L1440,32L1440,120L1320,120C1200,120,960,120,720,120C480,120,240,120,120,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 1440px 160px;
  animation: waveMove 16s linear infinite;
}

.wave-b {
  bottom: -40px;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L120,58.7C240,53,480,43,720,48C960,53,1200,75,1320,85.3L1440,96L1440,120L1320,120C1200,120,960,120,720,120C480,120,240,120,120,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 1440px 200px;
  animation: waveMoveReverse 24s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--water-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 7.5vw, 86px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-content p:not(.eyebrow) {
  max-width: 520px;
  margin: 28px 0 0;
  color: #2b4e5c;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-actions button,
.hero-actions a,
.community-links a,
.page-hero a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 45, 60, 0.03);
  transition: all 0.4s var(--ease-out);
}

.hero-actions button {
  gap: 20px;
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.hero-actions button strong {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 500;
  color: var(--sky);
}

.hero-actions button:hover {
  background: var(--water-deep);
  border-color: var(--water-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 125, 156, 0.2);
}

.hero-actions a:hover,
.community-links a:hover,
.page-hero a:hover {
  background: rgba(11, 45, 60, 0.05);
  transform: translateY(-3px);
}

.tide-board {
  position: absolute;
  right: max(40px, calc((100vw - 1200px) / 2));
  bottom: 140px;
  z-index: 10;
  width: min(380px, calc(100% - 80px));
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(140%);
  transition: all 0.5s var(--ease-out);
}

.tide-board:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-active);
  border-color: rgba(0, 125, 156, 0.2);
}

.tide-board > span {
  display: inline-flex;
  height: 28px;
  align-items: center;
  padding: 0 12px;
  color: #ffffff;
  background: var(--water-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.tide-board > strong {
  display: block;
  margin-top: 20px;
  font-size: 72px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--ink);
}

.tide-board b {
  font-weight: 900;
}

.tide-board small {
  margin: 0 4px;
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
}

.tide-board dl {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.tide-board dl div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.tide-board dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tide-board dd {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
}

.marina-line,
.voyage-section,
.harbor-section,
.tide-log,
.bottle-section,
.chart-grid,
.page-hero,
.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.marina-line {
  position: relative;
  z-index: 20;
  margin-top: -60px;
}

.marina-line > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.marina-line article {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out);
}

.marina-line article:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.marina-line strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.marina-line span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.voyage-section, .harbor-section, .tide-log, .bottle-section, .chart-grid {
  padding: 120px 0;
}

.section-title {
  max-width: 600px;
  margin-bottom: 48px;
}

.section-title h2,
.harbor-copy h2,
.bottle-section h2,
.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

.route-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route-item {
  position: relative;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease-out);
}

.route-item::before {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: transparent;
  content: "";
  transition: all 0.3s ease;
}

.route-item:hover {
  background: #ffffff;
  border-color: rgba(0, 125, 156, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-active);
}

.route-item:hover::before {
  background: var(--water-deep);
}

.route-item span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
}

.route-item h3 {
  margin: 32px 0 14px;
  font-size: 22px;
  font-weight: 800;
}

.route-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.harbor-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.harbor-copy p {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 16px;
}

.dock-list, .log-list, .chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: none;
  border: none;
}

.dock-list article,
.log-list article,
.chart-grid article {
  position: relative;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease-out);
}

.dock-list article:hover,
.log-list article:hover,
.chart-grid article:hover {
  background: #ffffff;
  border-color: rgba(0, 125, 156, 0.15);
  box-shadow: var(--shadow-active);
  transform: translateY(-4px);
}

.dock-list article::before,
.log-list article::before,
.chart-grid article::before {
  display: none;
}

.dock-list h3, .log-list h3, .chart-grid h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.dock-list p, .log-list p, .chart-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.log-list time, .chart-grid span {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 20px;
  color: #614411;
  background: var(--sand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.bottle-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.bottle-section ol {
  display: grid;
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.bottle-section li {
  position: relative;
  padding: 24px 32px 24px 72px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  counter-increment: step;
  transition: all 0.3s ease;
}

.bottle-section li:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line-active);
}

.bottle-section li::before {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  content: counter(step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 900;
}

.bottle-section li strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.bottle-section li p {
  margin: 8px 0 0;
  font-size: 14px;
}

.qr-panel {
  padding: 32px;
  border: 1px solid var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.qr-box {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(11, 45, 60, 0.2);
  background: var(--sky-soft);
}

.qr-box span {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.qr-box.has-image {
  border: none;
  background: #ffffff;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-panel strong {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.qr-panel p {
  display: block;
  text-align: center;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.community-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.community-links a {
  min-height: 46px;
  background: transparent;
}

.community-links a:hover {
  background: var(--ink);
  color: #ffffff;
}

.subpage-main {
  padding-top: 140px;
}

.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero a {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  margin-bottom: 24px;
}

.chart-grid {
  margin-top: 0;
  padding-top: 40px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  color: var(--water-deep);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 200;
  padding: 16px 24px;
  color: #ffffff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(11, 45, 60, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes oceanDrift {
  0% { transform: scale(1.01) translate3d(0, 0, 0); }
  100% { transform: scale(1.05) translate3d(-10px, -5px, 0); }
}

@keyframes waveMove {
  0% { background-position-x: 0; }
  100% { background-position-x: 1440px; }
}

@keyframes waveMoveReverse {
  0% { background-position-x: 1440px; }
  100% { background-position-x: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 960px) {
  .site-header {
    top: 16px;
    height: 64px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: block;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    cursor: pointer;
  }
  
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    transition: all 0.25s ease;
  }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    height: 48px;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    flex-direction: column;
    align-items: flex-start;
  }

  .tide-board {
    position: relative;
    right: auto; bottom: auto;
    width: 100%;
    margin-top: 48px;
  }

  .marina-line > div,
  .route-map,
  .harbor-section,
  .dock-list,
  .log-list,
  .bottle-section,
  .chart-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .marina-line { margin-top: -40px; }
  .harbor-section { gap: 32px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
  .hero-actions button, .hero-actions a { width: 100%; }
  .hero-actions button { min-height: 60px; }
  .site-footer { flex-direction: column; gap: 16px; text-align: center; }
}

/* ================================================
   YMZ Additional Styles - Forms, Cards, Lists
   ================================================ */

/* Content sections for subpages */
.content-section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0;
}

/* Card list for announcements and feedback */
.card-list {
  display: grid;
  gap: 20px;
}

.card-item {
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: all 0.4s var(--ease-out);
}

.card-item:hover {
  background: #ffffff;
  border-color: rgba(0, 125, 156, 0.15);
  box-shadow: var(--shadow-active);
  transform: translateY(-3px);
}

.card-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.card-item-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  flex: 1;
}

.card-item-id {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-item-body {
  font-size: 14px;
  line-height: 1.8;
  color: #2b4e5c;
}

.card-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* Status badges */
.badge {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.badge-online {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.badge-offline {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.badge-important {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.badge-normal {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.badge-pending {
  background: var(--sand);
  color: #614411;
}

.badge-resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.badge-bug {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.badge-suggestion {
  background: rgba(0, 125, 156, 0.1);
  color: var(--water-deep);
}

/* Forms */
.ocean-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.ocean-form h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
}

.ocean-form .form-desc {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  color: var(--ink);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--water-deep);
  box-shadow: 0 0 0 3px rgba(0, 125, 156, 0.1);
}

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

.form-select {
  cursor: pointer;
}

.btn-submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn-submit:hover {
  background: var(--water-deep);
  border-color: var(--water-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 125, 156, 0.2);
}

.char-count {
  text-align: right;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* Alert messages */
.alert {
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #065f46;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: rgba(0, 125, 156, 0.06);
  border-color: rgba(0, 125, 156, 0.2);
  color: var(--water-deep);
}

.pagination .active span {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.pagination .disabled span {
  color: var(--muted);
  opacity: 0.5;
  cursor: not-allowed;
}

/* Player list on index */
.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.player-tag {
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Gallery for screenshots */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease-out);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-active);
}

/* Video embed */
.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  background: var(--ink);
}

/* Map art upload area */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed var(--line);
  background: var(--sky-soft);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--water-deep);
  background: rgba(0, 125, 156, 0.04);
}

.upload-area p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Image preview in map art */
.order-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* Nav toggle hidden on desktop */
.nav-toggle {
  display: none;
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ocean-form {
    padding: 28px 20px;
  }
  .content-section > [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   Animations & Interactive Effects
   ================================================ */

/* Staggered fade-in for cards and list items */
.card-list .card-item,
.route-map .route-item,
.marina-line article,
.gallery-grid img {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.6s var(--ease-out) forwards;
}

.card-list .card-item:nth-child(1), .route-map .route-item:nth-child(1), .marina-line article:nth-child(1), .gallery-grid img:nth-child(1) { animation-delay: 0.05s; }
.card-list .card-item:nth-child(2), .route-map .route-item:nth-child(2), .marina-line article:nth-child(2), .gallery-grid img:nth-child(2) { animation-delay: 0.1s; }
.card-list .card-item:nth-child(3), .route-map .route-item:nth-child(3), .marina-line article:nth-child(3), .gallery-grid img:nth-child(3) { animation-delay: 0.15s; }
.card-list .card-item:nth-child(4), .route-map .route-item:nth-child(4), .marina-line article:nth-child(4), .gallery-grid img:nth-child(4) { animation-delay: 0.2s; }
.card-list .card-item:nth-child(5), .route-map .route-item:nth-child(5), .marina-line article:nth-child(5), .gallery-grid img:nth-child(5) { animation-delay: 0.25s; }
.card-list .card-item:nth-child(6), .route-map .route-item:nth-child(6), .marina-line article:nth-child(6), .gallery-grid img:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button pulse glow on hover */
.hero-actions button:hover,
.btn-submit:hover {
  animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 12px 24px rgba(0, 125, 156, 0.2); }
  50% { box-shadow: 0 12px 36px rgba(0, 125, 156, 0.4), 0 0 0 4px rgba(0, 125, 156, 0.08); }
}

/* Link underline slide effect */
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--water-deep);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}

.site-nav a {
  position: relative;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: calc(100% - 36px);
}

/* Badge subtle bounce on card hover */
.card-item:hover .badge {
  animation: badgeBounce 0.4s var(--ease-out);
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Tide board number count-up feel */
.tide-board > strong b {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.tide-board:hover > strong b {
  transform: scale(1.08);
}

/* Floating effect for QR panel */
.qr-panel {
  animation: floatSoft 6s ease-in-out infinite;
}

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

/* Form input focus glow animation */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  animation: inputGlow 0.4s ease;
}

@keyframes inputGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 125, 156, 0.3); }
  100% { box-shadow: 0 0 0 3px rgba(0, 125, 156, 0.1); }
}

/* Section titles - text gradient shimmer */
.section-title h2,
.harbor-copy h2,
.page-hero h1,
.hero h1 {
  background: linear-gradient(90deg, var(--ink) 0%, var(--water-deep) 50%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Eyebrow text typing-cursor effect */
.eyebrow::after {
  content: "|";
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  font-weight: 400;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Gallery image shine overlay on hover */
.gallery-grid img {
  position: relative;
  overflow: hidden;
}

.gallery-grid img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.gallery-grid img:hover::before {
  left: 100%;
}

/* Pagination hover lift */
.pagination a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 125, 156, 0.15);
}

/* Toast slide in from right */
.toast.is-visible {
  animation: toastSlideIn 0.4s var(--ease-out);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth scroll indicator pulse at hero bottom */
.wave-a {
  animation: waveMove 16s linear infinite, wavePulse 3s ease-in-out infinite;
}

@keyframes wavePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Brand mark spin on hover */
.brand:hover .brand-mark {
  animation: brandSpin 0.5s var(--ease-out);
}

@keyframes brandSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Developer avatar hover pop */
[style*="text-align: center"] img[src*="minotar"] {
  transition: all 0.4s var(--ease-out);
}

[style*="text-align: center"] img[src*="minotar"]:hover {
  transform: scale(1.12) translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 45, 60, 0.15);
}

/* Footer link hover effect */
.site-footer a {
  position: relative;
  transition: all 0.3s ease;
}

/* Landmark cards */
.landmark-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 125, 156, 0.12);
}

.landmark-card img {
  transition: transform 0.5s ease;
}

.landmark-card:hover img {
  transform: scale(1.05);
}

.site-footer a:hover {
  transform: translateY(-2px);
}

.site-footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--water-deep);
  transition: width 0.3s ease;
}

.site-footer a:hover::after {
  width: 100%;
}

/* ================================================
   Enhanced Scroll Reveal Animations
   ================================================ */

/* Override default section-reveal with more dramatic entrance */
.section-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition: opacity 2s var(--ease-out), transform 2s var(--ease-out);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1.8s var(--ease-out), transform 1.8s var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.8s var(--ease-out), transform 1.8s var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom in */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.8s var(--ease-out), transform 1.8s var(--ease-out);
}

.reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Flip in */
.reveal-flip {
  opacity: 0;
  transform: perspective(800px) rotateX(20deg) translateY(40px);
  transition: opacity 1.8s var(--ease-out), transform 1.8s var(--ease-out);
}

.reveal-flip.is-visible {
  opacity: 1;
  transform: perspective(800px) rotateX(0) translateY(0);
}

/* Stagger children with scroll reveal */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.stagger-children.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.stagger-children.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.stagger-children.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }
.stagger-children.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }
.stagger-children.is-visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 1.05s; }
.stagger-children.is-visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 1.2s; }

/* ================================================
   More Visible Interactive Effects
   ================================================ */

/* Card tilt 3D on hover */
.card-item {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-item:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 30px 60px rgba(0, 125, 156, 0.12), 0 0 0 1px rgba(0, 125, 156, 0.1);
}

/* Route items entrance spin from different angles */
.route-item:nth-child(odd) {
  transform-origin: left center;
}

.route-item:nth-child(even) {
  transform-origin: right center;
}

/* Glowing border animation on focused cards */
.card-item:hover,
.route-item:hover {
  box-shadow: 0 30px 60px rgba(0, 125, 156, 0.12), 0 0 0 1px rgba(0, 125, 156, 0.15);
}

/* Buttons - ripple effect on click */
.hero-actions button,
.hero-actions a,
.btn-submit,
.community-links a {
  position: relative;
  overflow: hidden;
}

.hero-actions button::after,
.hero-actions a::after,
.btn-submit::after,
.community-links a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50% !important;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.hero-actions button:active::after,
.hero-actions a:active::after,
.btn-submit:active::after,
.community-links a:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* Hover shine sweep on buttons */
.hero-actions button::before,
.hero-actions a::before,
.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-actions button:hover::before,
.hero-actions a:hover::before,
.btn-submit:hover::before {
  left: 120%;
}

/* Tide board shimmer border */
.tide-board {
  overflow: hidden;
}

.tide-board::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(111, 228, 245, 0.4) 50%, 
    transparent 70%
  );
  background-size: 200% 200%;
  animation: shimmerBorder 3s linear infinite;
  z-index: -1;
}

@keyframes shimmerBorder {
  0% { background-position: -100% -100%; }
  100% { background-position: 100% 100%; }
}

/* Hero content entrance - triggered by scroll */
.hero-content {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  filter: blur(4px);
  transition: opacity 2s var(--ease-out), transform 2s var(--ease-out), filter 2s var(--ease-out);
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Tide board slide in from right - triggered by scroll */
.tide-board {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.8s var(--ease-out), transform 1.8s var(--ease-out);
}

.tide-board.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Text highlight on hover for card titles */
.card-item-title {
  transition: all 0.3s ease;
  display: inline;
  background-image: linear-gradient(transparent 60%, rgba(111, 228, 245, 0.3) 60%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}

.card-item:hover .card-item-title {
  background-size: 100% 100%;
}

/* Parallax-like effect for hero media */
.hero-media img {
  transition: transform 0.1s linear;
}

/* Gallery grid hover - other images dim */
.gallery-grid:hover img {
  opacity: 0.7;
  filter: saturate(0.6);
  transition: all 0.4s ease;
}

.gallery-grid:hover img:hover {
  opacity: 1;
  filter: saturate(1.2);
  transform: scale(1.06);
  z-index: 2;
  position: relative;
}

/* Smooth color transition on navigation scroll */
.site-header {
  transition: all 0.5s var(--ease-out), background 0.8s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(30px) saturate(180%);
}

/* Floating particles effect behind hero (pure CSS) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(111, 228, 245, 0.4), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(158, 243, 243, 0.3), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(111, 228, 245, 0.3), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 70% 90%, rgba(0, 125, 156, 0.2), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(158, 243, 243, 0.4), transparent);
  animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-10px); }
  75% { transform: translateY(-30px) translateX(5px); }
  100% { transform: translateY(0) translateX(0); }
}

/* Bounce entrance for developer avatars */
[style*="text-align: center"] img[src*="minotar"] {
  animation: bounceIn 0.6s var(--ease-out) both;
}

[style*="text-align: center"]:nth-child(1) img[src*="minotar"] { animation-delay: 0.1s; }
[style*="text-align: center"]:nth-child(2) img[src*="minotar"] { animation-delay: 0.2s; }
[style*="text-align: center"]:nth-child(3) img[src*="minotar"] { animation-delay: 0.3s; }
[style*="text-align: center"]:nth-child(4) img[src*="minotar"] { animation-delay: 0.4s; }
[style*="text-align: center"]:nth-child(5) img[src*="minotar"] { animation-delay: 0.5s; }
[style*="text-align: center"]:nth-child(6) img[src*="minotar"] { animation-delay: 0.6s; }
[style*="text-align: center"]:nth-child(7) img[src*="minotar"] { animation-delay: 0.7s; }
[style*="text-align: center"]:nth-child(8) img[src*="minotar"] { animation-delay: 0.8s; }

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3) translateY(20px); }
  50% { opacity: 1; transform: scale(1.05) translateY(-5px); }
  70% { transform: scale(0.95) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Ocean form container breathing */
.ocean-form {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 125, 156, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(0, 125, 156, 0.06); }
}

/* Footer wave underline */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--water), var(--water-deep), var(--water), transparent);
  background-size: 200% 100%;
  animation: footerWave 4s linear infinite;
}

@keyframes footerWave {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Developer team background image float */
@keyframes bgFloat {
  0%, 100% { transform: translateY(0) scale(1.02); }
  50% { transform: translateY(-20px) scale(1.05); }
}
