/* ============================================================
   MochiGrid - editorial type-driven design
   Display: SF Pro Rounded (the same rounded language as GlassBoard)
   Paper/ink duotone + single lake-teal accent
   ============================================================ */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #141416;
  --ink-2: #55555c;
  --ink-3: #a3a3aa;
  --line: #e3e3e0;
  --line-strong: #d2d2ce;
  --accent: #0c7a6e;
  --nav-bg: rgba(246, 246, 244, 0.9);
  --btn-bg: #141416;
  --btn-ink: #f6f6f4;
  --btn-bg-hover: #2a2a2e;
  --icon-shadow: 0 30px 60px rgba(20, 20, 22, 0.28);
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
                  "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
               "Hiragino Sans GB", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1a1a1e;
    --ink: #f2f2f0;
    --ink-2: #b3b3ae;
    --ink-3: #6d6d74;
    --line: #26262b;
    --line-strong: #35353b;
    --accent: #3ecfb9;
    --nav-bg: rgba(17, 17, 20, 0.9);
    --btn-bg: #f2f2f0;
    --btn-ink: #111114;
    --btn-bg-hover: #d6d6d2;
    --icon-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--surface); }

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

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

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

section { scroll-margin-top: 76px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.mark { width: 27px; height: 27px; color: var(--ink); }

.nav-links { display: flex; gap: 22px; align-items: center; }

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0% 1.5px;
  padding-bottom: 3px;
  transition: background-size 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
  background-size: 100% 1.5px;
}

/* GlassBoard 专属菜单项：双星强调标记 + 胶囊，区别于常规导航 */
.nav-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 13px 5px 6px;
  background: none;
  transition: border-color 0.15s, background 0.15s;
}
.nav-mark {
  display: block;
  position: relative;
  top: -2px;
  left: 1px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-product:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.nav-product:hover .nav-mark { transform: rotate(-14deg) scale(1.15); }
.nav-product[aria-current="page"] {
  border-color: var(--accent);
}

/* ---------- Products 子菜单 ---------- */

.nav-item { position: relative; }

.nav-item > a { padding-right: 2px; }

.caret {
  display: inline-block;
  vertical-align: 1px;
  margin-left: 3px;
  color: var(--ink-3);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s;
}
.nav-item:hover .caret { transform: rotate(180deg); color: var(--ink); }

.dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.18s;
  z-index: 60;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-panel {
  min-width: 264px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(10, 10, 16, 0.16);
  padding: 8px;
}

/* 面板内链接不用导航的下划线扫过效果 */
.nav-links .dropdown a {
  background: none;
  padding-bottom: 0;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.dd-item:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.dd-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
}

.dd-mono {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
}
.dd-mono svg { width: 20px; height: 20px; }

.dd-text { display: grid; line-height: 1.4; }
.dd-text b {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.dd-text i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.dd-item[aria-current="page"] { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.lang { display: flex; gap: 14px; }

.lang-btn {
  border: 0;
  background: none;
  padding: 2px 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.lang-btn:hover { color: var(--ink-2); }
.lang-btn.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: 118px;
  padding-bottom: 130px;
  min-height: 88vh;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 34px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 8.6vw, 106px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.04;
  max-width: 14ch;
  text-wrap: balance;
}

/* 英文行更短：字号与中文同级，保住大标题的冲击力 */
html[lang="en"] .hero h1 {
  font-size: clamp(48px, 8.4vw, 102px);
  letter-spacing: -0.028em;
  max-width: none;
}

.hero h1 .indent {
  display: inline-block;
  margin-left: clamp(0px, 8vw, 130px);
}

html[lang="en"] .hero h1 .indent {
  margin-left: clamp(0px, 5vw, 72px);
}

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

.hero-icon {
  position: absolute;
  top: 138px;
  right: max(4vw, calc((100vw - 1060px) / 2 - 60px));
  width: clamp(96px, 11vw, 148px);
  height: auto;
  border-radius: 26px;
  transform: rotate(-7deg);
  box-shadow: var(--icon-shadow);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-icon:hover { transform: rotate(-2deg) scale(1.04); }

.hero-sub {
  margin-top: 34px;
  max-width: 46ch;
  font-size: 17.5px;
  color: var(--ink-2);
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-block;
  font: 600 15px/1 inherit;
  font-family: inherit;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }

.link-arrow {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
  text-underline-offset: 5px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.15s;
}
.link-arrow:hover { text-decoration-color: var(--accent); }

.arr { display: inline-block; transition: transform 0.18s; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- sections ---------- */

.section { padding-top: 104px; padding-bottom: 104px; }

.sec-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 54px;
}

.sec-sub {
  color: var(--ink-2);
  margin-top: -40px;
  margin-bottom: 60px;
  max-width: 46ch;
  font-size: 16.5px;
}

/* ---------- products ---------- */

.product { padding: 30px 0 44px; }

.product + .product {
  margin-top: 40px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.p-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: start;
}

.p-name {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.p-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 14px;
}

.p-desc {
  margin-top: 22px;
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 16.5px;
}

.p-side { padding-top: 10px; }

.p-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  box-shadow: var(--icon-shadow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product:hover .p-icon { transform: rotate(-5deg) scale(1.03); }

.p-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
}
.p-mark svg { width: 52px; height: 52px; }
.product:hover .p-mark { transform: rotate(5deg) scale(1.03); }

.p-row-bottom {
  margin-top: 34px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.p-feats {
  list-style: none;
  columns: 2;
  column-gap: 44px;
  max-width: 60ch;
}

.p-feats li {
  color: var(--ink-2);
  font-size: 15px;
  padding: 6px 0;
  break-inside: avoid;
}

/* ---------- waitlist form ---------- */

.waitlist {
  margin-top: 30px;
  max-width: 460px;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.field { width: 100%; display: grid; gap: 6px; }

.field label {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
}

.field input,
.field select {
  font: 400 15px/1.4 inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.field input::placeholder { color: var(--ink-3); }
.field input:focus,
.field select:focus { border-color: var(--accent); }
.field select { cursor: pointer; }

.wl-msg { font-size: 13.5px; color: var(--ink-2); min-height: 1.4em; }
.wl-msg.ok { color: var(--accent); }
.wl-msg.err { color: #b45309; }

/* ---------- roadmap ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.r-when {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}

.r-cell h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.r-cell p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .roadmap { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */

.statement {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.18;
  max-width: 22ch;
  margin-bottom: 34px;
}

.about-p {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 17px;
  margin-bottom: 20px;
}

.principles {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-width: 58ch;
}

/* ---------- contact ---------- */

.email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 46px);
  font-weight: 650;
  letter-spacing: -0.025em;
  text-underline-offset: 9px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.15s;
}
.email:hover { text-decoration-color: var(--accent); }

/* ---------- product links & detail pages ---------- */

.p-link { display: block; line-height: 0; }

.p-title-link { transition: color 0.15s; }
.p-title-link:hover { color: var(--accent); }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 36px;
  transition: color 0.15s;
}
.crumb:hover { color: var(--ink); }

.d-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
}

.d-head h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.d-head .p-tag { margin-top: 10px; }
.d-head .p-icon { width: 84px; height: 84px; border-radius: 20px; }

.lead {
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.75;
}

.meta-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 24px;
}

.d-section { padding-top: 68px; }
.d-section .p-feats { max-width: none; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.shot-wrap { margin: 0; }

.shot {
  aspect-ratio: 16 / 10;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: border-color 0.2s;
}
.shot:hover { border-color: var(--accent); }

.shot-wrap figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.shot-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(10, 10, 16, 0.18);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.shot-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(10, 10, 16, 0.26);
}

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); margin-top: 40px; }

.footer-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-3);
}

.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

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

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 110ms);
}

.hero-icon.rise { animation-name: riseIcon; }
@keyframes riseIcon {
  from { opacity: 0; transform: translateY(30px) rotate(-7deg); }
  to   { opacity: 1; transform: rotate(-7deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-icon.rise { opacity: 1; animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .arr, .link-arrow, .email, .hero-icon, .p-icon, .p-mark { transition: none; }
  .dropdown, .caret { transition: none; transform: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { padding-top: 84px; padding-bottom: 90px; min-height: 0; }
  .hero h1 { max-width: 100%; }
  .hero h1 .indent { margin-left: 0; }
  .hero-icon {
    position: static;
    display: block;
    margin: 36px 0 0;
    width: 96px;
    transform: rotate(-4deg);
  }
  .p-row, .p-row-bottom { grid-template-columns: 1fr; }
  .p-side { order: -1; }
  .p-feats { columns: 1; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}
