.s2-product-hero {
  background: var(--s2-hero-bg);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.s2-product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%, rgba(249, 115, 22, 0.12), transparent);
}

.s2-product-hero .s2-container {
  position: relative;
  z-index: 1;
}

.s2-product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.s2-product-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.s2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.s2-product-hero-lead {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 28px;
}

.s2-product-hero-img {
  width: 100%;
  border-radius: var(--s2-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.s2-product-pricing {
  padding: 72px 0;
  background: var(--s2-surface);
  border-bottom: 1px solid var(--s2-border);
  scroll-margin-top: calc(var(--s2-header-h) + 24px);
}

.s2-pricing-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.s2-pricing-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--s2-text);
  margin: 0 0 12px;
}

.s2-pricing-header p {
  color: var(--s2-text-3);
  margin: 0;
  line-height: 1.7;
}

.s2-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.s2-pricing-grid:has(.s2-pricing-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.s2-pricing-card {
  position: relative;
  background: var(--s2-bg);
  border: 1px solid var(--s2-border);
  border-radius: var(--s2-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--s2-shadow-lg);
  display: flex;
  flex-direction: column;
}

.s2-pricing-card.featured {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.12);
}

.s2-pricing-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s2-orange);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 5px 10px;
  border-radius: 999px;
}

.s2-pricing-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--s2-text);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.s2-pricing-desc {
  color: var(--s2-text-3);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 24px;
  flex: 1;
}

.s2-pricing-plans {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--s2-border);
}

.s2-pricing-plans li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--s2-border);
}

.s2-pricing-plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.s2-pricing-duration {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--s2-text-2);
}

.s2-pricing-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--s2-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.s2-pricing-gst {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--s2-text-3);
}

.s2-pricing-order-sm {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--s2-orange), var(--s2-orange-hover));
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.s2-pricing-order-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.4);
  color: #fff;
}

.s2-pricing-note {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 0.88rem;
  color: var(--s2-text-3);
  line-height: 1.6;
}

.s2-pricing-note a {
  color: var(--s2-orange);
  font-weight: 600;
  text-decoration: none;
}

.s2-pricing-note a:hover {
  text-decoration: underline;
}

.s2-product-disclaimer {
  padding: 20px 0;
  background: rgba(249, 115, 22, 0.08);
  border-bottom: 1px solid var(--s2-border);
}

.s2-product-disclaimer p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--s2-text-2);
}

.s2-product-cards {
  padding: 72px 0;
  background: var(--s2-bg);
  overflow: visible;
}

.s2-product-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.s2-product-card-item {
  position: relative;
  background: var(--s2-surface);
  border: 1px solid var(--s2-border);
  border-radius: var(--s2-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--s2-shadow-lg);
  height: 100%;
  overflow: visible;
}

.s2-product-card-thumb {
  margin: 0 0 18px;
}

.s2-product-card-thumb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--s2-bg);
  border: 1px solid var(--s2-border);
  padding: 8px;
}

/* AlgoCraft — large hover preview for feature icons */
.s2-ac-thumb-zoom {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
}

.s2-ac-thumb-zoom:hover {
  z-index: 30;
}

.s2-ac-thumb-zoom .s2-ac-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--s2-bg);
  border: 1px solid var(--s2-border);
  padding: 8px;
  cursor: zoom-in;
  display: block;
}

.s2-ac-thumb-preview {
  position: absolute;
  left: 0;
  top: 0;
  width: min(560px, 92vw);
  height: min(560px, 92vw);
  padding: 16px;
  background: var(--s2-surface);
  border: 1px solid var(--s2-border);
  border-radius: var(--s2-radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 40;
}

.s2-ac-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (hover: hover) {
  .s2-ac-thumb-zoom:hover .s2-ac-thumb-preview {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .s2-product-cards-grid .s2-product-card-item:nth-child(even) .s2-ac-thumb-preview {
    left: auto;
    right: 0;
  }
}

.s2-product-card-item:has(.s2-ac-thumb-zoom:hover) {
  z-index: 25;
}

/* AlgoCraft hero banner hover preview */
.s2-ac-hero-zoom-wrap {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.s2-ac-hero-zoom-wrap:hover {
  z-index: 30;
}

.s2-ac-hero-zoom {
  display: block;
  width: 100%;
  margin: 0;
}

.s2-ac-hero-zoom .s2-ac-hero-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.s2-ac-hero-hover-preview {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(1250px, 98vw);
  max-height: min(1250px, 92vh);
  padding: 22px;
  background: var(--s2-surface);
  border-radius: var(--s2-radius-lg);
  border: 1px solid var(--s2-border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 200;
}

.s2-ac-hero-hover-preview img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 44px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

@media (hover: hover) {
  .s2-ac-hero-zoom:hover .s2-ac-hero-hover-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
}

.s2-product-hero:has(.s2-ac-hero-zoom:hover) {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.s2-product-hero:has(.s2-ac-hero-zoom:hover) .s2-container {
  overflow: visible;
}

.s2-product-card-item h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--s2-text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.s2-product-card-item p {
  color: var(--s2-text-2);
  line-height: 1.75;
  margin: 0;
  font-size: 0.95rem;
}

.s2-product-card-item a {
  color: var(--s2-orange);
  font-weight: 600;
  text-decoration: none;
}

.s2-product-card-item a:hover {
  text-decoration: underline;
}

.s2-product-features {
  padding: 0;
  background: var(--s2-bg);
}

.s2-product-feature {
  padding: 72px 0;
  border-bottom: 1px solid var(--s2-border);
}

.s2-product-feature:nth-child(even) {
  background: var(--s2-surface);
}

.s2-product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.s2-product-feature.reverse .s2-product-feature-grid {
  direction: rtl;
}

.s2-product-feature.reverse .s2-product-feature-grid > * {
  direction: ltr;
}

.s2-product-feature h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--s2-text);
  margin: 0 0 16px;
}

.s2-product-feature p {
  color: var(--s2-text-2);
  line-height: 1.8;
  margin: 0 0 16px;
}

.s2-product-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.s2-product-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--s2-text-2);
  line-height: 1.7;
  font-size: 0.95rem;
}

.s2-product-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--s2-orange);
  font-weight: 700;
}

.s2-product-feature-img {
  width: 100%;
  border-radius: var(--s2-radius-lg);
  border: 1px solid var(--s2-border);
  box-shadow: var(--s2-shadow-lg);
  background: var(--s2-bg);
  min-height: 220px;
  object-fit: contain;
}

.s2-product-feature-img--compact {
  width: 72%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

.s2-product-req-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.s2-product-req-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--s2-text-2);
  line-height: 1.6;
}

.s2-product-req-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--s2-orange);
  font-size: 0.8rem;
}

.s2-product-cta-strip {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 48px 0;
  text-align: center;
}

.s2-product-cta-strip .s2-hero-actions {
  justify-content: center;
}

@media (max-width: 991px) {
  .s2-product-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .s2-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .s2-product-hero-grid,
  .s2-product-feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .s2-product-feature.reverse .s2-product-feature-grid {
    direction: ltr;
  }

  .s2-product-feature {
    padding: 56px 0;
  }
}
