:root {
  color-scheme: light;
  --navy: #06245f;
  --navy-deep: #041b49;
  --teal: #079f9b;
  --teal-dark: #047b78;
  --ink: #172033;
  --muted: #5e6876;
  --line: #d8e0e9;
  --paper: #ffffff;
  --soft: #f3f7f8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(216, 224, 233, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  width: 194px;
  text-decoration: none;
}

.brand img {
  width: 194px;
  height: auto;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  position: relative;
  color: #354052;
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.mobile-menu {
  display: none;
  margin-left: auto;
}

.hero {
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-inner {
  width: min(100%, 1440px);
  min-height: min(510px, calc(100svh - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.hero-copy {
  align-self: center;
  max-width: 890px;
  padding: 58px clamp(42px, 7vw, 112px) 32px;
  animation: hero-copy-in 620ms ease-out both;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #83d9d3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.045em;
  text-wrap: balance;
  white-space: nowrap;
}

.hero-lead {
  max-width: 700px;
  margin: 1.45rem 0 0;
  color: #d9e3f0;
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-workflow {
  max-width: 700px;
  margin: 1.2rem 0 0;
  padding: 0.85rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.hero-workflow li {
  color: #e6edf7;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero-workflow span {
  display: block;
  margin-bottom: 0.2rem;
  color: #83d9d3;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.button {
  min-height: 50px;
  padding: 0.8rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button-primary {
  color: var(--navy);
  background: #fff;
}

.button-secondary {
  color: #fff;
  background: transparent;
}

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

.button-secondary:hover {
  color: var(--navy);
  background: #fff;
}

.hero-contact {
  margin: calc(1rem + 42px) 0 0;
  color: #aebed4;
  font-size: 0.78rem;
  line-height: 1.7;
  transform: translateY(34.6px);
}

.hero-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration-color: rgba(131, 217, 211, 0.7);
  text-underline-offset: 0.3rem;
}

.button span,
.task-action span {
  transition: transform 180ms ease;
}

.button:hover span,
.task-row:hover .task-action span {
  transform: translate(3px, -3px);
}

.hero-identity {
  position: relative;
  display: grid;
  place-items: center;
  padding: 44px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--navy);
  background: #edf4f4;
}

.hero-identity img {
  width: min(70%, 310px);
  height: auto;
  filter: drop-shadow(0 25px 28px rgba(6, 36, 95, 0.13));
  animation: mark-in 720ms 80ms ease-out both;
}

.hero-identity p {
  position: absolute;
  right: 46px;
  bottom: 18px;
  left: 46px;
  margin: 0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(6, 36, 95, 0.18);
  color: #536276;
  font-size: 0.72rem;
}

.hero-identity p strong {
  color: var(--navy);
  letter-spacing: 0.08em;
}

.task-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 64px 0 56px;
}

.section-intro {
  margin-bottom: 2.4rem;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.section-intro h2 {
  margin: 0;
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.task-list {
  border-top: 1px solid var(--navy);
}

.task-row {
  min-height: 140px;
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: 86px minmax(230px, 0.85fr) minmax(280px, 1.2fr) auto;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 190ms ease, padding 190ms ease;
}

.task-row:not(.install-row):hover,
.task-row:not(.install-row):focus-visible {
  padding-right: 1.15rem;
  padding-left: 1.15rem;
  background: var(--soft);
}

.task-number {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.task-row h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.65vw, 1.42rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.task-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.install-row {
  min-height: 0;
  padding: 1.8rem 0;
  grid-template-columns: 86px minmax(240px, 0.72fr) minmax(0, 1.45fr);
  align-items: start;
}

.install-intro {
  display: grid;
  gap: 0.65rem;
}

.install-github {
  width: fit-content;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration-color: rgba(6, 36, 95, 0.35);
  text-underline-offset: 0.35rem;
}

.install-github:hover {
  text-decoration-color: var(--teal);
}

.install-flow {
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--teal);
  color: var(--navy);
  background: var(--soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  tab-size: 2;
}

.install-flow code {
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  white-space: pre;
}

.task-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  padding: 36px max(24px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(340px, 1.3fr);
  gap: 3rem;
  align-items: start;
  color: #d8e1ef;
  background: var(--navy-deep);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 42px;
  filter: brightness(0) invert(1);
}

.footer-brand div {
  display: grid;
  gap: 0.18rem;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.08rem;
}

.footer-brand span,
.footer-copy p {
  font-size: 0.76rem;
  line-height: 1.8;
}

.footer-brand span {
  letter-spacing: 0.04em;
}

.footer-copy p {
  max-width: 640px;
  margin: 0 0 0.45rem;
}

.footer-copy strong {
  color: #fff;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    min-height: 520px;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  }

  .hero-copy {
    padding-right: 48px;
  }

  .hero h1 {
    white-space: normal;
  }

  .task-row {
    grid-template-columns: 64px minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }

  .install-row {
    grid-template-columns: 64px minmax(220px, 0.7fr) minmax(0, 1.3fr);
  }

  .task-action {
    grid-column: 2 / -1;
  }

  .site-footer {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  }

}

@media (max-width: 760px) {
  .header-inner {
    width: min(calc(100% - 32px), var(--max));
    min-height: 66px;
  }

  .brand {
    width: 154px;
  }

  .brand img {
    width: 154px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    width: 44px;
    height: 44px;
    padding: 10px;
    display: grid;
    align-content: center;
    gap: 5px;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    height: 2px;
    background: var(--navy);
  }

  .mobile-menu nav {
    position: absolute;
    top: 52px;
    right: 0;
    width: min(280px, calc(100vw - 32px));
    padding: 0.65rem;
    display: grid;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 20px 42px rgba(6, 36, 95, 0.15);
  }

  .mobile-menu nav a {
    padding: 0.85rem 0.75rem;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
  }

  .hero-inner {
    min-height: 0;
    display: block;
  }

  .hero-copy {
    padding: 50px 24px 48px;
  }

  .eyebrow {
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 9.6vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-workflow {
    gap: 0.5rem;
  }

  .hero-workflow li {
    font-size: 0.72rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: space-between;
  }

  .hero-identity {
    min-height: 210px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .hero-identity img {
    width: min(48%, 160px);
  }

  .hero-identity p {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .task-section {
    width: min(calc(100% - 32px), var(--max));
    padding: 52px 0 44px;
  }

  .section-intro {
    margin-bottom: 2rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section-kicker {
    margin-bottom: 0.2rem;
  }

  .section-intro h2 {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
  }

  .task-row h3 {
    font-size: 1.22rem;
  }

  .task-row {
    min-height: 0;
    padding: 1.5rem 0;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.75rem 1rem;
  }

  .task-row:not(.install-row):hover,
  .task-row:not(.install-row):focus-visible {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .task-row p,
  .task-action {
    grid-column: 2;
  }

  .install-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .install-intro,
  .install-flow {
    grid-column: 2;
  }

  .install-intro p {
    grid-column: auto;
  }

  .install-flow {
    padding: 0.9rem;
    font-size: 0.72rem;
  }

  .install-flow code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 34px 24px;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
