:root {
  color-scheme: light;
  --page: #fbfaf6;
  --ink: #191a26;
  --muted: #535664;
  --line: #e2e0da;
  --blue: #273ed2;
  --night: #19254a;
  --font:
    "Avenir Next", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.container {
  width: min(calc(100% - 2.5rem), 76rem);
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.site-header {
  min-height: 5.25rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-decoration: none;
}

.brand-dot {
  color: var(--blue);
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.62rem;
  background: var(--blue);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 45%;
  width: 0.19rem;
  height: 0.24rem;
  border-radius: 100%;
  background: white;
  content: "";
}

.brand-mark::before {
  left: 29%;
}

.brand-mark::after {
  right: 29%;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(0.8rem, 3vw, 2.4rem);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.site-header nav a:hover,
.download-web-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.26em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.25rem);
  padding-block: clamp(2rem, 6vw, 5.25rem);
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 1.25rem + 5.4vw, 6.25rem);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero-copy > p:first-of-type,
.memory-copy > p,
.download-copy > p {
  max-width: 33ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
  line-height: 1.75;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  margin-top: 1.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.65rem;
  background: var(--blue);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: #1c2ba1;
}

.access-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: clamp(1rem, 2.5vw, 2rem);
  background: #303fd1;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.examples {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.example {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 13.25rem;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-radius: 1rem;
}

.example-think {
  background: #e9ecfb;
}

.example-search {
  background: #edf0e6;
}

.example-make {
  background: #f5eadb;
}

.example h3 {
  font-size: 1.19rem;
  font-weight: 750;
}

.example p {
  color: var(--muted);
  font-size: 0.95rem;
}

.example .prompt {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid #1d213026;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 600;
}

.memory,
.downloads {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.35rem, 5vw, 4.25rem);
  border-radius: clamp(1rem, 2.5vw, 2rem);
}

.memory {
  margin-block: clamp(0.75rem, 2vw, 1.7rem) clamp(2.5rem, 7vw, 6rem);
  background: #f0eee7;
}

.memory-copy > p,
.download-copy > p {
  margin-top: 0.9rem;
}

.chat-example {
  display: grid;
  gap: 0.75rem;
  padding: clamp(0.9rem, 2.5vw, 1.7rem);
  border: 1px solid #dedbe3;
  border-radius: 1rem;
  background: #fff;
}

.chat-example figcaption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.chat-message {
  justify-self: start;
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem 0.8rem 0.8rem 0.2rem;
  background: #f1f1f5;
  font-size: 0.9rem;
}

.chat-message strong {
  margin-right: 0.4em;
}

.user-message {
  justify-self: end;
  margin-inline-start: 1rem;
  border-radius: 0.8rem 0.8rem 0.2rem;
  background: #e6eaff;
}

.downloads {
  background: var(--night);
  color: white;
}

.download-copy > p {
  color: #d4dbf2;
}

.download-web-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-top: 0.6rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.download-web-link:focus-visible {
  outline-color: #bfcaff;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

.platforms li {
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #556183;
  border-radius: 0.65rem;
  background: #253359;
}

.platforms span {
  color: #d5ddf6;
  font-size: 0.84rem;
}

.site-footer {
  margin-top: 2.6rem;
  padding-block: 1.1rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.not-found {
  padding-block: clamp(2.5rem, 9vw, 7rem);
}

.not-found h1 {
  font-size: clamp(2rem, 1rem + 4vw, 4rem);
}

@media (max-width: 45rem) {
  .hero,
  .memory,
  .downloads {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 1.65rem;
  }

  .hero h1 {
    margin-bottom: 0.9rem;
  }

  .site-header {
    min-height: 4.3rem;
  }

  .example {
    min-height: 0;
  }
}
