* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-2: #0b1d2a;
  --surface: #102331;
  --surface-high: #173243;
  --ink: #f6fbf4;
  --muted: #c6d7d2;
  --quiet: #8fa9a4;
  --line: rgba(173, 226, 218, 0.22);
  --water: #76d7e5;
  --harbor: #1d4054;
  --cargo-a: #f5c95f;
  --cargo-b: #ec7d67;
  --cargo-c: #84db90;
  --cargo-d: #9ba7ff;
  --shadow: rgba(0, 0, 0, 0.46);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--water);
}

img,
svg {
  display: block;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(236, 125, 103, 0.12) 0 12%, transparent 12% 100%),
    linear-gradient(225deg, rgba(245, 201, 95, 0.1) 0 10%, transparent 10% 100%),
    linear-gradient(180deg, #102a38 0%, #081721 54%, #071018 100%),
    var(--bg);
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand-cluster {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.platform-link {
  display: inline-flex;
  width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 4px;
  background: transparent;
  text-decoration: none;
  transition: transform 160ms ease;
}

.platform-link:hover {
  transform: translateY(-1px);
}

.platform-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(118, 215, 229, 0.24);
}

.brand-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  background: rgba(246, 251, 244, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand::before {
  width: 18px;
  height: 18px;
  border: 2px solid var(--water);
  border-radius: 5px;
  background:
    linear-gradient(90deg, var(--cargo-a) 0 50%, transparent 50% 100%),
    linear-gradient(180deg, transparent 0 50%, var(--cargo-b) 50% 100%),
    rgba(118, 215, 229, 0.16);
  box-shadow: 0 0 24px rgba(118, 215, 229, 0.34);
  content: "";
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand:hover {
  color: #fff3c1;
}

.brand:hover::before {
  box-shadow: 0 0 32px rgba(245, 201, 95, 0.42);
  transform: rotate(8deg) translateY(-1px);
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.98) 0%, rgba(7, 16, 24, 0.9) 44%, rgba(7, 16, 24, 0.52) 100%),
    linear-gradient(180deg, rgba(9, 38, 54, 0.22), rgba(7, 16, 24, 0.95)),
    url("assets/shape-harbor-og.svg") right center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(rgba(118, 215, 229, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 215, 229, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 42%, rgba(245, 201, 95, 0.08) 42% 44%, transparent 44% 100%);
  background-size: 72px 72px, 72px 72px, 180px 180px;
  content: "";
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.84) 47%, transparent 88%);
  opacity: 0.66;
  transform: rotate(-1deg);
  animation: gridShift 18s linear infinite;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  gap: 44px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cargo-a);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 72px;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  margin: 26px 0 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.35;
}

.hero-summary {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118, 215, 229, 0.34);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(12, 34, 48, 0.78);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  border-color: rgba(245, 201, 95, 0.72);
  transform: translateY(-1px);
}

.button.primary {
  color: #11140b;
  border-color: rgba(245, 201, 95, 0.82);
  background: linear-gradient(135deg, var(--cargo-a), #f0a95b 72%, var(--cargo-b));
}

.button.pending {
  cursor: default;
}

.phone-showcase {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: center;
}

.phone-frame {
  width: min(330px, 82vw);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(236, 252, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(246, 251, 244, 0.12), rgba(246, 251, 244, 0.04));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.phone-shot {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  right: 0;
  bottom: 54px;
  max-width: 220px;
  border: 1px solid rgba(118, 215, 229, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: #e9fbff;
  background: rgba(8, 24, 34, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.mechanic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1160px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 0 0 44px;
}

.mechanic {
  min-height: 174px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(13, 35, 49, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.tile-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #10160c;
  background: var(--cargo-a);
  box-shadow: 0 10px 22px rgba(245, 201, 95, 0.2);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mechanic strong {
  display: block;
  margin-top: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.detail {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.story-band,
.build-status,
.screenshots,
.content {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) 320px;
  gap: 46px;
  align-items: center;
  padding: 72px 0;
}

.story-band h2,
.build-status h2,
.screenshots h2,
.content h1 {
  margin: 0;
  color: #ffffff;
  font-size: 40px;
  font-weight: 940;
  line-height: 1.05;
}

.story-band p,
.build-status p,
.screenshots-header p,
.content p,
.content li {
  color: var(--muted);
  font-size: 16px;
}

.board-demo {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  grid-auto-rows: 44px;
  gap: 8px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 34, 48, 0.96), rgba(9, 25, 36, 0.96));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.cell {
  border-radius: 8px;
  background: rgba(118, 215, 229, 0.18);
}

.cell.water {
  background:
    linear-gradient(135deg, rgba(118, 215, 229, 0.22), rgba(118, 215, 229, 0.08));
}

.cell.target {
  border: 1px solid rgba(207, 245, 242, 0.18);
  background: var(--harbor);
}

.cell.cargo-a {
  background: var(--cargo-a);
}

.cell.cargo-b {
  background: var(--cargo-b);
}

.cell.cargo-c {
  background: var(--cargo-c);
}

.build-status {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.screenshots {
  padding: 70px 0 36px;
}

.screenshots-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.wide-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.wide-shot img {
  width: 100%;
  height: auto;
}

.content {
  max-width: 830px;
  padding: 58px 0 42px;
}

.content h1 {
  font-size: 54px;
}

.content .lead {
  margin-top: 18px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.content h2,
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 30px;
  padding: 20px;
  background: rgba(13, 35, 49, 0.72);
}

.icon,
.inline-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-icon {
  width: 19px;
  height: 19px;
  color: var(--cargo-a);
}

.contact-line,
.privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.icon-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.icon-list li {
  display: flex;
  gap: 10px;
}

.footer {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 30px 0 36px;
}

.footer-identity,
.footer-actions {
  display: grid;
  gap: 12px;
}

.footer-brandline,
.footer-platform {
  display: flex;
  align-items: center;
}

.footer-brandline {
  gap: 12px;
}

.footer-platform,
.footer-game,
.footer-links a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.footer-platform {
  gap: 8px;
}

.footer-platform-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(246, 251, 244, 0.24);
}

.footer p {
  margin: 0;
  color: var(--quiet);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-language {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-language-label {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  min-height: 36px;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(118, 215, 229, 0.32);
  border-radius: 8px;
  padding: 7px 11px;
  color: #fff3c1;
  background: rgba(6, 18, 27, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  list-style: none;
  user-select: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.language-menu[open] summary {
  color: #171407;
  border-color: rgba(245, 201, 95, 0.72);
  background: var(--cargo-a);
}

.language-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.language-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 6;
  display: grid;
  width: min(220px, calc(100vw - 40px));
  max-height: min(320px, 58svh);
  overflow-y: auto;
  border: 1px solid rgba(118, 215, 229, 0.28);
  border-radius: 8px;
  padding: 6px;
  background: rgba(7, 16, 24, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.language-options a {
  display: flex;
  min-height: 38px;
  align-items: center;
  border-radius: 6px;
  padding: 9px 10px;
  color: #d8ebe8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  color: #171407;
  background: var(--cargo-a);
}

@keyframes gridShift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px, 180px 180px;
  }
}

@media (max-width: 880px) {
  .hero-layout,
  .story-band,
  .build-status,
  .screenshots-header {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    padding-top: 26px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 20px;
  }

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

  .story-band {
    padding-top: 52px;
  }

  .board-demo {
    justify-self: start;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links,
  .footer-language {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-layout,
  .mechanic-strip,
  .story-band,
  .build-status,
  .screenshots,
  .content,
  .footer {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
  }

  h1,
  .content h1 {
    font-size: 38px;
  }

  .story-band h2,
  .build-status h2,
  .screenshots h2 {
    font-size: 30px;
  }

  .mechanic-strip {
    grid-template-columns: 1fr;
  }

  .mechanic {
    min-height: auto;
  }

  .board-demo {
    grid-template-columns: repeat(5, 34px);
    grid-auto-rows: 34px;
    gap: 6px;
    padding: 16px;
  }

  .play-badge {
    position: static;
    margin-top: 12px;
  }

  .language-options {
    right: auto;
    left: 0;
  }
}
