:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef5f5;
  --text: #161917;
  --muted: #5e6762;
  --subtle: #89928c;
  --line: #d9ddd8;
  --line-strong: #c7cdc6;
  --ink: #101412;
  --blue: #2563eb;
  --green: #0f8a5f;
  --red: #c4423a;
  --yellow: #c08a17;
  --shadow: 0 22px 70px rgb(28 34 31 / 0.16);
  --radius: 8px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgb(22 25 23 / 0.08);
  background: rgb(247 248 244 / 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgb(28 34 31 / 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 30px);
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: var(--surface);
  background: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 116px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26vh;
  background: var(--bg);
  z-index: -1;
}

.hero-scene {
  position: absolute;
  inset: 68px 0 0;
  z-index: -2;
  overflow: hidden;
  background: #edf7f8;
}

.workbench-shell {
  position: absolute;
  right: clamp(-140px, -6vw, -40px);
  bottom: clamp(16px, 6vh, 84px);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(520px, 760px);
  width: min(1040px, 84vw);
  min-height: 590px;
  border: 1px solid rgb(30 37 34 / 0.14);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1deg);
}

.mock-sidebar {
  border-right: 1px solid var(--line);
  background: rgb(240 247 248 / 0.9);
  padding: 22px 18px;
}

.traffic-row {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.traffic-row span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-row span:nth-child(1) {
  background: var(--red);
}

.traffic-row span:nth-child(2) {
  background: var(--yellow);
}

.traffic-row span:nth-child(3) {
  background: var(--green);
}

.mock-nav-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mock-project,
.mock-thread {
  display: flex;
  align-items: center;
  min-height: 32px;
  border-radius: 7px;
  font-size: 14px;
}

.mock-project {
  gap: 10px;
  padding: 0 10px;
  color: var(--text);
  font-weight: 650;
}

.mock-project.is-active {
  background: rgb(16 20 18 / 0.08);
}

.folder-icon {
  width: 16px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.mock-thread {
  margin-left: 26px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.mock-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fbfbf8;
}

.mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mock-toolbar div {
  display: flex;
  gap: 8px;
}

.mock-toolbar div span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgb(22 25 23 / 0.08);
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  padding: 42px 52px;
}

.mock-message {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(28 34 31 / 0.06);
}

.user-message {
  align-self: flex-end;
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.assistant-message {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.assistant-message span::before {
  content: "$ ";
  color: var(--green);
}

.mock-bottom-panel {
  display: flex;
  gap: 22px;
  min-height: 54px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
  padding-top: 24px;
}

.hero-product-icon {
  display: block;
  width: clamp(70px, 8vw, 104px);
  height: clamp(70px, 8vw, 104px);
  margin-bottom: 22px;
  border: 1px solid rgb(16 20 18 / 0.12);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgb(28 34 31 / 0.2);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 128px;
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.16;
  font-weight: 620;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
}

.button.primary {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.button.primary:hover {
  background: #2b302c;
}

.button.secondary {
  color: var(--text);
  background: rgb(255 255 255 / 0.66);
}

.button.secondary:hover {
  background: var(--surface);
}

.release-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  max-width: 680px;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.download-layout p {
  color: var(--muted);
  font-size: 18px;
}

.workflow-section {
  background: var(--bg);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.workflow-grid article,
.feature-list article,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgb(28 34 31 / 0.06);
}

.workflow-grid article {
  padding: 24px;
}

.workflow-grid span {
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.workflow-grid h3,
.feature-list h3,
.download-panel h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.workflow-grid p,
.feature-list p,
.download-panel p {
  margin: 0;
  color: var(--muted);
}

.feature-section {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  padding: 22px;
}

.feature-list h3 {
  margin-top: 0;
}

.download-section {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.download-panel {
  padding: 26px;
}

.download-panel .button {
  width: 100%;
  margin-top: 22px;
}

.release-link {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.release-link:hover {
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    display: none;
  }

  .header-download {
    margin-left: auto;
  }

  .hero {
    min-height: 92vh;
    padding-top: 106px;
  }

  .hero-scene {
    top: 62px;
  }

  .workbench-shell {
    right: -420px;
    bottom: 24px;
    width: 900px;
    min-height: 560px;
    opacity: 0.72;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 86px;
  }

  .hero-product-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .hero-copy {
    font-size: 23px;
  }

  .section h2 {
    font-size: 42px;
  }

  .workflow-grid,
  .feature-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 62px;
    padding-inline: 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-download {
    height: 34px;
    padding-inline: 12px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-copy {
    font-size: 20px;
  }

  .section h2 {
    font-size: 32px;
  }
}
