:root {
  color-scheme: light;
  --ink: #1c2926;
  --muted: #52625e;
  --paper: #f7f5ed;
  --surface: #ffffff;
  --teal: #0f9a9b;
  --green: #20784f;
  --gold: #efad35;
  --coral: #e86f51;
  --blue: #376fa3;
  --line: rgba(28, 41, 38, 0.14);
  --shadow: 0 24px 80px rgba(23, 43, 42, 0.18);
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

body::selection {
  background: rgba(239, 173, 53, 0.42);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: rgba(247, 245, 237, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1120px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav,
.language-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav {
  margin-left: auto;
}

.nav a,
.language-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover,
.language-nav a[aria-current="page"],
.language-nav a:hover {
  color: var(--ink);
  background: rgba(15, 154, 155, 0.1);
}

.hero {
  position: relative;
  min-height: min(720px, calc(92svh - var(--header-height)));
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 78% 18%, rgba(55, 111, 163, 0.2), transparent 28%),
    radial-gradient(circle at 18% 30%, rgba(232, 111, 81, 0.18), transparent 26%),
    linear-gradient(135deg, #f7f5ed 0%, #e2f4f2 46%, #fff7df 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% -12%;
  height: 34%;
  z-index: -2;
  background: linear-gradient(90deg, rgba(32, 120, 79, 0.2), rgba(15, 154, 155, 0.1), rgba(239, 173, 53, 0.22));
  transform: skewY(-3deg);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  view-transition-name: hero-copy;
}

.eyebrow {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.75rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 560px;
  color: #33433f;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(28, 41, 38, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  border-color: transparent;
  background: var(--ink);
  color: white;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(28, 41, 38, 0.14);
}

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

.hero-scene {
  position: relative;
  z-index: 1;
  min-height: 440px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.orbit-ring {
  position: absolute;
  width: min(64vw, 480px);
  aspect-ratio: 1;
  border: 2px solid rgba(15, 154, 155, 0.3);
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-18deg);
}

.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(55, 111, 163, 0.34);
  border-radius: inherit;
}

.hero-app-icon {
  width: clamp(104px, 14vw, 160px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translate3d(0, 0, 60px);
  view-transition-name: app-icon;
}

.floating-card {
  position: absolute;
  width: clamp(145px, 19vw, 220px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.floating-phone {
  position: absolute;
  transform-style: preserve-3d;
}

.floating-phone.card-a {
  right: 2%;
  top: 7%;
  width: clamp(86px, 10vw, 128px);
  transform: translateZ(30px);
}

.floating-card.card-b {
  left: 0;
  bottom: 8%;
  width: clamp(104px, 14vw, 166px);
  transform: rotateZ(-9deg) translateZ(24px);
}

.floating-card.card-c {
  right: 18%;
  bottom: 0;
  width: clamp(96px, 12vw, 148px);
  transform: rotateZ(5deg) translateZ(48px);
}

.section-band {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
}

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

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.section-reverse .section-copy {
  order: 2;
}

.section-reverse .section-visual {
  order: 1;
}

.section-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-copy p,
.section-copy li {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.section-copy p + p {
  margin-top: 14px;
}

.section-copy ul {
  margin: 22px 0 0;
  padding-left: 1.2rem;
}

.motion-panel,
.feature-card,
.safety-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(28, 41, 38, 0.1);
}

.collection-track {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.route-line {
  position: absolute;
  width: 82%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  transform: translateY(8px) scaleX(calc(0.34 + var(--scroll-progress, 0) * 0.66));
  transform-origin: left center;
}

.collection-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 160px));
  gap: 16px;
  align-items: end;
}

.mini-card {
  --card-aspect: 3 / 4;
  aspect-ratio: var(--card-aspect);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px;
  transform: rotate(var(--angle, 0deg)) translateY(calc((1 - var(--scroll-progress, 0)) * 26px));
  transition: transform 240ms ease;
}

.mini-card-wide {
  --card-aspect: 16 / 10;
}

.mini-card-app-screen {
  --card-aspect: 1206 / 2622;
  justify-self: center;
  width: min(100%, 104px);
  overflow: visible;
  transform: translateY(calc((1 - var(--scroll-progress, 0)) * 26px));
}

.mini-card-spot {
  --card-aspect: 1008 / 1408;
  justify-self: center;
  width: min(100%, 124px);
}

.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.showcase-card {
  padding: 18px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(calc(var(--lift, 0) * -8px));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.showcase-card img {
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(28, 41, 38, 0.12);
}

.iphone-device-frame {
  --iphone-frame-aspect-ratio: 1206 / 2622;
  display: block;
  box-sizing: border-box;
  aspect-ratio: var(--iphone-frame-aspect-ratio);
  padding: 10px 6px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, #333b3f 0%, #06090b 22%, #010203 64%, #293136 100%);
  box-shadow:
    0 24px 54px rgba(28, 41, 38, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 3px rgba(0, 0, 0, 0.72);
}

.iphone-device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
}

.iphone-device-frame-compact {
  padding: 4px 3px;
  border-radius: 17px;
  box-shadow:
    0 12px 24px rgba(28, 41, 38, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 2px rgba(0, 0, 0, 0.72);
}

.iphone-device-frame-compact img {
  border-radius: 13px;
}

.floating-phone.iphone-device-frame {
  padding: 5px 3px;
  border-radius: 20px;
  box-shadow:
    0 18px 42px rgba(28, 41, 38, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 2px rgba(0, 0, 0, 0.72);
}

.floating-phone.iphone-device-frame img {
  border-radius: 15px;
}

.app-screen-showcase {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: min(100%, 340px);
  margin-inline: auto;
  transform: translateY(calc(var(--lift, 0) * -8px));
}

.app-screen-showcase .iphone-device-frame {
  width: min(100%, 286px);
  margin-inline: auto;
}

.app-screen-showcase img {
  width: 100%;
  height: 100%;
  margin-inline: auto;
  object-fit: cover;
  object-position: top center;
  box-shadow: none;
}

.tomoegg-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tomoegg-variant {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 245, 237, 0.78)),
    radial-gradient(circle at 50% 22%, rgba(15, 154, 155, 0.18), transparent 34%);
  box-shadow: 0 18px 50px rgba(28, 41, 38, 0.1);
  transform: translateY(calc(var(--variant-offset, 0) * 4px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tomoegg-variant img {
  width: min(100%, 150px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(28, 41, 38, 0.12));
}

.tomoegg-variant figcaption {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.place-card-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.place-card-tile {
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(28, 41, 38, 0.1);
  transform:
    rotateZ(calc((var(--place-offset, 1) - 1) * 4deg))
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(calc(var(--lift, 0) * -8px));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.place-card-tile img {
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(28, 41, 38, 0.12);
}

.place-card-tile-spot {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.place-card-tile-spot img {
  width: min(100%, 178px);
  border-radius: 0;
  box-shadow: none;
}

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

.feature-card,
.safety-tile {
  padding: 22px;
}

.feature-card h3,
.safety-tile h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p,
.safety-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.link-band {
  background: #142421;
  color: #f9fbf4;
}

.link-band .section-copy h2 {
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  white-space: nowrap;
}

.link-band .section-copy p,
.link-band .section-copy li {
  color: rgba(249, 251, 244, 0.76);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.legal-links a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: #fdfcf7;
}

.site-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

.motion-ready [data-motion-region] {
  opacity: 1;
  transform: translateY(18px);
}

.motion-ready [data-motion-region].is-visible,
.motion-ready .hero[data-motion-region] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.motion-ready .hero-app-icon {
  animation: hero-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.motion-ready .floating-phone.card-a {
  animation: float-a 5.5s ease-in-out infinite;
}

.motion-ready .floating-card.card-b {
  animation: float-b 6s ease-in-out infinite;
}

.motion-ready .floating-card.card-c {
  animation: float-c 5.2s ease-in-out infinite;
}

@keyframes hero-rise {
  from {
    transform: translate3d(0, 24px, 60px) scale(0.94);
    opacity: 0;
  }
}

@keyframes float-a {
  50% {
    transform: translate3d(0, -14px, 44px);
  }
}

@keyframes float-b {
  50% {
    transform: rotateZ(-13deg) translate3d(-8px, 12px, 34px);
  }
}

@keyframes float-c {
  50% {
    transform: rotateZ(2deg) translate3d(10px, -10px, 58px);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    height: auto;
  }

  .site-header-inner {
    min-height: var(--header-height);
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .language-nav {
    margin-left: auto;
  }

  .hero {
    min-height: 650px;
    padding: 28px 0 34px;
  }

  .hero-inner,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-reverse .section-copy,
  .section-reverse .section-visual {
    order: initial;
  }

  .hero-inner {
    position: relative;
    display: block;
    min-height: 578px;
  }

  .hero-scene {
    position: absolute;
    inset: auto -16px 0 -16px;
    min-height: 230px;
    overflow: hidden;
    opacity: 0.88;
  }

  .hero-app-icon {
    width: 92px;
  }

  .floating-card {
    width: clamp(112px, 34vw, 158px);
  }

  .floating-phone.card-a {
    right: 6%;
    top: 8%;
    width: clamp(72px, 18vw, 96px);
  }

  .floating-card.card-b {
    left: 3%;
    bottom: 10%;
  }

  .floating-card.card-c {
    right: 20%;
    bottom: 2%;
    width: clamp(84px, 25vw, 126px);
  }

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

  .place-card-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .place-card-tile-spot img {
    width: min(100%, 142px);
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .legal-links {
    flex-direction: column;
  }

  .button,
  .legal-links a {
    width: 100%;
  }

  .link-band .section-copy h2 {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .collection-stack {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 8px;
  }

  .mini-card-spot {
    width: min(100%, 92px);
  }

  .mini-card-app-screen {
    width: min(100%, 74px);
  }

  .app-screen-showcase {
    width: min(100%, 280px);
  }

  .app-screen-showcase .iphone-device-frame {
    width: min(100%, 242px);
    padding: 8px 5px;
    border-radius: 31px;
  }

  .app-screen-showcase img {
    border-radius: 23px;
  }

  .tomoegg-gallery {
    gap: 10px;
  }

  .tomoegg-variant {
    padding: 10px 8px;
  }

  .tomoegg-variant img {
    width: min(100%, 116px);
  }

  .tomoegg-variant figcaption {
    font-size: 0.78rem;
  }

  .place-card-tile {
    padding: 8px;
  }

  .place-card-tile-spot img {
    width: min(100%, 112px);
  }
}

@media (min-width: 360px) and (max-width: 520px) {
  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .button {
    width: auto;
    flex: 1 1 0;
    padding: 0 12px;
  }
}

@media (max-width: 359px) {
  .hero {
    min-height: 610px;
  }

  .hero-inner {
    min-height: 538px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .hero-scene {
    min-height: 204px;
    opacity: 0.82;
  }
}

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

  .motion-ready [data-motion-region] {
    opacity: 1;
    transform: none;
  }

  .floating-card,
  .floating-phone,
  .mini-card,
  .showcase-card,
  .tomoegg-variant,
  .place-card-tile,
  .route-line {
    transform: none !important;
  }
}
