:root {
  color-scheme: light;
  --ink: #142823;
  --ink-soft: #4c625b;
  --ink-muted: #6d7f79;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --surface-green: #edf6f2;
  --line: #dbe5e0;
  --brand: #176b52;
  --brand-dark: #0e533e;
  --accent: #d5a84b;
  --shadow: 0 20px 60px rgba(20, 60, 49, 0.09);
  --radius: 16px;
  --content-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.container {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand-dark);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(219, 229, 224, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: var(--brand);
}

.brand-mark svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.brand-mark circle {
  fill: currentColor;
  stroke: none;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-list a:hover {
  color: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 83% 26%, rgba(62, 151, 120, 0.14), transparent 28%),
    linear-gradient(145deg, #fbfcfb 0%, var(--surface-soft) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 107, 82, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 82, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to right, transparent, #000 60%, #000);
}

.hero-inner {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 80px;
  padding-block: 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: var(--brand);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero-description {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

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

.button,
.project-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease,
    box-shadow 180ms ease, color 180ms ease;
}

.button {
  padding: 12px 22px;
}

.button-primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 25px rgba(23, 107, 82, 0.2);
}

.button-primary:hover,
.project-button:hover {
  background: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(14, 83, 62, 0.24);
  transform: translateY(-2px);
}

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

.button-secondary:hover {
  border-color: #b5c9c0;
  background: #ffffff;
  transform: translateY(-2px);
}

.nature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: 14px;
  list-style: none;
}

.nature-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nature-list li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.hero-visual {
  position: relative;
}

.visual-window {
  overflow: hidden;
  border: 1px solid rgba(182, 204, 195, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.window-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 245, 0.9);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c6d2cd;
}

.window-bar span:first-child {
  background: var(--accent);
}

.window-content {
  position: relative;
  height: 320px;
}

.visual-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0d8;
  color: var(--brand-dark);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 60, 49, 0.11);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.visual-node-main {
  top: 52px;
  left: calc(50% - 41px);
  width: 82px;
  height: 82px;
  border-radius: 24px;
  color: #ffffff;
  background: var(--brand);
}

.visual-node-main svg {
  width: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.visual-node-main circle {
  fill: currentColor;
  stroke: none;
}

.visual-node-ota,
.visual-node-lab {
  bottom: 48px;
  width: 90px;
  height: 64px;
  border-radius: 16px;
}

.visual-node-ota {
  left: 17%;
}

.visual-node-lab {
  right: 17%;
}

.connector {
  position: absolute;
  z-index: 1;
  top: 133px;
  width: 29%;
  height: 86px;
  border-bottom: 1.5px solid #8ab3a4;
}

.connector-left {
  left: 27%;
  border-left: 1.5px solid #8ab3a4;
  border-bottom-left-radius: 14px;
}

.connector-right {
  right: 27%;
  border-right: 1.5px solid #8ab3a4;
  border-bottom-right-radius: 14px;
}

.section {
  padding-block: 96px;
}

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

.section-heading h2,
.info-panel h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.projects-section {
  background: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(24, 70, 57, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: #bfd4ca;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-icon {
  width: 52px;
  height: 52px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 14px;
  color: var(--brand);
  background: var(--surface-green);
}

.project-icon-alt {
  color: #866019;
  background: #fbf4e3;
}

.project-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.access-badge {
  padding: 5px 10px;
  border: 1px solid #d6e4de;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #f8faf9;
  font-size: 12px;
  font-weight: 650;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.3;
}

.project-card p {
  margin: 0;
  color: var(--ink-soft);
}

.project-button {
  width: fit-content;
  gap: 10px;
  margin-top: auto;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--brand);
}

.project-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.project-button:hover svg {
  transform: translateX(3px);
}

.usage-section {
  padding-block: 72px;
  background: var(--surface-soft);
}

.info-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  padding: 38px 42px;
  border: 1px solid #d7e5df;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.info-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--surface-green);
}

.info-icon svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.info-panel h2 {
  font-size: 30px;
}

.info-panel p:last-child {
  max-width: 880px;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.about-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  background: #183c32;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 80px;
}

.about-section .section-kicker {
  color: #8ed1b8;
}

.about-grid > p {
  margin: 0;
  color: #d3e2dc;
  font-size: 18px;
}

.site-footer {
  padding-block: 32px;
  color: #c9d8d2;
  background: #102e26;
  font-size: 15px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin: 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  text-align: right;
}

.footer-meta a {
  color: #e3ece8;
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.footer-meta a:hover {
  color: #ffffff;
}

a:focus-visible {
  border-radius: 7px;
  outline: 3px solid #d69e2e;
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 72px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(100%, 480px);
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  html {
    scroll-padding-top: 118px;
  }

  .header-inner {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-block: 10px;
  }

  .nav-list {
    gap: 4px 20px;
  }

  .nav-list a {
    min-height: 34px;
  }

  .hero-inner {
    gap: 42px;
    padding-block: 56px;
  }

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

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding-inline: 15px;
  }

  .window-content {
    height: 250px;
  }

  .visual-node-main {
    top: 36px;
  }

  .visual-node-ota,
  .visual-node-lab {
    bottom: 34px;
    width: 76px;
  }

  .visual-node-ota {
    left: 11%;
  }

  .visual-node-lab {
    right: 11%;
  }

  .connector {
    top: 117px;
    height: 59px;
  }

  .connector-left {
    left: 24%;
  }

  .connector-right {
    right: 24%;
  }

  .section {
    padding-block: 68px;
  }

  .project-grid {
    margin-top: 30px;
  }

  .project-card {
    gap: 24px;
    padding: 24px;
  }

  .project-button {
    width: 100%;
  }

  .usage-section {
    padding-block: 48px;
  }

  .info-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }

  .about-grid > p {
    font-size: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
