/* Matcha site. Night green, milky light, matcha accent.
   System fonts only: no external requests. */
:root {
  --bg: #0b100d;
  --bg-2: #0f1612;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1f5ef;
  --muted: #9dab9f;
  --dim: #6f7d72;
  --accent: #8cc266;
  --accent-2: #b9e48f;
  --accent-strong: #3e7a28;
  --accent-hover: #4a8e31;
  --amber: #e8b45a;
  --milk: #e7ecfb;
  --radius: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
::selection { background: rgba(140, 194, 102, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent-strong); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Ambient background */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 28s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(62, 122, 40, .55), transparent 65%); }
.aurora span:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: 8vh; background: radial-gradient(circle, rgba(140, 194, 102, .28), transparent 65%); animation-duration: 34s; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; top: 60vh; background: radial-gradient(circle, rgba(231, 236, 251, .10), transparent 65%); animation-duration: 40s; }
@keyframes drift { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Navigation */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 8px;
  padding: 7px 7px 7px 16px; border-radius: 999px;
  background: rgba(14, 20, 16, .62); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled .nav-pill { background: rgba(14, 20, 16, .85); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 17px; margin-right: 10px; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--glass-2); }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; margin-left: 6px; }
.lang:hover { color: var(--text); border-color: var(--line-2); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--accent-strong); color: #fff; border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .2s var(--ease), background .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); }
.btn-small { padding: 8px 16px; font-size: 14px; border-radius: 999px; }
.btn-glow {
  background: linear-gradient(180deg, #4f9433, #3e7a28);
  box-shadow: 0 0 0 1px rgba(185, 228, 143, .25) inset, 0 8px 30px rgba(92, 160, 58, .35);
}
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(185, 228, 143, .4) inset, 0 12px 44px rgba(110, 185, 70, .5); }
.btn-ghost { background: var(--glass); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--glass-2); }
.btn-disabled { background: var(--glass); color: var(--muted); border-color: var(--line); cursor: default; }
.btn-disabled:hover { transform: none; background: var(--glass); }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { padding: 150px 0 40px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 14px; color: var(--accent-2); padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(140, 194, 102, .08); border: 1px solid rgba(140, 194, 102, .25);
  position: relative; overflow: hidden;
}
.badge::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.badge .dot, .p-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(140, 194, 102, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(140, 194, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 194, 102, 0); } }
.badge-arrow { color: var(--muted); transition: transform .2s; }
.badge:hover .badge-arrow { transform: translateX(3px); }

.hero h1 { font-size: clamp(44px, 7.6vw, 96px); font-weight: 800; letter-spacing: -0.035em; margin: 28px 0 22px; }
.gradient {
  background: linear-gradient(110deg, #ffffff 0%, #e6f4d8 30%, var(--accent-2) 55%, var(--accent) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 36em; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero-copy .reveal:nth-child(2) { --d: .08s; }
.hero-copy .reveal:nth-child(3) { --d: .16s; }
.hero-copy .reveal:nth-child(4) { --d: .24s; }
.hero .stage { --d: .3s; }

.stage { position: relative; width: min(760px, 100%); height: 560px; margin-top: 30px; }
.halo {
  position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(231, 236, 251, .22) 0%, rgba(140, 194, 102, .14) 35%, transparent 65%);
  filter: blur(10px);
}
.orbit {
  position: absolute; left: 50%; top: 46%; width: 470px; height: 470px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(185, 228, 143, .55) 85%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 14s linear infinite; opacity: .8;
}
.orbit::before {
  content: ""; position: absolute; inset: 38px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .07);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mascot {
  position: absolute; left: 50%; top: 46%; width: 330px; aspect-ratio: 440 / 480;
  transform: translate(-50%, -50%) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  background: none; border: 0; padding: 0; cursor: pointer; transition: transform .25s var(--ease);
}
.mascot .face {
  position: absolute; inset: 0; width: 100%;
  animation: float 6s ease-in-out infinite; transition: opacity .3s;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(231, 236, 251, .18));
}
.mascot .face-happy { opacity: 0; }
.mascot:hover .face-happy, .mascot.is-happy .face-happy { opacity: 1; }
.mascot:hover .face-idle, .mascot.is-happy .face-idle { opacity: 0; }
.floor {
  position: absolute; left: 50%; top: calc(46% + 150px); width: 210px; height: 26px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); animation: floor 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floor { 0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; } 50% { transform: translateX(-50%) scaleX(.84); opacity: .65; } }
.bubble {
  position: absolute; left: 50%; top: calc(46% + 186px); transform: translateX(-50%); white-space: nowrap;
  background: rgba(20, 28, 23, .8); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  padding: 9px 18px; border-radius: 999px; font-size: 15px;
}

.chip-float {
  position: absolute; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(22, 30, 25, .55); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .4s var(--ease);
}
.chip-float > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.chip-float b { font-size: 14px; font-weight: 600; }
.chip-float small { font-size: 13px; color: var(--muted); }
.chip-float.c1 { left: 2%; top: 14%; animation: bob 7s ease-in-out infinite; }
.chip-float.c2 { right: 3%; top: 8%; animation: bob 8s ease-in-out -2s infinite; }
.chip-float.c3 { left: 7%; bottom: 14%; animation: bob 9s ease-in-out -4s infinite; }
.chip-float.c4 { right: 6%; bottom: 20%; animation: bob 7.5s ease-in-out -1s infinite; }
@keyframes bob { 50% { margin-top: -10px; } }
.chip-icon { width: 36px; height: 36px; border-radius: 11px; flex: none; background: rgba(140, 194, 102, .14) center / 18px no-repeat; }
.ic-mem { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9e48f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3z'/%3E%3Cpath d='M5 17a3 3 0 0 1 3-3h11'/%3E%3C/svg%3E"); }
.ic-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9e48f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ic-date { background-color: rgba(232, 180, 90, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b45a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='3'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4'/%3E%3C/svg%3E"); }
.ring-mini {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) var(--p, 72%), rgba(255, 255, 255, .1) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}

/* Sections */
.section { padding: 120px 0; position: relative; }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.label {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.section h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.sub { color: var(--muted); font-size: 18px; margin-top: 18px; }
.sub .more { color: var(--accent-2); text-decoration: none; white-space: nowrap; }
.sub .more:hover { text-decoration: underline; }

/* App window */
.window {
  border-radius: 20px; overflow: hidden; background: #1b1e22;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 120px rgba(92, 160, 58, .12);
  transform-origin: 50% 0;
}
.js .window.reveal { transform: perspective(1400px) rotateX(14deg) translateY(40px) scale(.96); }
.js .window.reveal.in { transform: perspective(1400px) rotateX(0) translateY(0) scale(1); transition-duration: 1.3s; }
.win-bar { height: 40px; display: flex; align-items: center; padding: 0 16px; background: #16181b; border-bottom: 1px solid rgba(255, 255, 255, .05); position: relative; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #3a3f45; }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: #8a9199; }
.win-body { display: grid; grid-template-columns: 64px 220px 1fr 250px; height: 500px; text-align: left; }
.rail { background: #16181b; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.rail-logo { width: 42px; height: 42px; border-radius: 14px; background: #24282d; display: grid; place-items: center; }
.rail-logo img { width: 28px; }
.rail-item { width: 42px; height: 42px; border-radius: 50%; background: #24282d; }
.rail-item.on { border-radius: 14px; background: var(--accent-strong); box-shadow: -10px 0 0 -6px #fff; }
.side { background: #1d2024; padding: 16px 10px; }
.side-h { font-size: 12px; font-weight: 700; color: #8a9199; letter-spacing: .06em; text-transform: uppercase; padding: 0 10px 10px; }
.conv { font-size: 14px; color: #949ba4; padding: 7px 10px; border-radius: 8px; margin-bottom: 2px; }
.conv.on { background: #2e3338; color: #fff; }
.chat { background: #24282d; display: flex; flex-direction: column; min-width: 0; }
.chat-head { height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 18px; border-bottom: 1px solid rgba(0, 0, 0, .25); color: #fff; font-weight: 600; font-size: 15px; }
.chat-log { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.m { display: flex; gap: 12px; }
.m p { color: #dbdee1; font-size: 15px; line-height: 1.55; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #2f3a33; display: grid; place-items: center; font-size: 14px; font-weight: 700; object-fit: contain; padding: 3px; }
.av-you { background: #3c4a6e; color: #e8edf8; padding: 0; }
.who { display: flex; gap: 8px; align-items: baseline; }
.who b { color: #fff; font-size: 15px; }
.who time { color: #80868e; font-size: 12px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.caret.off { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.suggest {
  margin-left: 52px; border: 1.5px dashed rgba(232, 180, 90, .7); background: rgba(232, 180, 90, .07);
  border-radius: 14px; padding: 12px 16px; max-width: 460px;
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.suggest.show { opacity: 1; transform: none; }
.suggest p { color: #e6dcc8; font-size: 14px; }
.suggest-title { color: var(--amber) !important; font-weight: 700; margin-bottom: 2px; }
.suggest-actions { display: flex; gap: 8px; margin-top: 10px; }
.chip { font-size: 13px; padding: 4px 14px; border-radius: 8px; background: #3a3f45; color: #dbdee1; }
.chip-yes { background: var(--accent-strong); color: #fff; }
.composer { margin: 0 18px 18px; padding: 12px 16px; border-radius: 10px; background: #2e3338; color: #6d737b; font-size: 14px; }
.profile { background: #1d2024; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; }
.profile > img { width: 120px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); animation: float 6s ease-in-out infinite; }
.p-name { font-weight: 700; font-size: 18px; margin-top: 8px; }
.p-state { display: flex; align-items: center; gap: 8px; color: var(--accent-2); font-size: 13px; margin-top: 2px; }
.p-box { width: 100%; margin-top: 22px; background: #24282d; border-radius: 12px; padding: 14px; }
.p-h { font-size: 12px; font-weight: 700; color: #8a9199; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.p-task { font-size: 13px; color: #dbdee1; padding: 5px 0 5px 24px; position: relative; }
.p-task::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #5c636b; }
.p-task.done { color: #80868e; text-decoration: line-through; }
.p-task.done::before { background: var(--accent-strong); border-color: var(--accent-strong); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  isolation: isolate;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 194, 102, .14), transparent 45%);
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 228, 143, .55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile h3 { font-size: 22px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 15px; }
.t-memory { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; min-height: 300px; }
.t-focus { grid-column: span 2; }
.t-today, .t-room, .t-voice { grid-column: span 2; }
.bento .reveal:nth-child(2) { --d: .08s; }
.bento .reveal:nth-child(3) { --d: .04s; }
.bento .reveal:nth-child(4) { --d: .12s; }
.bento .reveal:nth-child(5) { --d: .2s; }

.mem-stack { display: flex; flex-direction: column; gap: 10px; }
.mem {
  display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text) !important;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  animation: memIn 9s var(--ease) infinite; opacity: 0;
}
.mem:nth-child(2) { animation-delay: .5s; }
.mem:nth-child(3) { animation-delay: 1s; }
.mem:nth-child(4) { animation-delay: 1.5s; }
@keyframes memIn { 0% { opacity: 0; transform: translateX(16px); } 8%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateX(-8px); } }
.mem-k { font-size: 12px; font-weight: 700; color: var(--amber); background: rgba(232, 180, 90, .12); padding: 2px 8px; border-radius: 6px; flex: none; }

.focus-ring { position: relative; width: 132px; height: 132px; margin-bottom: 22px; }
.focus-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-ring circle { fill: none; stroke-width: 7; }
.focus-ring .track { stroke: rgba(255, 255, 255, .08); }
.focus-ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: var(--off, 0); filter: drop-shadow(0 0 6px rgba(140, 194, 102, .6)); transition: stroke-dashoffset 1s linear; }
.focus-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 600; }

.todo { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.todo li { position: relative; padding-left: 30px; font-size: 14px; color: var(--text); }
.todo li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #5c636b;
  animation: tick 8s infinite;
}
.todo li::after {
  content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); animation: tickMark 8s infinite;
}
.todo li:nth-child(2)::before, .todo li:nth-child(2)::after { animation-delay: 1.2s; }
.todo li:nth-child(3)::before, .todo li:nth-child(3)::after { animation-delay: 2.4s; }
@keyframes tick { 0%, 10% { background: transparent; border-color: #5c636b; } 15%, 85% { background: var(--accent-strong); border-color: var(--accent-strong); } 92%, 100% { background: transparent; border-color: #5c636b; } }
@keyframes tickMark { 0%, 10% { transform: rotate(-45deg) scale(0); } 15%, 85% { transform: rotate(-45deg) scale(1); } 92%, 100% { transform: rotate(-45deg) scale(0); } }

.sleeper { position: relative; width: 130px; margin-bottom: 18px; }
.sleeper img { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .45)); animation: breathe 4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scale(1.03, .97); } }
.z { position: absolute; right: -10px; top: 0; color: var(--milk); font-weight: 700; opacity: 0; animation: zz 3.6s ease-out infinite; }
.z2 { animation-delay: 1.2s; font-size: 18px; }
.z3 { animation-delay: 2.4s; font-size: 22px; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(26px, -40px); } }

.tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--amber);
  border: 1px solid rgba(232, 180, 90, .45); background: rgba(232, 180, 90, .08);
  padding: 2px 10px; border-radius: 999px; margin-bottom: 18px;
}
.wave { display: flex; align-items: center; gap: 5px; height: 64px; margin-bottom: 22px; }
.wave i { width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent-strong)); height: 20%; animation: wave 1.4s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; }
.wave i:nth-child(3n+1) { animation-delay: -.7s; }
.wave i:nth-child(4n) { animation-delay: -1s; }
@keyframes wave { 50% { height: 95%; } }

/* Privacy */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { border-radius: var(--radius); padding: 34px 30px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); }
.stats .reveal:nth-child(2) { --d: .1s; }
.stats .reveal:nth-child(3) { --d: .2s; }
.stat .num { font-size: 76px; color: var(--text); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 18px; }
.num span { background: linear-gradient(180deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num small { font-size: 22px; font-weight: 700; color: var(--accent-2); margin-left: 6px; letter-spacing: 0; }
.stat h3 { font-size: 20px; margin-bottom: 10px; }
.stat p { color: var(--muted); font-size: 15px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }

/* Download */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 80px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; isolation: isolate;
}
.cta-glow {
  position: absolute; left: 50%; top: -40%; width: 900px; height: 600px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(140, 194, 102, .28), transparent);
}
.cta-mascot { width: 140px; margin-bottom: 26px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }
.cta .sub { margin-bottom: 32px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--dim); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-small { font-size: 15px; color: var(--muted); gap: 8px; margin: 0; }
.brand-small img { width: 20px; height: 20px; }

/* Invite page (beta-*/): download card and install steps */
.invite { padding: 130px 0 80px; }
.invite-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.invite-mascot { width: 120px; margin-bottom: 22px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)) drop-shadow(0 0 30px rgba(231, 236, 251, .18)); }
.invite h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; margin: 22px 0 0; }
.invite .sub { max-width: 34em; }
.download-card {
  width: 100%; margin-top: 40px; padding: 30px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.btn-large { padding: 16px 34px; font-size: 18px; border-radius: 16px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.dl-meta { color: var(--muted); font-size: 15px; }
.dl-hash { display: flex; flex-direction: column; gap: 4px; color: var(--dim); font-size: 12px; max-width: 100%; }
.dl-hash code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); word-break: break-all; font-size: 12px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 44px 0 0; width: 100%; display: grid; gap: 14px; text-align: left; }
.steps li {
  counter-increment: step; position: relative; padding: 20px 22px 20px 70px; border-radius: 18px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #4f9433, #3e7a28); box-shadow: 0 0 0 1px rgba(185, 228, 143, .25) inset;
}
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 15px; }
.invite-privacy { margin-top: 34px; color: var(--muted); font-size: 14px; }
.invite-privacy a { color: var(--accent-2); margin-left: 6px; }
.invite-page .nav-pill { padding-right: 10px; }

/* Document pages (privacy policy) */
.doc { padding: 130px 0 80px; }
.doc-inner { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.doc-meta { color: var(--dim); font-size: 14px; margin-bottom: 28px; }
.doc-lead { color: var(--text); font-size: 17px; padding: 20px 22px; border-radius: 16px; background: rgba(140, 194, 102, .07); border: 1px solid rgba(140, 194, 102, .2); }
.doc section { margin-top: 44px; }
.doc h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 16px; font-weight: 700; color: var(--accent-2); margin: 20px 0 8px; }
.doc p, .doc li { color: #c9d3cb; font-size: 16px; line-height: 1.85; }
.doc p + p, .doc ul + p { margin-top: 14px; }
.doc ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.doc li::marker { color: var(--accent); }
.doc b { color: var(--text); }
.doc a { color: var(--accent-2); }
.doc-page .nav-pill { padding-right: 10px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Wide screens: hero in two columns */
@media (min-width: 1081px) {
  .hero { padding: 110px 0 20px; min-height: 100vh; display: flex; align-items: center; text-align: left; }
  .hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 12px; }
  .hero-copy { align-items: flex-start; }
  .hero h1 { font-size: clamp(48px, 4.7vw, 76px); margin: 22px 0 18px; }
  html:lang(zh-CN) .hero h1 span { white-space: nowrap; }
  .hero-cta { justify-content: flex-start; }
  .stage { margin-top: 0; height: 600px; }
  .chip-float.c1 { left: -2%; top: 12%; }
  .chip-float.c2 { right: 0; top: 4%; }
  .chip-float.c3 { left: -6%; bottom: 30%; }
  .chip-float.c4 { right: -2%; bottom: 12%; }
}

/* Smaller screens */
@media (max-width: 1080px) {
  .win-body { grid-template-columns: 64px 200px 1fr; }
  .profile { display: none; }
  .t-memory { grid-column: span 6; }
  .t-focus { grid-column: span 3; }
  .t-today { grid-column: span 3; }
  .t-room, .t-voice { grid-column: span 3; }
}
@media (max-width: 860px) {
  .stage { height: 520px; }
  .chip-float.c1 { left: 0; top: 4%; }
  .chip-float.c2 { right: 0; top: 2%; }
  .chip-float.c3 { left: 0; bottom: 4%; }
  .chip-float.c4 { right: 0; bottom: 10%; }
  .stats { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; height: auto; }
  .rail, .side { display: none; }
  .chat-log { min-height: 380px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { top: 10px; }
  .nav-links { display: none; }
  .hero { padding-top: 112px; }
  .stage { height: 440px; }
  .mascot { width: 230px; }
  .halo { width: 360px; height: 360px; }
  .orbit { width: 320px; height: 320px; }
  .floor { top: calc(46% + 105px); width: 150px; }
  .bubble { top: calc(46% + 132px); }
  .chip-float { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 14px; }
  .chip-float b { font-size: 12px; }
  .chip-float small { font-size: 11px; }
  .chip-icon, .ring-mini { width: 28px; height: 28px; }
  .chip-float.c3, .chip-float.c4 { display: none; }
  .section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .t-memory, .t-focus, .t-today, .t-room, .t-voice { grid-column: auto; }
  .t-memory { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .stat .num { font-size: 60px; }
  .suggest { margin-left: 0; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mem { opacity: 1; }
  .suggest { opacity: 1; transform: none; }
}
