:root {
  --bg: #f6f2ea;
  --bg-soft: #eee8dc;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --ink: #171717;
  --muted: #68645d;
  --quiet: #928d83;
  --line: rgba(23, 23, 23, 0.1);
  --line-strong: rgba(23, 23, 23, 0.16);
  --charcoal: #111113;
  --success: #16a34a;
  --info: #2563eb;
  --warning: #d97706;
  --violet: #7c3aed;
  --max: 1180px;
  --radius: 28px;
  --shadow: 0 24px 90px rgba(39, 39, 42, 0.13);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.82), transparent 26rem),
    radial-gradient(circle at 82% 8%, rgba(147, 197, 253, 0.18), transparent 24rem),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 42%, #f2ede4 100%);
  font-family: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--ink);
}

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

button,
input {
  font: inherit;
}

.site-header,
main,
.footer {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  margin-top: 12px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 247, 239, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(39, 39, 42, 0.07);
}

.brand,
.nav,
.nav-cta,
.hero-actions,
.button,
.mini-head,
.window-bar,
.traffic,
.preview-head,
.task,
.review-list p,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: #fff;
  background: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav {
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a,
.footer a {
  transition: color 0.18s ease;
}

.nav a:hover,
.footer a:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 38px;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(17, 17, 19, 0.18);
}

.hero {
  padding: clamp(62px, 10vw, 128px) 0 38px;
  text-align: center;
}

.hero-shell {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow,
.section-label,
.pane-label,
.status,
.mini-head,
.model-card span,
.preview-head span,
.note-row > span {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 30px rgba(39, 39, 42, 0.05);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.11);
}

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

h1 {
  max-width: 12ch;
  margin: 28px auto 0;
  font-size: clamp(3.6rem, 9vw, 7.9rem);
  font-weight: 680;
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.hero-text {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.85;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.project-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 16px 34px rgba(17, 17, 19, 0.2);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.workspace-panel {
  position: relative;
  overflow: hidden;
  margin: 18px 0 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #ddd5c6;
  box-shadow: var(--shadow);
}

.workspace-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%);
  pointer-events: none;
}

.workspace-grid {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 292px;
  gap: 12px;
}

.sidebar-card,
.editor-card,
.preview-card,
.feature-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(39, 39, 42, 0.08);
}

.sidebar-card,
.preview-card {
  border-radius: 28px;
  padding: 16px;
}

.mini-head,
.preview-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-head strong,
.preview-head strong {
  font-size: 0.86rem;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.file.is-active {
  color: #fff;
  background: var(--charcoal);
}

.file-icon {
  width: 9px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.72;
}

.model-card {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.56);
}

.model-card strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

.editor-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--charcoal);
  color: #fff;
}

.window-bar {
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.42);
  font-size: 0.78rem;
}

.traffic {
  gap: 7px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.traffic span:nth-child(1) { background: #fb7185; }
.traffic span:nth-child(2) { background: #fbbf24; }
.traffic span:nth-child(3) { background: #34d399; }

.editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  min-height: 430px;
}

.code-pane {
  padding: clamp(20px, 3vw, 30px);
}

.code-pane h2 {
  max-width: 620px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(1.8rem, 3.3vw, 3.2rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

pre,
.terminal-line,
.terminal-ok {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

pre {
  overflow: auto;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
  line-height: 1.75;
}

.terminal-line,
.terminal-ok {
  font-size: 0.82rem;
  line-height: 1.7;
}

.terminal-line span {
  color: #60a5fa;
}

.terminal-ok {
  color: #86efac;
}

.agent-pane {
  padding: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
}

.pane-label {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.36);
}

.task {
  gap: 11px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.task > span,
.review-list span,
.feature-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.task.done > span,
.review-list span,
.feature-dot.success { background: var(--success); }
.task.active > span,
.feature-dot.info { background: var(--info); }
.task.queued > span { background: var(--warning); }
.feature-dot.violet { background: var(--violet); }

.task strong {
  display: block;
  color: rgba(255,255,255,0.84);
  font-size: 0.86rem;
}

.task small {
  color: rgba(255,255,255,0.35);
}

.composer {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
}

.composer small {
  color: rgba(255,255,255,0.38);
}

.composer p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.86rem;
  line-height: 1.55;
}

.preview-head span,
.status {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  letter-spacing: 0.04em;
}

.preview-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f9f6ef;
}

.preview-hero {
  height: 112px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.5), transparent 34%),
    linear-gradient(135deg, #18181b, #52525b);
}

.preview-lines {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.preview-lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #dedbd3;
}

.preview-lines i:nth-child(1) { width: 48%; }
.preview-lines i:nth-child(2) { width: 100%; }
.preview-lines i:nth-child(3) { width: 74%; }

.review-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.review-list p {
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 64px);
  margin-bottom: 26px;
}

.section-head.compact {
  display: block;
  max-width: 760px;
}

.section-label {
  margin: 0 0 12px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-head > p:last-child,
.feature-card p,
.project-card p,
.note-row p,
.contact-card p {
  color: var(--muted);
  line-height: 1.78;
}

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

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.project-card,
.contact-card {
  border-radius: 26px;
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card h3,
.project-card h3,
.note-row h3 {
  margin: 16px 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
}

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

.projects .section-head {
  align-items: end;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  color: inherit;
  cursor: pointer;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.project-card:hover {
  box-shadow: 0 24px 70px rgba(39, 39, 42, 0.13);
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
}

.status.public {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.project-card strong {
  display: block;
  margin-top: 28px;
  color: var(--ink);
  font-size: 0.95rem;
}

.note-list {
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 38px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.note-row h3 {
  margin-top: 0;
  font-size: 1.28rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 18px;
}

.contact-card .button {
  width: fit-content;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 56px;
  color: var(--quiet);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
  color: inherit;
}

@media (max-width: 1080px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card,
  .preview-card {
    display: none;
  }

  .editor-body {
    grid-template-columns: 1fr;
  }

  .agent-pane {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 28px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .section-head,
  .contact-section,
  .note-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 620px) {
  .site-header,
  main,
  .footer {
    width: calc(100% - 28px);
  }

  .site-header {
    position: static;
    margin-top: 10px;
  }

  .nav-cta {
    display: none;
  }

  h1 {
    max-width: 9ch;
    font-size: 3.35rem;
  }

  .hero {
    padding-top: 46px;
  }

  .workspace-panel {
    margin-bottom: 50px;
    padding: 8px;
    border-radius: 26px;
  }

  .editor-card {
    border-radius: 22px;
  }

  .window-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  pre {
    font-size: 0.76rem;
  }

  .section {
    padding: 50px 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 40px;
  }
}

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

/* Refinement after review: calmer hero scale, less filler content. */
.hero-compact {
  padding: clamp(42px, 7vw, 84px) 0 28px;
}

.hero-compact h1 {
  max-width: none;
  margin-top: 22px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-line {
  max-width: 520px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.workspace-grid-simple {
  grid-template-columns: 220px minmax(0, 1fr);
}

.editor-body-simple {
  grid-template-columns: minmax(0, 1fr) 250px;
}

.project-card p:empty,
.contact-card p:empty {
  display: none;
}

.project-card {
  min-height: 210px;
}

.contact-section {
  padding-bottom: 54px;
}

.nav a.is-active {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .workspace-grid-simple,
  .editor-body-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-compact h1 {
    max-width: none;
    font-size: 3rem;
  }
}

/* Minimal contact buttons: keep details hidden until the user clicks. */
.contact-card-minimal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.contact-chip.primary {
  color: #fff;
  background: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: 0 14px 30px rgba(17, 17, 19, 0.16);
}

.contact-chip:hover,
.contact-chip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgba(39, 39, 42, 0.1);
  outline: none;
}

.contact-hint {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--quiet);
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .contact-card-minimal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .contact-card-minimal {
    grid-template-columns: 1fr;
  }
}

/* Contact update: six buttons + copied WeChat active state. */
.contact-card-minimal {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.contact-chip.is-copied {
  color: #fff;
  background: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: 0 14px 30px rgba(17, 17, 19, 0.16);
}

@media (max-width: 980px) {
  .contact-card-minimal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .contact-card-minimal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .contact-card-minimal {
    grid-template-columns: 1fr;
  }
}
