:root {
  --bg-1: #050a14;
  --bg-2: #0a1322;
  --card: rgba(14, 26, 44, 0.82);
  --line: rgba(120, 174, 255, 0.34);
  --text: #f4f7ff;
  --muted: #aabbd8;
  --green: #59c63a;
  --pink: #ff0f79;
  --aqua: #75dbff;
}

* { box-sizing: border-box; }

body.product-site {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(117, 219, 255, 0.15), transparent 70%),
    radial-gradient(860px 520px at 0% 8%, rgba(255, 15, 121, 0.1), transparent 70%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
}

.container { width: min(1200px, 92vw); margin: 0 auto; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(4,10,18,0.82);
  backdrop-filter: blur(10px);
}

.navbar .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--text);
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.brand-lines strong { display: block; letter-spacing: .08em; font-size: .9rem; }
.brand-lines span { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }

.navbar-nav {
  align-items: center;
}

.navbar-nav a {
  white-space: nowrap;
}

.ps-wrap { padding: 3.5rem 0; }
.ps-hero { padding: 5.5rem 0 3.5rem; }
.ps-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; align-items: center; }
.ps-hero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.04; margin: .8rem 0; }
.ps-hero p { color: var(--muted); max-width: 65ch; }

.ps-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .8rem;
  border: 1px solid rgba(117,219,255,.5);
  background: rgba(117,219,255,.14);
  color: #cdeaff;
  font-size: .74rem;
  font-weight: 700;
}

.ps-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.ps-btn {
  min-height: 44px;
  border-radius: 12px;
  padding: .8rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ps-btn-primary { background: linear-gradient(120deg, var(--green), var(--aqua)); color: #071321; }
.ps-btn-secondary { border-color: rgba(255,255,255,.24); color: var(--text); background: rgba(12,24,40,.8); }

.ps-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1rem; }
.ps-col-3 { grid-column: span 3; }
.ps-col-4 { grid-column: span 4; }
.ps-col-6 { grid-column: span 6; }
.ps-col-8 { grid-column: span 8; }
.ps-col-12 { grid-column: span 12; }

.ps-card {
  height: 100%;
  border-radius: 18px;
  padding: 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 55px rgba(2,8,16,.42);
}
.ps-card h3 { margin: .55rem 0 .45rem; }
.ps-card p, .ps-card li { color: var(--muted); }

.ps-media {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: .75rem;
  background: #050c17;
  min-height: 180px;
}
.ps-media img { width: 100%; display: block; object-fit: cover; aspect-ratio: 16/10; }

.ps-media.ps-placeholder {
  aspect-ratio: 16/10;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #d7e8ff;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background:
    radial-gradient(340px 180px at 80% 20%, rgba(117, 219, 255, .18), transparent 70%),
    radial-gradient(280px 180px at 20% 80%, rgba(255, 15, 121, .14), transparent 70%),
    linear-gradient(140deg, #0a1528, #091120 50%, #0b1b2d);
}

.ps-section-title h1, .ps-section-title h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.3rem); }
.ps-section-title p { margin-top: .6rem; color: var(--muted); }

.ps-qblock {
  border-left: 3px solid var(--pink);
  background: rgba(255,15,121,.08);
  border-radius: 12px;
  padding: .8rem .9rem;
  margin-top: .7rem;
}

.ps-qblock h4 { margin: 0 0 .35rem; font-size: .98rem; }
.ps-link { color: var(--aqua); text-decoration: none; font-weight: 700; }
.ps-link:hover { text-decoration: underline; }

.platform-stack {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.9);
  padding: 1rem;
  display: grid;
  gap: .6rem;
}

.platform-stack .node {
  border-radius: 12px;
  border: 1px solid rgba(117,219,255,.35);
  padding: .7rem .9rem;
  background: rgba(117,219,255,.08);
  color: #dcefff;
  font-weight: 700;
}

.platform-stack .connector,
.platform-stack .stack-line {
  height: 14px;
  width: 2px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(117,219,255,.6), rgba(255,15,121,.6));
  animation: pulseFlow 2.2s ease-in-out infinite;
}

@keyframes pulseFlow {
  0% { opacity: .35; transform: scaleY(.8); }
  50% { opacity: 1; transform: scaleY(1.05); }
  100% { opacity: .35; transform: scaleY(.8); }
}

.module-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(117,219,255,.45);
  border-radius: 999px;
  padding: .18rem .6rem;
  font-size: .72rem;
  color: #c9ebff;
  background: rgba(117,219,255,.14);
  font-weight: 700;
}

.module-note {
  color: #c9ebff;
  font-weight: 700;
  font-size: .86rem;
}

.ps-doclist, .ps-faq { margin: 0; padding-left: 1rem; }
.ps-doclist li, .ps-faq li { margin: .35rem 0; }

.demo-grid iframe {
  width: 100%;
  min-height: 290px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: #050b16;
}

.ps-table {
  width: 100%;
  border-collapse: collapse;
}
.ps-table th, .ps-table td {
  border: 1px solid rgba(255,255,255,.18);
  padding: .65rem;
  text-align: left;
  color: var(--muted);
}
.ps-table th { color: #dce7ff; }

.ps-footer-grid {
  margin-top: 2.4rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 1rem;
}

.ps-footer-grid h4 { margin: 0 0 .5rem; text-transform: uppercase; font-size: .84rem; letter-spacing: .08em; }
.ps-footer-grid a, .ps-footer-grid p { display: block; margin: .3rem 0; color: var(--muted); text-decoration: none; font-size: .88rem; }
.ps-footer-grid a:hover { color: var(--aqua); }
.ps-footer-bottom { margin-top: 1rem; color: var(--muted); font-size: .82rem; }

@media (max-width: 1050px) {
  .ps-hero-grid { grid-template-columns: 1fr; }
  .ps-col-3, .ps-col-4 { grid-column: span 6; }
  .ps-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .ps-col-3, .ps-col-4, .ps-col-6, .ps-col-8, .ps-col-12 { grid-column: span 12; }
  .ps-footer-grid { grid-template-columns: 1fr; }
  .demo-grid iframe { min-height: 240px; }
}
