/* Cicada / 知了 website. Light grey ground, white cards, ink, one orange accent (same as the app). */
:root {
  --ground: #F6F7F9; --card: #FFFFFF; --line: #ECEEF1; --line2: #E4E6EA; --soft: #F3F4F6;
  --ink: #15171C; --ink2: #3B3F48; --grey: #5A5F6B; --grey2: #6B7080; --faint: #9AA0AC;
  --orange: #E8552B; --orange-text: #B23E17; --orange-soft: #FDEDE7;
  --dark2: #2A2D35; --on-dark: #C4C8D0; --on-dark2: #A9AEB8;
}
* { box-sizing: border-box; }
/* Anchors land below the sticky header (about 69 px) with some air. */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: Inter, "Noto Sans SC", -apple-system, "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--orange-text); }
a:hover { color: #8A2F10; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 14px; border: 0; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-orange { background: var(--orange); color: #FFFFFF; }
.btn-orange:hover { background: #D44A22; color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #2A2D35; color: #FFFFFF; }
.btn-light { background: var(--card); color: var(--ink); border: 1px solid #DADDE2; font-weight: 600; }
.btn-light:hover { color: var(--ink); border-color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line2); font-size: 13px; font-weight: 500; color: var(--grey);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246,247,249,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line2); }
.top nav { display: flex; align-items: center; gap: 10px 26px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { font-size: 18px; font-weight: 800; }
.brand span { font-size: 14px; font-weight: 600; color: var(--grey2); }
.navlinks { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; font-size: 14px; font-weight: 500; }
.navlinks a { color: var(--grey); text-decoration: none; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--ink); }
.navlinks a[aria-current] { font-weight: 700; }
.top .btn { min-height: 44px; padding: 0 18px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.mac-only { display: none; padding: 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); font-size: 12px; font-weight: 600; color: var(--grey); }

/* Phone: the app is Mac only, so phones get a preview and a way to send the link to a Mac */
.phone { display: none; }
@media (max-width: 640px) {
  .desk { display: none !important; }
  .phone { display: flex !important; }
  .mac-only { display: inline-flex; }
}

/* Hero */
.hero { padding-top: 64px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero h1 { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.hero h1 .kicker { font-size: clamp(14px, 1.3vw, 16px); font-weight: 600; color: var(--grey); line-height: 1.5; }
.hero h1 .slogan { font-size: clamp(30px, 6vw, 80px); line-height: 1.12; font-weight: 900; letter-spacing: -0.03em; }
.hero .sub { margin: 0; font-size: clamp(18px, 1.9vw, 24px); font-weight: 500; color: var(--ink2); }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero .meta { margin: 0; font-size: 13px; color: var(--grey2); }
.sendcard {
  width: 100%; margin-top: 6px; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line2); text-align: left;
}
.sendcard .head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.sendcard p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--grey); }
.sendcard .btn { min-height: 48px; font-size: 15px; width: 100%; }

/* Stage: the product working */
.stage { padding-top: 32px; padding-bottom: 72px; }
.stage-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.window { flex: 999 1 560px; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 80px rgba(21,23,28,0.22); }
.window .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--dark2); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3B3F48; }
.window .bar .title { margin-left: 12px; font-size: 13px; color: var(--on-dark2); }
.window .bar .live { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--orange); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.screen { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; gap: 34px; }
.speaker { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--on-dark2); }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--dark2); border: 3px solid var(--orange); }
.wave { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.wave span { display: block; width: 5px; border-radius: 3px; background: var(--orange); transform-origin: 50% 100%; animation: bar 1.1s ease-in-out infinite; }
@keyframes bar { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
.subbar {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(620px, 88%); height: 84px;
  padding: 14px 22px; border-radius: 16px; background: rgba(21,23,28,0.92); border: 1px solid #3B3F48;
}
.subbar .lines { position: relative; height: 100%; }
.cap { position: absolute; inset: 0; opacity: 0; animation: cap 12s infinite both; }
.cap .en { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark2); white-space: nowrap; overflow: hidden; }
.cap .zh { margin-top: 6px; font-size: 22px; font-weight: 700; color: #FFFFFF; animation: wipe 12s infinite both; }
.cap:nth-child(2), .cap:nth-child(2) .zh { animation-delay: 4s; }
.cap:nth-child(3), .cap:nth-child(3) .zh { animation-delay: 8s; }
@keyframes cap { 0% { opacity: 0; transform: translateY(10px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes wipe { 0%, 7% { clip-path: inset(0 100% 0 0); } 17%, 100% { clip-path: inset(0 0 0 0); } }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border-radius: 18px; border: 1px solid var(--line); }
.notes { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 40px rgba(21,23,28,0.08); animation: float 6s ease-in-out infinite; }
.notes .head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.updating { margin-left: auto; padding: 3px 9px; border-radius: 999px; color: var(--orange-text); font-size: 12px; font-weight: 600; background: linear-gradient(90deg, var(--orange-soft) 0%, #FFFFFF 50%, var(--orange-soft) 100%); background-size: 200% 100%; animation: shim 2.4s linear infinite; }
@keyframes shim { to { background-position: -200% 0; } }
.note { padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; line-height: 1.5; opacity: 0; animation: note 12s infinite both; }
.note:nth-of-type(2) { animation-delay: 1.6s; } .note:nth-of-type(3) { animation-delay: 5.6s; } .note:nth-of-type(4) { animation-delay: 9.6s; }
@keyframes note { 0% { opacity: 0; transform: translateX(14px); } 5%, 100% { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.speak { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.speak .hold { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); }
kbd { padding: 4px 10px; border-radius: 8px; border: 1px solid #DADDE2; background: var(--card); font: inherit; font-weight: 700; color: var(--ink); }
.speak kbd { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,85,43,.45); } 100% { box-shadow: 0 0 0 16px rgba(232,85,43,0); } }
.speak .out { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; color: var(--orange-text); }
.speak .out svg { flex: none; margin-top: 3px; }

/* App names, moving */
.works { padding: 8px 0 88px; }
.works p { margin: 0 0 18px; padding: 0 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--grey); }
.marquee { overflow: hidden; }
.track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marq 36s linear infinite; }
.track li { padding: 0 28px; font-size: 22px; font-weight: 700; color: #8A909C; white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Why */
.why { padding-bottom: 104px; }
h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; }
.lead { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--grey); max-width: 640px; }
.strike { background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 55% / 100% 2px; }
.rows { display: flex; flex-wrap: wrap; gap: 16px; }
.compare { flex: 1 1 300px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.compare h3 { margin: 0; font-size: 17px; }
.compare div { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.compare div b { flex: 0 0 64px; font-weight: 600; }
.compare div.us { color: var(--ink); }
.compare div.us b { font-weight: 700; color: var(--orange-text); }

/* Three verbs */
.verbs { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 20px; }
.verb { flex: 1 1 300px; min-width: 0; padding: 30px 28px; border-radius: 20px; background: var(--ink); color: #FFFFFF; display: flex; flex-direction: column; gap: 12px; }
.verb small { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--orange); }
.verb h3 { margin: 0; font-size: 34px; font-weight: 900; }
.verb p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--on-dark); }
.fine { flex: 1 1 100%; margin: 4px 0 0; font-size: 13px; color: var(--grey2); }

/* Latest updates */
.latest { padding-bottom: 96px; }
.latest .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.latest h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; letter-spacing: -0.02em; }
.latest .head a { font-size: 15px; font-weight: 600; text-decoration: none; }
.ucard { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; color: var(--ink); text-decoration: none; }
.ucard:hover { color: var(--ink); border-color: #C4C8D0; }
.ucard .when { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey); }
.ver { padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #FFFFFF; font-weight: 700; }
.ucard strong { font-size: 19px; line-height: 1.45; font-weight: 800; }
.ucard span.d { font-size: 14px; line-height: 1.6; color: var(--grey); }

/* CTA */
.cta { padding-bottom: 80px; }
.cta-box { border-radius: 28px; background: var(--orange); color: #FFFFFF; padding: 52px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.cta-box svg { animation: float 6s ease-in-out infinite; flex: none; }
.cta-box .txt { flex: 1 1 380px; min-width: 0; }
.cta-box h2 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); font-weight: 900; line-height: 1.25; }
.cta-box h2 em { font-style: normal; animation: verb 6s infinite both; }
.cta-box h2 em:nth-of-type(2) { animation-delay: 2s; } .cta-box h2 em:nth-of-type(3) { animation-delay: 4s; }
@keyframes verb { 0%, 30% { color: #FFFFFF; } 36%, 100% { color: rgba(255,255,255,.55); } }
.cta-box p { margin: 10px 0 0; font-size: 16px; line-height: 1.7; }
.cta-box .phone { width: 100%; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* Footer */
.foot { background: var(--ink); color: #FFFFFF; overflow: hidden; }
.foot .wrap { padding-top: 72px; display: flex; flex-direction: column; gap: 56px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.foot-brand .row { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; height: 44px; border-radius: 10px; }
.foot-brand b { font-size: 26px; font-weight: 900; }
.foot-brand .row > span { font-size: 18px; font-weight: 600; color: var(--on-dark2); }
.foot-brand .bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-left: 4px; }
.foot-brand .bars i { display: block; width: 4px; border-radius: 2px; background: var(--orange); transform-origin: 50% 100%; animation: bar 1.3s ease-in-out infinite; }
.foot-brand p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--on-dark2); }
.foot-brand p.slogan { font-size: 22px; line-height: 1.5; font-weight: 700; color: #FFFFFF; }
.foot-dl { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--on-dark2); }
.foot-dl .btn { min-height: 50px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 36px 24px; padding-top: 40px; border-top: 1px solid var(--dark2); }
.foot-cols div { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; }
.foot-cols h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.foot-cols a { color: var(--on-dark); text-decoration: none; }
.foot-cols a:hover { color: #FFFFFF; }
.foot-cols span { color: var(--on-dark2); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 13px; color: var(--on-dark2); }
.foot-legal a { color: var(--on-dark); }
.foot-legal .tm { flex: 1 1 320px; min-width: 0; }
.wordmark {
  margin-top: 24px; font-size: clamp(88px, 24vw, 340px); line-height: 0.78; font-weight: 900; letter-spacing: -0.05em; text-align: center; white-space: nowrap;
  background: linear-gradient(90deg, #23262E 0 40%, var(--orange) 50%, #23262E 60% 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 9s linear infinite; user-select: none;
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Changelog page */
.cl-head { padding-top: 40px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 16px; }
.crumbs { font-size: 13px; color: var(--grey); }
.crumbs a { color: var(--grey); }
.cl-head h1 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; font-weight: 900; letter-spacing: -0.03em; }
.cl-head p { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--ink2); max-width: 760px; }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }
.cl-meta .pill { font-weight: 600; color: var(--ink); font-size: 14px; }
.cl-meta .pill .dot { animation: pulse 2s ease-out infinite; }
.rss { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); color: var(--ink); text-decoration: none; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.filters button { min-height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #DADDE2; background: var(--card); color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.filters button span { margin-left: 6px; opacity: .7; }
.cl-body { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; }
.versions { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.versions > span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--grey); padding-bottom: 6px; }
.versions a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.versions a b { font-weight: 800; }
.versions a span { font-size: 12px; color: var(--grey); }
.releases { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.release { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.release .line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); }
.release .line .ver { font-size: 14px; padding: 4px 10px; border-radius: 8px; font-weight: 800; }
.release .line .new { padding: 3px 8px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-text); font-size: 12px; font-weight: 700; }
.release .line .perma { margin-left: auto; color: var(--grey); text-decoration: none; padding: 4px 8px; }
.release h2 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; font-weight: 900; letter-spacing: -0.01em; }
.release > p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink2); }
.release img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.group h3 { margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.group h3 i { width: 8px; height: 8px; border-radius: 50%; }
.group[data-kind="new"] h3 i { background: var(--orange); }
.group[data-kind="improved"] h3 i { background: var(--ink); }
.group[data-kind="fixed"] h3 i { background: var(--faint); }
.group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.group li { font-size: 15px; line-height: 1.7; color: var(--ink2); }
.group li strong { color: var(--ink); }
.release .acts { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.release .acts .btn { min-height: 44px; padding: 0 16px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.subscribe { border-radius: 22px; background: var(--ink); color: #FFFFFF; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.subscribe div { flex: 1 1 300px; min-width: 0; }
.subscribe b { font-size: 20px; }
.subscribe p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--on-dark); }
.subscribe .btn { min-height: 44px; font-size: 14px; border-radius: 11px; }

@media (max-width: 640px) {
  .screen { height: 260px; gap: 20px; }
  .avatar { width: 64px; height: 64px; }
  .subbar { height: 70px; padding: 10px 14px; bottom: 16px; width: 92%; }
  .cap .en { font-size: 11px; }
  .cap .zh { font-size: 16px; }
  .track li { font-size: 18px; padding: 0 20px; }
}

/* Scroll-linked motion where the browser has it; everything is fully visible without it */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .tilt-in { animation: tilt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .strike { animation: strike linear both; animation-timeline: view(); animation-range: cover 25% cover 45%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes tilt-in { from { opacity: .4; transform: perspective(1200px) rotateX(18deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes strike { from { background-size: 0 2px; } to { background-size: 100% 2px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .cap:first-child, .note { opacity: 1; }
}
[hidden] { display: none !important; }
