/* ============================================================
   Voyplorer — premium marketing site (v2)
   Deep Ink Navy canvas · Misty Teal primary · Muted Coral ·
   Warm Sand / Champagne accents · Bricolage + Literata + General Sans
   ============================================================ */

@font-face {
  font-display: swap;
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  src: url("./assets/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  src: url("./assets/fonts/Literata-Variable.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "General Sans";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/GeneralSans-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "General Sans";
  font-style: normal;
  font-weight: 500;
  src: url("./assets/fonts/GeneralSans-Medium.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "General Sans";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/fonts/GeneralSans-Semibold.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "General Sans";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/GeneralSans-Bold.ttf") format("truetype");
}

:root {
  /* Brand tokens */
  --teal: #7fb8c9;
  --teal-bright: #9fd4e2;
  --teal-deep: #477f91;
  --coral: #e58c73;
  --sand: #efe3d3;
  --champagne: #e9d6aa;
  --bronze: #c98643;
  --fog: #eef2f3;
  --navy: #11233f;

  /* Canvas */
  --ink-950: #040a14;
  --ink-900: #060d19;
  --ink-850: #0a1626;
  --ink-800: #101f34;
  --ink-700: #16293f;

  /* Text */
  --text: rgba(238, 242, 243, 0.86);
  --muted: rgba(238, 242, 243, 0.62);
  --faint: rgba(238, 242, 243, 0.52);

  /* Surfaces */
  --glass: rgba(16, 31, 52, 0.55);
  --glass-bright: rgba(238, 242, 243, 0.06);
  --line: rgba(238, 242, 243, 0.1);
  --line-strong: rgba(238, 242, 243, 0.18);

  /* Type */
  --font-display: "Bricolage Grotesque", "General Sans", system-ui, sans-serif;
  --font-serif: "Literata", Georgia, serif;
  --font-body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --header-h: 76px;
  --radius-lg: 28px;
  --radius-md: 20px;

  --shadow-device:
    0 60px 120px -30px rgba(0, 0, 0, 0.65),
    0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset / base ---------- */

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

html {
  background: var(--ink-900);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(120vw 90vh at 85% -10%, rgba(71, 127, 145, 0.28), transparent 60%),
    radial-gradient(90vw 70vh at -15% 8%, rgba(201, 134, 67, 0.16), transparent 55%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-850) 38%, var(--ink-800) 72%, var(--navy) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain + faint grid over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 242, 243, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 242, 243, 0.032) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 78%);
}

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

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

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::selection {
  background: rgba(127, 184, 201, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink-950);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-700);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-deep);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink-950);
  font-weight: 600;
  transform: translateY(-64px);
  transition: transform 240ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- Backdrop auroras ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-teal {
  width: 54vw;
  height: 54vw;
  min-width: 480px;
  min-height: 480px;
  top: -18vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(127, 184, 201, 0.4), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.aurora-coral {
  width: 34vw;
  height: 34vw;
  min-width: 320px;
  min-height: 320px;
  top: 30vh;
  left: -14vw;
  background: radial-gradient(circle, rgba(229, 140, 115, 0.26), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.aurora-champagne {
  width: 30vw;
  height: 30vw;
  min-width: 280px;
  min-height: 280px;
  top: 70vh;
  right: 8vw;
  background: radial-gradient(circle, rgba(233, 214, 170, 0.2), transparent 65%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vw, 5vh, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(7vw, -6vh, 0) scale(0.94); }
}

/* Keep content above backdrop layers */
.site-header,
.menu-overlay,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  max-width: 100%;
  transition:
    background 420ms ease,
    box-shadow 420ms ease,
    border-color 420ms ease,
    height 420ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 62px;
  background: rgba(6, 13, 25, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 420ms var(--ease-spring);
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.06);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  margin-left: auto;
}

.top-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 240ms ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--champagne));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms var(--ease-out);
}

.top-nav a:hover {
  color: #fff;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}

.store-pill {
  --mag-x: 0px;
  --mag-y: 0px;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(238, 242, 243, 0.08);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    background 280ms ease,
    border-color 280ms ease,
    color 180ms ease,
    box-shadow 280ms ease,
    transform 280ms var(--ease-spring);
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  will-change: transform;
}

.store-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.72), rgba(127, 184, 201, 0.2) 42%, transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.store-pill svg {
  transition: transform 220ms var(--ease-spring);
}

.store-pill:active {
  transform: translate3d(var(--mag-x), var(--mag-y), 0) scale(0.94);
}

/* Burger */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(238, 242, 243, 0.06);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 160ms var(--ease-spring);
}

.menu-toggle:active {
  transform: scale(0.92);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.8px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 360ms var(--ease-out),
    top 360ms var(--ease-out);
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu overlay ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 48px;
  background: rgba(4, 10, 20, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 420ms ease,
    visibility 0s linear 420ms;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-weight: 700;
  color: var(--fog);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 520ms var(--ease-out),
    transform 520ms var(--ease-out),
    color 240ms ease;
}

.menu-overlay.open .menu-nav a {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.open .menu-nav a:nth-child(1) { transition-delay: 60ms; }
.menu-overlay.open .menu-nav a:nth-child(2) { transition-delay: 110ms; }
.menu-overlay.open .menu-nav a:nth-child(3) { transition-delay: 160ms; }
.menu-overlay.open .menu-nav a:nth-child(4) { transition-delay: 210ms; }
.menu-overlay.open .menu-nav a:nth-child(5) { transition-delay: 260ms; }
.menu-overlay.open .menu-nav a:nth-child(6) { transition-delay: 310ms; }

.menu-nav em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.12em;
}

.menu-store {
  align-self: flex-start;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink-950);
  font-weight: 700;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 520ms var(--ease-out) 360ms,
    transform 520ms var(--ease-out) 360ms;
}

.menu-overlay.open .menu-store {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.open .menu-store:active {
  transform: translateY(0) scale(0.96);
}

.menu-overlay.open .menu-nav a:active {
  color: var(--teal-bright);
  transform: translateX(4px) scale(0.98);
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Shared section furniture ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--gutter) 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

h2 em,
.hero-title .accent .wi {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
  background: linear-gradient(100deg, var(--teal-bright) 0%, var(--champagne) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-lede {
  margin-top: 18px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Reveal-on-scroll ---------- */

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) var(--gutter) clamp(72px, 9vh, 110px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0;
}

.hero-title .w {
  display: inline-block;
  overflow: visible;
  vertical-align: bottom;
}

.hero-title .wi {
  display: inline-block;
  will-change: transform;
}

.hero-title .accent .wi {
  /* Literata has deeper descenders than the surrounding Bricolage face.
     Give gradient-clipped glyphs their own paint area so letters such as
     “y” cannot be clipped by the inherited headline line box. */
  line-height: 1.16;
  padding: 0 0.06em 0.08em 0.015em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Entrance choreography */
.motion-ready .hero-title .wi,
.motion-ready .hero-lede,
.motion-ready .hero-actions,
.motion-ready .hero-proof,
.motion-ready .hero-stage {
  opacity: 0;
  transition:
    opacity 950ms var(--ease-out),
    transform 950ms var(--ease-out);
}

.motion-ready .hero-title .wi {
  transform: translate3d(0, 112%, 0) rotate(3.5deg);
  transform-origin: left top;
}

.motion-ready .hero-lede { transform: translate3d(0, 26px, 0); }
.motion-ready .hero-actions { transform: translate3d(0, 26px, 0); }
.motion-ready .hero-proof { transform: translate3d(0, 26px, 0); }
.motion-ready .hero-stage {
  transform: translate3d(0, 44px, 0) scale(0.965);
  transition-duration: 1250ms;
}
.motion-ready.is-loaded .hero-title .wi,
.motion-ready.is-loaded .hero-lede,
.motion-ready.is-loaded .hero-actions,
.motion-ready.is-loaded .hero-proof,
.motion-ready.is-loaded .hero-stage {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.motion-ready.is-loaded .hero-title .w:nth-of-type(1) .wi { transition-delay: 160ms; }
.motion-ready.is-loaded .hero-title .w:nth-of-type(2) .wi { transition-delay: 230ms; }
.motion-ready.is-loaded .hero-title .w:nth-of-type(3) .wi { transition-delay: 300ms; }
.motion-ready.is-loaded .hero-title .w:nth-of-type(4) .wi { transition-delay: 370ms; }
.motion-ready.is-loaded .hero-title .w:nth-of-type(5) .wi { transition-delay: 470ms; }
.motion-ready.is-loaded .hero-title .w:nth-of-type(6) .wi { transition-delay: 560ms; }
.motion-ready.is-loaded .hero-lede { transition-delay: 640ms; }
.motion-ready.is-loaded .hero-actions { transition-delay: 740ms; }
.motion-ready.is-loaded .hero-proof { transition-delay: 840ms; }
.motion-ready.is-loaded .hero-stage { transition-delay: 420ms; }

.hero-lede {
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 36px;
}

.hero-reassurance {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-reassurance span:first-child {
  color: var(--teal-bright);
}

.hero-reassurance span + span::before {
  content: "·";
  margin-right: 0.7rem;
  color: var(--faint);
}

.app-store-button {
  --mag-x: 0px;
  --mag-y: 0px;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px 13px 20px;
  border-radius: 16px;
  background: var(--fog);
  color: var(--ink-950);
  box-shadow: 0 18px 44px -12px rgba(127, 184, 201, 0.45);
  transition:
    transform 320ms var(--ease-spring),
    box-shadow 320ms ease,
    background 320ms ease;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  will-change: transform;
}

.app-store-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), #fff 0, rgba(255, 255, 255, 0.88) 26%, rgba(127, 184, 201, 0.18) 66%, transparent 82%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.app-store-button svg {
  transition: transform 240ms var(--ease-spring);
}

.app-store-button:active {
  transform: translate3d(var(--mag-x), var(--mag-y), 0) scale(0.965);
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

.store-large {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: clamp(22px, 3vh, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-proof span + span::before {
  content: "·";
  margin-right: 0.8rem;
  color: var(--teal);
}

/* Hero stage — phone constellation */
.hero-stage {
  position: relative;
  min-height: clamp(480px, 72vh, 680px);
  perspective: 1400px;
}

.stage-glow {
  position: absolute;
  inset: 8% -6% 0;
  background:
    radial-gradient(ellipse 60% 55% at 55% 45%, rgba(127, 184, 201, 0.24), transparent 70%),
    radial-gradient(ellipse 45% 40% at 30% 65%, rgba(233, 214, 170, 0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.device {
  position: relative;
  border-radius: clamp(28px, 3.4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(238, 242, 243, 0.16);
  background: var(--ink-800);
  box-shadow: var(--shadow-device);
  will-change: transform;
}

.device img {
  width: 100%;
  height: auto;
}

.device-main {
  position: absolute;
  width: min(56%, 330px);
  right: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(2.5deg);
  z-index: 2;
}

.device-side {
  position: absolute;
  width: min(47%, 272px);
  left: 2%;
  top: 50%;
  transform: translateY(-56%) rotate(-6.5deg);
  z-index: 1;
  filter: brightness(0.82);
}

/* Lift parallax transforms above base placement */
.hero-stage .device-main { --base: translateY(-50%) rotate(2.5deg); }
.hero-stage .device-side { --base: translateY(-56%) rotate(-6.5deg); }

.js-tilt .hero-stage .device-main,
.js-tilt .hero-stage .device-side,
.js-tilt .hero-stage .float-chip {
  transform: var(--base) translate3d(var(--tx, 0px), var(--ty, 0px), 0);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(10, 22, 38, 0.68);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.55);
  animation: bob 7s ease-in-out infinite;
  will-change: transform;
}

.float-chip b {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
}

.float-chip span {
  font-size: 0.72rem;
  color: var(--teal-bright);
  letter-spacing: 0.05em;
}

.chip-ja { top: 9%; right: 0; animation-delay: -1.2s; }
.chip-ko { bottom: 13%; left: -2%; animation-delay: -3.8s; animation-duration: 8.4s; }
.chip-th { bottom: -2%; right: 12%; animation-delay: -5.6s; animation-duration: 6.2s; }

@keyframes bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

/* ---------- Languages and Plus ---------- */

.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
}

.compact-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.compact-lang-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(238, 242, 243, 0.035);
}

.compact-lang-card b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-lang-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.offer-card {
  padding: clamp(26px, 3.5vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 100% 0%, rgba(127, 184, 201, 0.18), transparent 54%), var(--ink-800);
}

.offer-kicker {
  color: var(--teal-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.offer-card h3 {
  margin-top: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}

.offer-benefits {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.offer-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
}

.offer-benefits li > span {
  color: var(--teal-bright);
}

/* ---------- Closing ---------- */

.closing-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) var(--gutter) clamp(56px, 7vw, 88px);
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 64px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 38px);
  background: radial-gradient(circle at 50% 0%, rgba(127, 184, 201, 0.14), transparent 58%), rgba(238, 242, 243, 0.025);
}

.closing-inner .eyebrow {
  justify-content: center;
}

.closing-copy {
  max-width: 58ch;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  margin-top: 30px;
}

.closing-actions > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.closing-contact {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  margin-top: 26px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.closing-contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--champagne));
  transform: scaleX(0.2);
  transform-origin: left;
  opacity: 0.5;
  transition:
    opacity 180ms ease,
    transform 280ms var(--ease-out);
}

.closing-contact strong {
  color: var(--teal-bright);
  font-weight: 600;
}

.closing-contact:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px 40px;
  align-items: center;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--faint);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a {
  position: relative;
  padding: 5px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 180ms ease,
    transform 180ms var(--ease-spring);
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.footer-nav a:active {
  transform: scale(0.94);
}

.footer-nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .store-pill:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--ink-950);
    box-shadow: 0 14px 34px -14px rgba(127, 184, 201, 0.8);
    transform: translate3d(var(--mag-x), calc(var(--mag-y) - 2px), 0);
  }

  .store-pill:hover::before,
  .app-store-button:hover::before {
    opacity: 1;
  }

  .store-pill:hover svg {
    transform: translateY(-1px) rotate(-5deg) scale(1.06);
  }

  .menu-toggle:hover {
    background: rgba(127, 184, 201, 0.13);
    border-color: rgba(127, 184, 201, 0.58);
    box-shadow: 0 12px 30px -18px rgba(127, 184, 201, 0.75);
  }

  .menu-overlay.open .menu-nav a:hover {
    color: var(--teal-bright);
    transform: translateX(8px);
  }

  .menu-overlay.open .menu-store:hover {
    background: var(--teal-bright);
    box-shadow: 0 18px 42px -18px rgba(127, 184, 201, 0.9);
    transform: translateY(-2px);
  }

  .app-store-button:hover {
    transform: translate3d(var(--mag-x), calc(var(--mag-y) - 3px), 0);
    background: #fff;
    box-shadow: 0 26px 56px -12px rgba(127, 184, 201, 0.6);
  }

  .app-store-button:hover svg {
    transform: translateY(-1px) rotate(-4deg) scale(1.07);
  }

  .closing-contact:hover {
    color: var(--fog);
  }

  .closing-contact:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .footer-nav a:hover {
    color: var(--champagne);
    transform: translateY(-1px);
  }

  .footer-nav a:hover::after {
    transform: scaleX(1);
  }
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- Legal pages ---------- */

.legal-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) var(--gutter) clamp(70px, 9vw, 110px);
}

.legal-hero {
  margin-bottom: clamp(34px, 5vw, 52px);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.legal-hero p:not(.eyebrow) {
  color: var(--faint);
  font-size: 0.92rem;
}

.legal-card {
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(238, 242, 243, 0.05), rgba(238, 242, 243, 0.015));
  border: 1px solid var(--line);
}

.legal-card h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  margin: 30px 0 10px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card a {
  color: var(--teal-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1060px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2.5rem, min(6.4vw, 8vh), 4.2rem);
  }
}

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(48px, 8vw, 72px);
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-lede {
    max-width: 60ch;
  }

  .hero-stage {
    width: 100%;
    height: clamp(430px, 60vw, 560px);
    min-height: 0;
    max-width: 560px;
    margin: 0 auto;
  }

  .offer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .top-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 66px;
  }

  .store-pill span {
    display: none;
  }

  .store-pill {
    padding: 11px 13px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 34px);
  }

  .hero-title {
    font-size: clamp(2.4rem, 11.4vw, 3.4rem);
  }

  .hero-actions {
    gap: 16px;
  }

  .app-store-button {
    padding: 12px 22px 12px 16px;
  }

  .hero-proof {
    gap: 0.4rem 0.65rem;
    font-size: 0.68rem;
  }

  .hero-proof span + span::before {
    margin-right: 0.65rem;
  }

  .hero-stage {
    height: clamp(400px, 108vw, 480px);
  }

  .device-main {
    width: min(80%, 34vh);
    right: 2%;
  }

  .device-side {
    width: min(66%, 27vh);
    left: 0;
  }

  .float-chip {
    padding: 9px 13px;
    border-radius: 14px;
  }

  .float-chip b {
    font-size: 0.9rem;
  }

  .float-chip span {
    font-size: 0.64rem;
  }

  .chip-ja { top: 4%; }
  .chip-ko { bottom: 16%; }
  .chip-th { bottom: 0; right: 4%; }

  .compact-language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-inner {
    padding-inline: 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .motion-ready [data-reveal],
  .motion-ready .hero-title .wi,
  .motion-ready .hero-lede,
  .motion-ready .hero-actions,
  .motion-ready .hero-proof,
  .motion-ready .hero-stage {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1560px) {
  :root {
    --max: 1340px;
  }
}

/* ---------- Rendered device images ---------- */

.device {
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
}

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

.hero-title {
  font-size: clamp(2.7rem, min(7.2vw, 8.6vh), 5.4rem);
}

.hero-lede {
  margin-top: 22px;
}

.hero-actions {
  margin-top: 28px;
}

.device-main {
  width: min(74%, 440px, 34vh);
}

.device-side {
  width: min(62%, 360px, 27vh);
}

@media (max-width: 1060px) {
  .hero-title {
    font-size: clamp(2.5rem, min(6.4vw, 8vh), 4.2rem);
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(2.4rem, 11.4vw, 3.4rem);
  }
}

@media (max-height: 820px) and (min-width: 921px) {
  .hero {
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 36px;
  }

  .hero-title {
    font-size: clamp(2.7rem, min(7vw, 8.2vh), 5rem);
  }

  .hero-lede {
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-proof {
    margin-top: 20px;
    padding-top: 16px;
  }

  .hero-stage {
    min-height: 430px;
  }
}
