:root {
  color-scheme: light;
  font-family: Inter, "PingFang TC", "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24343c;
  background: #f4fbff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4fbff;
}

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

.symbol-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.landing-shell {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 20px auto 30px;
  overflow: hidden;
  border: 1px solid #cde8f4;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(56, 145, 191, 0.18);
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  padding: 30px 64px 0;
  background:
    radial-gradient(circle at 85% 40%, rgba(151, 200, 244, 0.32), transparent 40%),
    radial-gradient(circle at 12% 52%, rgba(170, 210, 246, 0.22), transparent 38%),
    radial-gradient(circle at 50% 82%, rgba(178, 214, 246, 0.3), transparent 45%),
    linear-gradient(180deg, #eef6fc 0%, #f6fbff 60%, #fff 100%);
}

.site-nav {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
}

.brand,
.stack-brand {
  display: flex;
  align-items: center;
  color: #26292e;
  font-size: 23px;
  font-style: italic;
  letter-spacing: -0.04em;
}

.brand strong,
.stack-brand strong {
  font-weight: 850;
}

.brand em,
.stack-brand em {
  font-weight: 550;
  font-style: italic;
}

.brand-mark {
  width: auto;
  height: 1.35em;
  margin-right: 0.35em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: 40px;
  color: #42525b;
  font-size: 13px;
}

.nav-links a {
  text-underline-offset: 0.3em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #2699dc;
  text-decoration: underline;
}

.button {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #42a3df;
  font-weight: 800;
  letter-spacing: 0.18em;
  box-shadow: 0 9px 28px rgba(65, 159, 211, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(65, 159, 211, 0.3);
}

.button:focus-visible,
.brand:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid rgba(66, 163, 223, 0.4);
  outline-offset: 4px;
}

.button-nav {
  margin-left: auto;
  padding: 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  margin: 66px auto 0;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: #2e3c44;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.hero-copy p {
  margin: 14px 0 0;
  color: #8a9aa4;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.button-hero {
  margin-top: 26px;
  padding: 14px 34px;
  font-size: 16px;
  letter-spacing: 0.22em;
}

.hero-visual {
  position: absolute;
  bottom: 70px;
  left: 50%;
  display: block;
  width: 940px;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 260px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .68) 28%,
    rgba(255, 255, 255, .92) 55%,
    #fff 85%
  );
}

.stat {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
}

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

.stat strong {
  color: #3e97da;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.stat span {
  margin-top: 3px;
  color: #8a9dab;
  font-size: 12px;
}

.pin {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
}

.stat-left {
  left: 96px;
  width: 212px;
  justify-content: flex-end;
  text-align: right;
}

.stat-right {
  right: 96px;
  width: 212px;
  justify-content: flex-start;
  text-align: left;
}

.stat-top {
  top: 318px;
}

.stat-bottom {
  top: 394px;
}

.about {
  padding: 74px 64px 40px;
  background: linear-gradient(180deg, #fff 0%, #eef9ff 100%);
  scroll-margin-top: 24px;
}

.section-title {
  margin: 0 0 52px;
  color: #2c3b44;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.section-title span {
  color: #48aee4;
}

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

.feature-card {
  min-height: 250px;
  padding: 30px 26px 32px;
  border: 1px solid rgba(230, 245, 252, 0.9);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(96, 158, 196, 0.1);
}

.feature-icon {
  display: block;
  width: auto;
  height: 44px;
  margin-bottom: 20px;
  fill: #a6bfd2;
}

.feature-card h3 {
  margin: 0 0 12px;
  color: #2e3d46;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.feature-card p {
  margin: 0;
  color: #6b7c86;
  font-size: 12.5px;
  line-height: 1.85;
}

.flow-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 48px;
  margin: 30px 64px 60px;
  padding: 50px 56px;
  border-radius: 30px;
  background: linear-gradient(100deg, #bde6f3 0%, #aaeed6 100%);
  box-shadow: 0 18px 46px rgba(62, 186, 201, 0.18);
  scroll-margin-top: 24px;
}

.flow-glyph {
  display: block;
  width: auto;
  height: 56px;
  margin-bottom: 20px;
  fill: #1c2a33;
}

.flow-copy h2 {
  margin: 0 0 16px;
  color: #1c3038;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.flow-copy p {
  margin: 0 0 10px;
  color: #35525c;
  font-size: 13.5px;
  line-height: 1.95;
}

.button-flow {
  margin-top: 16px;
  padding: 12px 30px;
  font-size: 14px;
  letter-spacing: 0.22em;
}

.flow-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stack-node {
  display: flex;
  width: 212px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 94, 120, 0.16);
}

.stack-brand {
  font-size: 20px;
}

.stack-ai {
  background: linear-gradient(155deg, #cfe7ff 0%, #5f9df5 85%);
  color: #10305f;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px rgba(37, 108, 190, 0.35);
}

.stack-bitfinex {
  color: #232f36;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.leaf {
  width: 14px;
  height: 9px;
  margin-left: 1px;
  border-radius: 100% 0 100% 0;
  background: #2fbf8f;
  transform: translateY(-5px) rotate(-10deg);
}

.stack-arrow {
  color: #12424b;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 900px) {
  .landing-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .hero {
    min-height: 640px;
    padding: 22px 22px 0;
  }

  .nav-links {
    display: none;
  }

  .button-nav {
    padding: 9px 18px;
    font-size: 11px;
  }

  .hero-copy {
    margin-top: 66px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-visual {
    bottom: 76px;
    width: 760px;
  }

  .stat-left {
    left: 6px;
    width: 165px;
  }

  .stat-right {
    right: 6px;
    width: 165px;
  }

  .stat strong {
    font-size: 16px;
  }

  .stat span {
    font-size: 10px;
  }

  .pin {
    width: 26px;
    height: 26px;
  }

  .about {
    padding: 55px 24px 25px;
  }

  .section-title {
    margin-bottom: 35px;
    font-size: 32px;
  }

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

  .feature-card {
    min-height: 0;
  }

  .flow-panel {
    grid-template-columns: 1fr;
    margin: 18px 24px 50px;
    padding: 36px 28px;
  }

  .flow-stack {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .brand,
  .stack-brand {
    font-size: 19px;
  }

  .hero-copy h1 {
    max-width: 310px;
    margin-inline: auto;
    font-size: 32px;
  }

  .button-hero {
    padding: 12px 28px;
    font-size: 14px;
  }

  .stat {
    gap: 6px;
  }

  .stat-left,
  .stat-right {
    width: 150px;
  }

  .feature-card {
    padding: 28px 24px 30px;
  }

  .flow-copy h2 {
    font-size: 25px;
  }

  .flow-panel {
    margin-inline: 16px;
    padding-inline: 24px;
  }
}

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

  .button {
    transition: none;
  }
}
