@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #e8fff6;
  --muted: rgba(196, 240, 220, 0.72);
  --line: rgba(90, 210, 170, 0.18);
  --accent: #6ee0b8;
  --ocean-top: #085c4d;
  --ocean-mid: #04342d;
  --ocean-bottom: #011410;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--ocean-bottom);
  line-height: 1.6;
}

body[data-depth="0"] {
  --ocean-top: #0a6354;
  --ocean-mid: #043830;
  --ocean-bottom: #011410;
}

body[data-depth="1"] {
  --ocean-top: #095c4e;
  --ocean-mid: #04342d;
  --ocean-bottom: #011410;
}

body[data-depth="2"] {
  --ocean-top: #08564a;
  --ocean-mid: #032e28;
  --ocean-bottom: #01110e;
}

body[data-depth="3"] {
  --ocean-top: #074e44;
  --ocean-mid: #032922;
  --ocean-bottom: #010e0b;
}

body[data-depth="4"] {
  --ocean-top: #085c4d;
  --ocean-mid: #04342d;
  --ocean-bottom: #011410;
}

body[data-depth="5"] {
  --ocean-top: #064a3e;
  --ocean-mid: #032822;
  --ocean-bottom: #000d0b;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: #021416;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      var(--ocean-top) 0%,
      var(--ocean-mid) 42%,
      var(--ocean-bottom) 100%
    );
  transition: background 0.8s ease;
}

.ocean-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.ocean-blur-a {
  width: min(55vw, 420px);
  height: min(90vh, 640px);
  left: -18%;
  top: -10%;
  background: radial-gradient(circle, #2bb892 0%, transparent 70%);
  animation: drift-left 8s ease-in-out infinite;
}

.ocean-blur-b {
  width: min(55vw, 420px);
  height: min(90vh, 640px);
  right: -18%;
  top: 8%;
  background: radial-gradient(circle, #1a9e7c 0%, transparent 70%);
  animation: drift-right 7s ease-in-out infinite;
}

.ocean-blur-c {
  width: min(40vw, 320px);
  height: min(70vh, 480px);
  left: -8%;
  bottom: -20%;
  background: radial-gradient(circle, #0d7a62 0%, transparent 72%);
  animation: drift-left 9.5s ease-in-out infinite reverse;
}

@keyframes drift-left {
  0% { transform: translate(0, 8%) scale(1); opacity: 0.32; }
  35% { transform: translate(18vw, -6%) scale(1.08); opacity: 0.5; }
  70% { transform: translate(8vw, 14%) scale(0.96); opacity: 0.38; }
  100% { transform: translate(0, 8%) scale(1); opacity: 0.32; }
}

@keyframes drift-right {
  0% { transform: translate(0, -4%) scale(1); opacity: 0.3; }
  40% { transform: translate(-20vw, 10%) scale(1.1); opacity: 0.48; }
  75% { transform: translate(-6vw, -8%) scale(0.94); opacity: 0.34; }
  100% { transform: translate(0, -4%) scale(1); opacity: 0.3; }
}

.ghost-envelope {
  position: absolute;
  width: min(72vw, 920px);
  right: -10%;
  top: 52%;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
  --envelope-shift: -42%;
  --envelope-rot: -8deg;
  transform: translateY(var(--envelope-shift)) rotate(var(--envelope-rot));
  animation: envelope-float 10s ease-in-out infinite;
}

.ghost-envelope svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@keyframes envelope-float {
  0%,
  100% {
    transform: translateY(var(--envelope-shift)) rotate(var(--envelope-rot));
  }
  50% {
    transform: translateY(calc(var(--envelope-shift) - 14px)) rotate(calc(var(--envelope-rot) + 2deg));
  }
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.75rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo:hover {
  color: var(--accent);
}

.header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 450;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-current {
  color: var(--ink);
}

.lang {
  display: flex;
  gap: 0.65rem;
  padding: 0;
  border: 0;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(199, 228, 220, 0.5);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang button.is-active,
.lang button[aria-pressed="true"] {
  background: transparent;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.lang button:hover,
.lang button:focus-visible {
  color: var(--ink);
}

.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 2rem;
}

.page-main-home {
  position: relative;
  min-height: 38rem;
}

.page-main-home > :not(.home-deco) {
  position: relative;
  z-index: 2;
}

.home-deco {
  position: absolute;
  right: 0;
  top: 0;
  bottom: -1rem;
  width: min(18rem, 46%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  pointer-events: none;
  color: var(--accent);
}

.home-deco-item {
  display: block;
  width: 7.25rem;
  height: auto;
  overflow: visible;
  opacity: 0.22;
  --deco-rot: -4deg;
  animation: home-deco-float 10s ease-in-out infinite;
}

.home-deco-item:nth-child(odd) {
  align-self: flex-start;
}

.home-deco-item:nth-child(even) {
  align-self: flex-end;
  --deco-rot: 5deg;
  opacity: 0.18;
  animation-delay: -3.5s;
}

.home-deco-item:nth-child(3) {
  width: 8.25rem;
  opacity: 0.28;
  animation-delay: -6s;
}

.home-deco-item:nth-child(4) {
  width: 8.75rem;
  animation-delay: -2s;
}

@keyframes home-deco-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--deco-rot));
  }
  50% {
    transform: translateY(-10px) rotate(calc(var(--deco-rot) + 2deg));
  }
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-main h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-cycle {
  position: relative;
  min-height: 1.45em;
  margin: 0 0 1.15rem;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(231, 244, 240, 0.9);
}

.hero-cycle[aria-live="polite"] {
  /* live region for phrase changes */
}

.hero-lead,
.lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0 0.35rem;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--accent);
  transition: color 0.3s ease, border-color 0.3s ease, letter-spacing 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--ink);
}

.mail-reveal {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mail-reveal:hover,
.mail-reveal:focus-visible {
  color: var(--ink);
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(199, 228, 220, 0.45);
}

.facts {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 36rem;
}

.facts > div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--line);
}

.fact-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(199, 228, 220, 0.42);
}

.fact-value {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}

.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}

.line-list li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.line-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.line-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 550;
}

.line-list p {
  margin: 0;
  color: var(--muted);
}

.line-item-deco {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 13.5rem;
  overflow: hidden;
}

.line-item-mobile,
.line-item-wearable {
  min-height: 16.5rem;
}

.deco-copy {
  position: relative;
  z-index: 2;
  max-width: 22rem;
}

.pixel-creatures,
.iphone-background,
.watch-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.jelly {
  position: absolute;
  color: var(--accent);
  opacity: 0.38;
  shape-rendering: crispEdges;
  filter: blur(0.2px);
  will-change: transform;
  --jelly-rot: -4deg;
  animation: jelly-float 8s ease-in-out infinite;
}

.jelly-main {
  width: 10.75rem;
  right: 0.35rem;
  bottom: -0.35rem;
}

.jelly-small {
  width: 6.75rem;
  right: 8.75rem;
  top: 0.85rem;
  opacity: 0.22;
  --jelly-rot: 5deg;
  animation-delay: -3s;
}

@keyframes jelly-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--jelly-rot));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--jelly-rot) + 2deg));
  }
}

.iphone {
  position: absolute;
  color: var(--accent);
  fill: none;
  opacity: 0.28;
  will-change: transform;
  --phone-rot: -12deg;
  animation: phone-float 9s ease-in-out infinite;
}

.iphone-main {
  width: 7.35rem;
  right: 0.4rem;
  bottom: -2.1rem;
}

.iphone-small {
  width: 4.6rem;
  right: 6.6rem;
  top: -0.85rem;
  opacity: 0.16;
  --phone-rot: 12deg;
  animation-delay: -4s;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--phone-rot));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--phone-rot) + 2deg));
  }
}

.watch {
  position: absolute;
  color: var(--accent);
  fill: none;
  opacity: 0.26;
  will-change: transform;
  --watch-rot: -13deg;
  animation: watch-float 10s ease-in-out infinite;
}

.watch-main {
  width: 7.6rem;
  right: 0.35rem;
  bottom: -2.4rem;
}

.watch-small {
  width: 4.75rem;
  right: 6.85rem;
  top: -1.15rem;
  opacity: 0.15;
  --watch-rot: 12deg;
  animation-delay: -4s;
}

@keyframes watch-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--watch-rot));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--watch-rot) + 3deg));
  }
}

@media (max-width: 700px) {
  .line-item-deco {
    min-height: 11.5rem;
  }

  .line-item-mobile,
  .line-item-wearable {
    min-height: 13.5rem;
  }

  .deco-copy {
    max-width: 13.5rem;
  }

  .jelly-main {
    width: 8.25rem;
    right: -0.35rem;
    bottom: -0.2rem;
    opacity: 0.32;
  }

  .jelly-small {
    width: 5.15rem;
    right: 6.1rem;
    top: 0.65rem;
    opacity: 0.18;
  }

  .iphone-main {
    width: 5.75rem;
    right: -0.55rem;
    bottom: -1.6rem;
    opacity: 0.22;
  }

  .iphone-small {
    width: 3.6rem;
    right: 4.4rem;
    top: -0.45rem;
    opacity: 0.12;
  }

  .watch-main {
    width: 5.9rem;
    right: -0.45rem;
    bottom: -1.85rem;
    opacity: 0.2;
  }

  .watch-small {
    width: 3.7rem;
    right: 4.55rem;
    top: -0.7rem;
    opacity: 0.12;
  }
}

.app-ghost-stage {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 22rem;
  margin: 0.75rem 0 0;
  overflow: hidden;
  pointer-events: none;
}

/* Apps catalog — content grid + decorative ghost background */
.page-main-apps {
  position: relative;
  justify-content: flex-start;
  padding: 1.25rem 0 1.5rem;
  min-height: 24rem;
  overflow: visible;
}

.page-main-apps > :not(.app-ghost-bg) {
  position: relative;
  z-index: 2;
}

.page-main-apps .lede {
  margin-bottom: 0.85rem;
}

.page-main-apps h1 {
  margin-bottom: 1.35rem;
}

.app-ghost-bg {
  position: absolute;
  inset: -1rem -1.5rem -2rem;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.app-catalog-grid {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
  gap: 0.75rem;
  max-width: 100%;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 1.5px solid rgba(110, 224, 184, 0.45);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(110, 224, 184, 0.18),
    rgba(2, 20, 18, 0.88)
  );
  box-shadow: 0 14px 32px rgba(0, 12, 10, 0.28);
  text-decoration: none;
  color: inherit;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: rgba(110, 224, 184, 0.72);
  outline: none;
}

.app-card-icon {
  flex: none;
  align-self: flex-start;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(110, 224, 184, 0.35);
  background: #061018;
}

.app-card-icon img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center;
}

.app-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.app-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}

.app-card-cta {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}

.app-card:hover .app-card-cta,
.app-card:focus-visible .app-card-cta {
  border-bottom-color: var(--accent);
}

.app-ghost-grid {
  position: absolute;
  z-index: 1;
  width: 1100px;
  height: 600px;
  right: -12%;
  top: 50%;
  left: auto;
  transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(
    ellipse at 58% 48%,
    black 0%,
    rgba(0, 0, 0, 0.75) 42%,
    rgba(0, 0, 0, 0.28) 68%,
    transparent 88%
  );
  mask-image: radial-gradient(
    ellipse at 58% 48%,
    black 0%,
    rgba(0, 0, 0, 0.75) 42%,
    rgba(0, 0, 0, 0.28) 68%,
    transparent 88%
  );
}

.ghost-app {
  position: absolute;
  width: 260px;
  height: 190px;
  padding: 28px;
  border: 1.5px solid rgba(110, 224, 184, 0.28);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(110, 224, 184, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  box-sizing: border-box;
  opacity: 0.65;
  -webkit-mask-image: linear-gradient(
    180deg,
    black 0%,
    rgba(0, 0, 0, 0.7) 55%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    black 0%,
    rgba(0, 0, 0, 0.7) 55%,
    transparent 100%
  );
  animation: ghost-card-float 12s ease-in-out infinite;
}

.ghost-app-1 {
  left: 20px;
  top: 80px;
  transform: rotate(-7deg);
  opacity: 0.38;
}

.ghost-app-2 {
  left: 300px;
  top: 20px;
  transform: rotate(3deg);
  opacity: 0.28;
  animation-delay: -3s;
}

.ghost-app-3 {
  left: 600px;
  top: 70px;
  transform: rotate(-4deg);
  opacity: 0.36;
  animation-delay: -6s;
}

.ghost-app-4 {
  left: 90px;
  top: 330px;
  transform: rotate(4deg);
  opacity: 0.22;
  animation-delay: -7s;
}

.ghost-app-5 {
  left: 390px;
  top: 300px;
  transform: rotate(-3deg);
  opacity: 0.3;
  animation-delay: -2s;
}

.ghost-app-6 {
  left: 700px;
  top: 330px;
  transform: rotate(7deg);
  opacity: 0.2;
  animation-delay: -5s;
}

.ghost-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 25px;
  border: 1.5px solid rgba(110, 224, 184, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(110, 224, 184, 0.22), transparent);
}

.ghost-line {
  height: 7px;
  margin-top: 10px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(110, 224, 184, 0.4),
    rgba(110, 224, 184, 0.08),
    transparent
  );
}

.ghost-line-long {
  width: 72%;
}

.ghost-line-short {
  width: 45%;
}

@keyframes ghost-card-float {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -10px;
  }
}

@media (max-width: 700px) {
  .page-main-apps {
    min-height: 18rem;
    padding-top: 1rem;
  }

  .app-ghost-bg {
    inset: -0.5rem -1rem -1.5rem;
  }

  .app-ghost-grid {
    width: 700px;
    height: 500px;
    right: -28%;
    transform: translateY(-42%) scale(0.72);
    opacity: 0.85;
  }

  .app-catalog-grid {
    grid-template-columns: minmax(0, 300px);
  }
}

.contact-block {
  display: grid;
  gap: 0.85rem;
}

.contact-block p {
  margin: 0;
}

.contact-block a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
}

.contact-block a:not(.btn):hover,
.contact-block a:not(.btn):focus-visible {
  text-decoration: underline;
}

.site-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(199, 228, 220, 0.55);
  font-size: 0.8rem;
}

.footer-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
  line-height: 1.4;
}

.footer-line a {
  color: rgba(199, 228, 220, 0.78);
  text-decoration: none;
}

.footer-line a:hover,
.footer-line a:focus-visible {
  color: var(--accent);
}

.sep {
  opacity: 0.35;
}

.legal {
  justify-content: flex-start;
  padding-top: 2rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.legal .updated {
  margin: 0 0 1.5rem;
  color: rgba(199, 228, 220, 0.45);
  font-size: 0.9rem;
}

.legal h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
}

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

.legal ul {
  padding-left: 1.15rem;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.back:hover,
.back:focus-visible {
  text-decoration: underline;
}

.type-in {
  animation: type-in 0.9s ease both;
}

.type-in-delay {
  animation: type-in 0.9s ease both;
  animation-delay: 0.18s;
}

.cycle-out {
  animation: type-out 0.55s ease both;
}

.cycle-in {
  animation: type-in 0.7s ease both;
}

@keyframes type-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes type-out {
  from {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-8px);
  }
}

@media (max-width: 720px) {
  .page-main {
    padding: 1.75rem 0 1.5rem;
    justify-content: flex-start;
  }

  .ghost-envelope {
    width: min(125vw, 560px);
    right: -42%;
    top: 68%;
    opacity: 0.1;
  }

  .home-deco {
    width: min(11.5rem, 42%);
    right: -0.25rem;
    opacity: 0.85;
  }

  .home-deco-item {
    width: 5.25rem;
  }

  .home-deco-item:nth-child(3),
  .home-deco-item:nth-child(4) {
    width: 6rem;
  }
}

/* Legacy ghost-app-live rules removed — live cards use .app-card */

/* BackNest product page — blue accents, frozen motion */
body.theme-backnest {
  --ink: #e8f4ff;
  --muted: rgba(186, 214, 242, 0.74);
  --line: rgba(110, 170, 240, 0.2);
  --accent: #5eb4ff;
  --ocean-top: #0a4a7a;
  --ocean-mid: #062848;
  --ocean-bottom: #020b18;
}

body.theme-backnest .ocean-blur-a {
  background: radial-gradient(circle, #3a8fd4 0%, transparent 70%);
  animation-play-state: paused;
  animation-delay: -2.2s;
  transform: translate(12vw, -2%) scale(1.05);
  opacity: 0.42;
}

body.theme-backnest .ocean-blur-b {
  background: radial-gradient(circle, #1f6fb8 0%, transparent 70%);
  animation-play-state: paused;
  animation-delay: -4.5s;
  transform: translate(-14vw, 6%) scale(1.06);
  opacity: 0.38;
}

body.theme-backnest .ocean-blur-c {
  background: radial-gradient(circle, #0d4f8c 0%, transparent 72%);
  animation-play-state: paused;
  animation-delay: -1.4s;
  transform: translate(6vw, 10%) scale(0.98);
  opacity: 0.34;
}

body.theme-backnest .section-label,
body.theme-backnest .fact-label {
  color: rgba(180, 210, 240, 0.45);
}

body.theme-backnest .site-footer {
  color: rgba(180, 210, 240, 0.55);
}

body.theme-backnest .footer-line a {
  color: rgba(180, 210, 240, 0.78);
}

/* GiftBell product page — light pink → light blue, frozen motion */
body.theme-giftbell {
  --ink: #1c2240;
  --muted: rgba(40, 48, 88, 0.72);
  --line: rgba(120, 110, 180, 0.22);
  --accent: #5a78f0;
  --ocean-top: #f7d6e6;
  --ocean-mid: #d4d8f2;
  --ocean-bottom: #a9c6ef;
}

body.theme-giftbell .ocean-blur-a {
  background: radial-gradient(circle, #f2a8c8 0%, transparent 70%);
  animation-play-state: paused;
  animation-delay: -2.2s;
  transform: translate(12vw, -2%) scale(1.05);
  opacity: 0.55;
}

body.theme-giftbell .ocean-blur-b {
  background: radial-gradient(circle, #9eb0f0 0%, transparent 70%);
  animation-play-state: paused;
  animation-delay: -4.5s;
  transform: translate(-14vw, 6%) scale(1.06);
  opacity: 0.5;
}

body.theme-giftbell .ocean-blur-c {
  background: radial-gradient(circle, #7eb0e8 0%, transparent 72%);
  animation-play-state: paused;
  animation-delay: -1.4s;
  transform: translate(6vw, 10%) scale(0.98);
  opacity: 0.45;
}

body.theme-giftbell .section-label,
body.theme-giftbell .fact-label {
  color: rgba(70, 78, 120, 0.55);
}

body.theme-giftbell .site-footer {
  color: rgba(60, 70, 110, 0.65);
}

body.theme-giftbell .footer-line a {
  color: rgba(50, 60, 110, 0.88);
}

body.theme-giftbell .skip-link {
  color: #f7f4ff;
  background: #1c2240;
}

body.theme-giftbell .app-hero-icon {
  border-color: rgba(120, 110, 180, 0.28);
  background: #fff;
  box-shadow: 0 12px 32px rgba(80, 70, 140, 0.18);
}

body.theme-giftbell .app-screen img {
  border-color: rgba(120, 110, 180, 0.22);
  box-shadow: 0 14px 36px rgba(70, 80, 140, 0.22);
  background: #eef2fb;
}

.app-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.app-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.app-hero-icon {
  flex: 0 0 auto;
  width: 176px;
  height: 176px;
  border-radius: 44px;
  overflow: hidden;
  border: 1px solid rgba(110, 170, 240, 0.35);
  background: #061018;
  box-shadow: 0 10px 28px rgba(0, 20, 48, 0.35);
}

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

.app-hero-copy {
  min-width: 0;
}

.app-hero-copy h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  line-height: 1.15;
}

.app-hero-copy .lede {
  margin-bottom: 0;
}

.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

/* App Store–style horizontal screenshot strip */
.app-screens {
  margin: 1.35rem 0 0.85rem;
}

.app-screens-track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.app-screen {
  flex: 0 0 auto;
  margin: 0;
  width: min(11.5rem, 42vw);
  scroll-snap-align: start;
}

.app-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 470 / 1024;
  object-fit: cover;
  /* iPhone-like continuous corner radius */
  border-radius: 1.55rem;
  border: 1px solid rgba(140, 190, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 12, 40, 0.42);
  background: #061428;
}

.app-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.app-panel {
  position: relative;
  margin: 0.35rem 0 0;
  padding: 1.35rem 0 0.25rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.app-panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 550;
}

.app-panel p,
.app-panel li {
  color: var(--muted);
}

.app-panel ul,
.app-panel ol {
  margin: 0;
  padding-left: 1.15rem;
}

.app-panel li + li {
  margin-top: 0.35rem;
}

.app-panel-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.app-panel-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.app-panel-deco .iphone,
.app-panel-deco .watch,
.app-panel-deco .usb-stick {
  animation: none;
  color: var(--accent);
}

.app-panel-deco .iphone-main {
  width: 6.5rem;
  right: 0.5rem;
  bottom: -1.8rem;
  opacity: 0.22;
  transform: translateY(-8px) rotate(-11deg);
}

.app-panel-deco .iphone-small {
  width: 4.1rem;
  right: 6.2rem;
  top: 0.4rem;
  opacity: 0.12;
  transform: translateY(4px) rotate(10deg);
}

.app-panel-deco .usb-stick {
  position: absolute;
  width: 3.4rem;
  right: 1.1rem;
  top: 1.1rem;
  opacity: 0.2;
  transform: rotate(18deg);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
}

@media (max-width: 700px) {
  .app-hero-icon {
    width: 144px;
    height: 144px;
    border-radius: 36px;
  }

  .app-hero-top {
    gap: 1.5rem;
  }

  .app-screen {
    width: min(10.25rem, 58vw);
  }

  .app-screen img {
    border-radius: 1.35rem;
  }

  .app-panel-deco .iphone-main {
    width: 5.1rem;
    right: -0.35rem;
    opacity: 0.18;
  }

  .app-panel-deco .iphone-small,
  .app-panel-deco .usb-stick {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-blur,
  .type-in,
  .type-in-delay,
  .cycle-in,
  .cycle-out,
  .btn,
  .jelly,
  .iphone,
  .watch,
  .ghost-app {
    animation: none;
    transition: none;
    filter: none;
    transform: none;
  }

  .ghost-envelope {
    animation: none;
    transform: translateY(var(--envelope-shift)) rotate(var(--envelope-rot));
  }

  .home-deco-item {
    animation: none;
    transform: rotate(var(--deco-rot));
  }

  body.theme-backnest .ocean-blur-a,
  body.theme-backnest .ocean-blur-b,
  body.theme-backnest .ocean-blur-c,
  body.theme-giftbell .ocean-blur-a,
  body.theme-giftbell .ocean-blur-b,
  body.theme-giftbell .ocean-blur-c {
    transform: none;
  }
}
