:root {
  --bg: #0b1020;
  --bg2: #141c38;
  --card: rgba(255,255,255,.04);
  --line: rgba(255,255,255,.09);
  --text: rgb(240,240,245);
  --muted: #8a94a8;
  --rim: rgb(90,150,235);
  --gold: rgb(240,200,90);
  --green: rgb(95,205,160);
  --blue: rgb(120,190,255);
  --red: rgb(235,70,70);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 75% -10%, rgba(90,150,235,.18), transparent 60%),
              linear-gradient(180deg, var(--bg2), var(--bg) 600px);
  background-color: var(--bg);
  min-height: 100vh;
}
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.brand img { width: 72px; height: 72px; }
.brand span { font-size: 15px; color: var(--muted); letter-spacing: .02em; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; font-weight: 800; }
.tagline { font-size: clamp(19px, 2.4vw, 24px); color: var(--green); margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 600 17px/1 inherit; font-family: inherit; border-radius: 999px; padding: 15px 26px;
  border: 1.5px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #08111f; box-shadow: 0 8px 30px rgba(120,190,255,.25); }
.btn-primary:hover { background: #93ccff; }
.btn-ghost { background: var(--card); color: var(--blue); border-color: var(--rim); }
.btn-ghost:hover { background: rgba(120,190,255,.08); }
.btn-ghost.speaking { color: var(--red); border-color: var(--red); }
.btn svg { width: 20px; height: 20px; flex: none; }
.meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px;
  border-radius: 14px; background: rgba(95,205,160,.10); border: 1px solid rgba(95,205,160,.35);
  font-size: 14px; color: var(--text); text-align: left;
}
.badge svg { width: 22px; height: 22px; flex: none; color: var(--green); }
.badge small { display: block; color: var(--muted); font-size: 12.5px; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.facts li { color: var(--muted); font-size: 15px; padding-left: 26px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.facts b { color: var(--text); }
pre.verify {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line);
  font: 13px/1.6 "SF Mono", ui-monospace, Menlo, monospace; color: var(--text); overflow-x: auto; white-space: pre;
}
pre.verify .c { color: var(--muted); }
pre.verify .o { color: var(--green); }
.said { min-height: 1.6em; margin-top: 14px; color: var(--gold); font-size: 15px; }

.shot { justify-self: center; position: relative; }
.shot::before {
  content: ""; position: absolute; inset: 8% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90,150,235,.35), transparent); filter: blur(10px); z-index: -1;
}
.shot img { width: min(100%, 380px); height: auto; display: block; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: 28px; margin: 0 0 22px; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }

.lead { color: var(--muted); margin: -8px 0 22px; }
.install { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
ol.howto { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.howto li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
ol.howto li::before {
  content: counter(s); position: absolute; left: 18px; top: 15px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: #1a1400; font-weight: 800;
}
ol.howto li b { color: var(--text); }
kbd { font: 12px "SF Mono", ui-monospace, Menlo, monospace; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); }
figure.dmgshot { margin: 0; position: sticky; top: 24px; text-align: center; }
figure.dmgshot img { width: 100%; height: auto; display: block; }
figure.dmgshot figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
ol.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; color: var(--muted); font-size: 15px; }
ol.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #1a1400; font-weight: 800; margin-bottom: 10px;
}
ol.steps li b { color: var(--text); }

.trust { display: flex; gap: 14px; align-items: flex-start; }
.trust .dot { flex: none; background: rgba(95,205,160,.15); }
.trust > div, .install > *, .hero > * { min-width: 0; }
code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .9em; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 48px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Live replica of the app window (built by talk.js; replaces screenshot.png).
   Sizes are in cqw (1% of the window width), so the replica scales like the app does. */
.win {
  width: 296px; max-width: 100%; aspect-ratio: 480 / 740; border-radius: 12px; position: relative;
  container-type: inline-size;
  background: #0b1020; border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 .5px rgba(0,0,0,.6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.win .lights { position: absolute; top: 10px; left: 11px; display: flex; gap: 6px; }
.win .lights i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.win button { font-family: inherit; cursor: pointer; padding: 0; border: 0; background: none; color: inherit; }
.win .body {
  position: absolute; inset: 0; padding: 6cqw 4.2cqw 3.4cqw;
  display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 3.6cqw;
}
.win .bar { display: flex; align-items: center; gap: 1.4cqw; }
.win .nav {
  width: 7.2cqw; height: 7.2cqw; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: var(--blue);
}
.win .nav svg { width: 3.6cqw; height: 3.6cqw; }
.win .mtitle { font: 600 4cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); min-width: 31cqw; text-align: center; }
.win .mtitle span { color: var(--muted); }
.win .today {
  margin-left: auto; font: 600 3.1cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted);
  border: 1px solid rgba(110,120,140,.5); border-radius: 999px; padding: 1cqw 2.3cqw;
}
.win .today.on { color: var(--gold); border-color: var(--gold); }
.win .cal {
  margin-top: -1.6cqw; border-radius: 2.8cqw; background: rgba(255,255,255,.035); border: 1.03cqw solid var(--rim);   /* same as the clock ring */
  padding: 3.4cqw 1.9cqw;   /* clear of the thick rim */
}
.win .wk, .win .days { display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; }
.win .wk { margin-bottom: 1.2cqw; }
.win .wk span { font: 600 2.4cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); }
.win .wk span.we { color: rgba(240,200,90,.8); }
.win .days { row-gap: 1.5cqw;   /* gives back the added inset */ }
.win .days button {
  width: 8.6cqw; height: 8.6cqw; border-radius: 50%; display: grid; place-items: center;
  font: 500 3.6cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; font-variant-numeric: tabular-nums;
  color: var(--text);
}
.win .days button:hover { background: rgba(120,190,255,.12); }
.win .days button.we { color: rgba(240,240,245,.75); }
.win .days button.out { color: rgba(110,120,140,.55); }
.win .days button.now { color: var(--gold); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--gold); }
.win .days button.sel { background: var(--blue); color: #0b1020; font-weight: 700; box-shadow: none; }
.win .days button.sel.now { background: var(--gold); }
.win .date { text-align: center; }
.win .wd { font: 600 3.3cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .55cqw; color: var(--gold); }
.win .big {
  margin-top: 1.6cqw; font: 600 9.2cqw/1.1 -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
}
.win .big b { color: var(--blue); font-weight: 600; }
.win .big i, .win .big span { color: var(--muted); font-style: normal; }
.win .talk {
  align-self: center; display: inline-flex; align-items: center; gap: 1.6cqw;
  font: 600 4.1cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--blue);
  background: rgba(255,255,255,.06); border: 1.5px solid var(--rim); border-radius: 999px; padding: 2.3cqw 4.6cqw;
}
.win .talk svg { width: 4.4cqw; height: 4.4cqw; }
.win .talk.speaking { color: var(--red); border-color: var(--red); background: rgba(235,70,70,.08); }

/* Per-language fonts and line breaking */
:lang(ko) body { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; word-break: keep-all; }
:lang(ja) body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif; line-break: strict; }
:lang(zh) body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; line-break: strict; }

/* Language switcher */
nav.langs { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; padding-top: 18px; font-size: 14px; }
nav.langs a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
nav.langs a:hover { color: var(--text); background: var(--card); }
nav.langs a[aria-current] { color: var(--text); border-color: var(--line); background: var(--card); }
.hero { padding-top: 40px; }

@media (max-width: 820px) {
  nav.langs { justify-content: center; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 32px; text-align: center; }
  .brand, .cta { justify-content: center; }
  .grid, ol.steps, .install { grid-template-columns: 1fr; }
  figure.dmgshot { position: static; max-width: 420px; margin: 0 auto; order: -1; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
}
