:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #647083;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --green: #0f9f6e;
  --blue: #1769e0;
  --amber: #e29b12;
  --red: #df4b38;
  --dark: #111827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  margin: 0;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 224, 234, 0.78);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  height: 68px;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

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

.brand img {
  border-radius: 8px;
  height: 36px;
  width: 36px;
}

.site-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.site-nav a {
  color: #4c596d;
  font-size: 14px;
  font-weight: 600;
}

.header-action,
.primary-button,
.secondary-button,
.download-card a,
.contact-box button,
.code-row button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.header-action,
.primary-button {
  background: var(--green);
  color: #fff;
}

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

.hero {
  isolation: isolate;
  min-height: calc(100svh - 88px);
  overflow: hidden;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(120deg, rgba(15, 159, 110, 0.14), transparent 34%),
    linear-gradient(270deg, rgba(23, 105, 224, 0.14), transparent 34%),
    #f7fafc;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-bg {
  background-image: url("./assets/getcid-logo.png");
  background-position: right 8vw center;
  background-repeat: no-repeat;
  background-size: min(44vw, 560px);
  filter: saturate(1.03);
  inset: 0;
  opacity: 0.24;
  position: absolute;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 88px);
  padding: clamp(70px, 11vw, 132px) clamp(20px, 8vw, 112px);
  width: min(780px, 100%);
}

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

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

h1 {
  font-size: clamp(56px, 10vw, 118px);
  line-height: 0.94;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.08;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-copy {
  color: #435066;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
  max-width: 660px;
}

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

.hero-actions a {
  min-height: 50px;
  padding: 0 24px;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.intro-band {
  background: var(--dark);
  color: #fff;
  padding-bottom: 30px;
  padding-top: 30px;
}

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

.metrics div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  min-width: 0;
  padding-left: 20px;
}

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

.metrics strong {
  font-size: 22px;
  margin-bottom: 6px;
}

.metrics span {
  color: #cbd5e1;
  line-height: 1.55;
}

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

.section-heading p:not(.eyebrow),
.service-layout p,
.contact-layout p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.download-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 24px;
}

.download-card p {
  color: var(--muted);
  flex: 1;
  line-height: 1.62;
}

.platform-icon {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 22px;
  width: 46px;
}

.android .platform-icon,
.web .platform-icon {
  background: var(--green);
}

.ios .platform-icon,
.mac .platform-icon {
  background: var(--dark);
}

.windows .platform-icon {
  background: var(--blue);
}

.windows-old .platform-icon {
  background: var(--amber);
}

.download-card a {
  align-self: flex-start;
  background: #eef5ff;
  color: #174ea6;
  min-height: 40px;
}

.download-card.android a,
.download-card.web a {
  background: #e9f8f2;
  color: #08734f;
}

.download-card.ios a,
.download-card.mac a {
  background: #eef0f3;
  color: #111827;
}

.download-card.windows-old a {
  background: #fff4d8;
  color: #8b5d00;
}

.guide-section {
  background: var(--soft);
}

.guide-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.guide-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
}

.guide-panel ol {
  color: #3f4a5c;
  line-height: 1.8;
  margin: 0;
  padding-left: 22px;
}

.code-row {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 12px;
}

.code-row code {
  color: #e5f6ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.code-row button,
.contact-box button {
  background: #fff;
  color: var(--dark);
  min-height: 38px;
}

.service-section {
  background: #f7fbff;
}

.service-layout,
.contact-layout {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.primary-button.dark {
  background: var(--dark);
}

.contact-section {
  background: #fff;
}

.contact-box {
  background: var(--dark);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
  padding: 24px;
}

.contact-box span {
  color: #cbd5e1;
}

.contact-box strong {
  font-size: 28px;
}

.site-footer {
  align-items: center;
  background: #0b1220;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.site-footer a {
  color: #fff;
  font-weight: 700;
}

.toast {
  background: rgba(17, 24, 39, 0.92);
  border-radius: 8px;
  bottom: 24px;
  color: #fff;
  left: 50%;
  opacity: 0;
  padding: 11px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .hero-bg {
    background-position: right -110px bottom 26px;
    background-size: 520px;
  }

  .download-grid,
  .metrics,
  .guide-layout,
  .service-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-layout,
  .contact-layout {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
    height: 64px;
    padding: 0 14px;
  }

  .brand span {
    font-size: 18px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content {
    min-height: 82svh;
    padding: 66px 18px 54px;
  }

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

  .hero-actions a,
  .download-card a,
  .primary-button.dark {
    width: 100%;
  }

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

  .code-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }
}
