:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #5c625f;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --surface-2: #ecefe7;
  --line: #d9ded5;
  --red: #b23a48;
  --teal: #157a6e;
  --green: #2f704d;
  --gold: #d2a22a;
  --shadow: 0 20px 60px rgba(21, 21, 21, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea:focus,
input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(21, 122, 110, 0.28);
  outline-offset: 2px;
}

textarea {
  min-height: 180px;
  resize: vertical;
  padding: 14px;
  line-height: 1.7;
}

input {
  min-height: 48px;
  padding: 0 12px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(246, 247, 242, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand span,
.site-footer span {
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(21, 21, 21, 0.06);
}

main {
  overflow: hidden;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.15fr);
  gap: clamp(18px, 4vw, 42px);
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 73px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
  align-items: center;
}

.brand-panel,
.toolbox,
.principle,
.roadmap-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.brand-panel {
  display: grid;
  align-content: center;
  min-height: 520px;
  padding: clamp(24px, 4vw, 42px);
  border-top: 6px solid var(--gold);
}

.brand-mark {
  width: clamp(112px, 18vw, 172px);
  height: auto;
  margin-bottom: 26px;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8em;
  margin: 0;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.12;
}

h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: #303633;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.75;
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.value-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: #303633;
  font-size: 14px;
  font-weight: 800;
}

.toolbox {
  min-height: 620px;
  padding: clamp(18px, 3vw, 28px);
}

.toolbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.copy-status {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.tab-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.tab-button {
  background: transparent;
}

.tab-button span:first-child,
.action-button span:first-child {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(21, 21, 21, 0.08);
  color: var(--ink);
  font-size: 14px;
}

.tab-button.is-active {
  border-color: rgba(21, 21, 21, 0.12);
  background: #fff;
  box-shadow: 0 8px 20px rgba(21, 21, 21, 0.08);
}

.tool-panel {
  display: grid;
  gap: 12px;
}

.tool-panel[hidden] {
  display: none;
}

.field-label {
  color: #303633;
  font-size: 13px;
  font-weight: 900;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-button {
  min-width: 110px;
  padding: 0 14px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.action-button span:first-child {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.action-button.ghost span:first-child {
  background: rgba(21, 21, 21, 0.08);
  color: var(--ink);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.metric,
.result-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.metric {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
}

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

.result-box {
  display: block;
  min-height: 112px;
  padding: 14px;
  color: #303633;
  line-height: 1.75;
  white-space: pre-wrap;
}

.notice-box,
.setup-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.notice-box {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.notice-box strong {
  font-size: 17px;
}

.notice-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.command-box {
  min-height: 72px;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.command-box.tall {
  min-height: 112px;
}

.setup-box {
  padding: 0;
}

.setup-box summary {
  padding: 14px;
  color: #303633;
  font-weight: 900;
  cursor: pointer;
}

.setup-box[open] {
  padding: 0 14px 14px;
}

.setup-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.idea-band,
.roadmap-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 84px) 0;
}

.idea-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: start;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
}

.section-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #303633;
  font-size: 18px;
  line-height: 1.8;
}

.section-copy.compact {
  margin-bottom: 18px;
}

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

.principle {
  min-height: 220px;
  padding: 20px;
  box-shadow: none;
}

.principle span {
  color: var(--red);
  font-weight: 900;
}

.principle p,
.roadmap-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.roadmap-band {
  border-top: 1px solid rgba(21, 21, 21, 0.1);
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 20px;
  box-shadow: none;
}

.roadmap-list span {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(210, 162, 42, 0.2);
  color: #675018;
  font-size: 13px;
  font-weight: 900;
}

.roadmap-list strong {
  font-size: 20px;
  line-height: 1.3;
}

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-link {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
}

.footer-link:hover {
  border-color: rgba(21, 122, 110, 0.38);
  color: var(--teal);
}

@media (max-width: 920px) {
  .workspace,
  .idea-band {
    grid-template-columns: 1fr;
  }

  .workspace {
    align-items: start;
  }

  .brand-panel {
    min-height: auto;
  }

  .toolbox {
    min-height: auto;
  }

  .principle-grid,
  .roadmap-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .workspace,
  .idea-band,
  .roadmap-band {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 46px;
  }

  .toolbox-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-status {
    text-align: left;
  }

  .tool-tabs,
  .metric-grid,
  .time-grid {
    grid-template-columns: 1fr;
  }

  .tab-button,
  .action-button {
    width: 100%;
  }
}
