:root {
  color-scheme: light;
  --ink: #171819;
  --muted: #62666f;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e4ded4;
  --red: #f04b49;
  --teal: #00a7a7;
  --blue: #2c6fbb;
  --amber: #c48120;
  --shadow: 0 20px 60px rgba(35, 30, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(247, 246, 241, 1) 45%, #ffffff 100%);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 222, 212, 0.75);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover {
  background: rgba(23, 24, 25, 0.06);
  color: var(--ink);
}

main {
  overflow: hidden;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 56px 0 44px;
}

.intro-copy,
.featured-panel,
.work-card,
.pick-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 900;
}

h1 span {
  display: block;
}

.intro-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #3d4045;
  font-size: 18px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 14px;
}

.hero-proof strong {
  margin-right: 6px;
  color: var(--ink);
}

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

.primary-action,
.secondary-action,
.card-link,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-action,
.card-link {
  background: var(--ink);
  color: #fff;
}

.secondary-action,
.copy-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.card-link:hover,
.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 24, 25, 0.12);
}

.disclosure {
  max-width: 660px;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--amber);
  color: #64513d;
  font-size: 14px;
}

.featured-panel {
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-label {
  padding: 14px 16px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  object-position: top center;
}

.featured-content {
  padding: 22px;
}

.featured-content h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.featured-content p {
  margin: 12px 0 18px;
  color: var(--muted);
}

.featured-content a {
  color: var(--red);
  font-weight: 900;
}

.profile-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 0;
}

.profile-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.profile-card-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.profile-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 22px;
}

.profile-metrics div {
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.profile-metrics strong,
.profile-metrics span {
  display: block;
}

.profile-metrics strong {
  font-size: 19px;
  line-height: 1.15;
}

.profile-metrics span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.wechat-qr {
  display: block;
  width: calc(100% - 44px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero-qr {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 42%;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.stats-band div {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  font-size: 26px;
  line-height: 1.1;
}

.stats-band span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.toolbox {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 70px;
}

.portfolio-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.work-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(26, 28, 31, 0.08);
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 20px;
}

.portfolio-content h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.16;
}

.portfolio-content p {
  margin: 13px 0 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(26, 28, 31, 0.06);
}

.work-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.work-card p {
  margin: 13px 0 0;
  color: var(--muted);
}

.consult-card {
  background: #f4fbfa;
  border-color: rgba(0, 167, 167, 0.28);
}

.lighthouse-card {
  background: #f7f8ff;
  border-color: rgba(44, 111, 187, 0.22);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

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

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.pick-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(26, 28, 31, 0.06);
}

.pick-card[hidden] {
  display: none;
}

.pick-card.priority {
  grid-column: span 2;
  background: #fff7f4;
  border-color: rgba(240, 75, 73, 0.32);
}

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

.price-strip span {
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(240, 75, 73, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.price-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}

.pick-card.caution {
  background: #fbfaf7;
}

.pick-card.web3-card {
  background: #fff9f0;
  border-color: rgba(196, 129, 32, 0.3);
}

.pick-card.contact-card {
  background: #f4fbfa;
  border-color: rgba(0, 167, 167, 0.28);
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 18px;
}

.tag,
.paid-label,
.coupon {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  background: rgba(0, 167, 167, 0.12);
  color: #007f7f;
}

.paid-label {
  background: rgba(196, 129, 32, 0.14);
  color: #81500f;
}

.coupon {
  background: rgba(44, 111, 187, 0.12);
  color: var(--blue);
}

.pick-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.pick-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.inline-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pick-card ul {
  margin: 14px 0 0;
  padding-left: 19px;
  color: #43464c;
}

.pick-card li + li {
  margin-top: 6px;
}

.benefit-list strong {
  color: var(--ink);
}

.card-link,
.copy-button {
  width: fit-content;
  margin-top: auto;
}

.exchange-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.exchange-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 129, 32, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.exchange-list a:hover {
  border-color: rgba(196, 129, 32, 0.62);
  box-shadow: 0 10px 24px rgba(196, 129, 32, 0.12);
}

.exchange-list strong,
.exchange-list span {
  display: block;
}

.exchange-list strong {
  font-size: 15px;
}

.exchange-list span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  margin: 0 0 16px;
  border: 1px solid rgba(23, 24, 25, 0.1);
}

.contact-qr {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 16px;
  background: #fff;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 900px) {
  .intro-section {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-top: 38px;
  }

  .featured-panel {
    min-height: 0;
  }

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

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

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

  .work-card {
    min-height: 280px;
  }

  .pick-card.priority {
    grid-column: span 2;
  }
}

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

  .top-nav a {
    padding: 8px 9px;
  }

  .intro-section,
  .stats-band,
  .portfolio-section,
  .work-section,
  .toolbox,
  .site-footer {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: 36px;
    line-height: 1.08;
    max-width: 100%;
  }

  .intro-copy,
  .intro-text {
    width: 100%;
    max-width: 100%;
  }

  .intro-text {
    font-size: 16px;
  }

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

  .primary-action,
  .secondary-action,
  .card-link {
    width: 100%;
  }

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

  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .stats-band div {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }

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

  .pick-card,
  .pick-card.priority {
    grid-column: auto;
  }

  .pick-card {
    min-height: 290px;
  }

  .portfolio-content {
    min-height: 280px;
  }

  .price-strip {
    grid-template-columns: 1fr;
  }
}
