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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #1a2a3a;
  background: #e8f4f8;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header--scrolled {
  background: rgba(15, 35, 55, 0.75);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.site-header__logo img {
  height: 68px;
  width: auto;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__menu a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-header__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
  color: #fff;
}

.site-header__menu a:hover::after,
.site-header__menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 1001;
}

.site-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.nav-open .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: url("img/background-sky-sea.jpg") center / cover no-repeat;
}

.hero__stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.hero__ark-wrap {
  position: absolute;
  right: 5%;
  top: 26%;
  width: clamp(360px, 64vw, 960px);
  z-index: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero__ark-wrap .hero__ark {
  position: relative;
  right: auto;
  top: auto;
  width: 100%;
  transition: filter 0.45s ease;
}

.hero__ark-wrap:hover .hero__ark,
.hero__ark-wrap:focus-within .hero__ark {
  filter:
    drop-shadow(0 0 10px rgba(255, 215, 120, 0.95))
    drop-shadow(0 0 22px rgba(255, 170, 70, 0.75))
    drop-shadow(0 0 40px rgba(255, 140, 50, 0.45));
}

.hero__ark-bubble {
  position: absolute;
  top: -24%;
  right: 10%;
  left: auto;
  z-index: 2;
  width: clamp(136px, 22vw, 200px);
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 12px 36px rgba(15, 35, 55, 0.2),
    0 0 28px rgba(255, 200, 100, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.55);
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s ease;
  pointer-events: none;
}

.hero__ark-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px 9px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent;
}

.hero__ark-bubble-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #4a6275;
}

.hero__ark-bubble img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero__ark-wrap:hover .hero__ark-bubble,
.hero__ark-wrap:focus-within .hero__ark-bubble,
.hero__ark-wrap.is-brand-visible .hero__ark-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(-36px) scale(1);
  pointer-events: auto;
}

.hero__ark-wrap:focus,
.hero__ark-wrap:focus-visible,
.hero__ark-wrap:active {
  outline: none;
  box-shadow: none;
}

.hero__tv-buoy,
.hero__noah-chair {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero__ark-wrap .hero__ark {
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero__tv-wrap {
  position: absolute;
  left: 22%;
  bottom: 10%;
  width: clamp(210px, 48vw, 570px);
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.hero__noah-wrap {
  position: absolute;
  right: 22%;
  bottom: 8%;
  width: clamp(240px, 51vw, 630px);
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.hero__float {
  position: relative;
  width: 100%;
  animation: float 4s ease-in-out infinite;
}

.hero__hit {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.hero__hit:focus,
.hero__hit:focus-visible,
.hero__hit:active {
  outline: none;
  box-shadow: none;
}

.hero__coin-pop,
.hero__thought-bubble {
  position: absolute;
  z-index: 2;
  height: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s ease;
}

.hero__coin-pop {
  top: -6%;
  left: 38%;
  width: clamp(72px, 18vw, 120px);
  transform: translateY(16px) scale(0.4);
}

.hero__thought-bubble {
  top: -26%;
  right: 14%;
  left: auto;
  width: clamp(120px, 28vw, 220px);
  transform: translateY(16px) scale(0.4);
}

.hero__tv-wrap.is-coin-pop .hero__coin-pop {
  opacity: 1;
  visibility: visible;
  animation: coinPop 0.9s ease-out forwards;
}

.hero__noah-wrap.is-thought-visible .hero__thought-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(-28px) scale(1);
}

@keyframes coinPop {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.35);
  }

  25% {
    opacity: 1;
    transform: translateY(-28px) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: translateY(-52px) scale(0.9);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(0.6deg);
  }
}

.hero__float--slow {
  animation-duration: 5.5s;
  animation-delay: 0.8s;
}

.hero__slogan {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: max-content;
  max-width: 90%;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Birds */

.hero__birds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.bird {
  position: absolute;
  width: 18px;
  height: 8px;
  opacity: 0.55;
}

.bird::before,
.bird::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 2px;
  background: #1a2530;
  border-radius: 2px;
}

.bird::before {
  left: 0;
  transform-origin: right center;
  transform: rotate(-28deg);
}

.bird::after {
  right: 0;
  transform-origin: left center;
  transform: rotate(28deg);
}

@keyframes flyAcross {
  0% {
    right: -10%;
    opacity: 0;
  }

  8% {
    opacity: 0.55;
  }

  92% {
    opacity: 0.55;
  }

  100% {
    right: 110%;
    opacity: 0;
  }
}

.bird--1 {
  top: 10%;
  animation: flyAcross 14s linear infinite;
  animation-delay: 0s;
}

.bird--2 {
  top: 16%;
  animation: flyAcross 18s linear infinite;
  animation-delay: 4s;
  transform: scale(0.85);
}

.bird--3 {
  top: 8%;
  animation: flyAcross 16s linear infinite;
  animation-delay: 8s;
  transform: scale(1.1);
}

.bird--4 {
  top: 20%;
  animation: flyAcross 20s linear infinite;
  animation-delay: 2s;
  transform: scale(0.75);
}

.bird--5 {
  top: 14%;
  animation: flyAcross 15s linear infinite;
  animation-delay: 11s;
}

.bird--6 {
  top: 22%;
  animation: flyAcross 17s linear infinite;
  animation-delay: 6s;
  transform: scale(0.9);
}

/* Sections */

.section {
  padding: 5rem 1.5rem;
}

.section--light {
  background: #e8f4f8;
}

.section--accent {
  background: #d4eaf2;
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #0f2a3d;
  margin-bottom: 1rem;
}

.section__text {
  font-size: 1.05rem;
  color: #3a5060;
  max-width: 640px;
  margin: 0 auto;
}

.section__prose {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.section__prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a5060;
  margin-bottom: 1.25rem;
}

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

.section__prose strong {
  color: #0f2a3d;
  font-weight: 600;
}

.section__button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: #0f5f8a;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.section__button:hover,
.section__button:focus-visible {
  background: #0d4f73;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 95, 138, 0.3);
}

/* Focus styles */

.site-header__toggle:focus-visible,
.site-header__menu a:focus-visible,
.section__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.section__button:focus-visible {
  outline-color: #0f5f8a;
}

/* Features */

.section--features {
  background: linear-gradient(180deg, #e8f4f8 0%, #dceef5 50%, #e8f4f8 100%);
  padding: 5rem 1.5rem 6rem;
}

.section__inner--wide {
  max-width: 1140px;
}

.section__logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__logo img {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto;
}

.section__intro {
  font-size: 1.1rem;
  color: #3a5060;
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.feature-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 8px 32px rgba(15, 42, 61, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 95, 138, 0.12);
}

.feature-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f2a3d;
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}

.feature-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-card__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a6275;
}

.feature-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f5f8a, #3a9ec4);
}

/* Screenshots */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.screenshot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  text-align: center;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.screenshot-card:hover,
.screenshot-card:focus-visible {
  transform: translateY(-6px);
}

.screenshot-card__frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(15, 42, 61, 0.1);
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.35s ease;
}

.screenshot-card:hover .screenshot-card__frame,
.screenshot-card:focus-visible .screenshot-card__frame {
  box-shadow: 0 20px 48px rgba(15, 95, 138, 0.2);
}

.screenshot-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.screenshot-card:hover .screenshot-card__frame img,
.screenshot-card:focus-visible .screenshot-card__frame img {
  transform: scale(1.04);
}

.screenshot-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f2a3d;
}

.screenshot-card__tooltip {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, 8px);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 35, 55, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 2;
}

.screenshot-card:hover .screenshot-card__tooltip,
.screenshot-card:focus-visible .screenshot-card__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 45, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1100px, 92vw);
  max-height: 90vh;
  margin: auto;
  transform: scale(0.88);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.lightbox--open .lightbox__dialog {
  transform: scale(1);
  opacity: 1;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3001;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-height: 85vh;
}

.lightbox__image {
  display: block;
  max-width: min(1100px, 92vw);
  max-height: calc(90vh - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lightbox__caption {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

  .hero__float,
  .bird {
    animation: none !important;
  }

  .hero__ark-wrap:hover .hero__ark,
  .hero__ark-wrap:focus-within .hero__ark {
    filter:
      drop-shadow(0 0 10px rgba(255, 215, 120, 0.95))
      drop-shadow(0 0 22px rgba(255, 170, 70, 0.75));
  }

  .hero__ark-bubble {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .screenshot-card:hover,
  .screenshot-card:focus-visible {
    transform: none;
  }

  .screenshot-card:hover .screenshot-card__frame img,
  .screenshot-card:focus-visible .screenshot-card__frame img {
    transform: none;
  }

  .lightbox,
  .lightbox__backdrop,
  .lightbox__dialog {
    transition: none;
  }
}

/* Tablet / mobile nav */

@media (max-width: 768px) {
  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 5.5rem 1.5rem 2rem;
    background: rgba(15, 35, 55, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  }

  .site-header.nav-open .site-header__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-header__menu {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  .site-header__menu a {
    font-size: 1.25rem;
  }

  .hero__ark-wrap {
    right: 6%;
    top: 40%;
    bottom: auto;
    width: clamp(200px, 46vw, 280px);
  }

  .hero__ark-bubble {
    width: clamp(110px, 28vw, 150px);
    top: -28%;
    right: 0;
  }

  .hero__tv-wrap {
    left: -2%;
    bottom: 18%;
    width: clamp(250px, 60vw, 480px);
    z-index: 4;
  }

  .hero__noah-wrap {
    right: -4%;
    bottom: 16%;
    width: clamp(270px, 64vw, 500px);
    z-index: 4;
  }

  .hero__thought-bubble {
    top: -22%;
    right: 6%;
    width: clamp(100px, 34vw, 180px);
  }

  .hero__slogan {
    bottom: 2%;
    z-index: 5;
    font-size: clamp(1.1rem, 4vw, 1.65rem);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.5rem 1.35rem 1.25rem;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    padding: 0.65rem 1rem;
  }

  .site-header__logo img {
    height: 52px;
  }

  .hero__ark-wrap {
    right: 4%;
    top: 38%;
    bottom: auto;
    width: clamp(190px, 52vw, 260px);
  }

  .hero__ark-bubble {
    width: clamp(100px, 26vw, 136px);
    padding: 0.55rem 0.65rem 0.65rem;
    top: -30%;
  }

  .hero__tv-wrap {
    left: -6%;
    bottom: 20%;
    width: clamp(265px, 72vw, 400px);
    z-index: 4;
  }

  .hero__noah-wrap {
    right: -8%;
    bottom: 18%;
    width: clamp(285px, 76vw, 420px);
    z-index: 4;
  }

  .hero__slogan {
    bottom: 1.5%;
    padding: 0 0.75rem;
    z-index: 5;
    font-size: clamp(1rem, 4.6vw, 1.3rem);
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .section--features {
    padding: 3.5rem 1rem 4rem;
  }

  .section__intro {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
}
