:root {
  color: #182230;
  background: #f4f6fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(93, 112, 226, 0.12), transparent 31%),
    radial-gradient(circle at 93% 13%, rgba(69, 177, 153, 0.11), transparent 27%),
    #f4f6fa;
}

.preview-hub {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 36px;
}

.hub-header {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  height: 28px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #dce1f8;
  border-radius: 14px;
  color: #5363c5;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hub-header > p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

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

.preview-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(218, 223, 232, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(31, 42, 68, 0.08);
}

.preview-card::before {
  position: absolute;
  top: -56px;
  right: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  opacity: 0.16;
}

.review-card::before {
  background: #8167db;
}

.workbench-card::before {
  background: #4d6edb;
}

.quote-card::before {
  background: #39a98a;
}

.api-flow-card::before {
  background: #7758c8;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.branch-badge,
.port-label {
  font-size: 11px;
  line-height: 24px;
  white-space: nowrap;
}

.branch-badge {
  max-width: 72%;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 6px;
  color: #4e5969;
  background: #f1f3f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
}

.port-label {
  color: #98a2b3;
}

h2 {
  position: relative;
  z-index: 1;
  margin: 34px 0 10px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
}

.preview-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.primary-link,
.secondary-link {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary-link {
  margin-top: auto;
  color: #fff;
  background: #4358ca;
  box-shadow: 0 8px 18px rgba(67, 88, 202, 0.2);
}

.quote-card .primary-link {
  background: #278e75;
  box-shadow: 0 8px 18px rgba(39, 142, 117, 0.2);
}

.api-flow-card .primary-link {
  background: #6547b8;
  box-shadow: 0 8px 18px rgba(101, 71, 184, 0.2);
}

.secondary-link {
  color: #3e4b5d;
  background: #edf0f5;
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.link-group {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.link-group .primary-link {
  margin-top: 0;
}

footer {
  margin-top: 28px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

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

  .preview-card {
    min-height: 250px;
  }
}

@media (max-width: 520px) {
  .preview-hub {
    width: min(100% - 24px, 1120px);
    padding-top: 42px;
  }

  .preview-card {
    padding: 20px;
  }
}
