:root {
  color-scheme:light;
  --ink:#0c302e;
  --forest:#062b2b;
  --mint:#a5f0c9;
  --line:#cddad0;
  --paper:#f7f8f2;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:1.05rem/1.65 "DM Sans",-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
}
a {
  color:inherit;
  text-underline-offset:.25em;
}
a:focus-visible,video:focus-visible {
  outline:3px solid #df9233;
  outline-offset:4px;
}
header {
  background:var(--forest);
  color:#ecfff4;
  border-bottom:1px solid #34524c;
}
.bar,.hero,.doc-hero,main,footer {
  width:min(1120px,calc(100% - 3rem));
  margin:auto;
}
.bar,footer,nav,.brand,.action {
  display:flex;
  align-items:center;
}
.bar,footer {
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.bar {
  min-height:74px;
  padding:.65rem 0;
}
.brand {
  gap:.65rem;
  font-size:1.22rem;
  font-weight:750;
  letter-spacing:-.035em;
  text-decoration:none;
}
.brand img,.doc-hero img {
  border-radius:24%;
}
nav {
  gap:1.3rem;
  flex-wrap:wrap;
  font-size:.95rem;
}
nav a {
  text-decoration:none;
}
nav a:hover,.brand:hover {
  text-decoration:underline;
}
.cover {
  overflow:hidden;
  color:#f6fff8;
  background:radial-gradient(ellipse at 90% 70%,#256c58,transparent 59%),var(--forest);
}
.hero,.demo {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:clamp(1.5rem,5vw,5rem);
  align-items:center;
}
.hero {
  min-height:485px;
  padding:clamp(2.4rem,5.5vw,5rem) 0;
}
.platform {
  color:var(--mint);
  font-weight:650;
  font-size:.94rem;
  margin:0 0 .8rem;
}
.copy h1,.doc-hero h1 {
  margin:0;
  line-height:1.06;
  letter-spacing:-.055em;
  font-size:clamp(3rem,6.2vw,6rem);
}
.copy em {
  font-style:normal;
  color:var(--mint);
}
.intro,.doc-hero p {
  max-width:36rem;
  color:#d4e9dc;
  margin:1.2rem 0;
  font-size:1.12rem;
}
.action {
  display:inline-flex;
  gap:.65rem;
  background:var(--mint);
  color:var(--forest);
  padding:.68rem 1.2rem;
  border-radius:4rem;
  font-weight:650;
  text-decoration:none;
}
.action:hover {
  background:white;
}
.stage {
  isolation:isolate;
  position:relative;
  display:grid;
  place-items:center;
  min-height:290px;
}
.stage:before,.stage:after {
  content:"";
  position:absolute;
  z-index:-1;
  border-radius:50%;
  aspect-ratio:1;
}
.stage:before {
  width:135%;
  background:repeating-radial-gradient(circle,transparent 0 38px,#bffad821 39px 40px);
}
.stage:after {
  width:95%;
  max-width:460px;
  border:2px dashed #c1f6b955;
}
.stage img {
  width:min(66%,310px);
  height:auto;
  border-radius:22%;
  box-shadow:0 20px 55px #001e1a98;
  transform:rotate(-4deg);
}
.doc-hero {
  min-height:225px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.doc-hero h1 {
  font-size:clamp(2.3rem,5vw,4rem);
}
.doc-hero img {
  transform:rotate(-5deg);
}
.demo {
  padding:3.5rem 0;
  grid-template-columns:1fr .6fr;
}
.demo video {
  width:min(100%,350px);
  height:auto;
  border-radius:1.2rem;
  background:var(--forest);
}
h2 {
  line-height:1.2;
  letter-spacing:-.025em;
}
.demo h2 {
  font-size:clamp(1.8rem,4vw,3rem);
  max-width:18ch;
  margin:.5rem 0;
}
.cards {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  margin-bottom:3rem;
}
.cards a {
  border:1px solid var(--line);
  border-radius:1.25rem;
  padding:1.6rem;
  text-decoration:none;
  background:white;
}
.cards a:hover {
  border-color:#45846e;
}
.cards h2,.cards p {
  margin:.3rem 0;
}
.article {
  max-width:48rem;
  padding:1.6rem 0 2.6rem;
}
.article section {
  padding:1.3rem 0;
  border-bottom:1px solid var(--line);
}
.article section h2 {
  font-size:1.25rem;
}
.article section p,.article section h2 {
  margin:0 0 .6rem;
}
footer {
  padding:1.5rem 0;
  border-top:1px solid var(--line);
  font-size:.95rem;
}
.langs [aria-current] {
  font-weight:750;
  text-decoration:underline;
}
@media(max-width:700px) {
  .bar,.hero,.doc-hero,main,footer {
    width:calc(100% - 2.5rem);
  }
  .bar {
    min-height:64px;
  }
  .bar nav,.langs {
    gap:.8rem;
  }
  .hero,.demo,.cards {
    grid-template-columns:1fr;
  }
  .hero {
    gap:1.3rem;
    padding:2.4rem 0 1.8rem;
  }
  .stage {
    min-height:170px;
  }
  .stage img {
    width:160px;
  }
  .stage:before {
    width:80%;
  }
  .stage:after {
    width:60%;
  }
  .doc-hero {
    min-height:200px;
  }
  .doc-hero img {
    width:56px;
    height:56px;
  }
  .demo {
    padding:2rem 0;
    gap:.8rem;
  }
  .demo video {
    justify-self:center;
    width:min(100%,295px);
  }
  .intro {
    font-size:1.05rem;
  }
  .cards {
    gap:.8rem;
  }
  footer {
    align-items:flex-start;
    flex-direction:column;
  }
  .copy h1:lang(zh-Hant),.copy h1:lang(zh-Hans) {
    font-size:clamp(2rem,8vw,3.5rem);
  }
}
.bar nav {
  margin-left:auto;
}
.bar details {
  position:relative;
  font-size:.93rem;
}
.bar summary {
  cursor:pointer;
  padding:.22rem .5rem;
}
.bar details nav {
  position:absolute;
  z-index:3;
  right:0;
  top:100%;
  padding:.75rem 1rem;
  border-radius:.65rem;
  background:white;
  color:var(--forest);
  box-shadow:0 8px 24px #001d212b;
  display:grid;
  gap:.4rem;
  min-width:7rem;
}
.bar details:not([open]) nav {
  display:none;
}
@media(max-width:430px) {
  .bar {
    gap:.5rem;
  }
  .bar nav,.bar details {
    font-size:.8rem;
  }
  .brand {
    font-size:1.04rem;
  }
  .brand img {
    width:30px;
    height:30px;
  }
  .bar nav {
    gap:.6rem;
  }
}
@media (max-width: 430px) {
  .bar { display: grid; grid-template-columns: 1fr auto; row-gap: .55rem; padding-block: .8rem; }
  .bar > nav { grid-row: 2; grid-column: 1 / -1; margin-left: 0; gap: 1.1rem; }
  .bar details { grid-row: 1; grid-column: 2; }
}
