/*
 * Product Teams page
 * Reality-based positioning for the implemented product surface.
 */
:root {
  --pt-bg: #0a0a0b;
  --pt-text: #f9fafb;
  --pt-muted: #a1a1aa;
  --pt-border: rgba(255, 255, 255, 0.08);
  --pt-card-bg: rgba(255, 255, 255, 0.03);
  --pt-card-bg-strong: rgba(255, 255, 255, 0.05);
  --pt-accent-primary: #7c3aed;
  --pt-accent-secondary: #a78bfa;
  --pt-accent-tertiary: #c4b5fd;
}

body.product-page-v2 {
  background-color: var(--pt-bg);
  color: var(--pt-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.pt-mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background-color: var(--pt-bg);
}

.pt-mesh::before,
.pt-mesh::after,
.pt-mesh-glow {
  content: "";
  position: absolute;
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
}

.pt-mesh::before {
  top: -18%;
  left: 8%;
  width: 42vw;
  height: 36vh;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12), transparent 72%);
}

.pt-mesh::after {
  right: 6%;
  bottom: -16%;
  width: 46vw;
  height: 38vh;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.08), transparent 72%);
}

.pt-mesh-glow {
  display: none;
}

.pt-grid-v2 {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='18' cy='18' r='1.2' fill='%237c3aed' fill-opacity='0.18'/%3E%3Ccircle cx='48' cy='48' r='1.1' fill='%23a78bfa' fill-opacity='0.12'/%3E%3Ccircle cx='78' cy='78' r='1.2' fill='%237c3aed' fill-opacity='0.14'/%3E%3C/svg%3E");
  background-size: 96px 96px;
  background-position: center top;
  mask-image: radial-gradient(ellipse at 50% 15%, rgba(0, 0, 0, 0.92) 14%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 15%, rgba(0, 0, 0, 0.92) 14%, transparent 74%);
  pointer-events: none;
}

.pt-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.014;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.text-pt-gradient {
  background: linear-gradient(135deg, #ffffff 10%, var(--pt-accent-primary) 60%, var(--pt-accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-pt-gradient-subtle {
  background: linear-gradient(135deg, var(--pt-muted), var(--pt-text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-pt-muted {
  color: var(--pt-muted);
}

.pt-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pt-accent-primary);
}

.pt-section-head {
  text-align: center;
  margin-bottom: 5rem;
}

.pt-btn-glow,
.pt-btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.pt-btn-glow {
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #ffffff;
  color: #050505;
  z-index: 1;
}

.pt-btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pt-accent-primary), var(--pt-accent-secondary), var(--pt-accent-primary));
  background-size: 200% auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: ptShine 3s linear infinite;
  z-index: -1;
}

.pt-btn-glow:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: transparent;
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.45);
}

.pt-btn-glow:hover::before {
  opacity: 1;
}

.pt-btn-ghost {
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pt-btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.pt-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-top: 4rem;
}

.pt-proof-card {
  text-align: left;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--pt-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px -40px rgba(0, 0, 0, 0.8);
}

.pt-proof-icon,
.pt-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--pt-accent-primary);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  box-shadow: inset 0 2px 10px rgba(124, 58, 237, 0.08);
}

.pt-proof-title {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.pt-proof-desc {
  color: var(--pt-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.pt-kanban-wrapper {
  position: relative;
  width: 100%;
  max-width: 1080px;
  min-height: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
  perspective: none;
  transform-style: flat;
}

.pt-kanban-board-bg {
  position: absolute;
  top: -16%;
  left: -8%;
  right: -8%;
  bottom: -18%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05), transparent 72%);
  transform: none;
  pointer-events: none;
}

.pt-lane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--pt-border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: none;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 24px 52px -28px rgba(0, 0, 0, 0.68);
  overflow: hidden;
}

.pt-lane::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--pt-lane-color), transparent);
}

.pt-lane:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 56px -30px rgba(124, 58, 237, 0.12);
}

.pt-lane-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pt-card-mock {
  padding: 1.15rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: background 0.3s ease, border-color 0.3s ease;
}

.pt-card-mock:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 58, 237, 0.28);
}

.pt-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.pt-card-meta {
  margin-top: 0.55rem;
  color: var(--pt-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.pt-bento-grid,
.pt-step-grid,
.pt-reality-grid {
  display: grid;
  gap: 1.5rem;
}

.pt-bento-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.pt-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pt-reality-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pt-bento-cell,
.pt-step-card,
.pt-reality-card,
.pt-faq-item {
  border-radius: 24px;
  border: 1px solid var(--pt-border);
  background: var(--pt-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 65px -45px rgba(0, 0, 0, 0.9);
}

.pt-bento-cell {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.pt-bento-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pt-bento-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.22);
}

.pt-bento-cell:hover::before {
  opacity: 1;
}

.pt-bento-cell.col-span-12 {
  grid-column: span 12;
}

.pt-bento-cell.col-span-6 {
  grid-column: span 6;
}

.pt-bento-cell.col-span-4 {
  grid-column: span 4;
}

.pt-feature-list,
.pt-step-list,
.pt-reality-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  color: var(--pt-text);
}

.pt-feature-list li,
.pt-step-list li,
.pt-reality-list li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.6;
}

.pt-feature-list li::before,
.pt-step-list li::before,
.pt-reality-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pt-accent-primary), var(--pt-accent-tertiary));
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.35);
}

.pt-step-card,
.pt-reality-card {
  padding: 2rem;
}

.pt-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pt-accent-primary);
  border: 1px solid rgba(124, 58, 237, 0.24);
  background: rgba(124, 58, 237, 0.08);
}

.pt-faq-container {
  display: grid;
  gap: 1rem;
}

.pt-faq-item {
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pt-faq-item.is-open {
  border-color: rgba(124, 58, 237, 0.3);
  background: var(--pt-card-bg-strong);
}

.pt-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  color: #ffffff;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pt-faq-btn i {
  color: var(--pt-accent-primary);
  transition: transform 0.35s ease;
}

.pt-faq-item.is-open .pt-faq-btn i {
  transform: rotate(180deg);
}

.pt-faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--pt-muted);
  line-height: 1.7;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.pt-faq-item.is-open .pt-faq-content {
  max-height: 420px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem;
}

.pt-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: ptSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards var(--delay, 0s);
}

@keyframes ptSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ptShine {
  to {
    background-position: 200% center;
  }
}

@media (max-width: 1180px) {
  .pt-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pt-kanban-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
    perspective: none;
    padding: 0;
  }

  .pt-lane,
  .pt-lane:hover {
    transform: none;
  }

  .pt-bento-cell.col-span-6,
  .pt-bento-cell.col-span-4 {
    grid-column: span 12;
  }

  .pt-reality-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .pt-proof-grid,
  .pt-step-grid {
    grid-template-columns: 1fr;
  }

  .pt-section-head {
    margin-bottom: 3rem;
  }

  .pt-bento-cell,
  .pt-step-card,
  .pt-reality-card {
    padding: 1.5rem;
  }

  .pt-faq-btn {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .pt-slide-up,
  .pt-btn-glow::before,
  .pt-bento-cell::before,
  .pt-faq-content,
  .pt-faq-btn i,
  .pt-kanban-wrapper,
  .pt-lane,
  .pt-card-mock,
  .pt-mesh::before,
  .pt-mesh::after,
  .pt-mesh-glow {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  html,
  body.product-page-v2 {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .product-page-v2 *,
  .product-page-v2 *::before,
  .product-page-v2 *::after {
    box-sizing: border-box;
    min-width: 0;
  }

  .product-page-v2 #main-content {
    width: 100%;
    max-width: 100%;
    padding-top: 6.25rem !important;
    padding-bottom: 4rem !important;
    overflow: hidden;
    overflow: clip;
  }

  .product-page-v2 #main-content > section + section {
    margin-top: 4.5rem !important;
  }

  .product-page-v2 #main-content > section:last-child {
    margin-bottom: 0 !important;
    padding-top: 3.5rem !important;
  }

  .product-page-v2 h1 {
    font-size: clamp(2.35rem, 11vw, 3.15rem) !important;
    line-height: 1.06 !important;
    overflow-wrap: anywhere;
  }

  .product-page-v2 h2 {
    font-size: clamp(1.95rem, 9vw, 2.55rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere;
  }

  .product-page-v2 p,
  .pt-feature-list,
  .pt-step-list,
  .pt-reality-list {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .text-pt-gradient {
    display: inline;
  }

  .pt-eyebrow {
    display: inline-block;
    max-width: 100%;
    line-height: 1.35;
  }

  .pt-btn-glow,
  .pt-btn-ghost {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.95rem 1.25rem;
    text-align: center;
  }

  .pt-proof-grid,
  .pt-bento-grid,
  .pt-step-grid,
  .pt-reality-grid,
  .pt-kanban-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pt-bento-cell,
  .pt-bento-cell.col-span-12,
  .pt-bento-cell.col-span-6,
  .pt-bento-cell.col-span-4 {
    grid-column: auto;
  }

  .pt-proof-grid {
    margin-top: 2.25rem;
  }

  .pt-kanban-wrapper {
    min-height: 0;
    padding: 0;
  }

  .pt-kanban-board-bg {
    display: none;
  }

  .pt-lane,
  .pt-proof-card,
  .pt-bento-cell,
  .pt-step-card,
  .pt-reality-card,
  .pt-faq-item {
    border-radius: 20px;
    padding: 1.25rem;
  }

  .pt-card-mock {
    border-radius: 16px;
    padding: 1rem;
  }

  .pt-lane-header {
    align-items: flex-start;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .pt-section-head {
    margin-bottom: 2.25rem;
  }

  .pt-step-num {
    min-width: 3rem;
  }

  .pt-faq-btn {
    align-items: flex-start;
    padding: 1.1rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .pt-faq-btn i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
  }

  .pt-faq-content,
  .pt-faq-item.is-open .pt-faq-content {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 380px) {
  .product-page-v2 #main-content {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .pt-lane,
  .pt-proof-card,
  .pt-bento-cell,
  .pt-step-card,
  .pt-reality-card,
  .pt-faq-item {
    padding: 1rem;
  }
}
