:root {
  color-scheme: dark;
  --bg: #031113;
  --bg-deep: #010809;
  --panel: rgba(13, 38, 42, 0.72);
  --panel-strong: rgba(19, 53, 58, 0.86);
  --line: rgba(168, 239, 231, 0.2);
  --line-strong: rgba(130, 237, 228, 0.5);
  --text: #edf9f7;
  --muted: #a8c7c5;
  --faint: #789796;
  --aqua: #75e2d9;
  --aqua-strong: #99fff5;
  --aqua-dark: #092c30;
  --gold: #e6cf78;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --max: 1120px;
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(2, 20, 23, 0.1), rgba(1, 8, 9, 0.96) 48%, #010809 100%),
    #031113;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 8, 10, 0.04), rgba(2, 8, 10, 0.38) 44%, #010809 92%),
    image-set(url("/assets/hero-aquarium.png") 1x);
  background-position: center top;
  background-size: cover;
  opacity: 0.96;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 30%, transparent 72%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(123, 244, 235, 0.05), transparent 18%, rgba(0, 0, 0, 0.44) 100%);
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page {
  overflow: clip;
}

.topbar {
  position: relative;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(168, 239, 231, 0.09);
  background: rgba(1, 12, 14, 0.72);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  width: min(100% - 112px, var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(168, 239, 231, 0.24);
  box-shadow: 0 0 24px rgba(117, 226, 217, 0.18);
}

.brand__name,
.brand__sub {
  display: block;
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand__sub {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--aqua-strong);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(168, 239, 231, 0.16);
}

.lang-switch button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button.is-active {
  border-color: rgba(117, 226, 217, 0.45);
  background: rgba(117, 226, 217, 0.12);
  color: var(--aqua-strong);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 239, 231, 0.22);
  border-radius: 999px;
  background: rgba(10, 32, 36, 0.68);
  color: var(--text);
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.hero {
  position: relative;
  min-height: 520px;
  padding: 50px 0 34px;
}

.hero__inner,
.section__inner,
.footer__inner,
.doc-hero,
.doc-content {
  width: min(100% - 112px, var(--max));
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.hero__copy {
  padding: 24px 0;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--aqua-strong);
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 22px rgba(117, 226, 217, 0.85);
}

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

h1 {
  max-width: 10em;
  margin-bottom: 8px;
  font-size: clamp(3.1rem, 5vw, 4.7rem);
  line-height: 1.03;
  font-weight: 900;
}

.hero__subtitle {
  margin-bottom: 20px;
  color: var(--aqua-strong);
  font-size: clamp(1.3rem, 2vw, 1.68rem);
  font-weight: 800;
}

.hero__lead {
  max-width: 34rem;
  margin-bottom: 22px;
  color: #c9dfdd;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(117, 226, 217, 0.38);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(153, 255, 245, 0.76);
}

.button--primary {
  background: linear-gradient(180deg, #8ff4eb, #6dded5);
  color: #042325;
  box-shadow: 0 14px 38px rgba(117, 226, 217, 0.26);
}

.button--ghost {
  background: rgba(4, 20, 23, 0.58);
}

.app-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.app-store__badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: #020405;
  color: white;
  font-weight: 800;
}

.app-store__badge small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
}

.app-store__badge strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.app-store__note {
  font-size: 0.92rem;
}

.hero__visual {
  position: relative;
  min-height: 300px;
}

.icon-showcase {
  position: relative;
  width: min(100%, 260px);
  margin: 0 auto;
}

.icon-showcase::before {
  content: "";
  position: absolute;
  inset: -44px -64px;
  z-index: -1;
  border: 1px solid rgba(117, 226, 217, 0.26);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: inset 0 0 42px rgba(117, 226, 217, 0.22), 0 0 90px rgba(117, 226, 217, 0.13);
}

.icon-showcase::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 76%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(117, 226, 217, 0.28);
  filter: blur(18px);
}

.icon-showcase img {
  border-radius: 8px;
  border: 1px solid rgba(168, 239, 231, 0.24);
  box-shadow: var(--shadow), 0 0 70px rgba(117, 226, 217, 0.18);
}

.fish {
  position: absolute;
  width: 78px;
  height: 28px;
  border-radius: 60% 42% 42% 60%;
  background: linear-gradient(90deg, rgba(98, 179, 183, 0), rgba(129, 211, 213, 0.42));
  opacity: 0.42;
  filter: blur(0.4px);
}

.fish::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 5px;
  width: 18px;
  height: 18px;
  clip-path: polygon(0 50%, 100% 0, 72% 50%, 100% 100%);
  background: rgba(129, 211, 213, 0.35);
}

.fish--one {
  left: -18%;
  top: 14%;
  transform: scale(0.72);
}

.fish--two {
  right: -16%;
  top: 28%;
  transform: scale(0.54) rotate(2deg);
}

.fish--three {
  left: 18%;
  bottom: 4%;
  transform: scale(0.46) rotate(-3deg);
}

.bubble-field {
  position: absolute;
  inset: -8% 0 0;
  pointer-events: none;
}

.bubble-field span {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(168, 239, 231, 0.24);
  border-radius: 50%;
  opacity: 0.45;
}

.bubble-field span:nth-child(1) { left: 12%; top: 28%; }
.bubble-field span:nth-child(2) { left: 74%; top: 12%; width: 7px; height: 7px; }
.bubble-field span:nth-child(3) { left: 88%; top: 52%; width: 14px; height: 14px; }
.bubble-field span:nth-child(4) { left: 34%; top: 62%; width: 8px; height: 8px; }

.section {
  position: relative;
  padding: 30px 0;
}

.section--deep {
  background: linear-gradient(180deg, rgba(1, 8, 9, 0.46), rgba(1, 8, 9, 0.78));
}

.section__heading {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.section__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--aqua);
  font-size: 0.86rem;
  font-weight: 900;
}

.section h2,
.doc-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  line-height: 1.16;
  font-weight: 900;
}

.section__heading p,
.doc-hero p {
  color: var(--muted);
}

.feature-grid,
.support-grid,
.privacy-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 53, 58, 0.76), rgba(9, 31, 35, 0.68));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.card {
  min-height: 142px;
  padding: 20px;
}

.card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(117, 226, 217, 0.13);
  color: var(--aqua-strong);
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
  line-height: 1.36;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--aqua-strong);
  font-weight: 800;
  text-decoration: none;
}

.privacy-band {
  padding-bottom: 62px;
}

.footer {
  border-top: 1px solid rgba(168, 239, 231, 0.12);
  background: rgba(1, 8, 9, 0.82);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  color: var(--faint);
  font-size: 0.92rem;
}

.footer nav {
  display: flex;
  gap: 18px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.doc-body {
  background: #031113;
}

.doc-hero {
  padding: 76px 0 26px;
}

.doc-content {
  display: grid;
  gap: 18px;
  padding: 0 0 80px;
}

.doc-card {
  padding: 28px;
}

.doc-card h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.doc-card h3 {
  margin: 24px 0 8px;
}

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

.doc-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
}

.js-ready [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    width: min(100% - 28px, var(--max));
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 18, 21, 0.96);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .lang-switch {
    min-height: 44px;
    align-items: center;
  }

  .lang-switch {
    justify-content: space-between;
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 30px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__inner,
  .section__inner,
  .footer__inner,
  .doc-hero,
  .doc-content {
    width: min(100% - 28px, var(--max));
  }

  .hero__copy {
    padding: 20px 0 0;
  }

  h1 {
    font-size: clamp(2.35rem, 10vw, 2.8rem);
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .hero__lead {
    font-size: 0.96rem;
  }

  .hero__visual {
    min-height: 206px;
  }

  .icon-showcase {
    width: min(58vw, 188px);
  }

  .icon-showcase::before {
    inset: -34px -46px;
  }

  .section h2,
  .doc-hero h1 {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .section {
    padding: 26px 0;
  }

  .card {
    min-height: 0;
  }

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

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .feature-grid .card {
    min-height: 112px;
    padding: 14px;
  }

  .feature-grid .card__icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  .feature-grid .card__icon svg,
  .support-grid .card__icon svg,
  .privacy-grid .card__icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-grid .card h3 {
    margin-bottom: 0;
    font-size: 0.82rem;
  }

  .feature-grid .card p {
    display: none;
  }

  .support-grid,
  .privacy-grid {
    gap: 8px;
  }

  .support-grid .card,
  .privacy-grid .card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 12px 14px;
  }

  .support-grid .card__icon,
  .privacy-grid .card__icon {
    grid-row: 1 / span 3;
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .support-grid .card h3,
  .privacy-grid .card h3 {
    margin: 0;
    font-size: 0.92rem;
  }

  .support-grid .card p,
  .privacy-grid .card p,
  .support-grid .card a,
  .privacy-grid .card a {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .topbar__inner,
  .hero__inner,
  .section__inner,
  .footer__inner,
  .doc-hero,
  .doc-content {
    width: min(100% - 96px, var(--max));
  }

  .hero__inner {
    gap: 42px;
  }

  .card {
    padding: 18px;
  }

  .card p {
    font-size: 0.84rem;
  }
}
