/* EstateBridge product showcase — scoped to .eb-product */

.eb-product {
  --eb-accent: #14b8a6;
  --eb-accent-bright: #2dd4bf;
  --eb-accent-deep: #0d9488;
  --eb-accent-glow: rgba(20, 184, 166, 0.35);
  --eb-surface: rgba(14, 20, 24, 0.72);
  --eb-surface-raised: rgba(22, 32, 38, 0.92);
  --eb-border: rgba(45, 212, 191, 0.22);
  --eb-heading: #ecfdf5;
  --eb-body: rgba(236, 253, 245, 0.82);
  --eb-muted: rgba(167, 243, 208, 0.65);
}

.eb-product__hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(ellipse 90% 70% at 8% 20%, rgba(20, 184, 166, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 10%, rgba(13, 148, 136, 0.2) 0%, transparent 50%),
    linear-gradient(165deg, #030a0c 0%, #061418 45%, #020608 100%);
  border-bottom: 1px solid var(--eb-border);
}

.eb-product__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(rgba(45, 212, 191, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 0%, transparent 75%);
}

.eb-product__hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 992px) {
  .eb-product__hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.eb-product__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eb-accent-bright);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--eb-border);
  border-radius: 999px;
}

.eb-product__logo {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--eb-heading);
}

.eb-product__logo span {
  color: var(--eb-accent-bright);
}

.eb-product__title {
  margin: 0 0 1.25rem;
  max-width: 20ch;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--eb-heading);
}

.eb-product__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--eb-body);
}

.eb-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.eb-product__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.eb-product__btn--primary {
  color: #042f2e;
  background: linear-gradient(145deg, var(--eb-accent-bright) 0%, var(--eb-accent-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0.5rem 1.5rem var(--eb-accent-glow);
}

.eb-product__btn--primary:hover,
.eb-product__btn--primary:focus {
  color: #042f2e;
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 2rem var(--eb-accent-glow);
}

.eb-product__btn--ghost {
  color: var(--eb-heading);
  background: transparent;
  border: 1px solid var(--eb-border);
}

.eb-product__btn--ghost:hover,
.eb-product__btn--ghost:focus {
  color: var(--eb-accent-bright);
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(45, 212, 191, 0.45);
}

.eb-product__hero-visual {
  position: relative;
}

.eb-product__dashboard {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--eb-border);
  background: var(--eb-surface-raised);
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(45, 212, 191, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eb-product__dashboard-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--eb-border);
}

.eb-product__dashboard-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.45);
}

.eb-product__dashboard-url {
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  color: var(--eb-muted);
}

.eb-product__dashboard-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.eb-product__float-card {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: var(--eb-surface-raised);
  border: 1px solid var(--eb-border);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
  font-size: 0.8125rem;
  color: var(--eb-body);
  max-width: 11rem;
}

.eb-product__float-card strong {
  display: block;
  color: var(--eb-accent-bright);
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}

.eb-product__float-card--portals {
  bottom: 12%;
  left: -4%;
}

.eb-product__float-card--ai {
  top: 8%;
  right: -2%;
}

@media (max-width: 991.98px) {
  .eb-product__float-card {
    display: none;
  }
}

.eb-product__section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.eb-product__section--muted {
  background: rgba(6, 16, 18, 0.55);
  border-block: 1px solid rgba(45, 212, 191, 0.1);
}

.eb-product__section-header {
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.eb-product__section-label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eb-accent-bright);
}

.eb-product__section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--eb-heading);
}

.eb-product__section-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--eb-body);
}

.eb-product__pillars {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .eb-product__pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eb-product__pillar {
  padding: 1.5rem;
  border-radius: 0.85rem;
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.eb-product__pillar:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 0.5rem 1.75rem rgba(20, 184, 166, 0.12);
}

.eb-product__pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.55rem;
  background: rgba(20, 184, 166, 0.15);
  color: var(--eb-accent-bright);
}

.eb-product__pillar-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--eb-heading);
}

.eb-product__pillar-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--eb-body);
}

.eb-product__features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .eb-product__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .eb-product__features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eb-product__feature {
  padding: 1.35rem;
  border-radius: 0.75rem;
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
}

.eb-product__feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--eb-heading);
}

.eb-product__feature p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--eb-muted);
}

.eb-product__split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .eb-product__split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.eb-product__chat {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--eb-surface-raised);
  border: 1px solid var(--eb-border);
}

.eb-product__chat-msg {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 90%;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.75rem;
}

.eb-product__chat-msg--user {
  margin-left: auto;
  color: #042f2e;
  background: linear-gradient(135deg, var(--eb-accent-bright), var(--eb-accent-deep));
  border-bottom-right-radius: 0.2rem;
}

.eb-product__chat-msg--bot {
  color: var(--eb-body);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--eb-border);
  border-bottom-left-radius: 0.2rem;
}

.eb-product__portals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.eb-product__portal-tag {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--eb-heading);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--eb-border);
  border-radius: 999px;
}

.eb-product__pricing {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .eb-product__pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .eb-product__pricing {
    grid-template-columns: repeat(4, 1fr);
  }
}

.eb-product__plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 0.85rem;
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
}

.eb-product__plan--featured {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 2rem rgba(20, 184, 166, 0.15);
}

.eb-product__plan-name {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eb-accent-bright);
}

.eb-product__plan-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eb-heading);
}

.eb-product__plan-price {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--eb-heading);
  letter-spacing: -0.03em;
}

.eb-product__plan-price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--eb-muted);
}

.eb-product__plan-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.eb-product__plan-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--eb-body);
}

.eb-product__plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--eb-accent-bright);
}

.eb-product__faq {
  max-width: 44rem;
  margin: 0 auto;
}

.eb-product__faq-item {
  border-bottom: 1px solid var(--eb-border);
}

.eb-product__faq-item summary {
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--eb-heading);
  cursor: pointer;
  list-style: none;
}

.eb-product__faq-item summary::-webkit-details-marker {
  display: none;
}

.eb-product__faq-item p {
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--eb-body);
}

.eb-product__built {
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(20, 184, 166, 0.2) 0%, transparent 60%),
    #030a0c;
  border-top: 1px solid var(--eb-border);
}

.eb-product__built-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--eb-heading);
}

.eb-product__built-text {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--eb-body);
}

html[data-theme="light"] .eb-product {
  --eb-heading: #042f2e;
  --eb-body: rgba(4, 47, 46, 0.88);
  --eb-muted: rgba(15, 118, 110, 0.75);
  --eb-surface: #ffffff;
  --eb-surface-raised: #f0fdfa;
  --eb-border: rgba(13, 148, 136, 0.25);
}

html[data-theme="light"] .eb-product__hero {
  background: linear-gradient(165deg, #f0fdfa 0%, #ecfeff 50%, #f8fafc 100%);
}

html[data-theme="light"] .eb-product__section--muted {
  background: rgba(240, 253, 250, 0.8);
}
