:root {
  --purple-900: #420048;
  --purple-700: #611266;
  --purple-100: #f2e5f2;
  --gold: #d8a72b;
  --gold-dark: #775a00;
  --gold-pale: #fff4d6;
  --ink: #231f22;
  --muted: #665e64;
  --line: #ded6dc;
  --paper: #fcfaf7;
  --white: #fff;
  --content-max: 1600px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 max(24px, calc((100vw - var(--content-max)) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: rgba(252, 250, 247, .9); border-bottom: 1px solid rgba(97, 18, 102, .16); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--purple-900); font-family: var(--serif); font-size: 19px; font-weight: 700; }
.brand small { font-family: var(--sans); font-size: 11px; letter-spacing: .03em; font-weight: 600; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--purple-700); color: white; font-size: 16px; }
.nav-links { display: flex; gap: 34px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 13px; }
.nav-links a:hover { color: var(--purple-700); }
.button, .paper-search-row button {
  border: 0; border-radius: 10px; background: var(--purple-700); color: white; cursor: pointer; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.button:hover, .paper-search-row button:hover { background: var(--purple-900); transform: translateY(-1px); }
.button-small { padding: 10px 20px; border-radius: 999px; font-size: 13px; }

.hero { max-width: var(--content-max); min-height: 620px; margin: 0 auto; padding: 48px 24px 44px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(48px, 5vw, 96px); }
.eyebrow { margin: 0 0 16px; color: var(--purple-700); font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .16em; }
.hero h1 { margin: 0; max-width: 720px; color: var(--purple-900); font-family: var(--serif); font-size: clamp(42px, 4.2vw, 68px); line-height: 1.12; letter-spacing: -.035em; }
.hero h1 span { display: block; color: var(--gold-dark); }
.hero-intro { max-width: 650px; margin: 24px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -36px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(229, 179, 34, .18), transparent 66%); }
.hero-visual img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; border: 1px solid #d3c1ce; box-shadow: 0 24px 60px rgba(58, 30, 30, .16); }
.image-note { position: absolute; z-index: 2; padding: 12px 15px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(40,20,35,.12); backdrop-filter: blur(8px); font-size: 12px; }
.note-top { top: -20px; right: 24px; flex-direction: column; align-items: flex-start; gap: 2px; }
.note-top span { color: var(--muted); }
.note-top strong { color: var(--purple-700); font-family: var(--serif); font-size: 17px; }
.note-bottom { left: 24px; bottom: -18px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #56a26a; box-shadow: 0 0 0 4px rgba(86,162,106,.13); }

.workspace { padding: 58px max(24px, calc((100vw - var(--content-max)) / 2)) 80px; border-top: 1px solid var(--line); background: #f7f3f3; }
.section-heading { margin-bottom: 38px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading h2, .flow-section h2 { margin: 0; color: var(--purple-900); font-family: var(--serif); font-size: clamp(30px, 3.2vw, 43px); }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: right; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-card { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: 16px; background-color: rgba(255,255,255,.86); background-image: radial-gradient(#e3dce0 .7px, transparent .7px); background-size: 11px 11px; box-shadow: 0 5px 18px rgba(55, 30, 45, .04); }
.feature-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature-link:hover { border-color: #c7a7c9; box-shadow: 0 12px 28px rgba(55, 30, 45, .1); transform: translateY(-2px); }
.feature-link:focus-visible { outline: 3px solid rgba(97, 18, 102, .28); outline-offset: 3px; }
.feature-link-cta { align-self: flex-start; margin-top: auto; padding: 10px 14px; border-radius: 8px; background: var(--purple-700); color: white; font-size: 12px; font-weight: 700; }
.quick-card .feature-link-cta { background: var(--purple-700); }
.card-heading { display: flex; align-items: center; gap: 14px; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-size: 24px; font-weight: 700; }
.feature-icon.purple { background: #f2d9f1; color: var(--purple-700); }
.feature-icon.gold { background: #ffe39a; color: var(--gold-dark); }
.feature-icon.research-book { background: #f2d9f1; }
.feature-icon.research-book img { width: 34px; height: 34px; display: block; object-fit: contain; mix-blend-mode: multiply; filter: hue-rotate(70deg) saturate(1.2); }
.card-index { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.feature-card h3 { margin: 0; color: var(--purple-900); font-family: var(--serif); font-size: 27px; }
.card-description { margin: 19px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-search, .paper-panel { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8f5f5; }
.service-search label, .paper-panel label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 600; }
.service-search > div, .paper-search-row { display: flex; gap: 8px; }
.service-search input, .paper-search-row input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d7ced4; border-radius: 8px; outline: none; background: white; }
.service-search input:focus, .paper-search-row input:focus { border-color: var(--purple-700); box-shadow: 0 0 0 3px rgba(97,18,102,.08); }
.service-search button { width: 42px; flex: none; border: 0; border-radius: 8px; background: var(--purple-700); color: white; cursor: pointer; }
.service-result { margin-top: 12px; min-height: 70px; padding: 13px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid #e0c682; border-radius: 10px; background: #fffbf1; }
.result-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #ffefc2; color: var(--gold-dark); font-weight: 700; }
.service-result small { display: block; margin-bottom: 4px; color: #887440; font-size: 10px; }
.service-result strong { display: block; font-size: 13px; }
.service-result a { color: var(--gold-dark); font-size: 12px; font-weight: 700; }
.tag-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 6px 9px; border-radius: 4px; background: #efebed; color: var(--muted); font-size: 10px; }

.research-tabs { margin-bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #efe9ed; border-radius: 10px; }
.research-tabs button { padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.research-tabs button.active { background: white; color: var(--purple-700); box-shadow: 0 2px 8px rgba(40,20,35,.07); font-weight: 700; }
.paper-search-row button { flex: none; padding: 0 15px; }
.paper-preview { margin-top: 15px; padding-top: 15px; display: flex; gap: 12px; border-top: 1px solid var(--line); }
.paper-file { width: 36px; height: 44px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--purple-700); font-size: 9px; }
.paper-preview strong { font-size: 12px; }
.paper-preview p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.upload-panel { padding: 0; background: transparent; }
.upload-zone { width: 100%; min-height: 157px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border: 1px dashed #b994ba; border-radius: 12px; background: #faf5fa; color: var(--purple-700); cursor: pointer; }
.upload-zone > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--purple-100); font-size: 20px; }
.upload-zone small { color: var(--muted); }

.flow-section { padding: 100px 24px; border-block: 1px solid var(--line); background: var(--paper); text-align: center; }
.flow { max-width: 1050px; margin: 62px auto 0; display: grid; grid-template-columns: 170px 1fr 190px 1fr 170px; align-items: center; }
.flow > i { height: 1px; background: linear-gradient(90deg, var(--line), var(--purple-700), var(--line)); }
.flow-node, .flow-core { min-height: 125px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(55,30,45,.06); }
.flow-node span { color: var(--gold-dark); font-size: 11px; font-weight: 700; }
.flow-node strong { margin: 9px 0 4px; color: var(--purple-900); }
.flow-node small { color: var(--muted); }
.flow-core { min-height: 145px; border: 0; background: var(--purple-700); color: white; }
.flow-core span { width: 42px; height: 42px; margin-bottom: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-family: var(--serif); }
.flow-copy { max-width: 570px; margin: 40px auto 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.scenarios { max-width: var(--content-max); margin: 0 auto; padding: 90px 24px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scenario-grid article { padding: 26px 25px; border: 1px solid #ebe5e8; border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px; background: white; box-shadow: 0 6px 20px rgba(50,30,40,.04); }
.scenario-grid article:nth-child(2) { border-top-color: var(--purple-700); }
.scenario-grid article:nth-child(3) { border-top-color: #898287; }
.scenario-grid time { color: var(--muted); font-size: 11px; }
.scenario-grid h3 { margin: 15px 0 9px; color: var(--purple-900); font-family: var(--serif); font-size: 19px; }
.scenario-grid p { color: var(--muted); font-size: 12px; }
.scenario-grid a { display: inline-block; margin-top: 15px; color: var(--purple-700); font-size: 12px; font-weight: 700; }

footer { padding: 36px max(24px, calc((100vw - var(--content-max)) / 2)); display: flex; justify-content: space-between; align-items: end; gap: 30px; border-top: 1px solid var(--line); background: #f2eeee; }
.footer-brand { display: flex; flex-direction: column; gap: 7px; }
.footer-brand strong { color: var(--purple-900); font-family: var(--serif); font-size: 18px; }
.footer-brand span, footer p { margin: 0; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 60px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 680px; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 12px; max-width: 320px; }
  .flow > i { width: 1px; height: 35px; margin: auto; background: linear-gradient(var(--line), var(--purple-700), var(--line)); }
  .scenario-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { height: 64px; padding-inline: 16px; }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .button-small { padding: 9px 14px; }
  .hero { min-height: 0; padding: 52px 16px 76px; }
  .hero h1 { font-size: 38px; }
  .hero-intro { font-size: 14px; }
  .hero-visual::before { inset: -15px; }
  .note-top { right: 10px; }
  .note-bottom { left: 10px; }
  .workspace, .scenarios { padding: 70px 16px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading > p { text-align: left; }
  .feature-card { padding: 25px 20px; }
  .service-result { grid-template-columns: auto 1fr; }
  .service-result a { grid-column: 2; }
  .paper-search-row { flex-direction: column; }
  .paper-search-row button { height: 42px; }
  .flow-section { padding: 70px 16px; }
  footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
