:root {
  --sp-primary: #f64401;
  --sp-primary-dark: #d12e00;
  --sp-accent: #e11d48;
  --sp-purple: #7c3aed;
  --sp-bg-start: #fff7ed;
  --sp-bg-end: #fff1f2;
  --sp-border: #fecdd3;
  --sp-text: #1e1b4b;
  --sp-muted: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: transparent;
  color: var(--sp-text);
  line-height: 1.5;
}

body.page-showcase {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #31102f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.sp-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.sp-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, var(--sp-bg-start) 48%, var(--sp-bg-end) 100%);
  border: 2px solid #fdba74;
  border-radius: 18px;
  padding: 22px 24px 20px;
  box-shadow:
    0 12px 32px rgba(246, 68, 1, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 38px rgba(246, 68, 1, 0.2),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Subtle decorative glow */
.sp-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(246, 68, 1, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sp-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Top-left Sponsored pill (matching reference placement, upgraded style) */
.sp-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  background: linear-gradient(90deg, #1d4ed8, #4338ca);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3);
  z-index: 2;
}

/* Top-right verified tag */
.sp-verified {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 2;
}

/* Brand Row with Logo */
.sp-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  z-index: 1;
}

.sp-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  padding: 4px;
  box-shadow: 0 6px 14px rgba(246, 68, 1, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.sp-brand-text {
  text-align: left;
}

.sp-brand-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #9f1239, #f64401);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.sp-brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* Headline */
.sp-headline {
  font-size: 18px;
  font-weight: 800;
  color: #881337;
  z-index: 1;
}

/* Feature Pills */
.sp-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.sp-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fed7aa;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* CTA Button */
.sp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  z-index: 1;
}

.sp-btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #e11d48 0%, #f64401 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(246, 68, 1, 0.45);
}

.sp-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: sp-shine 2.8s infinite;
}

@keyframes sp-shine {
  0% { left: -100%; }
  45%, 100% { left: 150%; }
}

.sp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #9f1239;
  border: 1.5px solid #fda4af;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sp-btn-secondary:hover {
  background: #fff1f2;
  border-color: #e11d48;
}

/* Showcase Footer Info */
.sp-showcase-note {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 16px 20px;
  color: #e2e8f0;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.sp-showcase-note h3 {
  font-size: 14px;
  color: #fdba74;
  margin-bottom: 8px;
}

.sp-code {
  display: block;
  background: rgba(15, 23, 42, 0.75);
  color: #86efac;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  overflow-x: auto;
  margin-top: 8px;
  user-select: all;
}

@media (max-width: 540px) {
  .sp-card {
    padding: 36px 14px 18px;
    border-radius: 14px;
  }
  .sp-brand-name {
    font-size: 18px;
  }
  .sp-headline {
    font-size: 16px;
  }
  .sp-pill {
    font-size: 11.5px;
    padding: 4px 10px;
  }
  .sp-btn-primary {
    width: 100%;
    padding: 11px 18px;
  }
  .sp-btn-secondary {
    width: 100%;
  }
}
