/* ============================================================
   PUYSY — landing page skin on the DeepSeek Harness design system
   Colors / radii / fonts come from the ds-* tokens in css/*.css
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html,
body { overflow-x: clip; }

body {
  margin: 0;
  background: #0a0a0a;
  color: #f9fafb;
  font-family: var(--ds-font-body, "DM Sans", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
kbd { font: inherit; }

::selection { background: rgba(103, 153, 254, .3); color: #fff; }

/* ---------------- header ---------------- */
.ps-header-wrap { width: min(100% - 64px, 1280px); padding-top: 14px; }

.ps-header {
  padding: 6px 8px 6px 14px;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.ps-header.is-scrolled {
  background: rgba(22, 22, 24, .72);
  border-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.ps-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f9fafb;
}

.ps-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 26px;
}
.ps-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, .56);
  transition: color .2s ease;
}
.ps-nav a:hover { color: #fff; }

.ps-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.ps-nav-link {
  font-size: 14px;
  color: rgba(255, 255, 255, .68);
  transition: color .2s ease;
}
.ps-nav-link:hover { color: #fff; }

.ps-cta-sm { --ds-btn-primary-bg: #fff; --ds-btn-primary-text: #0a0a0a; }

/* ---------------- hero ---------------- */
.ps-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.ps-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 89% 46%, #777f89 0%, #204a7e 35%, #000 75%);
  -webkit-mask-image: linear-gradient(#000000fc 0%, #000000e8 8.98%, transparent 100%);
  mask-image: linear-gradient(#000000fc 0%, #000000e8 8.98%, transparent 100%);
  pointer-events: none;
}

.ps-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 160px;
  padding-bottom: 80px;
}

.ps-hero-inner > .ps-eyebrow,
.ps-hero-inner > .ps-hero-title,
.ps-hero-inner > .ps-hero-desc {
  max-width: 800px;
  text-align: center;
}

.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ds-font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.ps-sparkle {
  width: 12px;
  height: 12px;
  flex: none;
  transform: translateY(-1.5px);
}

.ps-hero-title {
  margin-top: 16px;
  font-family: var(--ds-font-body, "DM Sans", system-ui, sans-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}

.ps-hero-desc {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, .56);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.ps-hero-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ps-cta {
  --ds-btn-primary-bg: #fff;
  --ds-btn-primary-text: #0a0a0a;
}

/* ---------------- preview window ---------------- */
.ps-window {
  width: 100%;
  margin: 56px auto 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: #131314;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 40px 120px -40px rgba(0, 0, 0, 1),
    0 0 0 1px rgba(0, 0, 0, .5);
  overflow: hidden;
  text-align: left;
}

.ps-win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: #161617;
}
.ps-win-dots { display: flex; gap: 6px; }
.ps-win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.ps-win-title { font-size: 12px; color: rgba(255, 255, 255, .45); }
.ps-win-right { margin-left: auto; }
.ps-win-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
}

.ps-win-body {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 520px;
}

.ps-win-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background: #101011;
}

.ps-side-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.ps-side-group { display: flex; flex-direction: column; gap: 2px; }
.ps-side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
  transition: background-color .16s ease, color .16s ease;
}
.ps-side-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ps-side-item.is-on { background: rgba(255, 255, 255, .08); color: #fff; }
.ps-side-item kbd {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  font-size: 10.5px;
  color: rgba(255, 255, 255, .45);
}
.ps-side-count { font-size: 11px; color: rgba(255, 255, 255, .35); }

.ps-side-label {
  padding: 0 9px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .28);
}
.ps-side-list { display: flex; flex-direction: column; gap: 1px; }
.ps-side-list li {
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-side-list li.is-on { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .9); }

.ps-side-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 9px 2px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}
.ps-side-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d6bfe, #8ab0ff);
  color: #08101f;
  font-size: 11px;
  font-weight: 600;
}
.ps-side-days { margin-left: auto; font-size: 10.5px; color: rgba(255, 255, 255, .35); }

.ps-win-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #131314;
}

.ps-chat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ps-chat-title { font-size: 13.5px; font-weight: 500; color: #fff; }
.ps-chat-sub { font-size: 11.5px; color: rgba(255, 255, 255, .34); }

.ps-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 26px 10px;
  overflow: hidden;
}

.ps-msg-user {
  align-self: flex-end;
  max-width: 62%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}

.ps-msg-bot { max-width: 76%; font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, .72); }
.ps-msg-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
}
.ps-msg-thought {
  margin-bottom: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .38);
}
.ps-msg-list { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; }
.ps-msg-list li { position: relative; padding-left: 16px; }
.ps-msg-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
}
.ps-msg-list b { color: #fff; font-weight: 500; }
.ps-msg-more { color: rgba(255, 255, 255, .4); }

.ps-composer {
  margin: 0 26px 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}
.ps-composer-ph { font-size: 12.5px; color: rgba(255, 255, 255, .34); }
.ps-composer-cmd {
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .6);
}
.ps-composer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, .34);
}
.ps-composer-model { margin-left: auto; }

/* ---------------- sections ---------------- */
.ps-section { padding: 104px 0; }
.ps-section-line { border-top: 1px solid rgba(255, 255, 255, .06); }

.ps-sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.ps-h2 {
  font-family: var(--ds-font-display, "Host Grotesk", system-ui, sans-serif);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}
.ps-h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.ps-lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  max-width: 640px;
  text-wrap: pretty;
}
.ps-body { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .48); }

.ps-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ps-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ps-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .024);
  transition: border-color .2s ease, background-color .2s ease;
}
.ps-card:hover { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }

.ps-card-figure {
  display: grid;
  place-items: center;
  min-height: 156px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(103, 153, 254, .1) 0%, transparent 70%),
    rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .05);
}

.ps-mini {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(10, 10, 10, .7);
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
}
.ps-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps-mini-row b { font-weight: 500; color: rgba(255, 255, 255, .72); }
.ps-ok { color: #59ca84 !important; }
.ps-brandc { color: #8ab0ff !important; }
.ps-mini-bar {
  height: 4px;
  margin-top: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.ps-mini-bar i {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #4d6bfe, #8ab0ff);
}
.ps-mini-note { margin-top: 4px; font-size: 10.5px; color: rgba(255, 255, 255, .3); }

.ps-mini-code { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-family: var(--ds-font-mono, ui-monospace, monospace); }
.ps-code-k { color: rgba(255, 255, 255, .32); }
.ps-code-v { color: rgba(255, 255, 255, .8); }

.ps-mod {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .024);
}
.ps-mod-kicker {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8ab0ff;
}
.ps-mod-title {
  margin: 10px 0 16px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}
.ps-mod-list { display: flex; flex-direction: column; }
.ps-mod-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
}
.ps-mod-list small { font-size: 11.5px; color: rgba(255, 255, 255, .38); }

/* code cards */
.ps-grid-code { gap: 16px; }
.ps-code-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .024);
}
.ps-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ps-copy {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 100px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.ps-copy:hover { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }

.ps-pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .45);
  overflow-x: auto;
  font-family: var(--ds-font-mono, ui-monospace, monospace);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
}

/* access */
.ps-access { padding-bottom: 120px; }
.ps-access-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.ps-access-copy .ps-h2 { text-align: left; }
.ps-access-copy .ps-lead { margin-top: 16px; text-align: left; }
.ps-access-note { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .3); }

.ps-prices {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .024);
  overflow: hidden;
}
.ps-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 80px 20px;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .18s ease;
}
.ps-price:last-child { border-bottom: 0; }
.ps-price:hover { background: rgba(255, 255, 255, .05); }
.ps-price-name { font-size: 15px; font-weight: 500; color: #fff; }
.ps-price-name em {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 100px;
  background: rgba(103, 153, 254, .16);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  color: #8ab0ff;
}
.ps-price-days { font-size: 12.5px; color: rgba(255, 255, 255, .4); }
.ps-price-value {
  font-size: 15px;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ps-price.is-featured { background: rgba(103, 153, 254, .07); }
.ps-price.is-featured .ps-price-value { color: #8ab0ff; }
.ps-price-go { color: rgba(255, 255, 255, .28); text-align: right; }
.ps-price:hover .ps-price-go { color: #fff; }

/* footer */
.ps-footer { border-top: 1px solid rgba(255, 255, 255, .07); padding: 40px 0 48px; }
.ps-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.ps-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.ps-footer-note { margin-left: 8px; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .32); }
.ps-footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.ps-footer-links a { font-size: 13px; color: rgba(255, 255, 255, .5); transition: color .2s ease; }
.ps-footer-links a:hover { color: #fff; }
.ps-footer-copy { width: 100%; font-size: 11.5px; color: rgba(255, 255, 255, .26); }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .ps-header-wrap { width: min(100% - 40px, 1280px); }
  .ps-window { width: 100%; }
  .ps-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ps-nav { display: none; }
  .ps-win-body { grid-template-columns: 1fr; }
  .ps-win-side { display: none; }
  .ps-grid-2 { grid-template-columns: 1fr; }
  .ps-access-inner { grid-template-columns: 1fr; gap: 32px; }
  .ps-section { padding: 72px 0; }
  .ps-hero-inner { padding-top: 132px; padding-bottom: 64px; }
}

@media (max-width: 768px) {
  .ps-hero-title { font-size: 32px; }
}

@media (max-width: 620px) {
  .ps-hero-desc { font-size: 15px; }
  .ps-grid-4 { grid-template-columns: 1fr; }
  .ps-win-bar { height: 36px; }
  .ps-chat-body { padding: 18px 16px 8px; }
  .ps-composer { margin: 0 16px 16px; }
  .ps-msg-user, .ps-msg-bot { max-width: 100%; }
  .ps-price { grid-template-columns: minmax(0, 1fr) 56px 46px; padding: 15px 16px; }
  .ps-price-days { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
