/* ============================================================
   Neo-Stories — Estilos da Landing Page
   Paleta:
     --ns-primary   → #6d28d9 (violeta)
     --ns-secondary → #2563eb (azul)
     --ns-accent    → #f59e0b (âmbar)
   ============================================================ */

:root {
  --ns-primary:        #6d28d9;
  --ns-primary-rgb:    109, 40, 217;
  --ns-secondary:      #2563eb;
  --ns-secondary-rgb:  37, 99, 235;
  --ns-accent:         #f59e0b;
  --ns-accent-rgb:     245, 158, 11;
  --ns-dark:           #0f0a1e;
  --ns-gradient:       linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
  --ns-gradient-warm:  linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #6d28d9 100%);

  /* Sobrescreve Bootstrap */
  --bs-primary:        #6d28d9;
  --bs-primary-rgb:    109, 40, 217;
  --bs-warning:        #f59e0b;
  --bs-warning-rgb:    245, 158, 11;
  --bs-dark:           #0f0a1e;
  --bs-dark-rgb:       15, 10, 30;

  --af-blue-mid:       #2563eb;
  --af-blue-mid-rgb:   37, 99, 235;
  --af-blue-light:     #3b82f6;
  --af-yellow-dark:    #d97706;
}

/* ---- Brand name ---- */
.ns-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ns-primary);
  letter-spacing: -.3px;
}

.ns-brand-name span {
  color: var(--ns-secondary);
}

.ns-brand-name-footer {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.ns-brand-name-footer span {
  color: var(--ns-accent);
}

/* ---- Hero NS ---- */
#hero {
  background: #fff;
  overflow: hidden;
}

#hero::before {
  background: radial-gradient(circle, rgba(var(--ns-primary-rgb), .06) 0%, transparent 65%);
}

.hero-badge {
  background: rgba(var(--ns-primary-rgb), .08);
  border-color: rgba(var(--ns-primary-rgb), .2);
  color: var(--ns-primary);
}

.hero-title span {
  background: var(--ns-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-hero-primary {
  background: var(--ns-gradient);
  box-shadow: 0 4px 20px rgba(var(--ns-primary-rgb), .35);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 28px rgba(var(--ns-primary-rgb), .45);
  color: #fff;
}

/* ---- Mockup de browser com stories ---- */
.ns-browser-wrap {
  position: relative;
  perspective: 1200px;
}

.ns-browser {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(var(--ns-primary-rgb), .2), 0 4px 16px rgba(0,0,0,.08);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}

.ns-browser:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.ns-browser-bar {
  background: #f1f5f9;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid #e2e8f0;
}

.ns-browser-dots {
  display: flex;
  gap: .3rem;
}

.ns-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ns-browser-dot:nth-child(1) { background: #ef4444; }
.ns-browser-dot:nth-child(2) { background: #f59e0b; }
.ns-browser-dot:nth-child(3) { background: #22c55e; }

.ns-browser-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: .25rem .75rem;
  font-size: .78rem;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.ns-browser-content {
  padding: 1.2rem;
  background: #f8fafc;
  min-height: 320px;
  position: relative;
}

.ns-site-header-mock {
  background: #fff;
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e8eef5;
}

.ns-site-logo-mock {
  width: 70px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 4px;
}

.ns-site-nav-mock {
  display: flex;
  gap: .5rem;
}

.ns-site-nav-mock span {
  width: 32px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 3px;
}

/* Stories widget dentro do browser */
.ns-stories-widget {
  background: #fff;
  border-radius: 10px;
  padding: .8rem 1rem;
  border: 1px solid #e8eef5;
  margin-bottom: .8rem;
}

.ns-stories-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: .6rem;
}

.ns-stories-row {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.ns-story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
}

.ns-story-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ns-gradient-warm);
  flex-shrink: 0;
}

.ns-story-ring.seen {
  background: #e2e8f0;
}

.ns-story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

.ns-story-inner i {
  color: var(--ns-primary);
}

.ns-story-name {
  font-size: .55rem;
  color: #64748b;
  font-weight: 600;
  max-width: 44px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ns-site-body-mock {
  background: #fff;
  border-radius: 8px;
  padding: .8rem;
  border: 1px solid #e8eef5;
}

.ns-body-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: .5rem;
}

.ns-body-line:last-child { margin-bottom: 0; }
.ns-body-line.short { width: 60%; }
.ns-body-line.shorter { width: 40%; }

/* Badge "ao vivo" no browser */
.ns-live-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--ns-gradient);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .2rem .65rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.ns-live-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: nsPulse 1.4s ease infinite;
}

@keyframes nsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.8); }
}

/* ---- Seção Como Funciona ---- */
#como-funciona {
  background: var(--bs-light);
}

.ns-step-connector {
  position: absolute;
  top: 35px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--ns-primary-rgb),.25), rgba(var(--ns-secondary-rgb),.25));
  z-index: 0;
}

@media (max-width: 991px) {
  .ns-step-connector { display: none; }
}

/* ---- Seção Recursos ---- */
.ns-feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  height: 100%;
  border: 1px solid #ede9fe;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.ns-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ns-gradient);
  transform: scaleX(0);
  transition: transform .3s;
}

.ns-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(var(--ns-primary-rgb), .12);
  border-color: rgba(var(--ns-primary-rgb), .2);
}

.ns-feature-card:hover::before {
  transform: scaleX(1);
}

.ns-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--ns-primary-rgb), .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--ns-primary);
  margin-bottom: 1.1rem;
  transition: background .25s, color .25s;
}

.ns-feature-card:hover .ns-feature-icon {
  background: var(--ns-gradient);
  color: #fff;
}

.ns-feature-card h5 {
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: .4rem;
  font-size: 1rem;
}

.ns-feature-card p {
  font-size: .88rem;
  color: #666;
  margin: 0;
  line-height: 1.65;
}

/* ---- Segmentos strip ---- */
#segmentos {
  background: var(--ns-gradient);
  padding: 70px 0;
}

/* ---- Planos ---- */
#planos {
  background: #fff;
}

.ns-plan-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 2px solid #ede9fe;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ns-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(var(--ns-primary-rgb), .12);
}

.ns-plan-card.featured {
  border-color: var(--ns-primary);
  background: linear-gradient(180deg, rgba(var(--ns-primary-rgb),.04) 0%, #fff 100%);
  box-shadow: 0 12px 40px rgba(var(--ns-primary-rgb), .15);
}

.ns-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ns-gradient);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50px;
  padding: .3rem 1.1rem;
  white-space: nowrap;
  letter-spacing: .5px;
}

.ns-plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--ns-primary-rgb), .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--ns-primary);
  margin-bottom: 1.2rem;
}

.ns-plan-card.featured .ns-plan-icon {
  background: var(--ns-gradient);
  color: #fff;
}

.ns-plan-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bs-dark);
  margin-bottom: .3rem;
}

.ns-plan-desc {
  font-size: .85rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.ns-plan-price {
  margin-bottom: 1.5rem;
}

.ns-plan-price .currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ns-primary);
  vertical-align: top;
  margin-top: .5rem;
  display: inline-block;
}

.ns-plan-price .amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--bs-dark);
  line-height: 1;
}

.ns-plan-price .period {
  font-size: .85rem;
  color: #888;
  margin-left: .2rem;
}

.ns-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.ns-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  border-top: 1px solid #f1f5f9;
  font-size: .88rem;
  color: #444;
}

.ns-plan-features li:first-child {
  border-top: none;
}

.ns-plan-features li i.fa-check {
  color: #22c55e;
  margin-top: 2px;
  flex-shrink: 0;
}

.ns-plan-features li i.fa-times {
  color: #e2e8f0;
  margin-top: 2px;
  flex-shrink: 0;
}

.ns-plan-features li.disabled {
  color: #bbb;
}

.ns-plan-btn {
  display: block;
  text-align: center;
  padding: .85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s;
  border: 2px solid var(--ns-primary);
  color: var(--ns-primary);
  background: transparent;
}

.ns-plan-btn:hover {
  background: var(--ns-primary);
  color: #fff;
}

.ns-plan-card.featured .ns-plan-btn {
  background: var(--ns-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--ns-primary-rgb), .35);
}

.ns-plan-card.featured .ns-plan-btn:hover {
  box-shadow: 0 8px 28px rgba(var(--ns-primary-rgb), .5);
  opacity: .92;
}

/* ---- CTA Final ---- */
#cta-final {
  background: var(--ns-gradient);
  padding: 100px 0;
}

.ns-cta-card {
  text-align: center;
  color: #fff;
}

.ns-cta-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.ns-cta-card p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.btn-cta-white {
  background: #fff;
  color: var(--ns-primary);
  font-weight: 700;
  padding: .9rem 2.2rem;
  border-radius: 10px;
  font-size: 1rem;
  border: none;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-cta-white:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  color: var(--ns-primary);
}

.btn-cta-outline-white {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: .9rem 2.2rem;
  border-radius: 10px;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.5);
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-cta-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Contato ---- */
#contato {
  background: var(--bs-light) !important;
}

/* ---- Footer NS ---- */
.ns-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--ns-gradient);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: .55rem 1.2rem;
  font-size: .88rem;
  text-decoration: none;
  transition: opacity .2s;
}

.ns-footer-cta-btn:hover {
  opacity: .88;
  color: #fff;
}

/* ---- Animações de entrada ---- */
.ns-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.ns-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
  .ns-browser {
    transform: none;
  }

  .ns-plan-card {
    max-width: 400px;
    margin: 0 auto;
  }

  #cta-final {
    padding: 70px 0;
  }
}
