:root {
  color-scheme: light;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --ink: #171717;
  --muted: #64605a;
  --line: #171717;
  --yellow: #ffd645;
  --orange: #f17a22;
  --red: #e84132;
  --blue: #226bdf;
  --gray: #d9d9d9;
  --shadow: 10px 10px 0 #171717;
  --soft-shadow: 0 18px 55px rgba(20, 20, 20, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 214, 69, 0.52) 62% 69%, transparent 69%),
    linear-gradient(145deg, transparent 0 78%, rgba(34, 107, 223, 0.18) 78% 83%, transparent 83%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 3px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand img {
  width: 46px;
  aspect-ratio: 1;
  border: 3px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar nav a,
.button,
.note-card a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.topbar nav a:hover,
.button:hover,
.note-card a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--line);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(480px, 1.35fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(58px, 8vw, 100px) 0 clamp(52px, 7vw, 86px);
  overflow: visible;
}

.hero-art {
  position: relative;
  z-index: 1;
  order: 2;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  align-self: end;
  filter: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  order: 1;
  width: min(680px, 100%);
  padding: 8px 0;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.hero-copy > p:not(.eyebrow) {
  width: min(560px, 100%);
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 7px solid var(--orange);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.1);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.primary {
  background: var(--yellow);
}

.button.secondary {
  background: #fff;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 72px;
}

.intro-band div {
  min-height: 180px;
  padding: 22px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-band span,
.bench-list span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 950;
}

.intro-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.intro-band p,
.bench-list p,
.section-head p,
.note-card p,
.contact-section p {
  color: var(--muted);
}

.section {
  padding: 72px 0;
  scroll-margin-top: 88px;
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: 30px;
}

.section-head h2,
.contact-section h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.note-card {
  display: grid;
  overflow: hidden;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.note-card.feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.note-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: contain;
  background: #fff;
}

.note-copy {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
  border-top: 3px solid var(--line);
}

.note-card.feature .note-copy {
  border-top: 0;
  border-left: 3px solid var(--line);
}

.note-card time {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
}

.note-card h3,
.bench-list h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.note-card a {
  margin-top: auto;
  background: var(--yellow);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.bench-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bench-list article {
  min-height: 210px;
  padding: 22px;
  border: 3px solid var(--line);
  background: #fff;
}

.bench-list article:nth-child(2) {
  background: #f4f8ff;
}

.bench-list article:nth-child(3) {
  background: #fff8db;
}

.bench-list article:nth-child(4) {
  background: #fff0ed;
}

.stack-section {
  padding-top: 30px;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 16px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 950;
}

.stack-cloud span:nth-child(3n + 1) {
  background: var(--yellow);
}

.stack-cloud span:nth-child(3n + 2) {
  background: #e8f0ff;
}

.contact-section {
  display: grid;
  grid-template-columns: 140px minmax(240px, 0.75fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  margin: 48px 0 80px;
  padding: 26px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-section img {
  width: 140px;
  aspect-ratio: 1;
  border: 3px solid var(--line);
  border-radius: 28px;
  object-fit: cover;
}

.contact-section a {
  color: var(--blue);
  font-weight: 950;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  font-size: 13px;
  font-weight: 950;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 4px 4px 0 var(--line);
}

.contact-form input[name="_honey"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form button {
  min-height: 46px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-form button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--line);
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.form-note[hidden] {
  display: none;
}

.toast-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 23, 23, 0.36);
  opacity: 0;
  transition: opacity 160ms ease;
}

.toast-modal[hidden] {
  display: none;
}

.toast-modal.is-open {
  opacity: 1;
}

.toast-card {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: 8px 8px 0 var(--line);
}

.toast-card img {
  width: 74px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
}

.toast-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.1;
}

.toast-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.toast-card button {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks-shell {
  width: min(620px, calc(100% - 32px));
  padding: clamp(28px, 6vw, 52px);
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.thanks-shell img {
  width: 116px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  border: 3px solid var(--line);
  border-radius: 28px;
  object-fit: cover;
}

.thanks-shell h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 9vw, 82px);
  line-height: 1;
}

.thanks-shell .button {
  margin-top: 12px;
}

.is-visible {
  animation: none;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-art {
    width: 100%;
    max-height: none;
    margin-top: 18px;
  }

  .hero-copy > p:not(.eyebrow) {
    background: #fff;
  }

  .intro-band,
  .note-grid,
  .note-card.feature,
  .split-section,
  .bench-list {
    grid-template-columns: 1fr;
  }

  .note-card.feature .note-copy {
    border-top: 3px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 28px 28px;
  }

  body::before {
    opacity: 0.65;
    background:
      linear-gradient(112deg, transparent 0 58%, rgba(255, 214, 69, 0.42) 58% 64%, transparent 64%),
      linear-gradient(145deg, transparent 0 82%, rgba(34, 107, 223, 0.14) 82% 88%, transparent 88%);
  }

  main {
    width: min(100% - 18px, 1180px);
  }

  .topbar {
    position: relative;
    gap: 10px;
    padding: 12px 10px;
    border-bottom-width: 2px;
  }

  .brand img {
    width: 38px;
    border-width: 2px;
  }

  .brand span {
    font-size: 13px;
  }

  .topbar nav {
    gap: 6px;
  }

  .topbar nav a {
    min-height: 32px;
    padding: 5px 10px;
    border-width: 2px;
    font-size: 12px;
  }

  .hero {
    gap: 18px;
    padding: 38px 0 34px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: clamp(40px, 14vw, 52px);
    white-space: normal;
  }

  .hero-copy > p:not(.eyebrow) {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 13px;
    border-left-width: 5px;
    font-size: 14px;
    line-height: 1.72;
  }

  .hero-copy > p,
  .intro-band p,
  .section-head p,
  .note-card p,
  .bench-list p,
  .contact-section p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-actions {
    gap: 9px;
  }

  .button,
  .note-card a {
    min-height: 36px;
    padding: 6px 13px;
    font-size: 13px;
  }

  .hero-art {
    margin-top: 4px;
    padding: 8px;
    border: 2px solid rgba(23, 23, 23, 0.14);
    background: #fff;
  }

  .intro-band div,
  .bench-list article,
  .contact-section {
    box-shadow: 6px 6px 0 var(--line);
  }

  .intro-band {
    gap: 12px;
    margin-bottom: 48px;
  }

  .intro-band div {
    min-height: 0;
    padding: 18px;
    border-width: 2px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head h2,
  .contact-section h2 {
    font-size: clamp(30px, 11vw, 42px);
    overflow-wrap: anywhere;
  }

  .note-grid {
    gap: 16px;
  }

  .note-card,
  .note-card.feature {
    border-width: 2px;
    box-shadow: 6px 6px 0 rgba(23, 23, 23, 0.72);
  }

  .note-card img {
    height: auto;
    min-height: 0;
    padding: 10px;
    object-fit: contain;
  }

  .note-copy {
    min-height: 0;
    padding: 18px;
    border-top: 2px solid var(--line);
  }

  .note-card.feature .note-copy {
    border-top: 2px solid var(--line);
  }

  .note-card h3,
  .bench-list h3 {
    font-size: 24px;
  }

  .bench-list {
    gap: 12px;
  }

  .bench-list article {
    min-height: 0;
    padding: 18px;
    border-width: 2px;
  }

  .stack-cloud {
    gap: 8px;
  }

  .stack-cloud span {
    min-height: 36px;
    padding: 6px 12px;
    border-width: 2px;
    font-size: 12px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0 56px;
    padding: 18px;
    border-width: 2px;
  }

  .contact-section img {
    width: 86px;
    border-width: 2px;
    border-radius: 18px;
  }

  .contact-form input,
  .contact-form textarea {
    border-width: 2px;
    padding: 10px;
    font-size: 14px;
  }

  .contact-form button {
    min-height: 42px;
    font-size: 14px;
  }

  .toast-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 14px;
    border-width: 2px;
    box-shadow: 6px 6px 0 var(--line);
  }

  .toast-card img {
    width: 58px;
    border-radius: 14px;
  }

  .toast-card strong {
    font-size: 21px;
  }
}
