:root {
  --pd-bg: #F7F9FD;
  --pd-ink: #0A1633;
  --pd-ink-2: #52617A;
  --pd-ink-3: #7B889E;
  --pd-blue: #3B45FF;
  --pd-blue-2: #315EFF;
  --pd-purple: #6047FF;
  --pd-blue-pale: #EEF1FF;
  --pd-line: #E3E9F3;
  --pd-line-2: #EDF1F7;
  --pd-card: #FFFFFF;
  --pd-danger: #EF334E;
  --pd-danger-ink: #D42A43;
  --pd-danger-pale: #FFF0F2;
  --pd-danger-line: #FFD3DA;
  --pd-success: #19A66A;
  --pd-success-ink: #10804F;
  --pd-success-pale: #EAFBF4;
  --pd-warn: #F4A62A;
  --pd-warn-ink: #D97A06;
  --pd-warn-pale: #FFF5E6;
  --pd-radius: 12px;
  --pd-radius-sm: 8px;
  --pd-shadow: 0 1px 2px rgba(15, 30, 80, .04), 0 6px 20px rgba(15, 30, 80, .04);
  --pd-shadow-hover: 0 2px 4px rgba(15, 30, 80, .05), 0 12px 28px rgba(15, 30, 80, .08);
  --pd-grad: linear-gradient(90deg, #5A48FF 0%, #3B45FF 55%, #3452FF 100%);
  --pd-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pd-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pd-max: 1320px;
}

* { box-sizing: border-box; }

body.pd {
  margin: 0;
  font-family: var(--pd-font);
  color: var(--pd-ink);
  background:
    radial-gradient(900px 480px at 0% 0%, #EEF2FF 0%, rgba(238, 242, 255, 0) 70%),
    radial-gradient(700px 420px at 100% 10%, #F1F3FF 0%, rgba(241, 243, 255, 0) 70%),
    var(--pd-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.pd a { color: inherit; text-decoration: none; }
.pd .icon { flex: none; display: inline-block; vertical-align: middle; }
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pd-wrap { max-width: var(--pd-max); margin: 0 auto; padding: 0 32px; }
.pd [id] { scroll-margin-top: 20px; }

.pd-card {
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow);
}

.pd .pd-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--pd-blue); font-weight: 600; font-size: 13.5px;
}
.pd .pd-link:hover { color: var(--pd-purple); }
.pd-link .icon { transition: transform .15s ease; }
.pd-link:hover .icon { transform: translateX(2px); }

.pd-flash {
  margin: 16px 0 0; padding: 11px 16px; border-radius: var(--pd-radius-sm);
  background: var(--pd-success-pale); border: 1px solid #BDEBD5; color: var(--pd-success-ink);
  font-size: 14px; font-weight: 500;
}
.pd-flash-error { background: var(--pd-danger-pale); border-color: var(--pd-danger-line); color: var(--pd-danger-ink); }

/* Buttons */
.pd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--pd-radius-sm);
  font: 600 14px var(--pd-font); white-space: nowrap; cursor: pointer; border: 0;
  transition: box-shadow .15s ease, filter .15s ease, transform .05s ease, border-color .15s ease;
}
.pd-btn-primary {
  color: #fff !important; background: var(--pd-grad);
  box-shadow: 0 1px 2px rgba(59, 69, 255, .25), 0 6px 16px rgba(59, 69, 255, .22);
}
.pd-btn-primary:hover { filter: brightness(1.06); box-shadow: 0 2px 4px rgba(59, 69, 255, .3), 0 10px 22px rgba(59, 69, 255, .28); }
.pd-btn-primary:active { transform: translateY(1px); }
.pd-btn-secondary { background: #fff; border: 1px solid #D5DCF0; color: var(--pd-blue) !important; }
.pd-btn-secondary:hover { border-color: var(--pd-blue); }
.pd-btn-lg { height: 48px; padding: 0 22px; }

/* Hero */
.pd-hero {
  display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: 44px;
  align-items: start; padding-top: 34px;
}
.pd-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; background: var(--pd-blue-pale); border: 1px solid #DCE2FF;
  color: var(--pd-blue); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.pd-hero h1 {
  margin: 20px 0 18px; font-size: 58px; line-height: 1.03; font-weight: 800; letter-spacing: -0.035em; color: var(--pd-ink);
}
.pd-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #4546FF 0%, #3563FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pd-hero-body { margin: 0; max-width: 620px; font-size: 17.5px; line-height: 1.5; color: var(--pd-ink-2); }

.pd-search { display: flex; gap: 12px; margin-top: 28px; max-width: 620px; }
.pd-search-box { position: relative; flex: 1; min-width: 0; }
.pd-search-box .pd-suggest {
  position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 6px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.pd-search-field {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid #D9E0EC; border-radius: var(--pd-radius-sm);
  color: var(--pd-ink-3); transition: border-color .15s ease, box-shadow .15s ease;
}
.pd-search-field:focus-within { border-color: var(--pd-blue); box-shadow: 0 0 0 4px rgba(59, 69, 255, .12); }
.pd-search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 14.5px var(--pd-font); color: var(--pd-ink);
}
.pd-search-field input::placeholder { color: #8390A6; }

.pd-popular { font-variant-ligatures: no-contextual; font-feature-settings: "calt" 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--pd-ink-2); }
.pd-popular > span { margin-right: 4px; }
.pd-popular a {
  padding: 5px 12px; border-radius: 999px; background: #F1F4F9; border: 1px solid #E7EBF2;
  color: var(--pd-ink-2); font-size: 12px; transition: border-color .15s ease, color .15s ease;
}
.pd-popular a:hover { border-color: #C9D2FF; color: var(--pd-blue); }

/* Live change card */
.pd-live { padding: 22px 24px 18px; }
.pd-live-top { display: flex; justify-content: space-between; gap: 16px; }
.pd-live-flag { margin: 0 0 8px; color: var(--pd-danger); font-size: 12.5px; font-weight: 600; }
.pd-live-repo { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.pd-live-repo a:hover { color: var(--pd-blue); }
.pd-live-date { margin: 6px 0 0; font-size: 12.5px; color: var(--pd-ink-3); }
.pd-dot-sep { margin: 0 8px; }
.pd-live-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pd-live-ext { color: var(--pd-blue); margin-top: -4px; }
.pd-hf {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--pd-line); border-radius: 10px; background: #fff; box-shadow: var(--pd-shadow);
}
.pd-hf:hover { border-color: #C9D2FF; }
.pd-hf-emoji { font-size: 22px; line-height: 1; }
.pd-hf strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; }
.pd-hf small { display: block; font-size: 10.5px; color: var(--pd-ink-3); }

.pd-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pd-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; border: 1px solid transparent;
}

.pd-diff { margin-top: 18px; border: 1px solid var(--pd-line); border-radius: 10px; overflow: hidden; }
.pd-diff-file { padding: 10px 14px; font-size: 12px; font-weight: 500; color: var(--pd-ink); border-bottom: 1px solid var(--pd-line-2); }
.pd-diff-file span { color: var(--pd-ink-3); }
.pd-diff-body { padding: 8px 10px 10px; }
.pd-diff-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; padding: 6px 10px; }
.pd-diff-row + .pd-diff-row { margin-top: 1px; }
.pd-diff-row code {
  font-family: var(--pd-mono); font-size: 12.5px; white-space: pre; overflow: hidden; text-overflow: ellipsis;
}
.pd-diff-sign { font-family: var(--pd-mono); font-size: 12.5px; font-weight: 500; }
.pd-diff-row.del { background: #FFEFF1; color: var(--pd-danger-ink); }
.pd-diff-row.add { background: #E9F9F1; color: var(--pd-success-ink); }
.pd-diff-row.del:first-child { border-radius: 6px 6px 0 0; }
.pd-diff-row.more { color: var(--pd-ink-3); }
.pd-live-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12.5px; }
.pd-counts { display: flex; gap: 14px; }
.pd-counts .add { color: var(--pd-success-ink); }
.pd-counts .del { color: var(--pd-danger); }

/* Tones */
.pd-tone-danger { background: var(--pd-danger-pale); color: var(--pd-danger); border-color: var(--pd-danger-line) !important; }
.pd-tone-warn { background: var(--pd-warn-pale); color: var(--pd-warn-ink); border-color: #FFE1B3 !important; }
.pd-tone-neutral { background: #F1F4F9; color: var(--pd-ink-2); border-color: var(--pd-line) !important; }
.pd-tone-blue { background: var(--pd-blue-pale); color: var(--pd-blue); }
.pd-tone-red { background: var(--pd-danger-pale); color: var(--pd-danger); }
.pd-tone-orange { background: var(--pd-warn-pale); color: #F08A24; }

/* Metrics */
.pd-metrics { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 0; }
.pd-metric { display: flex; align-items: center; gap: 18px; padding: 2px 32px; }
.pd-metric + .pd-metric { border-left: 1px solid var(--pd-line); }
.pd-metric-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pd-metric strong { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.pd-metric-label { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; }
.pd-metric small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--pd-ink-3); }

/* Benefits */
.pd-benefits { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pd-benefit {
  display: flex; align-items: center; gap: 16px; min-height: 108px; padding: 20px 22px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pd-benefit:hover { border-color: #CBD3FF; box-shadow: var(--pd-shadow-hover); }
.pd-benefit-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; flex: none; align-self: flex-start; }
.pd-benefit-text { flex: 1; }
.pd-benefit-text strong { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.pd-benefit-text span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--pd-ink-2); }
.pd-chevron { color: var(--pd-ink-3); }
.pd-benefit:hover .pd-chevron { color: var(--pd-blue); }

/* Recent changes */
.pd-recent { margin-top: 34px; }
.pd-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pd-section-head h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.pd-recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pd-change { padding: 20px 22px 18px; display: flex; flex-direction: column; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.pd-change:hover { border-color: #CBD3FF; box-shadow: var(--pd-shadow-hover); }
.pd-change-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pd-change-id { min-width: 0; }
.pd-change-id h3 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pd-change-id h3 a:hover { color: var(--pd-blue); }
.pd-ext { color: var(--pd-blue); margin-left: 2px; vertical-align: -2px !important; }
.pd-change-date { margin: 4px 0 0; font-size: 12px; color: var(--pd-ink-3); }
.pd-change-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 55%; }
.pd-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; border: 1px solid transparent; white-space: nowrap;
}
.pd-licence { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pd-licence span { font-family: var(--pd-mono); font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 6px; border: 1px solid; }
.pd-licence-from { background: #F3F6FB; border-color: var(--pd-line) !important; color: var(--pd-ink); }
.pd-licence-to { background: var(--pd-danger-pale); border-color: var(--pd-danger-line) !important; color: var(--pd-danger); }
.pd-licence-arrow { color: var(--pd-ink-3); }
.pd-change-title {
  display: inline-block; align-self: flex-start; margin: 14px 0 0; padding: 5px 10px;
  font-size: 13px; font-weight: 700; border: 1px solid var(--pd-line); border-radius: 6px; background: #FAFBFD;
}
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pd-chips span { padding: 4px 9px; border-radius: 5px; background: #F3F6FB; color: var(--pd-ink-2); font-size: 11.5px; }
.pd-change-body { margin: 12px 0 10px; font-size: 13.5px; color: var(--pd-ink-2); }
.pd .pd-change .pd-link { margin-top: auto; font-size: 13px; align-self: flex-start; }
.pd-empty { padding: 22px; color: var(--pd-ink-2); margin: 0; }

/* CTA */
.pd-cta {
  margin: 20px 0 8px; padding: 30px 40px; border-radius: 14px; border: 1px solid #E1E6FA;
  background: linear-gradient(90deg, #F2F5FF 0%, #F4F3FF 55%, #EEF2FF 100%);
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .95fr) minmax(0, .85fr); gap: 32px; align-items: center;
  overflow: hidden;
}
.pd-cta-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pd-blue); }
.pd-cta h2 { margin: 6px 0 6px; font-size: 25px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.pd-cta p { margin: 0; font-size: 15px; color: var(--pd-ink-2); }
.pd-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pd-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-checklist li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--pd-ink); }
.pd-checklist .icon { color: var(--pd-blue); }

.pd-cta-visual { position: relative; height: 170px; display: grid; place-items: center; }
.pd-cta-visual img { position: relative; z-index: 2; width: 120px; height: auto; filter: drop-shadow(0 16px 24px rgba(59, 69, 255, .28)); }
.pd-platform {
  position: absolute; left: 50%; bottom: 8px; width: 220px; height: 60px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(99, 102, 255, .35), rgba(99, 102, 255, .12) 55%, rgba(99, 102, 255, 0) 100%);
}
.pd-platform::after {
  content: ""; position: absolute; inset: 10px 30px; border-radius: 50%; border: 1px solid rgba(59, 69, 255, .25);
}
.pd-tile {
  position: absolute; z-index: 3; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: #fff; border: 1px solid #E1E6F5; color: var(--pd-blue); box-shadow: 0 6px 14px rgba(20, 30, 90, .08);
}
.pd-tile.t1 { left: 8%; top: 22%; }
.pd-tile.t2 { right: 6%; top: 8%; }
.pd-tile.t3 { left: 16%; bottom: 12%; }
.pd-tile.t4 { right: 10%; bottom: 26%; }

.pd-footer { display: flex; justify-content: space-between; padding-top: 28px; padding-bottom: 36px; font-size: 13px; color: var(--pd-ink-3); }
.pd-footer nav { display: flex; gap: 20px; }
.pd-footer a:hover { color: var(--pd-blue); }

/* Responsive */
@media (max-width: 1200px) {
  .pd-hero h1 { font-size: 50px; }
  .pd-metric { padding: 2px 24px; }
}

@media (max-width: 1040px) {
  .pd-hero { grid-template-columns: 1fr; gap: 28px; }
  .pd-hero-copy { max-width: 720px; }
  .pd-benefits, .pd-recent-grid { grid-template-columns: 1fr 1fr; }
  .pd-cta { grid-template-columns: 1fr 1fr; }
  .pd-cta-visual { display: none; }
}

@media (max-width: 760px) {
  .pd-wrap { padding: 0 16px; }
  .pd-hero { padding-top: 24px; }
  .pd-hero h1 { font-size: 34px; }
  .pd-hero-body { font-size: 16px; }
  .pd-search { flex-direction: column; }
  .pd-search-box { flex: none; }
  .pd-search .pd-btn { width: 100%; }
  .pd-live { padding: 18px; }
  .pd-live-top { flex-direction: column; }
  .pd-live-side { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .pd-cta h2 { font-size: 24px; }
  .pd-metrics { grid-template-columns: 1fr; padding: 6px 0; }
  .pd-metric { padding: 16px 20px; }
  .pd-metric + .pd-metric { border-left: 0; border-top: 1px solid var(--pd-line); }
  .pd-benefits, .pd-recent-grid { grid-template-columns: 1fr; }
  .pd-benefit-text span br { display: none; }
  .pd-cta { grid-template-columns: 1fr; padding: 24px 20px; }
  .pd-footer { flex-direction: column; gap: 10px; }
}
