:root {
  color-scheme: light;
  --mint: #6fd8bd;
  --mint-strong: #35b996;
  --mint-soft: #e9fbf5;
  --ink: #273d39;
  --muted: #6c7f7a;
  --line: rgba(62, 120, 108, 0.18);
  --paper: #fbfffd;
  --warm: #fff6e8;
  --orange: #ff8d2a;
  --shadow: 0 22px 60px rgba(55, 137, 115, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(111, 216, 189, 0.26), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(255, 184, 99, 0.16), transparent 24rem),
    linear-gradient(180deg, #f5fffb 0%, #ffffff 44%, #f7fffb 100%);
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  animation: pageFadeIn 220ms ease-out both;
}

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

.site {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(247, 255, 251, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: 54px;
  padding: 56px 0 44px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--mint-strong);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 21px);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(44, 166, 134, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(44, 166, 134, 0.2);
}

.button:active {
  transform: translateY(0);
}

.button-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, #41c7a4, #25a985);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.hero-art {
  display: flex;
  min-height: 520px;
  align-items: end;
  justify-content: center;
  overflow: visible;
}

.hero-art img {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.section-head p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(68, 132, 115, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(68, 132, 115, 0.11);
}

.panel h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 18px;
  align-items: stretch;
}

.banner {
  overflow: hidden;
  min-height: 380px;
  border-radius: 28px;
  background: var(--warm);
  box-shadow: var(--shadow);
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
}

.download-panel h2 {
  margin-bottom: 10px;
}

.download-panel p {
  color: var(--muted);
}

.legal-layout {
  max-width: 840px;
  padding: 48px 0 64px;
}

.legal-layout h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.legal-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 24px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.contact-card {
  background:
    radial-gradient(circle at 86% 18%, rgba(111, 216, 189, 0.2), transparent 15rem),
    rgba(255, 255, 255, 0.82);
}

.email-link {
  display: inline-flex;
  max-width: 100%;
  margin: 6px 0 18px;
  padding: 14px 18px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-strong);
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.992);
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-ready .hero-art.reveal {
  transform: translate3d(0, 10px, 0) scale(0.985);
}

.motion-ready .hero-art.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.footer {
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 820px) {
  .site {
    width: min(100% - 24px, 1120px);
  }

  .nav-inner {
    min-height: 64px;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    padding-top: 42px;
    padding-bottom: 30px;
  }

  .hero::before {
    position: absolute;
    inset: 18px -98px auto auto;
    width: min(520px, 122vw);
    aspect-ratio: 1;
    background-image: url("./assets/otter_welcome.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    opacity: 0.22;
    pointer-events: none;
  }

  .hero > div:first-child {
    position: relative;
    z-index: 1;
    padding: 0;
  }

  .hero-art {
    display: none;
  }

  .download-row .button {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 10px;
  }

  .grid,
  .split {
    grid-template-columns: 1fr;
  }

  .banner {
    min-height: 300px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a:nth-child(1),
  .nav-links a:nth-child(3) {
    display: none;
  }
}

@media (max-width: 480px) {

  h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .panel,
  .download-panel,
  .legal-card {
    padding: 20px;
    border-radius: 20px;
  }
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
