: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));
  position: relative;
  isolation: isolate;
}

/* Infinity Menu-inspired ambient background system */
body.product-site:not([data-bg])::before,
body.product-site:not([data-bg])::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
}

/* Deep neon orb field + soda-fizz drift */
body.product-site:not([data-bg])::before {
  z-index: -2 !important;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(168, 255, 62, 0.08), transparent 68%),
    radial-gradient(45% 36% at 0% 100%, rgba(255, 31, 140, 0.08), transparent 72%),
    radial-gradient(560px 280px at 88% 12%, rgba(117, 219, 255, 0.14), transparent 72%),
    radial-gradient(500px 300px at 16% 84%, rgba(255, 15, 121, 0.12), transparent 70%),
    radial-gradient(320px 190px at 68% 78%, rgba(89, 198, 58, 0.09), transparent 75%),
    radial-gradient(circle at 10% 115%, rgba(117, 219, 255, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 108%, rgba(255, 15, 121, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 120%, rgba(117, 219, 255, 0.09) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 112%, rgba(89, 198, 58, 0.09) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 118%, rgba(255, 15, 121, 0.09) 0 2px, transparent 3px);
  background-repeat: no-repeat !important;
  animation: infinityAmbientDrift 34s ease-in-out infinite !important;
  opacity: 0.9 !important;
}

/* Subtle board grid and light sweep */
body.product-site:not([data-bg])::after {
  z-index: -1 !important;
  opacity: 0.48 !important;
  background-image:
    linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.045) 50%, transparent 72%),
    linear-gradient(rgba(117, 219, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 219, 255, 0.08) 1px, transparent 1px);
  background-size: 220% 100%, 42px 42px, 42px 42px !important;
  background-position: -140% 0, 0 0, 0 0 !important;
  animation: infinityLightSweep 16s linear infinite !important;
}

@keyframes infinityAmbientDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -1.5%, 0) scale(1.015);
  }
}

@keyframes infinityLightSweep {
  0% {
    background-position: -140% 0, 0 0, 0 0;
  }
  100% {
    background-position: 140% 0, 0 0, 0 0;
  }
}

.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; }

.home-hero-grid {
  gap: 1.8rem;
  align-items: stretch;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  gap: .4rem;
}

.home-hero-lead {
  font-size: 1.06rem;
  color: #dbe8ff;
}

.home-hero-actions {
  margin-top: 1.5rem;
}

.home-proof-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.home-proof-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(7, 16, 30, 0.82);
  border: 1px solid rgba(117,219,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.home-proof-card strong,
.home-stat-pill strong,
.home-floating-metrics strong,
.home-built-list strong {
  display: block;
  color: #e9f4ff;
  margin-bottom: .3rem;
}

.home-proof-card span,
.home-stat-pill span,
.home-floating-metrics span,
.home-built-list span {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}

.home-hero-visual {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100%;
}

.home-showcase-card,
.home-showcase-panel,
.home-cta-card,
.home-built-card,
.home-value-stack {
  position: relative;
  overflow: hidden;
}

.home-showcase-card::before,
.home-showcase-panel::before,
.home-cta-card::before,
.home-built-card::before,
.home-value-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(255, 15, 121, 0.1), transparent 70%),
    radial-gradient(460px 240px at 100% 0%, rgba(117, 219, 255, 0.14), transparent 72%);
  pointer-events: none;
}

.home-showcase-primary {
  padding: 1.2rem;
}

.home-showcase-eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: #9bdfff;
  margin-bottom: .85rem;
}

.home-browser-frame {
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.98), rgba(5, 11, 22, 0.98));
  box-shadow: 0 28px 60px rgba(2,8,16,.42);
}

.home-browser-frame img {
  aspect-ratio: 16 / 9;
  object-position: center top;
}

.home-stat-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.home-stat-pill,
.home-floating-metrics div,
.home-built-list div {
  padding: .9rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.home-floating-card {
  position: absolute;
  right: -1rem;
  bottom: -1.25rem;
  width: min(360px, 88%);
  backdrop-filter: blur(10px);
}

.home-problem-grid .ps-card h3,
.home-ecosystem-card h3,
.home-showcase-panel h3,
.home-cta-card h2,
.home-built-card h2 {
  margin-top: .25rem;
}

.home-built-grid {
  align-items: stretch;
}

.home-built-lead {
  font-size: 1.05rem;
  color: #dfedff;
}

.home-quote-block {
  margin: 1.1rem 0;
}

.home-built-list,
.home-floating-metrics,
.home-dual-phone-grid {
  display: grid;
  gap: .85rem;
}

.home-stack-note {
  margin-top: 1rem;
}

.home-tone-band {
  position: relative;
}

.home-tone-band::before {
  content: "";
  position: absolute;
  inset: 1rem 0;
  background: linear-gradient(180deg, rgba(117,219,255,.04), rgba(255,15,121,.03));
  pointer-events: none;
}

.home-ecosystem-card .ps-actions {
  margin-top: 1rem;
}

.home-showcase-section .ps-grid {
  align-items: stretch;
}

.home-showcase-panel {
  display: grid;
  gap: 1rem;
}

.home-showcase-panel-compact {
  align-content: start;
}

.home-showcase-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 1rem;
  align-items: end;
}

.home-mobile-shot {
  background: linear-gradient(180deg, rgba(9, 17, 30, 0.96), rgba(6, 10, 18, 0.96));
}

.home-mobile-shot img {
  aspect-ratio: 10 / 18;
  object-position: center top;
}

.home-dual-phone-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-cta-wrap {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.home-cta-card {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.35rem;
}

.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;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.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-btn:hover {
  transform: translateY(-2px);
}

.ps-btn-primary:hover {
  box-shadow: 0 14px 28px rgba(117, 219, 255, 0.28);
}

.ps-btn-secondary:hover {
  border-color: rgba(117, 219, 255, 0.55);
  box-shadow: 0 10px 20px rgba(7, 16, 30, 0.35);
}

.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-5 { grid-column: span 5; }
.ps-col-6 { grid-column: span 6; }
.ps-col-7 { grid-column: span 7; }
.ps-col-8 { grid-column: span 8; }
.ps-col-12 { grid-column: span 12; }

.ps-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  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 .ps-actions:last-child {
  margin-top: auto;
}

.ps-card,
.home-proof-card,
.home-stat-pill,
.home-floating-metrics div,
.home-built-list div {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ps-card:hover,
.home-proof-card:hover {
  border-color: rgba(117, 219, 255, 0.52);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px rgba(2,8,16,.5);
}
.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; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.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;
}

.module-note.status-available,
.module-note.status-in-development,
.module-note.status-planned,
.module-note.status-future-vision {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .2rem .6rem;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.module-note.status-available {
  color: #d9ffe8;
  border-color: rgba(72, 220, 143, .65);
  background: rgba(72, 220, 143, .2);
}

.module-note.status-in-development {
  color: #dbf4ff;
  border-color: rgba(117, 219, 255, .65);
  background: rgba(117, 219, 255, .2);
}

.module-note.status-planned {
  color: #ffeecb;
  border-color: rgba(255, 198, 102, .65);
  background: rgba(255, 198, 102, .18);
}

.module-note.status-future-vision {
  color: #f5deff;
  border-color: rgba(209, 142, 255, .65);
  background: rgba(209, 142, 255, .18);
}

.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,
.ps-table thead,
.ps-table tbody,
.ps-table tr,
.ps-table th,
.ps-table td {
  max-width: 100%;
}
.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; }

.reveal-section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .38s ease, transform .38s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: .85rem;
}

.form-label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
  color: #dff2ff;
}

.form-control {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(108, 246, 255, 0.28);
  background: rgba(8, 18, 34, 0.88);
  color: var(--text);
  padding: .7rem .85rem;
}

.form-control::placeholder {
  color: rgba(214, 232, 255, 0.62);
}

img[loading="lazy"] {
  content-visibility: auto;
}

@media (max-width: 1050px) {
  .ps-hero-grid { grid-template-columns: 1fr; }
  .ps-col-3, .ps-col-4, .ps-col-5, .ps-col-6, .ps-col-7 { grid-column: span 6; }
  .ps-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-proof-grid { grid-template-columns: 1fr; }
  .home-floating-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  .home-showcase-visuals,
  .home-cta-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ps-col-3, .ps-col-4, .ps-col-5, .ps-col-6, .ps-col-7, .ps-col-8, .ps-col-12 { grid-column: span 12; }
  .ps-footer-grid { grid-template-columns: 1fr; }
  .demo-grid iframe { min-height: 240px; }
  .ps-hero { padding-top: 4.5rem; }
  .home-showcase-primary,
  .home-showcase-panel,
  .home-cta-card,
  .home-built-card,
  .home-value-stack {
    padding: 1rem;
  }
  .home-stat-row,
  .home-dual-phone-grid {
    grid-template-columns: 1fr;
  }
  .home-showcase-visuals {
    grid-template-columns: 1fr;
  }
  .home-mobile-shot {
    max-width: 280px;
    margin: 0 auto;
  }

  .ps-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

    body.product-site:not([data-bg])::before {
      opacity: 0.78 !important;
  }

    body.product-site:not([data-bg])::after {
      opacity: 0.3 !important;
      background-size: 240% 100%, 52px 52px, 52px 52px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal-section,
  .reveal-section.revealed {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   Neon Futuristic Site Overhaul
   ========================================= */

body.product-site {
  background-color: #05070d;
}

body.product-site .ps-wrap {
  position: relative;
}

body.product-site .ps-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(88, 224, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 64, 164, 0.1) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  transform: perspective(720px) rotateX(68deg) translateY(42%);
  transform-origin: bottom center;
  opacity: 0.2;
  mask-image: linear-gradient(to top, transparent, #000 16%, #000 70%, transparent);
}

body.product-site .ps-hero {
  overflow: hidden;
}

body.product-site .ps-hero::before {
  content: "∞";
  position: absolute;
  right: max(5vw, 24px);
  top: 52px;
  font-size: clamp(88px, 18vw, 220px);
  font-weight: 800;
  line-height: 1;
  color: rgba(88, 224, 255, 0.1);
  text-shadow:
    0 0 38px rgba(88, 224, 255, 0.35),
    0 0 84px rgba(255, 64, 164, 0.22);
  pointer-events: none;
  z-index: 0;
}

body.product-site .ps-hero .container {
  position: relative;
  z-index: 1;
}

body.product-site .ps-hero h1 {
  font-size: clamp(2.35rem, 5.8vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

body.product-site .hero-accent {
  background: linear-gradient(95deg, #6cf6ff 0%, #6ca8ff 35%, #ff5ec9 70%, #c377ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(108, 246, 255, 0.22), 0 0 44px rgba(255, 94, 201, 0.18);
}

body.product-site .hero-preview-card {
  border-color: rgba(108, 246, 255, 0.44);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(108, 246, 255, 0.14) inset,
    0 0 35px rgba(108, 246, 255, 0.16);
}

body.product-site .apps-preview-info::before {
  content: "∞";
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: clamp(44px, 6vw, 70px);
  color: rgba(255, 94, 201, 0.16);
  text-shadow: 0 0 22px rgba(255, 94, 201, 0.34);
  pointer-events: none;
}

body.product-site .final-cta-panel {
  border: 1px solid rgba(108, 246, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(108, 246, 255, 0.2) inset,
    0 14px 40px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(194, 119, 255, 0.2);
  background:
    radial-gradient(580px 160px at 50% 0%, rgba(108, 246, 255, 0.16), transparent 74%),
    radial-gradient(380px 160px at 88% 100%, rgba(255, 94, 201, 0.13), transparent 76%),
    linear-gradient(135deg, rgba(12, 21, 38, 0.92), rgba(7, 14, 26, 0.94));
}

body.product-site .navbar {
  border-bottom: 1px solid rgba(108, 246, 255, 0.26);
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 10px 28px rgba(1, 5, 15, 0.45),
    0 0 0 1px rgba(108, 246, 255, 0.1) inset;
}

body.product-site .navbar .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
}

body.product-site .navbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.product-site .navbar-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.48rem 0.72rem;
  border-radius: 10px;
  color: #e8f4ff;
  border: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease;
}

body.product-site .navbar-nav a:hover,
body.product-site .navbar-nav a:focus-visible {
  color: #aef4ff;
  border-color: rgba(108, 246, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(108, 246, 255, 0.16) inset, 0 0 18px rgba(108, 246, 255, 0.14);
  background: rgba(108, 246, 255, 0.08);
}

body.product-site .navbar-nav li:last-child a {
  border-color: rgba(108, 246, 255, 0.5);
  background: linear-gradient(135deg, rgba(10, 24, 44, 0.92), rgba(22, 18, 50, 0.92));
  box-shadow: 0 0 20px rgba(108, 246, 255, 0.16);
  color: #d4fbff;
  font-weight: 700;
}

body.product-site .navbar-nav li:last-child a:hover,
body.product-site .navbar-nav li:last-child a:focus-visible {
  border-color: rgba(255, 94, 201, 0.6);
  color: #ffe6f7;
  box-shadow: 0 0 24px rgba(255, 94, 201, 0.22);
  background: linear-gradient(135deg, rgba(30, 24, 60, 0.92), rgba(15, 24, 48, 0.92));
}

body.product-site .ps-card {
  background:
    linear-gradient(135deg, rgba(15, 25, 42, 0.8), rgba(9, 17, 30, 0.86));
  border: 1px solid rgba(124, 186, 255, 0.28);
  box-shadow:
    0 16px 40px rgba(2, 8, 20, 0.5),
    0 0 0 1px rgba(108, 246, 255, 0.06) inset;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

body.product-site .ps-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 246, 255, 0.5);
  box-shadow:
    0 22px 52px rgba(2, 8, 20, 0.58),
    0 0 30px rgba(108, 246, 255, 0.14),
    0 0 0 1px rgba(255, 94, 201, 0.12) inset;
}

body.product-site .ps-card h3 {
  position: relative;
  padding-left: 1rem;
}

body.product-site .ps-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, #72efff, #ff5ec9);
  box-shadow: 0 0 10px rgba(114, 239, 255, 0.8);
}

body.product-site .ps-media {
  border: 1px solid rgba(108, 246, 255, 0.26);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(108, 246, 255, 0.12) inset;
}

body.product-site .ps-btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.product-site .ps-btn-primary {
  border: 1px solid rgba(108, 246, 255, 0.64);
  background: linear-gradient(100deg, #58e0ff 0%, #6f8cff 42%, #ff5ec9 100%);
  color: #03101d;
  box-shadow: 0 10px 28px rgba(111, 140, 255, 0.32), 0 0 22px rgba(108, 246, 255, 0.24);
}

body.product-site .ps-btn-primary:hover,
body.product-site .ps-btn-primary:focus-visible {
  box-shadow: 0 14px 32px rgba(111, 140, 255, 0.4), 0 0 34px rgba(255, 94, 201, 0.34);
}

body.product-site .ps-btn-secondary {
  border: 1px solid rgba(108, 246, 255, 0.36);
  background: linear-gradient(140deg, rgba(12, 26, 46, 0.88), rgba(19, 17, 42, 0.88));
  color: #d9f6ff;
}

body.product-site .ps-btn-secondary:hover,
body.product-site .ps-btn-secondary:focus-visible {
  border-color: rgba(255, 94, 201, 0.52);
  box-shadow: 0 0 0 1px rgba(255, 94, 201, 0.2) inset, 0 0 24px rgba(255, 94, 201, 0.2);
}

body.product-site .ps-section-title h1,
body.product-site .ps-section-title h2 {
  letter-spacing: -0.015em;
  text-shadow: 0 0 26px rgba(108, 246, 255, 0.12);
}

body.product-site .ps-table th,
body.product-site .ps-table td {
  border-color: rgba(108, 246, 255, 0.24);
}

body.product-site .ps-table thead th {
  background: linear-gradient(90deg, rgba(108, 246, 255, 0.18), rgba(255, 94, 201, 0.14));
  color: #eff9ff;
}

body.product-site > footer.container {
  position: relative;
  margin-top: 2.2rem;
  border-top: 1px solid rgba(108, 246, 255, 0.34);
  padding-top: 2rem;
}

body.product-site > footer.container::before {
  content: "∞";
  position: absolute;
  right: 10px;
  bottom: 12px;
  font-size: clamp(56px, 8vw, 120px);
  color: rgba(108, 246, 255, 0.08);
  text-shadow: 0 0 24px rgba(108, 246, 255, 0.18);
  pointer-events: none;
}

body.product-site .ps-footer-grid {
  border-top: 1px solid rgba(108, 246, 255, 0.22);
}

body.product-site .ps-footer-grid a:hover {
  text-shadow: 0 0 14px rgba(108, 246, 255, 0.3);
}

body.apps-marketplace main {
  overflow: clip;
}

body.apps-marketplace .container {
  width: min(1240px, 94vw);
}

body.apps-marketplace .ps-wrap {
  padding: 4.25rem 0;
}

body.apps-marketplace .ps-hero {
  padding: 6rem 0 4.2rem;
}

body.apps-marketplace .apps-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.8rem;
  align-items: stretch;
}

body.apps-marketplace .apps-hero-copy {
  display: grid;
  align-content: center;
  gap: 0.55rem;
}

body.apps-marketplace .apps-hero-copy h1 {
  max-width: 11ch;
}

body.apps-marketplace .apps-hero-actions {
  margin-top: 1rem;
}

body.apps-marketplace .apps-hero-points {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

body.apps-marketplace .apps-hero-points div,
body.apps-marketplace .apps-highlight-pill {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(108, 246, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

body.apps-marketplace .apps-hero-points strong,
body.apps-marketplace .apps-highlight-pill strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #eef7ff;
}

body.apps-marketplace .apps-hero-points span,
body.apps-marketplace .apps-highlight-pill span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

body.apps-marketplace .apps-hero-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.2rem;
}

body.apps-marketplace .apps-hero-media,
body.apps-marketplace .apps-app-media,
body.apps-marketplace .apps-feature-media {
  min-height: 240px;
}

body.apps-marketplace .apps-hero-media img,
body.apps-marketplace .apps-app-media img {
  aspect-ratio: 16 / 9;
  object-position: center top;
}

body.apps-marketplace .apps-hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

body.apps-marketplace .apps-section-title {
  max-width: 760px;
}

body.apps-marketplace .apps-section-title h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

body.apps-marketplace .apps-market-grid {
  margin-top: 1.4rem;
  align-items: stretch;
}

body.apps-marketplace .apps-app-card,
body.apps-marketplace .apps-roadmap-card,
body.apps-marketplace .apps-why-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

body.apps-marketplace .apps-app-card {
  padding: 1.25rem;
}

body.apps-marketplace .apps-doclist {
  margin: 0;
  padding-left: 1.1rem;
}

body.apps-marketplace .apps-card-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

body.apps-marketplace .apps-roadmap-shell {
  padding-top: 3.5rem;
}

body.apps-marketplace .apps-roadmap-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.apps-marketplace .apps-roadmap-card {
  min-height: 100%;
  padding: 1.15rem;
}

body.apps-marketplace .apps-feature-card {
  margin-top: 1.4rem;
  padding: 1.35rem;
}

body.apps-marketplace .apps-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 1.4rem;
  align-items: center;
}

body.apps-marketplace .apps-feature-media {
  height: 100%;
}

body.apps-marketplace .apps-feature-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

body.apps-marketplace .apps-feature-copy {
  display: grid;
  gap: 0.8rem;
  align-content: center;
}

body.apps-marketplace .apps-feature-copy h3 {
  margin-top: 0;
}

body.apps-marketplace .apps-why-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.apps-marketplace .apps-why-card {
  padding: 1.15rem;
}

body.apps-marketplace .apps-cta-shell {
  padding-top: 3.1rem;
}

body.apps-marketplace .apps-final-cta {
  text-align: center;
  padding: 1.6rem;
}

body.apps-marketplace .apps-final-cta h2 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}

body.apps-marketplace .apps-cta-actions {
  justify-content: center;
}

body.apps-marketplace > footer.container {
  margin-top: 2.8rem;
  padding-bottom: 2rem;
}

@media (max-width: 1100px) {
  body.product-site .navbar .container {
    grid-template-columns: auto auto;
  }

  body.product-site .nav-toggle {
    justify-self: end;
  }

  body.product-site .navbar-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
  }

  body.product-site .navbar-nav.active {
    display: flex;
  }

  body.product-site .navbar-nav li:last-child a {
    width: 100%;
  }

  body.apps-marketplace .apps-hero-grid,
  body.apps-marketplace .apps-feature-layout {
    grid-template-columns: 1fr;
  }

  body.apps-marketplace .apps-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.apps-marketplace .apps-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.product-site .ps-wrap::after {
    opacity: 0.1;
    height: 30%;
  }

  body.product-site .ps-hero::before {
    opacity: 0.55;
    right: 6px;
    top: 78px;
  }

  body.product-site .ps-card h3 {
    padding-left: 0.85rem;
  }

  body.apps-marketplace .container {
    width: min(1240px, calc(100vw - 28px));
  }

  body.apps-marketplace .apps-hero-points,
  body.apps-marketplace .apps-hero-highlights,
  body.apps-marketplace .apps-roadmap-grid,
  body.apps-marketplace .apps-why-grid {
    grid-template-columns: 1fr;
  }

  body.apps-marketplace .apps-hero-panel,
  body.apps-marketplace .apps-app-card,
  body.apps-marketplace .apps-feature-card,
  body.apps-marketplace .apps-final-cta {
    padding: 1rem;
  }

  body.apps-marketplace .apps-hero-media,
  body.apps-marketplace .apps-app-media,
  body.apps-marketplace .apps-feature-media {
    min-height: 200px;
  }
}

/* =========================================
   Premium Visual Polish Sprint
   ========================================= */

body.product-site {
  --ambient-cyan: rgba(108, 246, 255, 0.16);
  --ambient-pink: rgba(255, 94, 201, 0.14);
  --ambient-violet: rgba(164, 120, 255, 0.14);
  --panel-sheen: rgba(255, 255, 255, 0.06);
  --card-edge: rgba(114, 239, 255, 0.22);
  --card-shadow: 0 28px 70px rgba(2, 8, 20, 0.54);
  overflow-x: clip;
  background:
    radial-gradient(1200px 680px at 50% -10%, rgba(84, 114, 255, 0.18), transparent 68%),
    radial-gradient(880px 520px at 90% 2%, var(--ambient-cyan), transparent 70%),
    radial-gradient(920px 600px at 8% 10%, var(--ambient-pink), transparent 72%),
    radial-gradient(900px 520px at 50% 100%, rgba(40, 88, 150, 0.22), transparent 72%),
    linear-gradient(180deg, #03060d 0%, #07111d 38%, #08111d 100%);
}

body.product-site main {
  position: relative;
  overflow: clip;
}

body.product-site:not([data-bg])::before {
  background:
    radial-gradient(66% 48% at 50% -6%, rgba(108, 246, 255, 0.12), transparent 70%),
    radial-gradient(48% 34% at 10% 6%, rgba(255, 94, 201, 0.14), transparent 72%),
    radial-gradient(40% 28% at 92% 12%, rgba(164, 120, 255, 0.15), transparent 74%),
    radial-gradient(42% 24% at 50% 100%, rgba(108, 246, 255, 0.1), transparent 76%),
    radial-gradient(circle at 14% 12%, rgba(108, 246, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255, 94, 201, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 82%, rgba(164, 120, 255, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 76%, rgba(108, 246, 255, 0.12) 0 2px, transparent 3px);
  opacity: 1 !important;
  animation: infinityAmbientDrift 42s ease-in-out infinite !important;
}

body.product-site:not([data-bg])::after {
  opacity: 0.6 !important;
  background-image:
    linear-gradient(112deg, transparent 26%, rgba(255, 255, 255, 0.05) 48%, transparent 72%),
    radial-gradient(90% 36% at 50% 100%, rgba(108, 246, 255, 0.16), transparent 72%),
    linear-gradient(rgba(108, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 246, 255, 0.07) 1px, transparent 1px);
  background-size: 240% 100%, 100% 100%, 48px 48px, 48px 48px !important;
  background-position: -150% 0, 0 0, 0 0, 0 0 !important;
  animation: infinityLightSweep 18s linear infinite !important;
}

body.product-site .brand-badge {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.15),
    0 0 0 6px rgba(108, 246, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

body.product-site .ps-wrap {
  isolation: isolate;
}

body.product-site .ps-wrap::before {
  content: "∞";
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  right: clamp(12px, 4vw, 46px);
  font-size: clamp(26px, 4vw, 54px);
  color: rgba(122, 228, 255, 0.07);
  text-shadow: 0 0 22px rgba(108, 246, 255, 0.12);
  pointer-events: none;
  z-index: 0;
}

body.product-site .ps-wrap:nth-of-type(even)::before {
  right: auto;
  left: clamp(12px, 4vw, 46px);
  color: rgba(255, 94, 201, 0.06);
}

body.product-site .ps-wrap > .container,
body.product-site .ps-wrap > .ps-card.container,
body.product-site .ps-hero > .container {
  position: relative;
  z-index: 1;
}

body.product-site .ps-wrap > .container::before,
body.product-site .ps-hero > .container::before {
  content: "";
  position: absolute;
  inset: -20px -10px auto;
  height: 160px;
  border-radius: 40px;
  background:
    radial-gradient(closest-side at 10% 0%, rgba(255, 94, 201, 0.08), transparent 72%),
    radial-gradient(closest-side at 90% 0%, rgba(108, 246, 255, 0.12), transparent 72%);
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
}

body.product-site main > .ps-wrap + .ps-wrap > .container::after {
  content: "∞";
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(180px, 32vw);
  padding-top: 1.15rem;
  border-top: 1px solid rgba(108, 246, 255, 0.24);
  color: rgba(219, 239, 255, 0.6);
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  text-shadow: 0 0 16px rgba(108, 246, 255, 0.18);
  pointer-events: none;
}

body.product-site .ps-hero {
  overflow: hidden;
  padding-bottom: 4.4rem;
}

body.product-site .ps-hero::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.6rem;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(108, 246, 255, 0.18), rgba(108, 246, 255, 0.06) 36%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

body.product-site .ps-hero h1,
body.product-site .ps-section-title h1,
body.product-site .ps-section-title h2 {
  text-shadow:
    0 0 26px rgba(108, 246, 255, 0.14),
    0 14px 40px rgba(0, 0, 0, 0.28);
}

body.product-site .ps-hero p {
  color: #c4d7f2;
}

body.product-site .hero-preview-card,
body.product-site .dirty-hero-preview,
body.product-site .tools-spotlight-card {
  position: relative;
  overflow: hidden;
}

body.product-site .hero-preview-card::before,
body.product-site .dirty-hero-preview::before,
body.product-site .tools-spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(108, 246, 255, 0.18), transparent 68%),
    radial-gradient(320px 180px at 0% 100%, rgba(255, 94, 201, 0.14), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

body.product-site .hero-preview-card > *,
body.product-site .dirty-hero-preview > *,
body.product-site .tools-spotlight-card > * {
  position: relative;
  z-index: 1;
}

body.product-site .ps-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(126, 192, 255, 0.3);
  box-shadow: var(--card-shadow), 0 0 0 1px rgba(108, 246, 255, 0.05) inset;
}

body.product-site .ps-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%),
    radial-gradient(120% 100% at 0% 0%, rgba(108, 246, 255, 0.1), transparent 42%),
    radial-gradient(120% 100% at 100% 100%, rgba(255, 94, 201, 0.1), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

body.product-site .ps-card::after {
  content: "";
  position: absolute;
  inset: auto auto 0 -8%;
  width: 52%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108, 246, 255, 0.5), rgba(255, 94, 201, 0.45), transparent);
  opacity: 0.8;
  pointer-events: none;
}

body.product-site .ps-card > * {
  position: relative;
  z-index: 1;
}

body.product-site .ps-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 246, 255, 0.56);
  box-shadow:
    0 34px 80px rgba(2, 8, 20, 0.6),
    0 0 42px rgba(108, 246, 255, 0.16),
    0 0 0 1px rgba(255, 94, 201, 0.16) inset;
}

body.product-site .ps-media {
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.98), rgba(8, 14, 26, 0.98));
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(108, 246, 255, 0.14) inset,
    0 0 30px rgba(108, 246, 255, 0.08);
}

body.product-site .ps-media img {
  transform: scale(1.001);
  transition: transform .35s ease, filter .35s ease;
  filter: saturate(1.02) contrast(1.02);
}

body.product-site .ps-card:hover .ps-media img {
  transform: scale(1.02);
}

body.product-site .ps-badge,
body.product-site .module-pill,
body.product-site .module-note.status-available,
body.product-site .module-note.status-in-development,
body.product-site .module-note.status-planned,
body.product-site .module-note.status-future-vision {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 22px rgba(4, 12, 22, 0.24);
}

body.product-site .ps-badge {
  border: 1px solid rgba(108, 246, 255, 0.42);
  background: linear-gradient(135deg, rgba(9, 26, 42, 0.92), rgba(23, 17, 47, 0.9));
  color: #e3f8ff;
}

body.product-site .module-pill {
  background: linear-gradient(135deg, rgba(12, 30, 48, 0.92), rgba(20, 19, 46, 0.9));
  color: #e4f6ff;
}

body.product-site .module-note {
  letter-spacing: 0.03em;
}

body.product-site .ps-btn {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

body.product-site .ps-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 32%);
  opacity: 0.75;
  pointer-events: none;
}

body.product-site .ps-btn:hover,
body.product-site .ps-btn:focus-visible {
  transform: translateY(-2px);
}

body.product-site .ps-btn:active {
  transform: translateY(0);
}

body.product-site .ps-btn-primary {
  box-shadow:
    0 14px 30px rgba(78, 118, 255, 0.34),
    0 0 30px rgba(108, 246, 255, 0.26);
}

body.product-site .ps-btn-secondary {
  box-shadow:
    0 10px 24px rgba(2, 8, 20, 0.34),
    0 0 0 1px rgba(108, 246, 255, 0.08) inset;
}

body.product-site .ps-table {
  overflow: hidden;
  border-radius: 16px;
}

body.product-site > footer.container {
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  padding-bottom: 2.2rem;
  background:
    radial-gradient(480px 180px at 50% 0%, rgba(108, 246, 255, 0.1), transparent 72%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.14), rgba(6, 12, 22, 0));
}

body.product-site > footer.container::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 246, 255, 0.6), rgba(255, 94, 201, 0.42), transparent);
  box-shadow: 0 0 18px rgba(108, 246, 255, 0.3);
}

body.product-site .ps-footer-grid {
  padding-top: 2rem;
  gap: 1.35rem;
}

body.product-site .ps-footer-grid h4 {
  color: #e9f6ff;
}

body.product-site .ps-footer-bottom {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(108, 246, 255, 0.14);
}

body.apps-marketplace .apps-feature-card {
  border-color: rgba(108, 246, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(108, 246, 255, 0.14) inset,
    0 26px 64px rgba(3, 9, 20, 0.58),
    0 0 50px rgba(108, 246, 255, 0.12);
}

body.apps-marketplace .apps-feature-media {
  min-height: 320px;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(108, 246, 255, 0.18) inset,
    0 0 38px rgba(108, 246, 255, 0.14);
}

body.apps-marketplace .apps-feature-copy {
  gap: 1rem;
}

body.apps-marketplace .apps-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body.apps-marketplace .apps-feature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

body.apps-marketplace .apps-feature-stats div {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(108, 246, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

body.apps-marketplace .apps-feature-stats strong {
  display: block;
  margin-bottom: 0.32rem;
  color: #eef8ff;
}

body.apps-marketplace .apps-feature-stats span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.apps-marketplace .apps-roadmap-card {
  padding-top: 1.35rem;
}

body.apps-marketplace .apps-roadmap-card::after {
  left: 0;
  width: 100%;
}

body.apps-marketplace .apps-roadmap-card::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%),
    radial-gradient(120% 100% at 0% 0%, rgba(108, 246, 255, 0.08), transparent 42%),
    radial-gradient(120% 100% at 100% 100%, rgba(255, 94, 201, 0.08), transparent 40%);
}

body.apps-marketplace .apps-roadmap-card h3::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin-left: 0.6rem;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(108, 246, 255, 0.75), transparent);
}

body.apps-marketplace .roadmap-dev {
  border-color: rgba(108, 246, 255, 0.34);
}

body.apps-marketplace .roadmap-planned {
  border-color: rgba(255, 198, 102, 0.34);
}

body.apps-marketplace .roadmap-vision {
  border-color: rgba(209, 142, 255, 0.34);
}

body.apps-marketplace .roadmap-dev::after {
  background: linear-gradient(90deg, rgba(108, 246, 255, 0.75), rgba(108, 246, 255, 0.08));
}

body.apps-marketplace .roadmap-planned::after {
  background: linear-gradient(90deg, rgba(255, 198, 102, 0.75), rgba(255, 198, 102, 0.08));
}

body.apps-marketplace .roadmap-vision::after {
  background: linear-gradient(90deg, rgba(209, 142, 255, 0.78), rgba(209, 142, 255, 0.1));
}

body.dirty-soda-page .dirty-hero-preview,
body.infinity-tools-page .tools-spotlight-card {
  border-color: rgba(108, 246, 255, 0.42);
}

body.dirty-soda-page #gallery .ps-card,
body.infinity-tools-page .tools-pillars .ps-card,
body.site-home .apps-preview-shot,
body.site-home .apps-preview-info {
  min-height: 100%;
}

body.infinity-tools-page .tools-pillars .ps-card,
body.dirty-soda-page #features .ps-card,
body.site-home .ps-wrap .ps-col-4,
body.site-home .ps-wrap .ps-col-3 {
  height: 100%;
}

@media (max-width: 1100px) {
  body.product-site main > .ps-wrap + .ps-wrap > .container::after {
    width: min(150px, 38vw);
  }

  body.apps-marketplace .apps-feature-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.product-site .ps-wrap::before,
  body.product-site main > .ps-wrap + .ps-wrap > .container::after {
    display: none;
  }

  body.product-site .ps-hero {
    padding-bottom: 3.5rem;
  }

  body.product-site .ps-hero::after {
    left: 4%;
    right: 4%;
    height: 88px;
  }

  body.product-site .ps-card:hover,
  body.product-site .ps-btn:hover,
  body.product-site .ps-btn:focus-visible {
    transform: none;
  }

  body.product-site > footer.container {
    padding-bottom: 1.6rem;
  }

  body.apps-marketplace .apps-feature-chips {
    gap: 0.45rem;
  }

  body.apps-marketplace .apps-feature-media {
    min-height: 240px;
  }
}

/* =========================================
   Version 1.0 Design Freeze Refinements
   ========================================= */

body.product-site {
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --surface-1: rgba(10, 18, 32, 0.88);
  --surface-2: rgba(14, 24, 40, 0.9);
  --text-strong: #eef7ff;
  --text-body: #c6d6ec;
  --text-soft: #98abc8;
  --line-strong: rgba(108, 246, 255, 0.24);
  --line-soft: rgba(126, 192, 255, 0.16);
  --success: #59c63a;
  --warning: #ffc666;
  --slate: #9eb0ca;
}

body.product-site main.ps-wrap {
  padding: 4.6rem 0 3.8rem;
}

body.product-site .ps-section-title {
  max-width: 760px;
  margin-bottom: 0.35rem;
}

body.product-site .ps-section-title h1,
body.product-site .ps-section-title h2 {
  line-height: 1.06;
  margin-bottom: 0;
}

body.product-site .ps-section-title h1 {
  font-size: clamp(2.35rem, 4vw, 3.7rem);
  letter-spacing: -0.03em;
}

body.product-site .ps-section-title h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

body.product-site .ps-section-title p,
body.product-site .ps-hero p,
body.product-site .ps-card p,
body.product-site .ps-card li,
body.product-site .ps-table td,
body.product-site .ps-table th {
  color: var(--text-body);
  line-height: 1.65;
}

body.product-site .ps-section-title p {
  margin-top: 0.75rem;
  max-width: 62ch;
  color: var(--text-body);
}

body.product-site .ps-card {
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

body.product-site .ps-card h2,
body.product-site .ps-card h3 {
  color: var(--text-strong);
  line-height: 1.18;
}

body.product-site .ps-card h2 {
  margin: 0.25rem 0 0.55rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

body.product-site .ps-card h3 {
  margin: 0.3rem 0 0.55rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

body.product-site .ps-card p + p,
body.product-site .ps-card ul + p,
body.product-site .ps-card p + ul {
  margin-top: 0.8rem;
}

body.product-site .ps-actions {
  align-items: center;
  gap: 0.7rem;
}

body.product-site .ps-actions > * {
  flex-shrink: 0;
}

body.product-site .ps-btn {
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1;
}

body.product-site .ps-btn[disabled],
body.product-site .ps-btn[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

body.product-site .ps-btn:active {
  box-shadow: 0 8px 18px rgba(2, 8, 20, 0.28);
}

body.product-site .ps-badge,
body.product-site .module-pill,
body.product-site .module-note {
  letter-spacing: 0.04em;
}

body.product-site .module-note.status-available {
  color: #e9ffef;
  border-color: rgba(89, 198, 58, 0.42);
  background: rgba(89, 198, 58, 0.18);
}

body.product-site .module-note.status-in-development {
  border-color: rgba(108, 246, 255, 0.4);
  background: rgba(108, 246, 255, 0.16);
}

body.product-site .module-note.status-planned {
  color: #fff1d6;
  border-color: rgba(255, 198, 102, 0.44);
  background: rgba(255, 198, 102, 0.16);
}

body.product-site .module-note.status-future-vision {
  color: #f6e8ff;
  border-color: rgba(194, 119, 255, 0.44);
  background: rgba(194, 119, 255, 0.16);
}

body.product-site .ps-media {
  position: relative;
  border-radius: 16px;
}

body.product-site .ps-media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  background:
    radial-gradient(circle at 18px 17px, rgba(255,255,255,0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 32px 17px, rgba(108,246,255,0.52) 0 2px, transparent 3px),
    radial-gradient(circle at 46px 17px, rgba(255,94,201,0.52) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 2;
}

body.product-site .ps-media::after {
  content: "";
  position: absolute;
  inset: auto 10% -18px;
  height: 40px;
  background: radial-gradient(circle at 50% 0%, rgba(108, 246, 255, 0.16), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
}

body.product-site .ps-media img {
  margin-top: 34px;
  width: 100%;
  aspect-ratio: 16 / 9;
}

body.product-site table.ps-table {
  border-radius: 16px;
  overflow: hidden;
}

body.product-site .ps-table th {
  color: var(--text-strong);
  font-weight: 700;
}

body.product-site .ps-table td {
  color: var(--text-body);
}

body.product-site .ps-doclist,
body.product-site .ps-faq {
  padding-left: 1.1rem;
}

body.product-site .ps-doclist li,
body.product-site .ps-faq li {
  padding-left: 0.2rem;
}

body.product-site .form-group {
  margin-bottom: 0.95rem;
}

body.product-site .form-label {
  display: inline-block;
  margin-bottom: 0.38rem;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.product-site .form-control,
body.product-site input,
body.product-site select,
body.product-site textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 16, 29, 0.96), rgba(11, 20, 35, 0.94));
  color: var(--text-strong);
  padding: 0.82rem 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.product-site select.form-control {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(198, 214, 236, 0.9) 50%),
    linear-gradient(135deg, rgba(198, 214, 236, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.product-site textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

body.product-site .form-control:focus,
body.product-site input:focus,
body.product-site select:focus,
body.product-site textarea:focus {
  border-color: rgba(108, 246, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 246, 255, 0.12), 0 0 24px rgba(108, 246, 255, 0.12);
  outline: none;
}

body.product-site .ps-footer-grid {
  align-items: start;
}

body.product-site .ps-footer-grid > div {
  min-width: 0;
}

body.product-site .ps-footer-grid a,
body.product-site .ps-footer-grid p {
  line-height: 1.6;
}

body.product-site .ps-footer-bottom {
  color: var(--text-soft);
}

body.product-site main.ps-wrap > .container > .ps-card:first-of-type,
body.product-site main.ps-wrap > .container > .ps-grid:first-of-type,
body.product-site main.ps-wrap > .container > article.ps-card:first-of-type {
  margin-top: 1.25rem;
}

body.product-site main.ps-wrap > .container > .ps-card:first-of-type {
  max-width: 980px;
}

body.product-site main.ps-wrap > .container > .ps-card:first-of-type p {
  max-width: 62ch;
}

@media (max-width: 1050px) {
  body.product-site main.ps-wrap {
    padding-top: 4rem;
  }

  body.product-site .ps-card {
    padding: 1.1rem;
  }
}

@media (max-width: 760px) {
  body.product-site main.ps-wrap {
    padding-top: 3.7rem;
    padding-bottom: 3rem;
  }

  body.product-site .ps-section-title h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  body.product-site .ps-section-title h2 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }

  body.product-site .ps-card {
    padding: 1rem;
  }

  body.product-site .ps-media::before {
    height: 30px;
  }

  body.product-site .ps-media img {
    margin-top: 30px;
  }

  body.product-site .ps-actions {
    gap: 0.6rem;
  }

  body.product-site .ps-actions > .ps-btn,
  body.product-site .ps-actions > button.ps-btn {
    width: 100%;
    justify-content: center;
  }

  body.product-site .form-control,
  body.product-site input,
  body.product-site select,
  body.product-site textarea {
    font-size: 16px;
  }
}
