:root {
  color-scheme: light;
  --ink: #11201f;
  --muted: #5f6e6b;
  --line: #dbe5df;
  --paper: #f6f8f4;
  --panel: #ffffff;
  --green: #0f6b57;
  --green-dark: #0f2e2b;
  --gold: #d7a738;
  --coral: #cb5b4f;
  --shadow: 0 18px 52px rgba(17, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid rgba(219, 229, 223, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

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

.main-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--green);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.language-picker select {
  height: 36px;
  min-width: 116px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(720px, 78vh);
  padding: clamp(84px, 10vw, 132px) clamp(20px, 6vw, 72px) clamp(54px, 7vw, 86px);
  overflow: hidden;
  background: var(--green-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(15, 46, 43, 0.94) 0%, rgba(15, 46, 43, 0.78) 42%, rgba(15, 46, 43, 0.2) 100%),
    url("/assets/branding/pingancoin-social-card-1200x630.png");
  background-size: cover;
  background-position: center right;
}

.hero-content {
  position: relative;
  width: min(700px, 100%);
  color: #ffffff;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 630px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--gold);
  color: #15110a;
}

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

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: -32px auto 0;
  padding: 0 clamp(18px, 4vw, 28px);
  position: relative;
  z-index: 2;
}

.service-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card:first-child {
  border-radius: 8px 0 0 8px;
}

.service-card:last-child {
  border-radius: 0 8px 8px 0;
}

.service-card span,
.fact span,
.endpoint-box span {
  color: var(--muted);
  font-size: 13px;
}

.service-card strong {
  color: var(--green);
  overflow-wrap: anywhere;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 92px) clamp(18px, 4vw, 28px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.fact {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fact strong {
  font-size: clamp(22px, 3vw, 32px);
}

.wallet-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
  padding-left: clamp(18px, calc((100vw - 1120px) / 2 + 28px), 999px);
  padding-right: clamp(18px, calc((100vw - 1120px) / 2 + 28px), 999px);
}

.wallet-art {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 8px;
  background: #e8f0e9;
  border: 1px solid #d4e0d6;
}

.wallet-art img {
  width: min(210px, 62%);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(17, 32, 31, 0.18));
}

.version {
  color: var(--muted);
  font-weight: 800;
}

.checksum {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.mining-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.endpoint-box {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.endpoint-box strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}

.endpoint-box a {
  color: var(--gold);
  font-weight: 800;
}

.notice {
  margin-bottom: 56px;
  border-radius: 8px;
  background: #fff8ed;
  border: 1px solid #efd7b1;
}

.notice .section-kicker {
  color: var(--coral);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .language-picker {
    margin-left: auto;
  }

  .hero {
    min-height: 700px;
    padding-top: 92px;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(15, 46, 43, 0.94) 0%, rgba(15, 46, 43, 0.82) 58%, rgba(15, 46, 43, 0.42) 100%),
      url("/assets/branding/pingancoin-social-card-1200x630.png");
    background-position: center bottom;
  }

  .service-strip,
  .two-column,
  .wallet-panel,
  .mining-section {
    grid-template-columns: 1fr;
  }

  .service-strip {
    margin-top: 0;
    padding-top: 18px;
    gap: 12px;
  }

  .service-card,
  .service-card:first-child,
  .service-card:last-child {
    border-radius: 8px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 16px;
  }

  .language-picker span {
    display: none;
  }

  .hero-actions .button,
  .download-row .button {
    width: 100%;
  }
}
