:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --paper: #fffdf7;
  --ink: #171717;
  --muted: #626a73;
  --soft: #e7dfcf;
  --line: #d6cdbc;
  --blue: #2463eb;
  --green: #197a4b;
  --rose: #b6425d;
  --amber: #b7791f;
  --shadow: 0 24px 70px rgba(39, 35, 26, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(36, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(183, 121, 31, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg), #edf4ed 64%, #f6f1e7);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

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

a:hover {
  color: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
}

.nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(214, 205, 188, 0.9);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #434a52;
  font-size: 0.92rem;
}

.nav a:hover {
  background: #fff;
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 64px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.section-heading p,
.note-meta {
  margin: 0;
  color: var(--green);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11.6em;
  margin: 18px 0 0;
  font-size: clamp(2.55rem, 5.4vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.lead {
  max-width: 42rem;
  margin: 28px 0 0;
  color: #48515b;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.9;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 23, 23, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(100%, 430px);
  aspect-ratio: 1;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(36, 99, 235, 0.28), rgba(25, 122, 75, 0.2));
  transform: rotate(-8deg);
  box-shadow: var(--shadow);
}

.desk-card {
  position: relative;
  width: min(100%, 455px);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 14px;
  background: rgba(24, 26, 31, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #272a31;
  color: #d5d8df;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f87171;
}

.window-bar span:nth-child(2) {
  background: #fbbf24;
}

.window-bar span:nth-child(3) {
  background: #34d399;
}

.window-bar strong {
  margin-left: auto;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.code-lines {
  padding: 24px 24px 8px;
  color: #d9f99d;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(0.78rem, 1.8vw, 0.98rem);
  line-height: 1.9;
}

.code-lines p {
  margin: 0;
  white-space: nowrap;
}

.code-lines span {
  display: inline-block;
  width: 28px;
  margin-right: 12px;
  color: #7f8794;
}

.journal {
  margin: 18px 24px 24px;
  padding: 18px;
  border-radius: 10px;
  background: #fff7df;
  color: #30291c;
}

.journal p {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 800;
}

.journal strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.65;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.strip {
  position: relative;
}

.strip::before {
  content: "";
  position: absolute;
  inset: 24px calc(50% - 50vw);
  z-index: -1;
  background: rgba(255, 253, 247, 0.48);
  border-top: 1px solid rgba(214, 205, 188, 0.55);
  border-bottom: 1px solid rgba(214, 205, 188, 0.55);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 32px;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.18;
}

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

.feature-card,
.note-card,
.timeline-item {
  border: 1px solid rgba(214, 205, 188, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 18px 46px rgba(39, 35, 26, 0.08);
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f1ff;
  color: var(--blue);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon {
  background: #e6f4ec;
  color: var(--green);
}

.feature-card:nth-child(3) .feature-icon {
  background: #fff0df;
  color: var(--amber);
}

.feature-card h3,
.note-card h3 {
  margin: 18px 0 10px;
  font-size: 1.2rem;
  line-height: 1.45;
}

.feature-card p,
.note-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-card p,
.note-card p {
  margin: 0;
}

.notes-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.note-card {
  padding: 24px;
}

.note-card.large {
  min-height: 330px;
  grid-row: span 2;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.86), rgba(36, 99, 235, 0.62)),
    linear-gradient(135deg, #18212f, #1b4431);
  color: #fff;
}

.note-card.large .note-meta {
  color: #c7f9d4;
}

.note-card.large h3 {
  max-width: 720px;
  margin-top: 16px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.note-card.large p:last-child {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-item time {
  color: var(--rose);
  font-weight: 900;
}

.timeline-item p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.86);
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-title {
  margin: 0;
  color: #3f4650;
  font-weight: 800;
}

.footer-link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #4b5563;
  font-size: 0.86rem;
}

.footer-link p {
  margin: 0;
}

.footer-link span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.footer-link img {
  width: 16px;
  height: 16px;
  display: inline-block;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
    gap: 42px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .feature-grid,
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .note-card.large {
    min-height: 280px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }

  .brand span:last-child {
    font-size: 0.98rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    flex: 1;
    text-align: center;
    padding-inline: 8px;
  }

  .hero,
  .section,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .desk-card {
    width: 100%;
  }

  .code-lines {
    overflow-x: auto;
  }

  .section {
    padding: 58px 0;
  }

  .feature-card,
  .note-card,
  .note-card.large {
    padding: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
  }
}
