:root {
  color-scheme: light;
  --paper: #f5f0e8;
  --paper-2: #fffaf3;
  --ink: #201a16;
  --muted: #70665d;
  --line: #d7cdc2;
  --accent: #e95d2a;
  --accent-dark: #b63c12;
  --night: #17120f;
  --night-2: #2a201a;
  --serif: Georgia, "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ff9c66; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--night);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1380px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand span { color: var(--accent); }

.header-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.hero {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 0;
}

.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: inherit; }

.eyebrow {
  margin: 38px 0 18px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

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

h1 {
  max-width: 1220px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.03;
}

h1 > span { display: block; }
h1 em { color: var(--accent); font-weight: inherit; }

.dek {
  max-width: 890px;
  margin-bottom: 28px;
  color: #4d443e;
  font-family: var(--serif);
  font-size: clamp(20px, 2.25vw, 27px);
  line-height: 1.55;
}

.article-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; color: var(--muted); font-size: 14px; }
.article-meta span + time::before, .article-meta time + span::before { content: "·"; margin-right: 22px; color: #a4988d; }

.hero-art {
  position: relative;
  min-height: 540px;
  margin-top: 58px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--night);
  box-shadow: 0 26px 70px rgb(64 42 25 / 18%);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(transparent, rgb(0 0 0 / 34%));
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, #000, transparent 80%);
}

.hero-copy { position: absolute; z-index: 2; top: 68px; left: 68px; color: #fff9f1; }
.hero-copy span { display: block; color: #ff9c66; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; }
.hero-copy strong { display: block; margin: 22px 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 66px); line-height: .98; letter-spacing: -.04em; }
.hero-copy small { color: #bfae9f; font-size: 14px; }

.phone {
  position: absolute;
  z-index: 2;
  width: 190px;
  height: 390px;
  padding: 38px 20px 22px;
  overflow: hidden;
  border: 8px solid #070605;
  border-radius: 38px;
  background: #fff8ef;
  color: var(--night);
  box-shadow: 0 30px 50px rgb(0 0 0 / 40%);
  transform: rotate(8deg);
}

.phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 60px; height: 18px; border-radius: 20px; background: #070605; transform: translateX(-50%); }
.phone i { display: block; height: 190px; margin-bottom: 24px; border-radius: 18px; background: linear-gradient(135deg, #ffcfad, #ff7a45); }
.phone b { font-family: var(--serif); font-size: 22px; line-height: 1.04; }
.phone span { position: absolute; right: 18px; bottom: 12px; color: #b4a598; font-family: var(--mono); font-size: 12px; }
.phone-one { right: 342px; bottom: -82px; transform: rotate(-7deg); }
.phone-two { right: 164px; bottom: -26px; }
.phone-two i { background: linear-gradient(145deg, #5441d8, #bfa8ff); }
.phone-three { right: -28px; bottom: -104px; transform: rotate(18deg); }
.phone-three i { background: linear-gradient(145deg, #d7f0db, #48a56c); }

.article-layout {
  width: min(1220px, calc(100% - 48px));
  margin: 88px auto 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 90px;
  justify-content: start;
}

.toc { align-self: start; position: sticky; top: 30px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.toc p { margin-bottom: 16px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0 0 11px; }
.toc li::before { content: "0" counter(toc); margin-right: 8px; color: #a89b90; font-family: var(--mono); font-size: 10px; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--accent-dark); }

.prose { min-width: 0; }
.prose > section { scroll-margin-top: 30px; margin: 0 0 86px; }
.prose p { margin-bottom: 1.35em; }
.prose .lead { margin-bottom: 74px; font-family: var(--serif); font-size: 23px; line-height: 1.7; }
.prose strong { font-weight: 760; }

h2 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

h3 { margin: 40px 0 16px; font-size: 22px; line-height: 1.3; }

blockquote {
  margin: 50px 0;
  padding: 30px 34px 26px;
  border: 0;
  border-left: 5px solid var(--accent);
  background: var(--paper-2);
}

blockquote p { margin-bottom: 6px !important; font-family: var(--serif); font-size: 29px; font-style: italic; line-height: 1.35; }
blockquote cite { color: var(--muted); font-size: 13px; font-style: normal; }

.wide-figure { width: min(960px, calc(100vw - 400px)); margin: 86px 0 92px; }
.wide-figure img { width: 100%; border-radius: 18px; }
.wide-figure figcaption { max-width: 740px; margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-shot img { border: 1px solid #dad5cf; box-shadow: 0 26px 60px rgb(47 35 25 / 14%); }
.workflow-figure { margin-top: -36px; }

.comparison { display: grid; grid-template-columns: 1fr 1fr; margin-top: 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.comparison > div { padding: 30px; }
.comparison > div + div { border-left: 1px solid var(--line); }
.comparison span { font-size: 14px; font-weight: 800; }
.comparison ul { margin-bottom: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.comparison-highlight { background: var(--night); color: #fff8ef; }
.comparison-highlight ul { color: #cbbeb3; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-grid article { min-height: 238px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: rgb(255 250 243 / 62%); }
.feature-grid article > span { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.feature-grid h3 { margin: 28px 0 10px; font-family: var(--serif); font-size: 26px; }
.feature-grid p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

code { padding: .1em .32em; border-radius: 4px; background: #e8ddd2; color: #6f250d; font-family: var(--mono); font-size: .86em; }
.code-block { margin: 34px 0; overflow: hidden; border-radius: 16px; background: var(--night); color: #fff7ef; box-shadow: 0 20px 50px rgb(47 35 25 / 15%); }
.code-block > div { display: flex; align-items: center; gap: 7px; padding: 13px 17px; border-bottom: 1px solid #3a2e27; }
.code-block > div span { width: 9px; height: 9px; border-radius: 50%; background: #e65f40; }
.code-block > div span:nth-child(2) { background: #e6b440; }
.code-block > div span:nth-child(3) { background: #6ebf6b; }
.code-block small { margin-left: auto; color: #998b80; font-family: var(--mono); }
.code-block pre { margin: 0; padding: 24px; overflow-x: auto; }
.code-block code { padding: 0; background: transparent; color: inherit; font-size: 14px; }

.prompt-card { margin: 36px 0 46px; padding: 32px; border: 1px solid #dfb39e; border-radius: 18px; background: #fff3e9; }
.prompt-card > span { color: var(--accent-dark); font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.prompt-card p { margin: 16px 0 0; font-size: 16px; }

.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 900; line-height: 21px; text-align: center; }

.table-wrap { margin: 34px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #e9dfd5; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td[rowspan] { color: var(--accent-dark); font-weight: 760; vertical-align: top; }
.note { padding: 20px 24px; border-radius: 12px; background: #e8dfd6; color: #554b44; font-size: 14px; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0; }
.fit-grid > div { padding: 28px; border-radius: 16px; background: var(--paper-2); }
.fit-grid > div:last-child { background: #e8dfd6; }
.fit-grid h3 { margin: 0 0 12px; font-family: var(--serif); }
.fit-grid ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 42px 22px 0; cursor: pointer; font-weight: 720; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 17px; color: var(--accent); font-family: var(--serif); font-size: 28px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding-right: 30px; color: var(--muted); font-size: 16px; }

.verdict { margin-top: 100px !important; padding: 56px; border-radius: 26px; background: var(--night); color: #fff8ef; }
.verdict .eyebrow { margin-top: 0; color: #ff9c66; }
.verdict p { color: #cbbeb3; }
.verdict strong { color: #fff8ef; }
.cta-button { display: inline-flex; gap: 12px; align-items: center; margin-top: 16px; padding: 15px 20px; border-radius: 9px; background: #ff8550; color: #1c120d; font-size: 14px; font-weight: 800; text-decoration: none; }
.cta-button:hover { background: #ff9c66; color: #1c120d; }

.sources { padding-top: 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sources h2 { color: var(--ink); font-family: var(--sans); font-size: 15px; letter-spacing: .04em; }
.sources ol { padding-left: 22px; }

.site-footer {
  width: min(1380px, calc(100% - 48px));
  margin: 110px auto 0;
  padding: 36px 0 46px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer p { margin: 0; }
.site-footer > a:last-child { color: inherit; }

@media (max-width: 980px) {
  .hero-art { min-height: 500px; }
  .hero-copy { left: 42px; }
  .phone { width: 166px; height: 350px; }
  .phone-one { right: 260px; }
  .phone-two { right: 104px; }
  .article-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .toc { display: none; }
  .wide-figure { width: 100%; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .site-header, .hero, .article-layout, .site-footer { width: min(100% - 32px, 1220px); }
  .site-header { height: 70px; }
  .header-link { font-size: 12px; }
  .hero { padding-top: 36px; }
  .eyebrow { margin-top: 28px; }
  h1 { font-size: clamp(43px, 13vw, 66px); }
  .dek { font-size: 20px; }
  .article-meta span + time::before, .article-meta time + span::before { content: none; margin: 0; }
  .article-meta { display: grid; gap: 3px; }
  .hero-art { min-height: 420px; margin-top: 40px; border-radius: 20px; }
  .hero-copy { top: 36px; left: 26px; }
  .hero-copy strong { font-size: 42px; }
  .phone { width: 145px; height: 310px; padding: 34px 15px 18px; border-width: 6px; border-radius: 30px; }
  .phone i { height: 150px; }
  .phone b { font-size: 18px; }
  .phone-one { display: none; }
  .phone-two { right: 86px; bottom: -58px; transform: rotate(-6deg); }
  .phone-three { right: -44px; bottom: -90px; }
  .article-layout { margin-top: 58px; }
  .prose .lead { margin-bottom: 58px; font-size: 21px; }
  .prose > section { margin-bottom: 66px; }
  h2 { font-size: 36px; }
  .wide-figure { margin: 58px 0 66px; }
  .product-shot { width: calc(100vw - 16px); margin-left: -8px; }
  .product-shot img { border-radius: 12px; }
  .comparison, .feature-grid, .fit-grid { grid-template-columns: 1fr; }
  .comparison > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .feature-grid article { min-height: auto; }
  .workflow-figure { width: calc(100vw - 16px); margin-left: -8px; overflow-x: auto; }
  .workflow-figure img { min-width: 760px; }
  .verdict { padding: 34px 26px; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; margin-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
