:root {
  color-scheme: light;
  --bg: #f7faf8;
  --panel: #ffffff;
  --text: #0c1110;
  --muted: #5e6866;
  --line: #dce5e1;
  --accent: #027a68;
  --accent-dark: #035d50;
  --accent-soft: #e3f4ef;
  --shadow: 0 24px 70px rgba(17, 33, 29, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 14%, rgba(2, 122, 104, 0.1), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 44%, #ffffff 100%);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(220, 229, 225, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #202725;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-download {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(2, 122, 104, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.language-control select {
  min-height: 36px;
  max-width: 9.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 0 0.65rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(31rem, 1.1fr);
  align-items: center;
  gap: clamp(2.2rem, 5vw, 5rem);
  min-height: calc(100vh - 76px);
  padding: clamp(3.5rem, 7vw, 7rem) 6vw 5rem;
  border-bottom: 1px solid var(--line);
}

.hero-logo {
  width: clamp(82px, 8vw, 124px);
  height: clamp(82px, 8vw, 124px);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(2, 122, 104, 0.18);
}

.hero h1 {
  margin: 1.4rem 0 1.1rem;
  font-size: clamp(4rem, 8vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 41rem;
  margin: 0;
  color: #26302e;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.62;
  font-weight: 520;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  min-width: min(100%, 15.5rem);
  min-height: 4.35rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.9rem 1.35rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
  line-height: 1.1;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.button small {
  font-size: 0.78rem;
  color: inherit;
  opacity: 0.72;
  font-weight: 650;
}

.button.primary {
  background: linear-gradient(135deg, #038672, #046151);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(2, 122, 104, 0.24);
}

.button.secondary {
  background: #ffffff;
  color: #0e1715;
}

.release-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.product-window,
.code-panel,
.feedback-grid article,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.product-window {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.window-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.window-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff5f57;
}

.window-top span:nth-child(2) {
  background: #febc2e;
}

.window-top span:nth-child(3) {
  background: #28c840;
}

.window-top strong {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.86rem;
}

.window-body {
  display: grid;
  grid-template-columns: 156px 1fr;
  min-height: 520px;
}

.window-body aside {
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: #f4f8f6;
}

.window-body aside b {
  display: block;
  margin: 0.75rem 0 0.45rem;
  color: #65706d;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.window-body aside a {
  display: block;
  padding: 0.62rem 0.7rem;
  border-radius: 6px;
  color: #1f2927;
  font-size: 0.88rem;
  font-weight: 650;
}

.window-body aside .active {
  background: #dceee9;
  color: var(--accent-dark);
}

.window-body section {
  padding: 1.35rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.toolbar strong {
  font-size: 1.2rem;
}

.toolbar button {
  min-height: 38px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.task-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #e6ece9;
}

.task-row > span {
  width: 12px;
  height: 12px;
  border: 2px solid #7f8a86;
  border-radius: 999px;
}

.task-row b {
  display: block;
  font-size: 0.95rem;
}

.task-row small {
  color: var(--muted);
  font-weight: 650;
}

.task-row em {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: #def4e8;
  color: #05724e;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
}

.task-row.done em {
  background: #e5f0ff;
  color: #1b62c1;
}

.product-window pre {
  min-height: 162px;
  margin: 1.15rem -1.35rem -1.35rem;
  padding: 1rem 1.35rem;
  overflow: hidden;
  background: #101312;
  color: #d9efe9;
  font: 0.82rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.intro-section,
.workflow-section,
.feedback-section,
.download-section {
  padding: clamp(4.2rem, 8vw, 7rem) 6vw;
}

.section-heading {
  max-width: 54rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading h2,
.workflow-copy h2,
.download-section h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.download-section p {
  margin: 1rem auto 0;
  max-width: 45rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article {
  padding: 1.4rem;
  min-height: 220px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 0.86rem;
}

.feature-grid h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.2rem;
}

.feature-grid p,
.feedback-grid p {
  margin: 0;
  color: #4e5a57;
  line-height: 1.65;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(26rem, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.workflow-copy ol {
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-copy li {
  position: relative;
  padding-left: 3rem;
  counter-increment: workflow;
}

.workflow-copy li::before {
  content: counter(workflow);
  position: absolute;
  left: 0;
  top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
}

.workflow-copy strong,
.workflow-copy span {
  display: block;
}

.workflow-copy strong {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.workflow-copy span {
  color: var(--muted);
  line-height: 1.62;
}

.code-panel {
  position: relative;
  overflow: hidden;
  background: #101312;
  color: #dff5ef;
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfe7e4;
  font-size: 0.88rem;
}

.code-header b {
  color: #73e2c5;
}

.code-panel pre {
  margin: 0;
  padding: 1.45rem;
  color: #eaf8f4;
  font: 0.94rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.run-card {
  display: grid;
  gap: 0.25rem;
  margin: 0 1.45rem 1.45rem;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(3, 134, 114, 0.95), rgba(8, 72, 61, 0.95));
}

.run-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.feedback-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  max-width: 58rem;
  margin: 0 auto;
}

.feedback-tools article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-height: 260px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.feedback-tools h3 {
  margin: 0;
  font-size: 1.35rem;
}

.feedback-tools p {
  margin: 0;
  flex: 1;
  color: #4e5a57;
  line-height: 1.7;
}

.feedback-link {
  width: 100%;
}

.feedback-grid article {
  padding: 1.55rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.feedback-grid p {
  font-size: 1.02rem;
  flex: 1;
}

.feedback-grid strong {
  display: block;
  margin-top: 1.5rem;
}

.feedback-grid span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-section {
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f6faf8, #ffffff);
}

.download-section img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  margin-bottom: 1.2rem;
}

.download-section .download-actions {
  justify-content: center;
}

.unavailable-actions .button.primary {
  background: linear-gradient(135deg, #46514e, #222826);
  box-shadow: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 6vw;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 1.2rem;
  color: #26302e;
  font-weight: 650;
}

@media (max-width: 980px) {
  .site-header {
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-window {
    max-width: 100%;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 0 1rem;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .header-download {
    min-height: 40px;
    padding: 0 0.8rem;
    font-size: 0.84rem;
  }

  .language-control span {
    display: none;
  }

  .language-control select {
    max-width: 7.4rem;
    font-size: 0.78rem;
  }

  .hero,
  .intro-section,
  .workflow-section,
  .feedback-section,
  .download-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 18vw, 4.8rem);
  }

  .hero-lede {
    font-size: 1.04rem;
  }

  .download-actions,
  .site-footer div {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .window-body aside {
    display: none;
  }

  .product-window pre {
    max-height: 148px;
  }

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

  .code-panel pre {
    font-size: 0.78rem;
  }
}
