:root {
  --bg: #f6f7f3;
  --paper: #ffffff;
  --paper-soft: #f0f4f1;
  --ink: #17191c;
  --muted: #5f6670;
  --line: #d9ded8;
  --teal: #0f7b78;
  --red: #c9493d;
  --gold: #b9842a;
  --blue: #315f9b;
  --purple: #7252a3;
  --green: #5d7f3b;
  --shadow: 0 20px 50px rgba(20, 30, 35, 0.14);
  color-scheme: light;
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(246, 247, 243, 0.98), rgba(246, 247, 243, 1)),
    var(--bg);
  color: var(--ink);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header[data-elevated="true"],
.site-header.nav-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(20, 30, 35, 0.1);
  box-shadow: 0 10px 35px rgba(20, 30, 35, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.72;
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: currentColor;
  font-size: 14px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header[data-elevated="true"] .site-nav a:hover,
.site-header.nav-open .site-nav a:hover {
  background: var(--paper-soft);
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--ink);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
  border-radius: 6px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(760px, 86vh);
  overflow: hidden;
  color: #fff;
  background: #101419;
}

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 11, 15, 0.91) 0%, rgba(10, 14, 18, 0.78) 42%, rgba(12, 18, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 10, 12, 0.56), rgba(7, 10, 12, 0.76));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 44px;
}

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

.hero .eyebrow {
  color: #6fe0d7;
}

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

.hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

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

.contact-section .button.secondary {
  background: transparent;
  border-color: rgba(23, 25, 28, 0.24);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 38px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats div {
  padding: 18px;
  background: rgba(5, 8, 10, 0.42);
}

.hero-stats dt {
  margin-bottom: 6px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.intro-band {
  padding-top: clamp(34px, 5vw, 52px);
  padding-bottom: clamp(34px, 5vw, 52px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
}

.intro-grid {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(34px, 5vw, 52px);
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 30px;
}

.section-head p,
.intro-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.home-chain-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.home-chain-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

.home-chain-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-chain-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.home-chain-copy .button {
  width: fit-content;
}

.home-chain-visual {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  overflow: hidden;
  background: #101419;
  box-shadow: var(--shadow);
}

.home-chain-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.home-chain-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.08) contrast(1.04);
}

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

.solution-card,
.project-card,
.mini-case,
.process-list li {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
}

.solution-card {
  position: relative;
  min-height: 280px;
  padding: 24px;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--teal));
}

.solution-card > span,
.process-list span {
  color: var(--accent, var(--teal));
  font-weight: 900;
  font-size: 12px;
}

.solution-card h3 {
  margin: 24px 0 12px;
  font-size: 21px;
  line-height: 1.25;
}

.solution-card p,
.solution-card li,
.project-card p,
.mini-case p,
.process-list p,
.contact-section p {
  color: var(--muted);
  line-height: 1.72;
}

.solution-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 18px;
}

.accent-teal {
  --accent: var(--teal);
}

.accent-red {
  --accent: var(--red);
}

.accent-gold {
  --accent: var(--gold);
}

.accent-blue {
  --accent: var(--blue);
}

.accent-purple {
  --accent: var(--purple);
}

.accent-ink {
  --accent: var(--ink);
}

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

.case-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 16px;
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 42px);
  background: #16211f;
  color: #fff;
  border-radius: 8px;
}

.case-label,
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 123, 120, 0.12);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.case-copy .case-label {
  background: rgba(111, 224, 215, 0.14);
  color: #6fe0d7;
}

.case-copy h3 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.case-copy p,
.case-copy dd {
  color: rgba(255, 255, 255, 0.72);
}

.case-copy dl {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.case-copy dt,
.dialog-meta dt {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 900;
  color: currentColor;
}

.case-copy dd,
.dialog-meta dd {
  margin: 0;
  line-height: 1.65;
}

.case-visual {
  margin: 0;
  overflow: hidden;
  min-height: 390px;
  border-radius: 8px;
  background: #101419;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

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

.mini-case {
  overflow: hidden;
}

.mini-case figure {
  height: 190px;
  margin: 0;
  background: var(--paper-soft);
}

.mini-case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mini-case div {
  padding: 20px;
}

.mini-case h3 {
  margin: 12px 0 10px;
  font-size: 20px;
}

.project-lab {
  border-top: 1px solid var(--line);
}

.project-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 14px;
  outline: none;
}

.search-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 123, 120, 0.12);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}

.filter-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.portfolio-summary {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr;
  gap: 1px;
  margin-bottom: 16px;
  background: var(--line);
  border: 1px solid var(--line);
}

.portfolio-summary div {
  display: grid;
  gap: 6px;
  background: var(--paper-soft);
  padding: 18px;
}

.portfolio-summary strong {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.2;
}

.portfolio-summary span {
  color: var(--muted);
  font-size: 13px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 20px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 123, 120, 0.38);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.project-card .path {
  color: #7b838c;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.project-card .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 16px;
  padding-top: 14px;
}

.project-card .stack span {
  border: 1px solid rgba(23, 25, 28, 0.12);
  border-radius: 999px;
  padding: 4px 8px;
  color: #3c444d;
  font-size: 12px;
}

.project-card button {
  align-self: flex-start;
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  text-align: center;
}

.process-band {
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  padding: 22px;
}

.process-list h3 {
  margin: 18px 0 10px;
  font-size: 19px;
}

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

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  color: #37404a;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 28px;
  padding: clamp(34px, 5vw, 52px);
  border-radius: 8px;
  background: #e7eee9;
  border: 1px solid #cdd8d0;
}

.contact-section h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.project-dialog {
  width: min(680px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(15, 18, 20, 0.56);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-body {
  padding: clamp(28px, 5vw, 44px);
}

.dialog-body h2 {
  margin-bottom: 14px;
  padding-right: 42px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.14;
}

.dialog-body p {
  color: var(--muted);
  line-height: 1.75;
}

.dialog-meta {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
}

.dialog-meta div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 980px) {
  .solution-grid,
  .case-list,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-feature,
  .section-head,
  .section-grid,
  .home-chain-feature,
  .project-toolbar,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

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

@media (max-width: 920px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 67px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 42px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-inner {
    width: min(100% - 28px, 1120px);
    padding-bottom: 30px;
  }

  .hero-stats,
  .portfolio-summary {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 14px;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 52px 0;
  }

  .solution-grid,
  .case-list,
  .project-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: unset;
  }

  .case-visual {
    min-height: 260px;
  }

  .home-chain-visual,
  .home-chain-visual img {
    min-height: 260px;
  }

  .contact-section {
    width: min(100% - 28px, 1160px);
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    width: min(100% - 28px, 1160px);
  }
}

.intro-copy {
  display: grid;
  gap: 14px;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.site-nav .network-link {
  color: #78e2da;
  font-weight: 800;
}

.site-header[data-elevated="true"] .site-nav .network-link,
.site-header.nav-open .site-nav .network-link {
  color: var(--teal);
}

.site-network {
  padding-top: 38px;
}

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

.network-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(21, 29, 35, 0.15);
  border-radius: 8px;
  padding: 26px;
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.network-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.network-card::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.06), 0 0 0 54px rgba(255, 255, 255, 0.04);
}

.network-ai {
  background: #1859b8;
}

.network-chain {
  background: #163a32;
}

.network-hot {
  background: #9d3e36;
}

.network-index {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 900;
}

.network-card p {
  margin: 2px 0 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.network-card h3 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1;
}

.network-card div > span {
  display: block;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.network-card > strong {
  position: relative;
  z-index: 1;
  font-size: 24px;
}

.promise-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.promise-grid article {
  min-height: 170px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  background: #fff;
}

.promise-grid strong {
  font-size: 19px;
}

.promise-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer nav a {
  color: var(--ink);
  font-weight: 800;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 123, 120, 0.34);
  outline-offset: 3px;
}

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

  .network-card {
    min-height: 220px;
  }

  .promise-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .network-card {
    grid-template-columns: auto 1fr;
  }

  .network-card > strong {
    display: none;
  }

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