:root {
  --bg-deep: #050b14;
  --bg-mid: #0a1628;
  --bg-panel: #0e1a2c;
  --ink: #e8f1fa;
  --ink-soft: #9bb4cb;
  --ink-muted: #5e7a94;
  --primary: #1a8fd4;
  --primary-deep: #0e6aa8;
  --accent: #3dd0d8;
  --line: rgba(75, 168, 232, 0.18);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* —— Top bar —— */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(5, 11, 20, 0.92),
    rgba(5, 11, 20, 0.55),
    transparent
  );
  transition: background 0.35s var(--ease-out);
}

.topbar.is-scrolled {
  background: rgba(5, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.topbar-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
  transition:
    border-color 0.25s,
    background 0.25s;
}

.nav-cta:hover {
  border-color: var(--primary);
  background: rgba(26, 143, 212, 0.12);
}

@media (max-width: 760px) {
  .topbar-nav a:not(.nav-cta) {
    display: none;
  }
}

/* —— Hero —— */
.hero {
  --water: clamp(9.5rem, 26vh, 13.5rem);
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 1.5rem 0;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 70% 20%,
      rgba(14, 106, 168, 0.35),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 15% 60%,
      rgba(61, 208, 216, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, #050b14 0%, #0a1628 48%, #0c2740 78%, #0e3a58 100%);
}

.hero-glow {
  position: absolute;
  width: 55vmin;
  height: 55vmin;
  right: 8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(26, 143, 212, 0.28),
    transparent 68%
  );
  animation: pulse-glow 7s ease-in-out infinite;
}

.hero-horizon {
  display: none;
}

.wave {
  position: absolute;
  left: -10%;
  right: -10%;
  height: var(--water);
  bottom: 0;
  border-radius: 45% 55% 0 0 / 100% 100% 0 0;
  opacity: 0.55;
}

.wave-a {
  bottom: 0;
  height: calc(var(--water) + 1.5vh);
  background: linear-gradient(
    180deg,
    rgba(14, 106, 168, 0.35),
    rgba(5, 11, 20, 0.95)
  );
  animation: swell 9s ease-in-out infinite;
}

.wave-b {
  bottom: -1.5vh;
  height: var(--water);
  background: linear-gradient(
    180deg,
    rgba(26, 143, 212, 0.22),
    rgba(5, 11, 20, 0.9)
  );
  animation: swell 11s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.wave-c {
  bottom: -3vh;
  height: calc(var(--water) - 2vh);
  background: linear-gradient(
    180deg,
    rgba(61, 208, 216, 0.12),
    rgba(5, 11, 20, 1)
  );
  animation: swell 13s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes swell {
  0%,
  100% {
    transform: translateX(0) scaleY(1);
  }
  50% {
    transform: translateX(-3%) scaleY(1.06);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  /* Keep copy clearly above the waterline */
  padding-bottom: calc(var(--water) + 2.25rem);
  min-height: calc(100svh - 6.5rem);
}

.hero-copy {
  align-self: center;
  padding-bottom: 1.5rem;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 12vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: #fff;
}

.hero-lead {
  margin: 1.45rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* Anchor to waterline; raise is on .boat-orbit (reveal uses transform) */
  margin-bottom: calc(-1 * (var(--water) + 2.25rem));
  padding-bottom: 0;
}

.boat-orbit {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding-bottom: 0;
  /* Keep hull near water; nudge up so logo sits in ring center */
  transform: translateY(-28%);
}

.boat-orbit::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(232, 241, 250, 0.12);
  animation: spin-slow 28s linear infinite;
}

.boat-orbit::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(61, 208, 216, 0.22);
  animation: spin-slow 40s linear infinite reverse;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.boat {
  width: 68%;
  height: auto;
  margin-bottom: 0;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.5));
  animation: bob 5.5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .hero {
    --water: clamp(7.5rem, 20vh, 10rem);
    align-items: center;
    padding-top: 5.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 0.75rem;
    padding-bottom: calc(var(--water) + 1.75rem);
    min-height: auto;
  }

  .hero-copy {
    align-self: auto;
    padding-bottom: 0;
    order: 2;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .store-row {
    justify-content: center;
  }

  .hero-visual {
    order: 1;
    margin-bottom: 0;
    transform: none;
    padding-bottom: 0;
  }

  .boat-orbit {
    width: min(58vw, 220px);
    place-items: center;
    padding-bottom: 0;
    transform: none;
  }

  .boat {
    margin-bottom: 0;
  }
}

/* —— Official store widgets (Apple / Google CDN badges) —— */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
}

.store-row-center {
  justify-content: center;
}

.store-widget {
  display: inline-block;
  overflow: hidden;
  line-height: 0;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.store-widget:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.store-widget:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 13px;
}

.store-widget--apple {
  border-radius: 13px;
  width: 210px;
  height: 70px;
}

.store-widget--apple img {
  display: block;
  width: 210px;
  height: 70px;
  border-radius: 13px;
}

.store-widget--google {
  width: 236px;
  height: 90px;
  margin: -10px -8px;
}

.store-widget--google img {
  display: block;
  width: 236px;
  height: 90px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .store-row {
    gap: 0.35rem 0.65rem;
    margin-top: 1.6rem;
  }

  .store-widget--apple {
    width: 168px;
    height: 56px;
  }

  .store-widget--apple img {
    width: 168px;
    height: 56px;
  }

  .store-widget--google {
    width: 188px;
    height: 72px;
    margin: -8px -6px;
  }

  .store-widget--google img {
    width: 188px;
    height: 72px;
  }
}

/* —— Real app screenshots —— */
.phone {
  position: relative;
  width: 100%;
  max-width: 200px;
  border-radius: 24px;
  background: #050b14;
  border: 2px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.4);
  line-height: 0;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* —— Sections —— */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7rem) 1.5rem;
}

.section-head {
  width: min(100%, var(--max));
  margin: 0 auto 2.75rem;
  max-width: 38rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.8vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-sub {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 36rem;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-mid));
}

.about-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
  max-width: 40rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-aside {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.aside-item {
  display: grid;
  gap: 0.25rem;
}

.aside-item strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.aside-item span {
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Screens gallery slider */
.screens {
  background: var(--bg-mid);
}

.shots-slider {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 3.25rem;
}

.shots-viewport {
  overflow: hidden;
  width: 100%;
}

.shots-track {
  display: flex;
  gap: 1.75rem;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

.shot {
  margin: 0;
  flex: 0 0 calc((100% - 1.75rem) / 2);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: center;
  gap: 1.35rem 1.75rem;
  padding: 1.5rem 1.6rem 1.5rem 1.75rem;
  border-radius: 22px;
  background: rgba(8, 20, 36, 0.45);
  border: 1px solid rgba(180, 210, 235, 0.1);
}

.shot .phone {
  width: 148px;
  max-width: 148px;
  justify-self: end;
}

.shot figcaption {
  text-align: left;
  max-width: 16.5rem;
  padding: 0.15rem 0;
  color: var(--ink-soft);
}

.shot figcaption strong {
  display: block;
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.shot figcaption p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.shots-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 20, 36, 0.82);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    opacity 0.2s;
}

.shots-nav:hover {
  border-color: var(--primary);
  background: rgba(14, 106, 168, 0.35);
}

.shots-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shots-nav--prev {
  left: 0;
}

.shots-nav--next {
  right: 0;
}

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.shots-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(155, 180, 203, 0.35);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.shots-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.shots-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .shots-slider {
    padding: 0 2.75rem;
  }

  .shot {
    flex: 0 0 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem 1.5rem;
    padding: 1.35rem 1.4rem 1.35rem 1.5rem;
  }

  .shot .phone {
    width: 132px;
    max-width: 132px;
  }

  .shot figcaption {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .shots-slider {
    padding: 0 2.5rem;
  }

  .shot {
    flex: 0 0 100%;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.1rem;
    padding: 1.25rem 1.25rem 1.35rem;
  }

  .shot .phone {
    width: 150px;
    max-width: 150px;
    justify-self: start;
  }

  .shots-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
  }
}

/* Features */
.features {
  background: linear-gradient(180deg, var(--bg-mid), var(--bg-deep));
}

.feature-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, var(--max));
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feature-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.2rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

@media (min-width: 900px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    border-top: none;
  }

  .feature {
    border-top: 1px solid var(--line);
  }
}

/* How */
.how {
  background: var(--bg-deep);
}

.how-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: how;
}

.how-list li {
  position: relative;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  counter-increment: how;
}

.how-list li::before {
  content: counter(how, decimal-leading-zero);
  position: absolute;
  top: 0.65rem;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.how-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.how-list p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .how-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Reviews */
.reviews-empty {
  width: min(100%, 28rem);
  margin: 0.5rem auto 0;
  padding: 2.75rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(180, 210, 235, 0.22);
  border-radius: 20px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(8, 20, 36, 0.35);
}

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

.review-card {
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 18px;
  background: rgba(10, 24, 42, 0.72);
  border: 1px solid rgba(180, 210, 235, 0.12);
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.review-card__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(14, 106, 168, 0.35);
  color: #d7ecff;
}

.review-card__name {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
}

.review-card__stars {
  margin: 0.15rem 0 0;
  color: #f0c14a;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.review-card__text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

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

/* For whom */
.for-whom {
  background:
    radial-gradient(
      ellipse 70% 80% at 50% 50%,
      rgba(14, 106, 168, 0.22),
      transparent 70%
    ),
    var(--bg-mid);
}

.for-whom-panel {
  width: min(100%, 42rem);
  margin: 0 auto;
  text-align: center;
}

.for-whom-panel h2 {
  margin-bottom: 1.15rem;
}

.for-whom-panel p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.for-whom-panel p:last-child {
  margin-bottom: 0;
}

/* Download */
.download {
  background: linear-gradient(
    180deg,
    var(--bg-mid) 0%,
    #0c2740 45%,
    var(--bg-deep) 100%
  );
  text-align: center;
}

.download-inner {
  width: min(100%, 38rem);
  margin: 0 auto;
}

.download .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.5rem 2.25rem;
  border-top: 1px solid var(--line);
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

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

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.28s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.4s;
}
.hero-visual.reveal {
  transition-delay: 0.2s;
}

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

  .shots-track {
    transition: none;
  }

  .boat,
  .boat-orbit::before,
  .boat-orbit::after,
  .wave,
  .hero-glow {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
