:root {
  --ice: #e7f3f1;
  --ice-lift: #f4fbfa;
  --ice-deep: #d2e8e4;
  --dew: #81d8d0;
  --dew-deep: #3fa89f;
  --dew-mist: rgba(129, 216, 208, 0.28);
  --ink: #163532;
  --muted: #5e7f7a;
  --paper: #fffefb;
  --paper-ivory: #f6efe4;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(129, 216, 208, 0.16));
  --glass-edge: rgba(255, 255, 255, 0.72);
  --raise:
    8px 10px 24px rgba(90, 140, 135, 0.18),
    -6px -8px 18px rgba(255, 255, 255, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --press:
    inset 5px 6px 12px rgba(90, 140, 135, 0.22),
    inset -3px -4px 10px rgba(255, 255, 255, 0.75);
  --page: 20px;
  --max: 1120px;
  --nav-h: 72px;
  --font: "SF Pro Rounded", ui-rounded, "PingFang SC", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, sans-serif;
  --spring: 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ice);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(920px 480px at 88% -4%, var(--dew-mist), transparent 58%),
    radial-gradient(640px 420px at -8% 108%, rgba(255, 255, 255, 0.75), transparent 55%),
    var(--ice);
}

body.legal {
  background: var(--ice);
}
.legal .nav-inner {
  width: min(720px, calc(100% - 40px));
}

img { max-width: 100%; display: block; }
a { color: var(--dew-deep); }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.wrap-narrow { width: min(720px, calc(100% - 40px)); }

/* —— nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(231, 243, 241, 0.55));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--raise);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: #fff;
}
.brand-en {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--dew);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 0 6px var(--dew-mist);
}
.nav-cta:active { transform: scale(0.97); box-shadow: var(--press); }

/* —— hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0 72px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dew-deep);
  text-transform: uppercase;
}
h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 0 18px;
}
.lead {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.hero-cta { margin-top: 28px; }
.proof {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cta .note {
  flex: 1 0 100%;
  margin: 4px 0 0;
}
.cta input[type="email"] {
  height: 52px;
  border: 0;
  border-radius: 26px;
  padding: 0 18px;
  min-width: min(260px, 100%);
  flex: 1;
  background: var(--ice-lift);
  color: var(--ink);
  box-shadow: var(--press);
  outline: none;
}
.cta input[type="email"]:focus {
  box-shadow:
    var(--press),
    0 0 0 4px var(--dew-mist);
}
.cta button,
.btn {
  height: 52px;
  border: 0;
  border-radius: 26px;
  padding: 0 22px;
  background: var(--dew);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 0 8px var(--dew-mist);
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
}
.cta button:active,
.btn:active {
  transform: scale(0.97);
  box-shadow: var(--press);
}
.cta button:disabled { opacity: 0.6; cursor: wait; }
.note, .meta { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* —— device mock —— */
.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.paper-float {
  position: absolute;
  width: 236px;
  border-radius: 28px;
  left: -6%;
  top: 14%;
  transform: rotate(-10deg);
  box-shadow: 12px 18px 40px rgba(90, 140, 135, 0.22);
  background: var(--paper);
}
.sticker-float {
  position: absolute;
  width: 118px;
  right: -4%;
  bottom: 6%;
  border-radius: 28px;
  padding: 10px;
  background: #fff;
  transform: rotate(8deg);
  box-shadow: 8px 12px 24px rgba(90, 140, 135, 0.22);
}
.device {
  position: relative;
  z-index: 1;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19.4;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(165deg, #3a4046, #121416);
  box-shadow:
    8px 10px 24px rgba(90, 140, 135, 0.18),
    -6px -8px 18px rgba(255, 255, 255, 0.7),
    0 36px 70px rgba(22, 53, 50, 0.2);
  animation: float 5.6s ease-in-out infinite;
}
.device-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper);
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.device-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 28px;
  border-radius: 20px;
  background: #121416;
  z-index: 2;
}
.wells {
  position: absolute;
  right: 14px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.well {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--raise);
}
.well-lg {
  width: 56px;
  height: 56px;
  background: var(--dew);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* —— sections —— */
.section { padding: 28px 0 80px; scroll-margin-top: 88px; }
#wait { scroll-margin-top: 96px; }
.section h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
  text-wrap: balance;
}
.section .lead { margin-bottom: 28px; }

.papers {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.7fr;
  gap: 18px;
  align-items: end;
}
.paper-card {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 10px 16px 36px rgba(90, 140, 135, 0.16);
}
.paper-card img { width: 100%; height: auto; }
.paper-card figcaption {
  padding: 14px 16px 16px;
  font-size: 13px;
  color: var(--muted);
}
.paper-card.sticker {
  background: var(--ice-lift);
  box-shadow: var(--raise);
}
.paper-card.sticker img {
  background: #fff;
  padding: 28px;
}

.layers,
.steps,
.nots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--glass-edge);
  border-radius: 32px;
  padding: 24px 22px 22px;
  box-shadow: var(--raise);
}
.glass-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.glass-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--dew);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.shot {
  margin-top: 36px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--ice-deep);
  box-shadow: var(--raise);
}
.shot img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 30%;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.faq details {
  background: var(--ice-lift);
  border-radius: 22px;
  padding: 4px 18px;
  box-shadow: var(--raise);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.final {
  text-align: center;
  padding: 12px 0 24px;
}
.final .cta { justify-content: center; }
.final .lead { margin-left: auto; margin-right: auto; }

footer {
  padding: 28px 0 56px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
}
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }

.prose {
  background: rgba(255, 254, 251, 0.78);
  border-radius: 28px;
  padding: 28px;
  margin: 24px 0 64px;
  box-shadow: var(--raise);
}
.prose h1 { font-size: 32px; }
.prose h2 { font-size: 18px; margin-top: 28px; }

@media (prefers-reduced-transparency: reduce) {
  .nav-inner, .glass-card, .well {
    backdrop-filter: none;
    background: var(--ice-lift);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device { animation: none; }
  .cta button, .btn, .nav-cta { transition: none; }
}

@media (max-width: 900px) {
  .hero,
  .papers,
  .layers,
  .steps,
  .nots {
    grid-template-columns: 1fr;
  }
  .hero { gap: 28px; padding-bottom: 48px; }
  .hero-stage { min-height: 480px; order: -1; }
  .nav-links { display: none; }
  .paper-float { width: 150px; }
  .sticker-float { width: 96px; }
}
