:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #111114;
  --muted: #656c76;
  --line: rgba(17, 17, 20, 0.08);
  --blue: #007aff;
  --green: #34c759;
  --orange: #ff9f0a;
  --pink: #ff375f;
  --shadow: 0 22px 64px rgba(22, 28, 38, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 2%, rgba(0, 122, 255, 0.15), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(52, 199, 89, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 44%, #eef1f4 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.hero-text,
.priority-card,
.note-strip,
.section-block {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hero-text {
  min-height: 430px;
  padding: clamp(28px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-text::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 32px;
  width: min(240px, 36vw);
  height: 96px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 122, 255, 0.18), rgba(52, 199, 89, 0.18)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 10px, transparent 10px 22px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  opacity: 0.82;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2.2vw, 1.32rem);
  line-height: 1.68;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-links a {
  min-height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 14px;
  color: #1c2027;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}

.priority-card {
  min-height: 430px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 50% 24%, rgba(255, 159, 10, 0.18), transparent 36%);
}

.priority-card span {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.priority-card strong {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.priority-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.note-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  padding: 0;
}

.note-strip div {
  min-height: 92px;
  background: rgba(255, 255, 255, 0.62);
  padding: 20px;
}

.note-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.note-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.section-block {
  margin-top: 18px;
  padding: 24px;
}

.section-block.compact {
  padding-bottom: 28px;
}

.section-title {
  max-width: 820px;
  margin-bottom: 20px;
}

.section-title h2 {
  margin-bottom: 10px;
  font-size: clamp(1.72rem, 3.6vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-title p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.template-card,
.word-card,
.prediction-card,
.phrase-grid div {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--line);
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 430px;
  padding: 18px;
}

.tag {
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.12);
  padding: 6px 10px;
  color: #005ebf;
  font-size: 0.82rem;
  font-weight: 760;
}

.template-card:nth-child(2n) .tag {
  background: rgba(52, 199, 89, 0.14);
  color: #1a7c35;
}

.template-card:nth-child(3n) .tag {
  background: rgba(255, 159, 10, 0.16);
  color: #946000;
}

.template-card h3,
.word-card h3,
.prediction-card h3 {
  margin-bottom: 0;
  font-size: 1.26rem;
  line-height: 1.25;
}

.template-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

pre {
  flex: 1;
  margin: 0;
  overflow: auto;
  border-radius: var(--radius);
  background: #15171c;
  padding: 15px;
  color: #f7f8fb;
  font-size: 0.91rem;
  line-height: 1.62;
  white-space: pre-wrap;
}

code {
  font-family: "SF Mono", Consolas, "Liberation Mono", monospace;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.word-grid.wide .word-card {
  min-height: 312px;
}

.word-card {
  padding: 18px;
}

.word-card h3 {
  margin-bottom: 14px;
}

.word-card ul,
.prediction-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: #242932;
  line-height: 1.72;
}

.word-card li,
.prediction-card li {
  margin: 0 0 7px;
}

.prediction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prediction-card {
  padding: 20px;
}

.prediction-card h3 {
  margin-bottom: 14px;
}

.prediction-card.highlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 122, 255, 0.1), rgba(52, 199, 89, 0.1)),
    rgba(255, 255, 255, 0.86);
}

.prediction-card.highlight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.phrase-section {
  margin-bottom: 0;
}

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.phrase-grid div {
  min-height: 112px;
  padding: 18px;
}

.phrase-grid strong {
  display: block;
  margin-bottom: 10px;
}

.phrase-grid span {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero,
  .prediction-grid {
    grid-template-columns: 1fr;
  }

  .hero-text,
  .priority-card {
    min-height: auto;
  }

  .word-grid,
  .phrase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero-text,
  .priority-card,
  .section-block {
    padding: 22px;
  }

  .hero-text::after {
    display: none;
  }

  .note-strip,
  .template-grid,
  .word-grid,
  .phrase-grid {
    grid-template-columns: 1fr;
  }

  .prediction-card.highlight {
    grid-template-columns: 1fr;
  }

  .template-card {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}
