:root {
  color-scheme: light;
  --paper: #f8fafc;
  --white: #fff;
  --ink: #1e293b;
  --muted: #475569;
  --primary: #6366f1;
  --primary-button: #6265ee;
  --primary-ink: #4f46c8;
  --primary-soft: #eeedff;
  --control: #f1f5f9;
  --line: #e2e8f0;
  --hero-bg: linear-gradient(135deg, #6366f10d 0%, #8b5cf60d 50%, #f472b60d 100%);
  --radius: 16px;
  --shadow: 0 12px 40px #1e293b12;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--font); }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.24; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 4px; }
#main, #demo, .section { scroll-margin-top: 112px; }
.wrap { width: min(1180px, calc(100% - clamp(36px, 8vw, 96px))); margin-inline: auto; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 8px 14px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header {
  position: fixed;
  z-index: 4;
  top: 16px;
  inset-inline: 16px;
  max-width: 1392px;
  margin-inline: auto;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: #ffffffed;
  box-shadow: 0 8px 32px #1e293b0b;
  backdrop-filter: blur(14px);
}
.header-inner {
  width: auto;
  min-height: 76px;
  margin: 0;
  padding-inline: 23px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; font-size: 19px; font-weight: 750; white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 12px;
}
.brand-mark::before {
  content: "";
  width: 21px;
  height: 15px;
  background: white;
  clip-path: polygon(0 0, 19% 0, 35% 70%, 46% 20%, 59% 20%, 72% 70%, 83% 0, 100% 0, 83% 100%, 67% 100%, 53% 57%, 41% 100%, 24% 100%);
}
.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }
.site-nav a, .footer-main nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--primary-ink); }
.menu-toggle { display: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: fit-content;
  padding: 0 20px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 180ms, box-shadow 180ms;
}
.button-primary { background: var(--primary-button); color: white; box-shadow: 0 4px 14px #6366f14d; }
.button-primary:hover { background: #5558dc; box-shadow: 0 6px 16px #6366f152; }
.button-secondary { background: var(--control); border-color: var(--line); }
.button-secondary:hover { background: #e8edf4; }
.header-action { justify-self: end; }

.hero { background: var(--hero-bg), var(--paper); padding: 156px 0 76px; }
.hero-intro { text-align: center; }
.eyebrow, .roadmap-label {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-ink);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 650;
}
.hero h1 { margin-top: 24px; font-size: clamp(40px, 5vw, 68px); font-weight: 750; letter-spacing: -.035em; }
.hero h1 span { display: block; color: var(--primary); }
.hero-summary { max-width: 42em; margin: 22px auto 0; color: var(--muted); font-size: clamp(16px, 1.65vw, 20px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 33px; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 13px; }

.demo-stage { max-width: 1012px; margin: 59px auto 0; }
.app-frame { background: var(--white); border: 1px solid #e8eaf1; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.app-top { display: flex; align-items: center; gap: 16px; min-height: 40px; margin-bottom: 12px; }
.window-lights { display: flex; align-items: center; gap: 7px; }
.window-lights i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.window-lights i:nth-child(2) { background: #facc15; }
.window-lights i:nth-child(3) { background: #34d399; }
.task-search, .window-title {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--control);
  border-radius: 8px;
  min-height: 40px;
  padding-inline: 13px;
  color: var(--muted);
}
.task-search:focus-within { outline: 2px solid var(--primary-ink); }
.search-icon { width: 11px; height: 11px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; top: 8px; left: 7px; width: 5px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.task-search input { min-width: 0; width: 100%; min-height: 40px; border: 0; background: transparent; outline: 0; font-size: 14px; }
.task-search input::placeholder { color: #64748b; }
.window-title { font-size: 14px; font-weight: 700; }
.stage-top { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.demo-tabs { display: flex; gap: 8px; }
.demo-tabs button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.demo-tabs button:hover, .demo-tabs button[aria-selected="true"] { background: var(--primary-soft); color: var(--primary-ink); }
.demo-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px var(--primary); }
.demo-tabs button:focus-visible { outline-offset: -3px; }
.demo-panel { min-height: 285px; }
.demo-panel:focus-visible { outline-offset: 3px; }
.task-list { list-style: none; padding: 0; display: grid; gap: 9px; }
.task-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 15px;
  border: 1px solid #e9edf3;
  border-radius: 13px;
}
.task-list strong { display: block; font-size: 15px; }
.task-list small { display: block; color: var(--muted); font-size: 12px; }
.task-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: linear-gradient(135deg, #5b5ee0, #7950d8); font-size: 14px; font-weight: 700; }
.status { padding: 3px 8px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 650; }
.status-pending { background: #eeedff; color: #4338a1; }
.status-review { background: #e7f8fc; color: #155e75; }
.status-done { background: #e7f8ef; color: #176346; }
.search-status { margin: 10px 0; color: var(--muted); font-size: 13px; }
.search-status:empty { margin: 0; }
.demo-actions { margin-top: 12px; display: flex; justify-content: end; }
.app-button { min-height: 44px; padding: 0 13px; border: 0; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); font-size: 14px; font-weight: 700; }
.app-button:hover { background: #e4e2ff; }

.handoff { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(18px, 5vw, 60px); padding: 12px clamp(0px, 2vw, 24px); }
.handoff-copy h2 { margin-top: 10px; font-size: clamp(22px, 3vw, 32px); }
.handoff-copy p { margin: 9px 0 14px; color: var(--muted); font-size: 15px; }
.sample-task, .receipt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sample-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sample-top span { color: var(--muted); font-size: 12px; }
.sample-task img, .draft-sheet img { width: 100%; height: 120px; object-fit: cover; object-position: center 53%; }
.sample-body { padding: 10px 12px; font-size: 13px; }
.sample-body p { color: var(--muted); }
.sample-body .sample-topics { color: var(--primary-ink); }
.sample-account { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.sample-account strong { margin-left: 8px; color: var(--ink); }
.receipt dl { padding: 4px 12px; }
.receipt dl > div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipt dl > div:last-child { border-bottom: 0; }
.receipt dt { color: var(--muted); }

.flow-summary { max-width: 960px; margin: 47px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; text-align: center; }
.flow-summary strong { display: block; color: var(--primary-ink); font-size: clamp(19px, 2.25vw, 29px); }
.flow-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

.section { padding-block: clamp(62px, 8vw, 106px); }
.section h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.section-head { text-align: center; }
.section-head p, .creation-copy > p:not(.roadmap-label) { margin-top: 13px; color: var(--muted); }
.features { list-style: none; padding: 0; margin-top: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.features li { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.5vw, 28px); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-ink); font-size: 24px; line-height: 1; margin-bottom: 13px; }
.features li:nth-child(3n+2) .feature-icon { background: #e7f8fc; color: #155e75; }
.features li:nth-child(3n+3) .feature-icon { background: #f3eaff; color: #6b34a3; }
.features h3 { font-size: 19px; margin-bottom: 7px; }
.features p { font-size: 15px; color: var(--muted); }

.creation { background: var(--hero-bg), var(--paper); }
.creation-layout, .faq-layout { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(24px, 7vw, 100px); }
.creation-copy { grid-column: 2; grid-row: 1; }
.roadmap-label { margin-bottom: 14px; }
.creation-list { margin-top: 20px; }
.creation-list > div { display: grid; grid-template-columns: 4em 1fr; gap: 8px; padding-block: 9px; border-bottom: 1px solid #dadcf0; }
.creation-list dt { font-weight: 750; }
.creation-list dd { color: var(--muted); }
.creation-visual { grid-column: 1; grid-row: 1; }
.draft-sheet { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.draft-top { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 14px; }
.draft-top span, .draft-body p { color: var(--muted); font-size: 13px; }
.draft-sheet img { height: clamp(120px, 15vw, 200px); }
.draft-body { padding: 14px; }
.draft-body > strong { display: block; margin: 3px 0 5px; font-size: 18px; }
.draft-body ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.draft-body li { padding: 3px 7px; border-radius: 5px; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; }

.faq { background: white; }
.faq-layout { grid-template-columns: .75fr 1.25fr; align-items: start; }
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 9px 0; list-style: none; font-weight: 700; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after { content: "+"; color: var(--primary-ink); font-size: 21px; }
.faq-items details[open] summary::after { content: "−"; }
.faq-items p { padding: 0 18px 14px 0; color: var(--muted); font-size: 15px; }

.site-footer { background: #0f172a; color: #f8fafc; padding: 38px 0 21px; }
.site-footer :focus-visible { outline-color: #c7d2fe; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.footer-main p { margin-top: 7px; font-size: 13px; color: #cbd5e1; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-main nav a:hover { text-decoration: underline; }
.credits { margin-top: 20px; padding-top: 12px; border-top: 1px solid #334155; color: #cbd5e1; font-size: 12px; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }
.icp-filing { margin-top: 16px; color: #cbd5e1; text-align: center; font-size: 13px; }
.icp-filing a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.icp-filing a:hover { color: white; }

@media (max-width: 700px) {
  #main, #demo, .section { scroll-margin-top: 84px; }
  .site-header { top: 9px; inset-inline: 9px; border-radius: 13px; }
  .header-inner { display: flex; gap: 6px; min-height: 59px; padding-inline: 10px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .brand-mark::before { width: 17px; height: 12px; }
  .menu-toggle { display: block; margin-left: auto; min-height: 44px; padding: 0 8px; border: 0; background: transparent; font-size: 14px; }
  .header-action { min-height: 44px; font-size: 13px; padding-inline: 9px; gap: 4px; }
  .site-nav { display: none; position: absolute; top: calc(100% + 6px); inset-inline: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
  .header-inner:has(.menu-toggle[aria-expanded="true"]) .site-nav { display: grid; gap: 0; }
  .hero { padding: 116px 0 49px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 51px); margin-top: 18px; }
  .hero-summary { margin-top: 17px; }
  .wide-break { display: none; }
  .hero-actions { margin-top: 21px; gap: 8px; }
  .hero-actions .button { padding-inline: 11px; font-size: 14px; }
  .hero-note { margin-top: 16px; }
  .demo-stage { margin-top: 34px; }
  .app-frame { border-radius: 14px; padding: 11px; }
  .app-top { gap: 8px; margin-bottom: 8px; }
  .window-lights { gap: 4px; }
  .window-lights i { width: 7px; height: 7px; }
  .demo-tabs { gap: 2px; }
  .demo-tabs button { flex: 1; padding-inline: 4px; font-size: 13px; }
  .task-list li { min-height: 62px; gap: 6px; padding: 8px 7px; }
  .task-list strong { font-size: 13px; }
  .task-list small { font-size: 11px; }
  .task-avatar { width: 29px; height: 29px; font-size: 12px; }
  .status { padding-inline: 5px; font-size: 11px; }
  .demo-panel { min-height: 0; }
  .handoff { grid-template-columns: 1fr; padding: 4px 0; gap: 12px; }
  .flow-summary { grid-template-columns: 1fr 1fr; gap: 18px 10px; margin-top: 29px; }
  .flow-summary span { font-size: 12px; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .features h3 { font-size: 16px; }
  .features p { font-size: 14px; }
  .creation-layout, .faq-layout { grid-template-columns: 1fr; gap: 22px; }
  .creation-copy, .creation-visual { grid-column: auto; grid-row: auto; }
  .footer-main { display: grid; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
